f3e9eebc1048655bae25ebdeb627f757b9df8534
[gnulib.git] / ChangeLog
1 2012-04-03  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'logbf-ieee'.
4         * modules/logbf-ieee-tests: New file.
5         * tests/test-logbf-ieee.c: New file.
6         * tests/test-logb-ieee.h: New file.
7
8         New module 'logbf-ieee'.
9         * modules/logbf-ieee: New file.
10
11 2012-04-03  Bruno Haible  <bruno@clisp.org>
12
13         Tests for module 'logbl'.
14         * modules/logbl-tests: New file.
15         * tests/test-logbl.c: New file.
16
17         New module 'logbl'.
18         * lib/math.in.h (logbl): New declaration.
19         * lib/logbl.c: New file.
20         * m4/logbl.m4: New file.
21         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
22         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
23         REPLACE_LOGBL.
24         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
25         REPLACE_LOGBL.
26         * modules/logbl: New file.
27         * tests/test-math-c++.cc: Check the declaration of logbl.
28         * doc/posix-functions/logbl.texi: Mention the new module.
29
30 2012-04-02  Bruno Haible  <bruno@clisp.org>
31
32         Tests for module 'logbf'.
33         * modules/logbf-tests: New file.
34         * tests/test-logbf.c: New file.
35
36         New module 'logbf'.
37         * lib/math.in.h (logbf): New declaration.
38         * lib/logbf.c: New file.
39         * m4/logbf.m4: New file.
40         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
41         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
42         REPLACE_LOGBF.
43         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
44         REPLACE_LOGBF.
45         * modules/logbf: New file.
46         * tests/test-math-c++.cc: Check the declaration of logbf.
47         * doc/posix-functions/logbf.texi: Mention the new module.
48
49 2012-04-02  Bruno Haible  <bruno@clisp.org>
50
51         logb tests: More tests.
52         * tests/test-logb.h: New file, based on tests/test-logb.c and
53         tests/test-frexp.h.
54         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
55         (main): Just invoke test_function.
56         * modules/logb-tests (Files): Add tests/test-logb.h,
57         tests/minus-zero.h, tests/randomd.c.
58         (Makefile.am): Add randomd.c to test_logb_SOURCES.
59
60         logb: Provide replacement and workarounds.
61         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
62         is 1.
63         * lib/logb.c: New file.
64         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
65         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
66         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
67         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
68         * modules/logb (Files): Add lib/logb.c.
69         (Depends-on): Add isfinite, frexp, isnand.
70         (configure.ac): Compile the replacement code logb.c if needed.
71         * tests/test-math-c++.cc: Check the declaration of logb.
72         * doc/posix-functions/logb.texi: Mention the replacement and the bug
73         with subnormal numbers.
74
75 2012-04-02  Bruno Haible  <bruno@clisp.org>
76
77         log10* tests: Speed up.
78         * tests/test-log10.h (test_function): Reduce amount of random numbers
79         to test.
80
81 2012-04-01  Bruno Haible  <bruno@clisp.org>
82
83         logf-ieee: Fix test whether logf works.
84         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
85
86 2012-04-01  Bruno Haible  <bruno@clisp.org>
87
88         log10l: Work around log10l-ieee test failure on IRIX 6.5.
89         * lib/log10l.c: Include <float.h>
90         (log10l): On IRIX, normalize the +Infinity value.
91         * modules/log10l (Depends-on): Add 'float'.
92         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
93         +Infinity.
94
95         log10f-ieee: Work around test failure on NetBSD 5.1.
96         * m4/log10f-ieee.m4: New file.
97         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
98         test whether log10f works with a negative argument. Replace it if not.
99         * lib/log10f.c (log10f): For negative arguments, return NaN.
100         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
101         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
102         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
103
104         log10f-ieee: Work around test failure on Solaris 9.
105         * modules/log10f-ieee (Depends-on): Add log10-ieee.
106         (configure.ac): Require gl_FUNC_LOG10F.
107
108         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
109         * m4/log10-ieee.m4: New file.
110         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
111         whether log10 works with a negative argument. Replace it if not.
112         * lib/log10.c (log10): For negative arguments, return NaN.
113         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
114         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
115         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
116
117         Tests for module 'log10l-ieee'.
118         * modules/log10l-ieee-tests: New file.
119         * tests/test-log10l-ieee.c: New file.
120
121         New module 'log10l-ieee'.
122         * modules/log10l-ieee: New file.
123
124         Tests for module 'log10-ieee'.
125         * modules/log10-ieee-tests: New file.
126         * tests/test-log10-ieee.c: New file.
127
128         New module 'log10-ieee'.
129         * modules/log10-ieee: New file.
130
131         Tests for module 'log10f-ieee'.
132         * modules/log10f-ieee-tests: New file.
133         * tests/test-log10f-ieee.c: New file.
134         * tests/test-log10-ieee.h: New file.
135
136         New module 'log10f-ieee'.
137         * modules/log10f-ieee: New file.
138
139 2012-04-01  Bruno Haible  <bruno@clisp.org>
140
141         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
142         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
143         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
144         workaround.
145         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
146         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
148         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
149         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
150         (Depends-on): Update conditions.
151         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
152         IRIX 6.5, OSF/1 5.1 problems.
153
154 2012-04-01  Bruno Haible  <bruno@clisp.org>
155
156         log10f: Work around OSF/1 5.1 bug.
157         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
158         * lib/log10f.c (log10f): If logf exists, use it and provide just the
159         workaround.
160         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
161         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
163         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
164         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
165         (Depends-on): Update conditions.
166         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
167
168 2012-04-01  Bruno Haible  <bruno@clisp.org>
169
170         log10: Work around OSF/1 5.1 bug.
171         * lib/math.in.h (log10): New declaration.
172         * lib/log10.c: New file.
173         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
174         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
175         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
177         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
178         * modules/log10 (Files): Add lib/log10.c.
179         (Depends-on): Add math.
180         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
181         * tests/test-math-c++.cc: Check the declaration of log10.
182         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
183
184 2012-03-31  Bruno Haible  <bruno@clisp.org>
185
186         log10l tests: More tests.
187         * modules/log10l-tests (Files): Add tests/test-log10l.h,
188         tests/minus-zero.h, tests/randoml.c.
189         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
190         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
191         (main): Invoke test_function.
192
193         log10f tests: More tests.
194         * modules/log10f-tests (Files): Add tests/test-log10.h,
195         tests/minus-zero.h, tests/randomf.c.
196         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
197         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
198         (main): Invoke test_function.
199
200         log10 tests: More tests.
201         * tests/test-log10.h: New file.
202         * modules/log10-tests (Files): Add tests/test-log10.h,
203         tests/minus-zero.h, tests/randomd.c.
204         (Makefile.am): Add randomd.c to test_log10_SOURCES.
205         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
206         (main): Invoke test_function.
207
208 2012-03-31  Simon Josefsson  <simon@josefsson.org>
209
210         fflush: Fix syntax error.
211         * lib/fflush.c: Include unused-parameter.h, needed for
212         _GL_UNUSED_PARAMETER.
213         * modules/fflush (Depends-on): Add snippet/unused-parameter.
214
215 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
216
217         regex: pacify GCC when compiling GRUB
218         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
219         a diagnostic.  Reported by Vladimir Serbinenko in
220         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
221
222 2012-03-29  Eric Blake  <eblake@redhat.com>
223
224         stdio: don't assume gets any more
225         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
226         support.
227         * modules/stdio (Makefile.am): Likewise.
228         * lib/stdio-read.c (gets): Likewise.
229         * tests/test-stdio-c++.cc: Likewise.
230         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
231         * lib/stdio.in.h (gets): Make warning occur in more places.
232         * doc/posix-functions/gets.texi (gets): Update documentation.
233         Reported by Christer Solskogen.
234
235         maint.mk: fix syntax checks without exclusions
236         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
237         Reported by Daniel P. Berrange.
238
239         strerror_r: avoid compiler warning
240         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
241         level.
242
243         fflush: avoid compiler warning
244         * lib/fflush.c (update_fpos_cache): Mark variables that are
245         potentially unused.
246
247 2012-03-25  Bruno Haible  <bruno@clisp.org>
248
249         Tests for module 'localeconv'.
250         * modules/localeconv-tests: New file.
251         * tests/test-localeconv.c: New file.
252
253         New module 'localeconv'.
254         * lib/locale.in.h (localeconv): New declaration.
255         * lib/localeconv.c: New file.
256         * m4/localeconv.m4: New file.
257         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
258         REPLACE_LOCALECONV.
259         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
260         REPLACE_LOCALECONV.
261         * modules/localeconv: New file.
262         * modules/nl_langinfo (Depends-on): Add localeconv.
263         * modules/human (Depends-on): Likewise.
264         * doc/posix-functions/localeconv.texi: Mention the new module.
265
266 2012-03-25  Bruno Haible  <bruno@clisp.org>
267
268         locale: Provide a complete 'struct lconv'.
269         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
270         'struct lconv' does not contain int_p_cs_precedes.
271         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
272         * doc/posix-headers/locale.texi: Update.
273
274         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
275         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
276         * doc/posix-headers/locale.texi: Update.
277
278         locale: Provide a working 'struct lconv'.
279         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
280         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
281         'struct lconv' does not even contain decimal_point.
282         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
283         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
284         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
285         * doc/posix-headers/locale.texi: Mention the problems with
286         'struct lconv'.
287         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
288
289 2012-03-24  Bruno Haible  <bruno@clisp.org>
290
291         Enable common subexpression optimization in GCC.
292         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
293         macros.
294         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
295         GCC attribute 'const'.
296         (uc_locale_language): Declare with GCC attribute 'pure'.
297         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
298         with GCC attribute 'const'.
299         * lib/unictype.in.h (uc_is_general_category_withtable,
300         uc_combining_class, uc_combining_class_name,
301         uc_combining_class_long_name, uc_bidi_class_name,
302         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
303         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
304         uc_decimal_value, uc_digit_value, uc_numeric_value,
305         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
306         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
307         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
308         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
309         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
310         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
311         Declare with GCC attribute 'const'.
312         (uc_general_category_name, uc_general_category_long_name,
313         uc_general_category_byname, uc_general_category,
314         uc_is_general_category, uc_combining_class_byname,
315         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
316         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
317         Declare with GCC attribute 'pure'.
318         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
319         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
320         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
321         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
322         with GCC attribute 'pure'.
323         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
324         'const'.
325         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
326         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
327         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
328         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
329         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
330         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
331         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
332         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
333         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
334         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
335         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
336         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
337         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
338         GCC attribute 'pure'.
339         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
340         'const'.
341         * lib/uniwidth.in.h (uc_width): Simplify declaration.
342         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
343         u32_strwidth): Declare with GCC attribute 'pure'.
344
345         Enable common subexpression optimization in GCC.
346         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
347         (alphasort): Declare with GCC attribute 'pure'.
348         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
349         (atoll): Declare with GCC attribute 'pure'.
350         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
351         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
352         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
353         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
354         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
355         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
356         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
357
358 2012-03-24  Bruno Haible  <bruno@clisp.org>
359
360         gnulib-tool: Avoid unintended error output from 'cmp'.
361         * gnulib-tool (func_add_file, func_update_file, func_import): Use
362         "cmp -s", not "cmp > /dev/null".
363
364 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
365
366         gnulib-tool: fix imprecise comments w.r.t. an automake bug
367
368         It's not just Automake versions < 1.9b that creates an empty
369         pkgdatadir at installation time if pkgdata_DATA is specified
370         to empty; modern automake versions do this as well, at least
371         until automake 1.11.4 (not yet released at the moment of writing,
372         but soon to appear).  That behaviour was generally considered a
373         feature rather than a bug, at least until this discussion:
374         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
375
376         See also automake bugs #10997 and #11030.
377
378         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
379         reference to relevant automake bug numbers.
380         (func_emit_tests_Makefile_am): Likewise.
381
382 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
383
384         announce-gen: use Digest::SHA when possible
385         * build-aux/announce-gen: Use Digest::SHA when possible, falling
386         back to Digest::SHA1 if necessary.
387
388 2012-03-20  Jim Meyering  <meyering@redhat.com>
389
390         tests: avoid gcc warnings about argv vs. const initializers
391         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
392         warnings about discarding 'const' qualifier from pointer target type.
393         * tests/test-posix_spawn2.c (main): Likewise.
394
395 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
396
397         README-release: simplify slightly
398         * top/README-release: Run "git checkout master" only once.
399
400 2012-03-15  Mark Wielaard  <mark@klomp.org>
401
402         git-merge-changelog: add specific example on how to use with hg.
403         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
404
405 2012-03-18  Mark Wielaard  <mark@klomp.org>
406
407         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
408
409 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
410
411         git-version-gen: don't let "prefix" envvar cause trouble
412         * build-aux/git-version-gen (prefix): Initialize properly,
413         so as not to use a value specified via the environment.
414         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
415
416 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
417
418         regex: diagnose too-large repeat counts in EREs
419         Previously, the code did not diagnose the too-large repeat count
420         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
421         as if it were 'b\{1000000000}', which is unexpected.
422         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
423         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
424         is a reasonable one for this problem.  Another option would be to
425         create a new REG_OVERFLOW error for repeat counts that are too large.
426         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
427         count is too large, so that the caller can distinguish the two cases.
428         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
429         "Too large" return code, and that repeat counts are one example of this.
430
431 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
432
433         doc: some glibc x32 integer width issues
434         * doc/posix-headers/sys_types.texi (sys/types.h):
435         * doc/posix-headers/time.texi (time.h):
436         Mention that glibc x32 does not conform to POSIX in a couple of
437         areas related to integer widths.
438
439 2012-03-15  Bruno Haible  <bruno@clisp.org>
440
441         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
442         * lib/fma.c (VOLATILE): New macro.
443         (FUNC): Use it to work around a GCC compiler bug.
444
445 2012-03-13  Bruno Haible  <bruno@clisp.org>
446
447         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
448         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
449         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
450         REPLACE_HYPOTL to 1.
451         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
452
453 2012-03-13  Bruno Haible  <bruno@clisp.org>
454
455         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
456         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
457         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
458         REPLACE_REMAINDERL to 1.
459         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
460         bug.
461
462 2012-03-13  Bruno Haible  <bruno@clisp.org>
463
464         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
465         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
466         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
467         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
468         too big rounding errors.
469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
470         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
471         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
472         (Depends-on): Update conditions.
473         * tests/test-sqrtl.c (my_ldexpl): New function.
474         (main): Add test of a particular value.
475         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
476
477 2012-03-13  Pádraig Brady  <P@draigBrady.com>
478
479         doc: Update timer_* platform portability notes.
480         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
481         that always return ENOSYS.
482         * doc/posix-functions/timer_delete.texi: Likewise.
483         * doc/posix-functions/timer_gettime.texi: Likewise.
484         * doc/posix-functions/timer_settime.texi: Likewise.
485
486 2012-03-13  Bruno Haible  <bruno@clisp.org>
487
488         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
489         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
490         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
491         REPLACE_CBRTL to 1.
492         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
493
494 2012-03-13  Bruno Haible  <bruno@clisp.org>
495
496         remainderl: Avoid compilation error on AIX >= 5.2.
497         * lib/math.in.h (remainderl): Undefine macro from the system header.
498
499 2012-03-13  Bruno Haible  <bruno@clisp.org>
500
501         Avoid compilation errors with MSVC option -fp:strict.
502         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
503         * lib/cbrtf.c: Likewise.
504         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
505
506 2012-03-12  Bruno Haible  <bruno@clisp.org>
507
508         uninorm: Don't crash in out-of-memory conditions.
509         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
510         gracefully.
511         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
512         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
513
514 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
515
516         quote: fix syntax-check
517         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
518         also exports quote_quoting_options.
519
520 2012-03-12  Simon Josefsson  <simon@josefsson.org>
521
522         Collapse list of copyright years to ranges.  See
523         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
524         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
525         build-aux/csharpexec.sh.in, build-aux/gnupload,
526         build-aux/install-reloc, build-aux/javacomp.sh.in,
527         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
528         build-aux/move-if-change, build-aux/reloc-ldflags,
529         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
530
531 2012-03-11  Bruno Haible  <bruno@clisp.org>
532
533         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
534         * m4/log2f-ieee.m4: New file.
535         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
536         whether log2f works with a minus zero argument. Replace it if not.
537         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
538         (Depends-on): Add log2-ieee.
539         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
540         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
541
542         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
543         * m4/log2-ieee.m4: New file.
544         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
545         whether log2 works with a minus zero argument. Replace it if not.
546         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
547         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
548         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
549
550         Tests for module 'log2l-ieee'.
551         * modules/log2l-ieee-tests: New file.
552         * tests/test-log2l-ieee.c: New file.
553
554         New module 'log2l-ieee'.
555         * modules/log2l-ieee: New file.
556
557         Tests for module 'log2-ieee'.
558         * modules/log2-ieee-tests: New file.
559         * tests/test-log2-ieee.c: New file.
560
561         New module 'log2-ieee'.
562         * modules/log2-ieee: New file.
563
564         Tests for module 'log2f-ieee'.
565         * modules/log2f-ieee-tests: New file.
566         * tests/test-log2f-ieee.c: New file.
567         * tests/test-log2-ieee.h: New file.
568
569         New module 'log2f-ieee'.
570         * modules/log2f-ieee: New file.
571
572 2012-03-11  Bruno Haible  <bruno@clisp.org>
573
574         Tests for module 'log2l'.
575         * modules/log2l-tests: New file.
576         * tests/test-log2l.c: New file.
577
578         New module 'log2l'.
579         * lib/math.in.h (log2l): New declaration.
580         * lib/log2l.c: New file.
581         * m4/log2l.m4: New file.
582         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
584         REPLACE_LOG2L.
585         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
586         REPLACE_LOG2L.
587         * modules/log2l: New file.
588         * tests/test-math-c++.cc: Check the declaration of log2l.
589         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
590         and OSF/1 problems.
591
592 2012-03-11  Bruno Haible  <bruno@clisp.org>
593
594         Tests for module 'log2f'.
595         * modules/log2f-tests: New file.
596         * tests/test-log2f.c: New file.
597
598         New module 'log2f'.
599         * lib/math.in.h (log2f): New declaration.
600         * lib/log2f.c: New file.
601         * m4/log2f.m4: New file.
602         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
604         REPLACE_LOG2F.
605         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
606         REPLACE_LOG2F.
607         * modules/log2f: New file.
608         * tests/test-math-c++.cc: Check the declaration of log2f.
609         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
610         and OSF/1 and Cygwin problems.
611
612 2012-03-11  Bruno Haible  <bruno@clisp.org>
613
614         Tests for module 'log2'.
615         * modules/log2-tests: New file.
616         * tests/test-log2.c: New file.
617         * tests/test-log2.h: New file.
618
619         New module 'log2'.
620         * lib/math.in.h (log2): New declaration.
621         * lib/log2.c: New file.
622         * m4/log2.m4: New file.
623         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
625         REPLACE_LOG2.
626         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
627         REPLACE_LOG2.
628         * modules/log2: New file.
629         * tests/test-math-c++.cc: Check the declaration of log2.
630         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
631         and OSF/1 and Cygwin problems.
632
633 2012-03-11  Bruno Haible  <bruno@clisp.org>
634
635         exp2* tests: More tests.
636         * tests/test-exp2.h (test_function): Test all integral arguments that
637         don't need to overflow or denormalized numbers.
638         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
639         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
640         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
641
642 2012-03-10  Bruno Haible  <bruno@clisp.org>
643
644         log1pl-ieee: Work around test failure on AIX 7.1.
645         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
646
647         log1pl-ieee: Work around test failure on IRIX 6.5.
648         * m4/log1pl-ieee.m4: New file.
649         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
650         test whether log1pl works with a minus zero argument. Replace it if
651         not.
652         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
654         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
655         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
656         (Depends-on): Update conditions.
657         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
658         m4/signbit.m4.
659         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
660         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
661
662         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
663         * m4/log1pf-ieee.m4: New file.
664         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
665         test whether log1pf works with a minus zero argument. Replace it if
666         not.
667         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
668         m4/signbit.m4.
669         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
670         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
671
672         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
673         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
674         (configure.ac): Require gl_FUNC_LOG1PF.
675
676         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
677         * m4/log1p-ieee.m4: New file.
678         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
679         whether log1p works with a minus zero argument. Replace it if not.
680         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
682         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
683         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
684         (Depends-on): Update conditions.
685         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
686         m4/signbit.m4.
687         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
688         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
689
690         Tests for module 'log1pl-ieee'.
691         * modules/log1pl-ieee-tests: New file.
692         * tests/test-log1pl-ieee.c: New file.
693
694         New module 'log1pl-ieee'.
695         * modules/log1pl-ieee: New file.
696
697         Tests for module 'log1p-ieee'.
698         * modules/log1p-ieee-tests: New file.
699         * tests/test-log1p-ieee.c: New file.
700
701         New module 'log1p-ieee'.
702         * modules/log1p-ieee: New file.
703
704         Tests for module 'log1pf-ieee'.
705         * modules/log1pf-ieee-tests: New file.
706         * tests/test-log1pf-ieee.c: New file.
707         * tests/test-log1p-ieee.h: New file.
708
709         New module 'log1pf-ieee'.
710         * modules/log1pf-ieee: New file.
711
712 2012-03-10  Bruno Haible  <bruno@clisp.org>
713
714         Tests for module 'log1pl'.
715         * modules/log1pl-tests: New file.
716         * tests/test-log1pl.c: New file.
717
718         New module 'log1pl'.
719         * lib/math.in.h (log1pl): New declaration.
720         * lib/log1pl.c: New file.
721         * m4/log1pl.m4: New file.
722         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
724         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
725         * modules/log1pl: New file.
726         * tests/test-math-c++.cc: Check the declaration of log1pl.
727         * doc/posix-functions/log1pl.texi: Mention the new module.
728
729 2012-03-10  Bruno Haible  <bruno@clisp.org>
730
731         Tests for module 'log1pf'.
732         * modules/log1pf-tests: New file.
733         * tests/test-log1pf.c: New file.
734
735         New module 'log1pf'.
736         * lib/math.in.h (log1pf): New declaration.
737         * lib/log1pf.c: New file.
738         * m4/log1pf.m4: New file.
739         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
741         REPLACE_LOG1PF.
742         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
743         REPLACE_LOG1PF.
744         * modules/log1pf: New file.
745         * tests/test-math-c++.cc: Check the declaration of log1pf.
746         * doc/posix-functions/log1pf.texi: Mention the new module.
747
748 2012-03-10  Bruno Haible  <bruno@clisp.org>
749
750         log1p tests: More tests.
751         * tests/test-log1p.h: New file.
752         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
753         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
754         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
755         (main): Invoke test_function.
756
757         log1p: Provide replacement for Minix and MSVC.
758         * lib/math.in.h (log1p): New declaration.
759         * lib/log1p.c: New file.
760         * m4/log1p.m4: New file.
761         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
763         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
764         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
765         (Depends-on): Add math, isnand, log, round.
766         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
767         HAVE_LOG1P is 0.
768         * tests/test-math-c++.cc: Check the declaration of log1p.
769         * doc/posix-functions/log1p.texi: Mention the replacement.
770
771 2012-03-10  Bruno Haible  <bruno@clisp.org>
772
773         math tests: Small simplification.
774         * tests/test-exp.h (test_function): Use the same err_bound for
775         'double' on platforms with sizeof (long double) == sizeof (double)
776         than on platforms with sizeof (long double) > sizeof (double).
777         * tests/test-exp2.h (test_function): Likewise.
778         * tests/test-expm1.h (test_function): Likewise.
779         * tests/test-log.h (test_function): Likewise.
780
781 2012-03-10  Bruno Haible  <bruno@clisp.org>
782
783         Fix some comments.
784         * lib/expl.c: Fix an ambiguous comment.
785         * lib/expm1.c: Likewise.
786         * lib/expm1l.c: Likewise.
787         * lib/exp2.c: Likewise.
788         * lib/exp2l.c: Likewise.
789
790 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
791
792         regex: allow inclusion of <regex.h> before <limits.h>
793         Without this patch, portable programs had to include <limits.h> before
794         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
795         I ran into this problem with a test version of GNU grep on Solaris 8.
796         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
797         This is done conditionally so that this change can be merged
798         back to glibc.
799         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
800         using the included regex.
801
802         fts: depend on fdopendir
803         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
804         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
805         problem was introduced when fdopendir was split out.
806
807 2012-03-10  Bruno Haible  <bruno@clisp.org>
808
809         Remove unused variables.
810         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
811         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
812
813 2012-03-10  Bruno Haible  <bruno@clisp.org>
814
815         isnanf-nolibm: Fix last commit.
816         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
817
818         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
819         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
820
821 2012-03-10  Bruno Haible  <bruno@clisp.org>
822
823         logf-ieee: Work around test failure on NetBSD 5.1.
824         * m4/logf-ieee.m4: New file.
825         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
826         whether logf works with a negative argument. Replace it if not.
827         * lib/logf.c (logf): For negative arguments, return NaN.
828         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
829         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
830         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
831
832         logf-ieee: Work around test failure on Solaris 9.
833         * modules/logf-ieee (Depends-on): Add log-ieee.
834         (configure.ac): Require gl_FUNC_LOGF.
835
836         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
837         * m4/log-ieee.m4: New file.
838         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
839         log works with a negative argument. Replace it if not.
840         * lib/log.c (log): For negative arguments, return NaN.
841         * modules/log-ieee (Files): Add m4/log-ieee.m4.
842         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
843         * doc/posix-functions/log.texi: Mention the log-ieee module.
844
845         Tests for module 'logl-ieee'.
846         * modules/logl-ieee-tests: New file.
847         * tests/test-logl-ieee.c: New file.
848
849         New module 'logl-ieee'.
850         * modules/logl-ieee: New file.
851
852         Tests for module 'log-ieee'.
853         * modules/log-ieee-tests: New file.
854         * tests/test-log-ieee.c: New file.
855
856         New module 'log-ieee'.
857         * modules/log-ieee: New file.
858
859         Tests for module 'logf-ieee'.
860         * modules/logf-ieee-tests: New file.
861         * tests/test-logf-ieee.c: New file.
862         * tests/test-log-ieee.h: New file.
863
864         New module 'logf-ieee'.
865         * modules/logf-ieee: New file.
866
867 2012-03-10  Bruno Haible  <bruno@clisp.org>
868
869         log: Fix bug introduced on 2012-03-09.
870         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
871
872 2012-03-10  Pádraig Brady  <P@draigBrady.com>
873
874         timer-time: link explicitly with pthreads on glibc
875         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
876         to support static linking, when newer glibc is
877         detected, as that contains pthread emulation of
878         POSIX timer functions where required.
879         * modules/timer-time: Depend on threadlib to
880         pull in the appropriate library to link.
881
882 2012-03-10  Bruno Haible  <bruno@clisp.org>
883
884         log* tests: More tests.
885         * tests/test-log.h: New file.
886         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
887         (main): Invoke test_function.
888         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
889         (main): Invoke test_function.
890         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
891         (main): Invoke test_function.
892         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
893         tests/randomd.c.
894         (Makefile.am): Add randomd.c to test_log_SOURCES.
895         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
896         tests/randomf.c.
897         (Makefile.am): Add randomf.c to test_logf_SOURCES.
898         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
899         tests/randoml.c.
900         (Depends-on): Add 'float'.
901         (Makefile.am): Add randoml.c to test_logl_SOURCES.
902
903 2012-03-09  Bruno Haible  <bruno@clisp.org>
904
905         logl: Work around OSF/1 5.1 bug.
906         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
907         * lib/logl.c (logl): If logl exists, use it and provide just the
908         workaround.
909         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
910         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
912         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
913         * modules/logl (configure.ac): Consider REPLACE_LOGL.
914         (Depends-on): Update conditions.
915         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
916
917 2012-03-09  Bruno Haible  <bruno@clisp.org>
918
919         logf: Work around OSF/1 5.1 bug.
920         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
921         * lib/logf.c (logf): If logf exists, use it and provide just the
922         workaround.
923         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
924         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
926         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
927         * modules/logf (configure.ac): Consider REPLACE_LOGF.
928         (Depends-on): Update conditions.
929         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
930
931 2012-03-09  Bruno Haible  <bruno@clisp.org>
932
933         log: Work around OSF/1 5.1 bug.
934         * lib/math.in.h (log): New declaration.
935         * lib/log.c: New file.
936         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
937         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
938         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
940         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
941         * modules/log (Files): Add lib/log.c.
942         (Depends-on): Add math.
943         (configure.ac): If REPLACE_LOG is 1, compile an override.
944         * tests/test-math-c++.cc: Check the declaration of log.
945         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
946
947 2012-03-09  Jim Meyering  <meyering@redhat.com>
948
949         readtokens.c: adjust wording in a comment
950         * lib/readtokens.c: Insert omitted "that" in a comment.
951
952 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
953
954         modechange: add notations +40, 00440, etc.
955         * lib/modechange.c (mode_compile): Support new notations
956         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
957
958 2012-03-08  Bruno Haible  <bruno@clisp.org>
959
960         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
961         * m4/exp2l-ieee.m4: New file.
962         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
963         test whether exp2l works with a NaN argument and with a negative
964         infinity argument. Replace it if not.
965         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
967         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
968         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
969         (Depends-on): Update conditions.
970         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
971         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
972         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
973
974         Tests for module 'exp2l-ieee'.
975         * modules/exp2l-ieee-tests: New file.
976         * tests/test-exp2l-ieee.c: New file.
977
978         New module 'exp2l-ieee'.
979         * modules/exp2l-ieee: New file.
980
981         Tests for module 'exp2-ieee'.
982         * modules/exp2-ieee-tests: New file.
983         * tests/test-exp2-ieee.c: New file.
984
985         New module 'exp2-ieee'.
986         * modules/exp2-ieee: New file.
987
988         Tests for module 'exp2f-ieee'.
989         * modules/exp2f-ieee-tests: New file.
990         * tests/test-exp2f-ieee.c: New file.
991         * tests/test-exp2-ieee.h: New file.
992
993         New module 'exp2f-ieee'.
994         * modules/exp2f-ieee: New file.
995
996 2012-03-08  Bruno Haible  <bruno@clisp.org>
997
998         Tests for module 'exp2l'.
999         * modules/exp2l-tests: New file.
1000         * tests/test-exp2l.c: New file.
1001
1002         New module 'exp2l'.
1003         * lib/math.in.h (exp2l): New declaration.
1004         * lib/exp2l.c: New file.
1005         * lib/expl-table.c: New file, extracted from lib/expl.c.
1006         * lib/expl.c (gl_expl_table): New declaration.
1007         (expl): Remove expl_table. Update reference.
1008         * m4/exp2l.m4: New file.
1009         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1011         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1012         * modules/exp2l: New file.
1013         * modules/expl (Files): Add lib/expl-table.c.
1014         (configure.ac): Compile also expl-table.c.
1015         * tests/test-math-c++.cc: Check the declaration of exp2l.
1016         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1017         problem.
1018
1019 2012-03-08  Bruno Haible  <bruno@clisp.org>
1020
1021         Tests for module 'exp2f'.
1022         * modules/exp2f-tests: New file.
1023         * tests/test-exp2f.c: New file.
1024
1025         New module 'exp2f'.
1026         * lib/math.in.h (exp2f): New declaration.
1027         * lib/exp2f.c: New file.
1028         * m4/exp2f.m4: New file.
1029         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1031         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1032         * modules/exp2f: New file.
1033         * tests/test-math-c++.cc: Check the declaration of exp2f.
1034         * doc/posix-functions/exp2f.texi: Mention the new module and the
1035         IRIX problem.
1036
1037 2012-03-08  Bruno Haible  <bruno@clisp.org>
1038
1039         Tests for module 'exp2'.
1040         * modules/exp2-tests: New file.
1041         * tests/test-exp2.c: New file.
1042         * tests/test-exp2.h: New file.
1043
1044         New module 'exp2'.
1045         * lib/math.in.h (exp2): New declaration.
1046         * lib/exp2.c: New file.
1047         * m4/exp2.m4: New file.
1048         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1050         REPLACE_EXP2.
1051         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1052         REPLACE_EXP2.
1053         * modules/exp2: New file.
1054         * tests/test-math-c++.cc: Check the declaration of exp2.
1055         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1056         and OpenBSD problems.
1057
1058 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1059
1060         savedir: fix comment typo
1061         * lib/savedir.c (savedirstream): Fix typo in comment.
1062
1063 2012-03-08  Bruno Haible  <bruno@clisp.org>
1064
1065         test-readtokens.c: use const; remove unwarranted cast
1066         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1067
1068 2012-03-08  Bruno Haible  <bruno@clisp.org>
1069
1070         fmal: Avoid compilation error on AIX.
1071         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1072         AIX 5.2..7.1.
1073
1074 2012-03-08  Bruno Haible  <bruno@clisp.org>
1075
1076         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1077         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1078         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1079         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1080         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1081         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1082         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1083
1084 2012-03-08  Bruno Haible  <bruno@clisp.org>
1085
1086         remainderf: Override buggy system function on IRIX 6.5.
1087         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1088         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1089         when it exists.
1090         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1091
1092 2012-03-08  Jim Meyering  <meyering@redhat.com>
1093
1094         test-readtokens.c: avoid const-related compilation warnings
1095         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1096
1097 2012-03-07  Jim Meyering  <meyering@redhat.com>
1098             Bruno Haible  <bruno@clisp.org>
1099
1100         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1101         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1102         tests/randomd.c.
1103         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1104         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1105         tests/randoml.c.
1106         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1107
1108 2012-03-07  Bruno Haible  <bruno@clisp.org>
1109
1110         expm1l: Avoid compilation error on AIX.
1111         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1112         AIX 5.2..7.1.
1113
1114 2012-03-07  Bruno Haible  <bruno@clisp.org>
1115
1116         expm1l: Don't override undeclared system function on IRIX 6.5.
1117         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1118         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1119         it exists. Set HAVE_DECL_EXPM1L.
1120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1121         HAVE_EXPM1L.
1122         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1123         HAVE_EXPM1L.
1124         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1125
1126 2012-03-07  Bruno Haible  <bruno@clisp.org>
1127
1128         remainderl: Don't override undeclared system function on IRIX 6.5.
1129         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1130         HAVE_REMAINDERL.
1131         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1132         declared when it exists. Set HAVE_DECL_REMAINDERL.
1133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1134         not HAVE_REMAINDERL.
1135         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1136         HAVE_REMAINDERL.
1137         * doc/posix-functions/remainderl.texi: Mention missing declaration
1138         problem.
1139
1140 2012-03-07  Bruno Haible  <bruno@clisp.org>
1141
1142         rintf: Don't override undeclared system function on IRIX 6.5.
1143         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1144         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1145         exists. Set HAVE_DECL_RINTF.
1146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1147         HAVE_RINTF.
1148         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1149         HAVE_RINTF.
1150         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1151
1152 2012-03-07  Bruno Haible  <bruno@clisp.org>
1153
1154         roundl: Avoid compilation error on AIX.
1155         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1156         AIX 5.2..7.1.
1157
1158 2012-03-07  Bruno Haible  <bruno@clisp.org>
1159
1160         roundl: Don't override undeclared system function on IRIX 6.5.
1161         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1162         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1163         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1164         * modules/roundl (configure.ac): For replacement code, test
1165         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1166         (Depends-on): Update conditions.
1167         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1168
1169 2012-03-07  Bruno Haible  <bruno@clisp.org>
1170
1171         roundf: Don't override undeclared system function on IRIX 6.5.
1172         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1173         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1174         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1175         * modules/roundf (configure.ac): For replacement code, test
1176         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1177         (Depends-on): Update conditions.
1178         * modules/roundf-ieee (Depends-on): Update conditions.
1179         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1180
1181 2012-03-07  Bruno Haible  <bruno@clisp.org>
1182
1183         round: Don't override undeclared system function on IRIX 6.5.
1184         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1185         argument.
1186         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1187         also when it is not declared. Set HAVE_ROUND. For replacement code,
1188         test HAVE_ROUND, not HAVE_DECL_ROUND.
1189         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1190         not HAVE_DECL_ROUND.
1191         (Depends-on): Update conditions.
1192         * modules/round-ieee (Depends-on): Update conditions.
1193         * doc/posix-functions/round.texi: Mention the IRIX problem.
1194
1195 2012-03-07  Bruno Haible  <bruno@clisp.org>
1196
1197         copysignf: Don't override undeclared system function on IRIX 6.5.
1198         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1199         HAVE_COPYSIGNF.
1200         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1201         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1203         not HAVE_COPYSIGNF.
1204         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1205         HAVE_COPYSIGNF.
1206         * doc/posix-functions/copysignf.texi: Mention missing declaration
1207         problem.
1208
1209 2012-03-07  Jim Meyering  <meyering@redhat.com>
1210
1211         readtokens: add tests
1212         * modules/readtokens-tests: New file.
1213         * tests/test-readtokens.c: New file.
1214
1215 2012-03-07  Jim Meyering  <meyering@redhat.com>
1216
1217         quotearg: the module must now include quote.h
1218         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1219         So must the module.
1220         * modules/quotearg (Files): Add quote.h.
1221
1222 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1223
1224         readtokens: avoid core dumps with unusual calling patterns
1225         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1226         * lib/readtokens.c: Include limits.h.
1227         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1228         (readtoken): Don't cache the delimiters; the cache code was buggy
1229         if !delim && saved_delim, or if the new n_delim differs from the old.
1230         Also, it wasn't thread-safe.
1231
1232 2012-03-07  Bruno Haible  <bruno@clisp.org>
1233
1234         quote: Adhere to common module description layout.
1235         * modules/quote (Makefile.am): Add back empty section.
1236
1237 2012-03-06  Akim Demaille  <demaille@gostai.com>
1238
1239         quote: fuse into quotearg
1240         This patch is made for the benefit of Bison.
1241         quote does not leave the choice of the quoting style to the user.
1242         quoting_style provides poor customizability, yet quoting_options,
1243         which is very rich, is hidden inside quotearg.c.  So in order to
1244         allow quote customization, move its implementation to quotearg.c.
1245         * lib/quote.c: Remove.
1246         * modules/quote: Adjust.
1247         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1248         warning: provide all the members of literal structs.
1249         (quote_quoting_options): New.
1250         (quote, quote_n): Import implementation from quote.c.
1251         * lib/quote.h: Import the comments from quote.c.
1252         (quote_quoting_options): New.
1253
1254 2012-03-06  Bruno Haible  <bruno@clisp.org>
1255
1256         Tests for module 'expm1l-ieee'.
1257         * modules/expm1l-ieee-tests: New file.
1258         * tests/test-expm1l-ieee.c: New file.
1259
1260         New module 'expm1l-ieee'.
1261         * modules/expm1l-ieee: New file.
1262
1263         Tests for module 'expm1f-ieee'.
1264         * modules/expm1f-ieee-tests: New file.
1265         * tests/test-expm1f-ieee.c: New file.
1266
1267         New module 'expm1f-ieee'.
1268         * modules/expm1f-ieee: New file.
1269
1270         Tests for module 'expm1-ieee'.
1271         * modules/expm1-ieee-tests: New file.
1272         * tests/test-expm1-ieee.c: New file.
1273         * tests/test-expm1-ieee.h: New file.
1274
1275         New module 'expm1-ieee'.
1276         * modules/expm1-ieee: New file.
1277         * m4/expm1-ieee.m4: New file.
1278         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1279         whether expm1 works with a minus zero argument. Replace it if not.
1280         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1282         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1283         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1284         (Depends-on): Update conditions.
1285         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1286         AIX problem.
1287
1288 2012-03-06  Bruno Haible  <bruno@clisp.org>
1289
1290         Work around expm1f bug on IRIX 6.5.
1291         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1292         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1293         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1294         not work.
1295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1296         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1297         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1298         (Depends-on): Update conditions.
1299         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1300
1301 2012-03-06  Bruno Haible  <bruno@clisp.org>
1302
1303         Tests for module 'expm1l'.
1304         * modules/expm1l-tests: New file.
1305         * tests/test-expm1l.c: New file.
1306
1307         New module 'expm1l'.
1308         * lib/math.in.h (expm1l): New declaration.
1309         * lib/expm1l.c: New file.
1310         * m4/expm1l.m4: New file.
1311         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1313         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1314         * modules/expm1l: New file.
1315         * tests/test-math-c++.cc: Check the declaration of expm1l.
1316         * doc/posix-functions/expm1l.texi: Mention the new module.
1317
1318 2012-03-06  Bruno Haible  <bruno@clisp.org>
1319
1320         Tests for module 'expm1f'.
1321         * modules/expm1f-tests: New file.
1322         * tests/test-expm1f.c: New file.
1323
1324         New module 'expm1f'.
1325         * lib/math.in.h (expm1f): New declaration.
1326         * lib/expm1f.c: New file.
1327         * m4/expm1f.m4: New file.
1328         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1329         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1330         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1331         * modules/expm1f: New file.
1332         * tests/test-math-c++.cc: Check the declaration of expm1f.
1333         * doc/posix-functions/expm1f.texi: Mention the new module.
1334
1335 2012-03-06  Bruno Haible  <bruno@clisp.org>
1336
1337         Tests for module 'expm1'.
1338         * modules/expm1-tests: New file.
1339         * tests/test-expm1.c: New file.
1340         * tests/test-expm1.h: New file.
1341
1342         New module 'expm1'.
1343         * lib/math.in.h (expm1): New declaration.
1344         * lib/expm1.c: New file.
1345         * m4/expm1.m4: New file.
1346         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1348         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1349         * modules/expm1: New file.
1350         * tests/test-math-c++.cc: Check the declaration of expm1.
1351         * doc/posix-functions/expm1.texi: Mention the new module.
1352
1353 2012-03-06  Bruno Haible  <bruno@clisp.org>
1354
1355         math: Ensure declarations of math functions.
1356         * modules/acosf (Depends-on): Add 'extensions'.
1357         * modules/asinf (Depends-on): Likewise.
1358         * modules/atan2f (Depends-on): Likewise.
1359         * modules/atanf (Depends-on): Likewise.
1360         * modules/cbrt (Depends-on): Likewise.
1361         * modules/cbrtf (Depends-on): Likewise.
1362         * modules/cbrtl (Depends-on): Likewise.
1363         * modules/copysignf (Depends-on): Likewise.
1364         * modules/copysignl (Depends-on): Likewise.
1365         * modules/cosf (Depends-on): Likewise.
1366         * modules/coshf (Depends-on): Likewise.
1367         * modules/expf (Depends-on): Likewise.
1368         * modules/fabsf (Depends-on): Likewise.
1369         * modules/fabsl (Depends-on): Likewise.
1370         * modules/fmaf (Depends-on): Likewise.
1371         * modules/fmal (Depends-on): Likewise.
1372         * modules/fmodf (Depends-on): Likewise.
1373         * modules/fmodl (Depends-on): Likewise.
1374         * modules/frexpf (Depends-on): Likewise.
1375         * modules/frexpl (Depends-on): Likewise.
1376         * modules/hypot (Depends-on): Likewise.
1377         * modules/hypotf (Depends-on): Likewise.
1378         * modules/hypotl (Depends-on): Likewise.
1379         * modules/ldexpf (Depends-on): Likewise.
1380         * modules/ldexpl (Depends-on): Likewise.
1381         * modules/log10f (Depends-on): Likewise.
1382         * modules/log10l (Depends-on): Likewise.
1383         * modules/log1p (Depends-on): Likewise.
1384         * modules/logb (Depends-on): Likewise.
1385         * modules/logf (Depends-on): Likewise.
1386         * modules/modff (Depends-on): Likewise.
1387         * modules/modfl (Depends-on): Likewise.
1388         * modules/powf (Depends-on): Likewise.
1389         * modules/remainderf (Depends-on): Likewise.
1390         * modules/remainderl (Depends-on): Likewise.
1391         * modules/rintf (Depends-on): Likewise.
1392         * modules/rintl (Depends-on): Likewise.
1393         * modules/sinf (Depends-on): Likewise.
1394         * modules/sinhf (Depends-on): Likewise.
1395         * modules/sqrtf (Depends-on): Likewise.
1396         * modules/tanf (Depends-on): Likewise.
1397         * modules/tanhf (Depends-on): Likewise.
1398         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1399         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1400         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1401         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1402         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1403         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1404         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1405         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1406         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1407         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1408         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1409         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1410         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1411         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1412         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1413         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1414         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1415         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1416         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1417         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1418         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1419         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1420         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1421         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1422         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1423         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1424         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1425         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1426         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1427         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1428         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1429         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1430         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1431         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1432         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1433         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1434         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1435         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1436         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1437         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1438         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1439
1440 2012-03-06  Bruno Haible  <bruno@clisp.org>
1441
1442         math: Update module names in warnings.
1443         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1444         tanl): Use specific module name in warn-on-use warning.
1445
1446 2012-03-06  Bruno Haible  <bruno@clisp.org>
1447
1448         expl: Simplify computation.
1449         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1450
1451 2012-03-05  Bruno Haible  <bruno@clisp.org>
1452
1453         exp* tests: More tests.
1454         * tests/test-exp.h: New file.
1455         * tests/test-exp.c: Include <float.h> and test-exp.h.
1456         (main): Invoke test_function.
1457         * tests/test-expf.c: Include <float.h> and test-exp.h.
1458         (main): Invoke test_function.
1459         * tests/test-expl.c: Include <float.h> and test-exp.h.
1460         (main): Invoke test_function.
1461         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1462         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1463         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1464         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1465         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1466         (Depends-on): Add 'float'.
1467         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1468
1469         expl: Fix precision of computed result.
1470         * lib/expl.c: Completely rewritten.
1471         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1472         (Maintainer): Add me.
1473         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1474
1475 2012-03-05  Bruno Haible  <bruno@clisp.org>
1476
1477         cbrt* tests: More tests.
1478         * tests/test-cbrt.h: New file.
1479         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1480         (main): Invoke test_function.
1481         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1482         (main): Invoke test_function.
1483         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1484         (main): Invoke test_function.
1485         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1486         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1487         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1488         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1489         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1490         (Depends-on): Add 'float'.
1491         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1492
1493 2012-03-05  Bruno Haible  <bruno@clisp.org>
1494
1495         hypot* tests: More tests.
1496         * tests/test-hypot.h: New file, partially extracted from
1497         tests/test-hypotl.c.
1498         * tests/test-hypot.c: Include test-hypot.h.
1499         (main): Invoke test_function.
1500         * tests/test-hypotf.c: Include test-hypot.h.
1501         (main): Invoke test_function.
1502         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1503         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1504         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1505         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1506         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1507         tests/randomf.c.
1508         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1509         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1510         tests/randoml.c.
1511         (Depends-on): Add 'fpucw', 'float'.
1512         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1513
1514 2012-03-05  Bruno Haible  <bruno@clisp.org>
1515
1516         fpucw: Doc about FreeBSD.
1517         * lib/fpucw.h: Mention FreeBSD in comments.
1518
1519 2012-03-04  Bruno Haible  <bruno@clisp.org>
1520
1521         sqrt* tests: More tests.
1522         * tests/test-sqrt.h: New file.
1523         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1524         (main): Invoke test_function.
1525         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1526         (main): Invoke test_function.
1527         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1528         (main): Invoke test_function.
1529         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1530         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1531         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1532         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1533         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1534         (Depends-on): Add 'float'.
1535         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1536
1537 2012-03-04  Bruno Haible  <bruno@clisp.org>
1538
1539         remainder* tests: More tests.
1540         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1541         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1542         (main): Invoke test_function.
1543         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1544         (main): Invoke test_function.
1545         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1546         (main): Invoke test_function.
1547         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1548         tests/randomd.c.
1549         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1550         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1551         tests/randomf.c.
1552         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1553         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1554         tests/randoml.c.
1555         (Depends-on): Add 'float'.
1556         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1557
1558 2012-03-04  Bruno Haible  <bruno@clisp.org>
1559
1560         remainder, remainderf, remainderl: Fix computation for large quotients.
1561         * lib/remainder.c: Completely rewritten.
1562         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1563         USE_FLOAT.
1564         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1565         USE_LONG_DOUBLE.
1566         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1567         isnand, isinf. Remove round, fma.
1568         * modules/remainderf (Files): Add lib/remainder.c.
1569         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1570         Remove roundf, fmaf.
1571         * modules/remainderl (Files): Add lib/remainder.c.
1572         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1573         isinf. Remove roundl, fmal.
1574         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1575         REMAINDER_LIBM.
1576         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1577         REMAINDERF_LIBM.
1578         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1579         REMAINDERL_LIBM.
1580
1581 2012-03-04  Bruno Haible  <bruno@clisp.org>
1582
1583         fmod* tests: More tests.
1584         * tests/test-fmod.h (my_ldexp): New function.
1585         (test_function): Reduce amount of random numbers to test. Add tests
1586         of very large quotients x / y.
1587         * tests/test-fmod.c (MAX_EXP): New macro.
1588         * tests/test-fmodf.c (MAX_EXP): Likewise.
1589         * tests/test-fmodl.c (MAX_EXP): Likewise.
1590
1591 2012-03-04  Bruno Haible  <bruno@clisp.org>
1592
1593         fmod, fmodl: Fix computation for large quotients x / y.
1594         * lib/fmod.c: Completely rewritten.
1595         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1596         USE_LONG_DOUBLE.
1597         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1598         isnand. Remove fma.
1599         * modules/fmodl (Files): Add lib/fmod.c.
1600         (Depends-on): Add float, isfinite, signbit, fabsl,
1601         frexpl, ldexpl, isnanl. Remove fma.
1602         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1603         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1604
1605 2012-03-03  Bruno Haible  <bruno@clisp.org>
1606
1607         fmod* tests: More tests.
1608         * tests/test-fmod.h: New file.
1609         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1610         (main): Invoke test_function.
1611         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1612         (main): Invoke test_function.
1613         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1614         (main): Invoke test_function.
1615         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1616         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1617         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1618         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1619         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1620         (Depends-on): Add 'float'.
1621         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1622
1623 2012-03-03  Bruno Haible  <bruno@clisp.org>
1624
1625         rint* tests: More tests.
1626         * tests/test-rint.h: New file, partially extracted from
1627         tests/test-rintl.c.
1628         * tests/test-rint.c: Include test-rint.h.
1629         (main): Invoke test_function.
1630         * tests/test-rintf.c: Include test-rint.h.
1631         (main): Invoke test_function.
1632         * tests/test-rintl.c: Include test-rint.h.
1633         (main): Invoke test_function.
1634         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1635         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1636         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1637         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1638         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1639         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1640
1641 2012-03-03  Bruno Haible  <bruno@clisp.org>
1642
1643         modf* tests: More tests.
1644         * tests/test-modf.h: New file.
1645         * tests/test-modf.c: Include <float.h> and test-modf.h.
1646         (main): Invoke test_function.
1647         * tests/test-modff.c: Include <float.h> and test-modf.h.
1648         (main): Invoke test_function.
1649         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1650         (main): Invoke test_function.
1651         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1652         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1653         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1654         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1655         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1656         (Depends-on): Add 'float'.
1657         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1658
1659 2012-03-03  Bruno Haible  <bruno@clisp.org>
1660
1661         fabs* tests: More tests.
1662         * tests/test-fabs.h: New file, partially extracted from
1663         tests/test-fabsl.c.
1664         * tests/test-fabs.c (RANDOM): New macro.
1665         * tests/test-fabsf.c (RANDOM): New macro.
1666         * tests/test-fabsl.c (RANDOM): New macro.
1667         * modules/fabs-tests (Files): Add tests/randomd.c.
1668         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1669         * modules/fabsf-tests (Files): Add tests/randomf.c.
1670         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1671         * modules/fabsl-tests (Files): Add tests/randoml.c.
1672         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1673
1674 2012-03-03  Bruno Haible  <bruno@clisp.org>
1675
1676         ldexp* tests: More tests.
1677         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1678         * tests/test-ldexp.c (RANDOM): New macro.
1679         * tests/test-ldexpf.c (RANDOM): New macro.
1680         * tests/test-ldexpl.c (RANDOM): New macro.
1681         * modules/ldexp-tests (Files): Add tests/randomd.c.
1682         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1683         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1684         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1685         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1686         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1687
1688 2012-03-03  Bruno Haible  <bruno@clisp.org>
1689
1690         frexp* tests: More tests.
1691         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1692         * tests/test-frexp.c (RANDOM): New macro.
1693         * tests/test-frexpf.c (RANDOM): New macro.
1694         * tests/test-frexpl.c (RANDOM): New macro.
1695         * modules/frexp-tests (Files): Add tests/randomd.c.
1696         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1697         * modules/frexpf-tests (Files): Add tests/randomf.c.
1698         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1699         * modules/frexpl-tests (Files): Add tests/randoml.c.
1700         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1701
1702 2012-03-03  Bruno Haible  <bruno@clisp.org>
1703
1704         Support for pseudo-random numbers in tests.
1705         * tests/randomf.c: New file.
1706         * tests/randomd.c: New file.
1707         * tests/randoml.c: New file.
1708         * tests/macros.h (randomf, randomd, randoml): New declarations.
1709
1710 2012-03-03  Bruno Haible  <bruno@clisp.org>
1711
1712         frexp* tests: Refactor.
1713         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1714         * tests/test-frexp.c: Include and use it.
1715         * tests/test-frexpf.c: Likewise.
1716         * tests/test-frexpl.c: Likewise.
1717         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1718         * modules/frexpf-tests (Files): Likewise.
1719         * modules/frexpl-tests (Files): Likewise.
1720
1721 2012-03-02  Jim Meyering  <meyering@redhat.com>
1722
1723         maint: don't specify XZ_OPT=-9ev in dist-related rule
1724         Using xz's -9 option is warranted only if you have a very large
1725         tarball (see xz's documentation for the sizes vs. presets), and
1726         requires 64MiB of memory at decompression time.
1727         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1728         Automake's default of just "-e" is fine.  Override on a
1729         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1730
1731 2012-03-01  Eric Blake  <eblake@redhat.com>
1732
1733         maint.mk: allow announcement for non-gnulib project
1734         * maint.mk (announcement): Skip gnulib version if not used.
1735
1736 2012-03-01  Jim Meyering  <meyering@redhat.com>
1737
1738         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1739         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1740         envvar settings cannot interfere.  Otherwise, setting envvars like
1741         prohibit=foo require=bar, etc. would cause spurious test failures.
1742
1743 2012-03-01  Eric Blake  <eblake@redhat.com>
1744
1745         maint.mk: add per-line exclusions to prohibitions
1746         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1747         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1748         (sc_const_long_option): Use it.
1749
1750 2012-03-01  Bruno Haible  <bruno@clisp.org>
1751
1752         Tests for module 'expl-ieee'.
1753         * modules/expl-ieee-tests: New file.
1754         * tests/test-expl-ieee.c: New file.
1755
1756         New module 'expl-ieee'.
1757         * modules/expl-ieee: New file.
1758
1759         Tests for module 'exp-ieee'.
1760         * modules/exp-ieee-tests: New file.
1761         * tests/test-exp-ieee.c: New file.
1762
1763         New module 'exp-ieee'.
1764         * modules/exp-ieee: New file.
1765
1766         Tests for module 'expf-ieee'.
1767         * modules/expf-ieee-tests: New file.
1768         * tests/test-expf-ieee.c: New file.
1769         * tests/test-exp-ieee.h: New file.
1770
1771         New module 'expf-ieee'.
1772         * modules/expf-ieee: New file.
1773
1774 2012-02-29  Bruno Haible  <bruno@clisp.org>
1775
1776         cbrtl-ieee: Work around test failure on IRIX 6.5.
1777         * m4/cbrtl-ieee.m4: New file.
1778         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1779         test whether cbrtl works with a minus zero argument. Replace it if not.
1780         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1782         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1783         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1784         (Depends-on): Update conditions.
1785         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1786         m4/signbit.m4.
1787         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1788         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1789         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1790
1791         Tests for module 'cbrtl-ieee'.
1792         * modules/cbrtl-ieee-tests: New file.
1793         * tests/test-cbrtl-ieee.c: New file.
1794
1795         New module 'cbrtl-ieee'.
1796         * modules/cbrtl-ieee: New file.
1797
1798         Tests for module 'cbrt-ieee'.
1799         * modules/cbrt-ieee-tests: New file.
1800         * tests/test-cbrt-ieee.c: New file.
1801
1802         New module 'cbrt-ieee'.
1803         * modules/cbrt-ieee: New file.
1804
1805         Tests for module 'cbrtf-ieee'.
1806         * modules/cbrtf-ieee-tests: New file.
1807         * tests/test-cbrtf-ieee.c: New file.
1808         * tests/test-cbrt-ieee.h: New file.
1809
1810         New module 'cbrtf-ieee'.
1811         * modules/cbrtf-ieee: New file.
1812
1813 2012-02-29  Bruno Haible  <bruno@clisp.org>
1814
1815         cbrtf: Work around bug in IRIX 6.5 system function.
1816         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1817         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1818         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1819         work.
1820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1821         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1822         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1823         (Depends-on): Update conditions.
1824         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1825
1826 2012-02-29  Bruno Haible  <bruno@clisp.org>
1827
1828         Tests for module 'cbrtl'.
1829         * modules/cbrtl-tests: New file.
1830         * tests/test-cbrtl.c: New file.
1831
1832         New module 'cbrtl'.
1833         * lib/math.in.h (cbrtl): New declaration.
1834         * lib/cbrtl.c: New file.
1835         * m4/cbrtl.m4: New file.
1836         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1838         HAVE_DECL_CBRTL.
1839         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1840         HAVE_DECL_CBRTL.
1841         * modules/cbrtl: New file.
1842         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1843         * doc/posix-functions/cbrtl.texi: Mention the new module.
1844
1845 2012-02-29  Bruno Haible  <bruno@clisp.org>
1846
1847         Tests for module 'cbrtf'.
1848         * modules/cbrtf-tests: New file.
1849         * tests/test-cbrtf.c: New file.
1850
1851         New module 'cbrtf'.
1852         * lib/math.in.h (cbrtf): New declaration.
1853         * lib/cbrtf.c: New file.
1854         * m4/cbrtf.m4: New file.
1855         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1857         HAVE_DECL_CBRTF.
1858         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1859         HAVE_DECL_CBRTF.
1860         * modules/cbrtf: New file.
1861         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1862         * doc/posix-functions/cbrtf.texi: Mention the new module.
1863
1864 2012-02-29  Bruno Haible  <bruno@clisp.org>
1865
1866         cbrt: Provide replacement on MSVC and Minix.
1867         * lib/math.in.h (cbrt): New declaration.
1868         * lib/cbrt.c: New file.
1869         * m4/cbrt.m4: New file.
1870         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1872         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1873         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1874         (Depends-on): Add dependencies.
1875         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1876         * tests/test-math-c++.cc: Check the declaration of cbrt.
1877         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1878         replacement.
1879
1880 2012-02-29  Bruno Haible  <bruno@clisp.org>
1881
1882         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1883         * m4/hypotl-ieee.m4: New file.
1884         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1885         test whether hypotl works with mixed NaN and Infinity arguments.
1886         Replace it if not.
1887         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1889         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1890         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1891         (Depends-on): Update conditions.
1892         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1893         (Depends-on): Add hypot-ieee.
1894         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1895         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1896
1897         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1898         * m4/hypotf-ieee.m4: New file.
1899         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1900         test whether hypotf works with mixed NaN and Infinity arguments.
1901         Replace it if not.
1902         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1903         (Depends-on): Add hypot-ieee.
1904         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1905         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1906
1907         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1908         * lib/math.in.h (hypot): New declaration.
1909         * lib/hypot.c: New file.
1910         * m4/hypot-ieee.m4: New file.
1911         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1912         whether hypot works with mixed NaN and Infinity arguments. Replace it
1913         if not.
1914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1915         REPLACE_HYPOT.
1916         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1917         * modules/hypot (Files): Add lib/hypot.c.
1918         (Depends-on): Add dependencies.
1919         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1920         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1921         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1922         * tests/test-math-c++.cc: Check the declaration of hypot.
1923         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1924
1925         Tests for module 'hypotl-ieee'.
1926         * modules/hypotl-ieee-tests: New file.
1927         * tests/test-hypotl-ieee.c: New file.
1928
1929         New module 'hypotl-ieee'.
1930         * modules/hypotl-ieee: New file.
1931
1932         Tests for module 'hypot-ieee'.
1933         * modules/hypot-ieee-tests: New file.
1934         * tests/test-hypot-ieee.c: New file.
1935
1936         New module 'hypot-ieee'.
1937         * modules/hypot-ieee: New file.
1938
1939         Tests for module 'hypotf-ieee'.
1940         * modules/hypotf-ieee-tests: New file.
1941         * tests/test-hypotf-ieee.c: New file.
1942         * tests/test-hypot-ieee.h: New file.
1943
1944         New module 'hypotf-ieee'.
1945         * modules/hypotf-ieee: New file.
1946
1947 2012-02-29  Bruno Haible  <bruno@clisp.org>
1948
1949         Remove unused variables.
1950         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1951         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1952         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1953         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1954
1955 2012-02-29  Eric Blake  <eblake@redhat.com>
1956
1957         termios: fix pid_t always, not just for tcgetsid
1958         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1959         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1960         just when building tcgetsid.
1961
1962 2012-02-29  Bruno Haible  <bruno@clisp.org>
1963
1964         Tests for module 'hypotl'.
1965         * modules/hypotl-tests: New file.
1966         * tests/test-hypotl.c: New file.
1967
1968         New module 'hypotl'.
1969         * lib/math.in.h (hypotl): New declaration.
1970         * lib/hypotl.c: New file.
1971         * m4/hypotl.m4: New file.
1972         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1974         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1975         * modules/hypotl: New file.
1976         * tests/test-math-c++.cc: Check the hypotl declaration.
1977         * doc/posix-functions/hypotl.texi: Mention the new module.
1978
1979 2012-02-29  Eric Blake  <eblake@redhat.com>
1980
1981         tcgetsid: fix cygwin header bug
1982         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1983
1984         docs: update cygwin progress
1985         * doc/posix-functions/llround.texi (llround): Added in cygwin
1986         1.7.8.
1987         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1988         * doc/glibc-functions/program_invocation_name.texi
1989         (program_invocation_name): Likewise.
1990         * doc/glibc-functions/program_invocation_short_name.texi
1991         (program_invocation_short_name): Likewise.
1992         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1993         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1994         Likewise.
1995         * doc/posix-functions/pthread_spin_destroy.texi
1996         (pthread_spin_destroy): Added in cygwin 1.7.10.
1997         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1998         Likewise.
1999         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2000         Likewise.
2001         * doc/posix-functions/pthread_spin_trylock.texi
2002         (pthread_spin_trylock): Likewise.
2003         * doc/posix-functions/pthread_spin_unlock.texi
2004         (pthread_spin_unlock): Likewise.
2005         * doc/posix-functions/pthread_setschedprio.texi
2006         (pthread_setschedprio): Likewise.
2007         * doc/posix-functions/pthread_attr_getstack.texi
2008         (pthread_attr_getstack): Likewise.
2009         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2010         (pthread_attr_getstackaddr): Likewise.
2011         * doc/glibc-functions/pthread_getattr_np.texi
2012         (pthread_getattr_np): Likewise.
2013         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2014         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2015         * doc/posix-functions/clock_settime.texi (clock_settime):
2016         Likewise.
2017         * doc/posix-functions/pthread_attr_getguardsize.texi
2018         (pthread_attr_getguardsize): Likewise.
2019         * doc/posix-functions/pthread_attr_setguardsize.texi
2020         (pthread_attr_setguardsize): Likewise.
2021         * doc/posix-functions/pthread_attr_setstack.texi
2022         (pthread_attr_setstack): Likewise.
2023         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2024         (pthread_attr_setstackaddr): Likewise.
2025         * doc/posix-functions/clock_getcpuclockid.texi
2026         (clock_getcpuclockid): Likewise.
2027         * doc/posix-functions/pthread_getcpuclockid.texi
2028         (pthread_getcpuclockid): Likewise.
2029         * doc/glibc-functions/error.texi (error): Likewise.
2030         * doc/glibc-functions/error_at_line.texi (error_at_line):
2031         Likewise.
2032         * doc/glibc-functions/error_message_count.texi
2033         (error_message_count): Likewise.
2034         * doc/glibc-functions/error_one_per_line.texi
2035         (error_one_per_line): Likewise.
2036         * doc/glibc-functions/error_print_progname.texi
2037         (error_print_progname): Likewise.
2038         * doc/posix-functions/pthread_condattr_getclock.texi
2039         (pthread_condattr_getclock): Likewise.
2040         * doc/posix-functions/pthread_condattr_setclock.texi
2041         (pthread_condattr_setclock): Likewise.
2042         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2043         Likewise.
2044         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2045         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2046         * doc/glibc-functions/get_current_dir_name.texi
2047         (get_current_dir_name): Likewise.
2048         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2049         Likewise.
2050         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2051         wrong return type.
2052         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2053         1.7.11.
2054
2055 2012-02-29  Bruno Haible  <bruno@clisp.org>
2056
2057         Tests for module 'hypotf'.
2058         * modules/hypotf-tests: New file.
2059         * tests/test-hypotf.c: New file.
2060
2061         New module 'hypotf'.
2062         * lib/math.in.h (hypotf): New declaration.
2063         * lib/hypotf.c: New file.
2064         * m4/hypotf.m4: New file.
2065         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2067         REPLACE_HYPOTF.
2068         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2069         REPLACE_HYPOTF.
2070         * modules/hypotf: New file.
2071         * tests/test-math-c++.cc: Check the hypotf declaration.
2072         * doc/posix-functions/hypotf.texi: Mention the new module.
2073
2074         hypot: Prepare for hypotf module.
2075         * m4/hypot.m4: New file.
2076         * modules/hypot (Files): Add m4/hypot.m4.
2077         (configure.ac): Invoke gl_FUNC_HYPOT.
2078
2079 2012-02-29  Bruno Haible  <bruno@clisp.org>
2080
2081         hypot tests: More tests.
2082         * tests/test-hypot.c: Include <float.h>.
2083         (main): Add tests about overflow and underflow.
2084
2085 2012-02-29  Bruno Haible  <bruno@clisp.org>
2086
2087         math code: Add comments.
2088         * lib/acosl.c: Add comment about related glibc source files.
2089         * lib/asinl.c: Likewise.
2090         * lib/atanl.c: Likewise.
2091         * lib/expl.c: Likewise.
2092         * lib/logl.c: Likewise.
2093         * lib/sincosl.c: Likewise.
2094         * lib/sinl.c: Likewise.
2095         * lib/tanl.c: Likewise.
2096         * lib/trigl.c: Likewise.
2097         * lib/cosl.c: Likewise. Fix comments.
2098
2099 2012-02-28  Bruno Haible  <bruno@clisp.org>
2100
2101         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2102         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2103         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2104         HUGE_VALL are defined.
2105         (numeric_equald): Renamed from numeric_equal.
2106         (numeric_equalf, numeric_equall): New functions.
2107         (main): Check also HUGE_VALF, HUGE_VALL.
2108         * modules/math-tests (Files): Add tests/macros.h.
2109         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2110         HUGE_VALL.
2111
2112 2012-02-28  Bruno Haible  <bruno@clisp.org>
2113
2114         doc: Move ISO C11 feature notes into POSIX chapters.
2115         * doc/posix-functions/aligned_alloc.texi: Renamed from
2116         doc/glibc-functions/aligned_alloc.texi.
2117         * doc/posix-functions/quick_exit.texi: Renamed from
2118         doc/glibc-functions/quick_exit.texi.
2119         * doc/posix-headers/uchar.texi: Renamed from
2120         doc/glibc-headers/uchar.texi.
2121         * doc/posix-functions/c16rtomb.texi: Renamed from
2122         doc/glibc-functions/c16rtomb.texi.
2123         * doc/posix-functions/c32rtomb.texi: Renamed from
2124         doc/glibc-functions/c32rtomb.texi.
2125         * doc/posix-functions/mbrtoc16.texi: Renamed from
2126         doc/glibc-functions/mbrtoc16.texi.
2127         * doc/posix-functions/mbrtoc32.texi: Renamed from
2128         doc/glibc-functions/mbrtoc32.texi.
2129         * doc/gnulib.texi: Update.
2130         (Glibc uchar.h): Remove section.
2131         Suggested by Eric Blake.
2132
2133 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2134
2135         stdnoreturn: port to MSVC better
2136         MSVC standard headers use __declspec(noreturn), so #define noreturn
2137         to empty on that platform.  Reported by Bruno Haible in
2138         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2139         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2140         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2141
2142 2012-02-28  Bruno Haible  <bruno@clisp.org>
2143
2144         doc: Mention new glibc headers and functions.
2145         * doc/glibc-headers/uchar.texi: New file.
2146         * doc/glibc-functions/aligned_alloc.texi: New file.
2147         * doc/glibc-functions/c16rtomb.texi: New file.
2148         * doc/glibc-functions/c32rtomb.texi: New file.
2149         * doc/glibc-functions/clock_adjtime.texi: New file.
2150         * doc/glibc-functions/fanotify_init.texi: New file.
2151         * doc/glibc-functions/fanotify_mark.texi: New file.
2152         * doc/glibc-functions/inet6_opt_append.texi: New file.
2153         * doc/glibc-functions/inet6_opt_find.texi: New file.
2154         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2155         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2156         * doc/glibc-functions/inet6_opt_init.texi: New file.
2157         * doc/glibc-functions/inet6_opt_next.texi: New file.
2158         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2159         * doc/glibc-functions/inet6_rth_add.texi: New file.
2160         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2161         * doc/glibc-functions/inet6_rth_init.texi: New file.
2162         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2163         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2164         * doc/glibc-functions/inet6_rth_space.texi: New file.
2165         * doc/glibc-functions/login.texi: New file.
2166         * doc/glibc-functions/mbrtoc16.texi: New file.
2167         * doc/glibc-functions/mbrtoc32.texi: New file.
2168         * doc/glibc-functions/name_to_handle_at.texi: New file.
2169         * doc/glibc-functions/ntp_gettimex.texi: New file.
2170         * doc/glibc-functions/open_by_handle_at.texi: New file.
2171         * doc/glibc-functions/prlimit.texi: New file.
2172         * doc/glibc-functions/process_vm_readv.texi: New file.
2173         * doc/glibc-functions/process_vm_writev.texi: New file.
2174         * doc/glibc-functions/recvmmsg.texi: New file.
2175         * doc/glibc-functions/scandirat.texi: New file.
2176         * doc/glibc-functions/sendmmsg.texi: New file.
2177         * doc/glibc-functions/setns.texi: New file.
2178         * doc/glibc-functions/timespec_get.texi: New file.
2179         * doc/gnulib.texi: Include them.
2180         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2181         sections.
2182         Reported by Eric Blake.
2183
2184 2012-02-28  Bruno Haible  <bruno@clisp.org>
2185
2186         Avoid compilation errors with MSVC option -fp:strict.
2187         * lib/floor.c: Use MSVC specific pragma fenv_access.
2188         * lib/ceil.c: Likewise.
2189         * lib/trunc.c: Likewise.
2190         * lib/round.c: Likewise.
2191         * lib/rint.c: Likewise.
2192         * lib/fma.c: Likewise.
2193         * lib/integer_length.c: Likewise.
2194         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2195         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2196         * tests/test-floor2.c: Likewise.
2197         * tests/test-floorf2.c: Likewise.
2198         * tests/test-ceil2.c: Likewise.
2199         * tests/test-ceilf2.c: Likewise.
2200         * tests/test-trunc2.c: Likewise.
2201         * tests/test-truncf2.c: Likewise.
2202         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2203
2204 2012-02-27  Bruno Haible  <bruno@clisp.org>
2205
2206         Tests for module 'sqrtl-ieee'.
2207         * modules/sqrtl-ieee-tests: New file.
2208         * tests/test-sqrtl-ieee.c: New file.
2209
2210         New module 'sqrtl-ieee'.
2211         * modules/sqrtl-ieee: New file.
2212
2213         Tests for module 'sqrt-ieee'.
2214         * modules/sqrt-ieee-tests: New file.
2215         * tests/test-sqrt-ieee.c: New file.
2216
2217         New module 'sqrt-ieee'.
2218         * modules/sqrt-ieee: New file.
2219
2220         Tests for module 'sqrtf-ieee'.
2221         * modules/sqrtf-ieee-tests: New file.
2222         * tests/test-sqrtf-ieee.c: New file.
2223         * tests/test-sqrt-ieee.h: New file.
2224
2225         New module 'sqrtf-ieee'.
2226         * modules/sqrtf-ieee: New file.
2227
2228 2012-02-27  Bruno Haible  <bruno@clisp.org>
2229
2230         remainderl-ieee: Work around test failure on OSF/1.
2231         * m4/remainderl-ieee.m4: New file.
2232         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2233         present, test whether remainderl works with a zero second argument.
2234         Replace it if not.
2235         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2237         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2238         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2239         (Depends-on): Update conditions.
2240         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2241         (Depends-on): Add remainder-ieee.
2242         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2243         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2244         module.
2245
2246         remainderf-ieee: Work around test failure on OSF/1.
2247         * m4/remainderf-ieee.m4: New file.
2248         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2249         present, test whether remainderf works with a zero second argument.
2250         Replace it if not.
2251         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2253         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2254         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2255         (Depends-on): Update conditions.
2256         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2257         (Depends-on): Add remainder-ieee.
2258         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2259         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2260         module.
2261
2262         remainder-ieee: Work around test failure on OSF/1.
2263         * m4/remainder-ieee.m4: New file.
2264         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2265         present, test whether remainder works with a zero second argument.
2266         Replace it if not.
2267         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2269         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2270         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2271         (Depends-on): Update dependencies.
2272         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2273         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2274         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2275
2276         Tests for module 'remainderl-ieee'.
2277         * modules/remainderl-ieee-tests: New file.
2278         * tests/test-remainderl-ieee.c: New file.
2279
2280         New module 'remainderl-ieee'.
2281         * modules/remainderl-ieee: New file.
2282
2283         Tests for module 'remainder-ieee'.
2284         * modules/remainder-ieee-tests: New file.
2285         * tests/test-remainder-ieee.c: New file.
2286
2287         New module 'remainder-ieee'.
2288         * modules/remainder-ieee: New file.
2289
2290         Tests for module 'remainderf-ieee'.
2291         * modules/remainderf-ieee-tests: New file.
2292         * tests/test-remainderf-ieee.c: New file.
2293         * tests/test-remainder-ieee.h: New file.
2294
2295         New module 'remainderf-ieee'.
2296         * modules/remainderf-ieee: New file.
2297
2298 2012-02-27  Bruno Haible  <bruno@clisp.org>
2299
2300         modff, modfl: Fix configure syntax error.
2301         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2302         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2303
2304 2012-02-27  Bruno Haible  <bruno@clisp.org>
2305
2306         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2307         * m4/fmodl-ieee.m4: New file.
2308         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2309         whether fmodl works with zero arguments. Replace it if not.
2310         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2311         (Depends-on): Add fmod-ieee.
2312         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2313         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2314
2315         fmodf-ieee: Work around test failure on OSF/1.
2316         * m4/fmodf-ieee.m4: New file.
2317         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2318         whether fmodf works with zero arguments. Replace it if not.
2319         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2321         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2322         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2323         (Depends-on): Update dependencies.
2324         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2325         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2326         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2327
2328         fmodf-ieee: Work around test failure on MSVC 9.
2329         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2330         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2331
2332         fmod-ieee: Work around test failures on OSF/1, mingw.
2333         * m4/fmod-ieee.m4: New file.
2334         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2335         whether fmod works with zero arguments. Replace it if not.
2336         * lib/math.in.h (fmod): New declaration.
2337         * lib/fmod.c: New file.
2338         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2340         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2341         * modules/fmod (Files): Add lib/fmod.c.
2342         (Depends-on): Add math, isinf, trunc, fma.
2343         (configure.ac): Arrange to compile lib/fmod.c if needed.
2344         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2345         m4/signbit.m4.
2346         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2347         * tests/test-math-c++.cc: Check the declaration of fmod.
2348         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2349
2350         fmodl-ieee: Fix test failures.
2351         * lib/fmodl.c (fmodl): Treat Inf specially.
2352         * modules/fmodl (Depends-on): Add isinf.
2353
2354         Tests for module 'fmodl-ieee'.
2355         * modules/fmodl-ieee-tests: New file.
2356         * tests/test-fmodl-ieee.c: New file.
2357
2358         New module 'fmodl-ieee'.
2359         * modules/fmodl-ieee: New file.
2360
2361         Tests for module 'fmod-ieee'.
2362         * modules/fmod-ieee-tests: New file.
2363         * tests/test-fmod-ieee.c: New file.
2364
2365         New module 'fmod-ieee'.
2366         * modules/fmod-ieee: New file.
2367
2368         Tests for module 'fmodf-ieee'.
2369         * modules/fmodf-ieee-tests: New file.
2370         * tests/test-fmodf-ieee.c: New file.
2371         * tests/test-fmod-ieee.h: New file.
2372
2373         New module 'fmodf-ieee'.
2374         * modules/fmodf-ieee: New file.
2375
2376 2012-02-27  Bruno Haible  <bruno@clisp.org>
2377
2378         Tests for module 'rintl-ieee'.
2379         * modules/rintl-ieee-tests: New file.
2380         * tests/test-rintl-ieee.c: New file.
2381
2382         New module 'rintl-ieee'.
2383         * modules/rintl-ieee: New file.
2384
2385         Tests for module 'rint-ieee'.
2386         * modules/rint-ieee-tests: New file.
2387         * tests/test-rint-ieee.c: New file.
2388
2389         New module 'rint-ieee'.
2390         * modules/rint-ieee: New file.
2391
2392         Tests for module 'rintf-ieee'.
2393         * modules/rintf-ieee-tests: New file.
2394         * tests/test-rintf-ieee.c: New file.
2395         * tests/test-rint-ieee.h: New file.
2396
2397         New module 'rintf-ieee'.
2398         * modules/rintf-ieee: New file.
2399
2400 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2401
2402         regex: re_search etc. should return -2 when memory exhausted
2403         This bug was uncovered when testing 'grep'.  Without the fix,
2404         re_search and friends return -1 when memory is exhausted, but -1
2405         means no match, and this causes grep to falsely report no-match
2406         instead of memory-exhaustion.  See
2407         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2408         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2409         trouble; this can occur if re_search_internal ran out of memory.
2410
2411 2012-02-26  Bruno Haible  <bruno@clisp.org>
2412
2413         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2414         * m4/modfl-ieee.m4: New file.
2415         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2416         whether modfl works with Inf. Replace it if not.
2417         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2419         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2420         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2421         (Depends-on): Update dependencies.
2422         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2423         m4/signbit.m4.
2424         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2425         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2426
2427         modfl-ieee: Fix dependencies.
2428         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2429
2430         modfl-ieee: Fix test failures.
2431         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2432         * modules/modfl (Depends-on): Add isfinite, isinf.
2433
2434         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2435         * m4/modff-ieee.m4: New file.
2436         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2437         whether modff works with NaN and Inf. Replace it if not.
2438         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2440         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2441         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2442         (Depends-on): Update dependencies.
2443         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2444         m4/signbit.m4.
2445         (Depends-on): Add modf-ieee.
2446         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2447         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2448
2449         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2450         * m4/modf-ieee.m4: New file.
2451         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2452         whether modf works with NaN and Inf. Replace it if not.
2453         * lib/math.in.h (modf): New declaration.
2454         * lib/modf.c: New file.
2455         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2457         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2458         * modules/modf (Files): Add lib/modf.c.
2459         (Depends-on): Add math, isfinite, trunc, isinf.
2460         (configure.ac): Addrange to compile lib/modf.c if needed.
2461         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2462         m4/signbit.m4.
2463         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2464         * tests/test-math-c++.cc: Check the declaration of modf.
2465         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2466
2467         Tests for module 'modfl-ieee'.
2468         * modules/modfl-ieee-tests: New file.
2469         * tests/test-modfl-ieee.c: New file.
2470
2471         New module 'modfl-ieee'.
2472         * modules/modfl-ieee: New file.
2473
2474         Tests for module 'modf-ieee'.
2475         * modules/modf-ieee-tests: New file.
2476         * tests/test-modf-ieee.c: New file.
2477
2478         New module 'modf-ieee'.
2479         * modules/modf-ieee: New file.
2480
2481         Tests for module 'modff-ieee'.
2482         * modules/modff-ieee-tests: New file.
2483         * tests/test-modff-ieee.c: New file.
2484         * tests/test-modf-ieee.h: New file.
2485
2486         New module 'modff-ieee'.
2487         * modules/modff-ieee: New file.
2488
2489 2012-02-26  Bruno Haible  <bruno@clisp.org>
2490
2491         Tests for module 'fabsl-ieee'.
2492         * modules/fabsl-ieee-tests: New file.
2493         * tests/test-fabsl-ieee.c: New file.
2494
2495         New module 'fabsl-ieee'.
2496         * modules/fabsl-ieee: New file.
2497
2498         Tests for module 'fabs-ieee'.
2499         * modules/fabs-ieee-tests: New file.
2500         * tests/test-fabs-ieee.c: New file.
2501
2502         New module 'fabs-ieee'.
2503         * modules/fabs-ieee: New file.
2504
2505         Tests for module 'fabsf-ieee'.
2506         * modules/fabsf-ieee-tests: New file.
2507         * tests/test-fabsf-ieee.c: New file.
2508         * tests/test-fabs-ieee.h: New file.
2509
2510         New module 'fabsf-ieee'.
2511         * modules/fabsf-ieee: New file.
2512
2513 2012-02-26  Bruno Haible  <bruno@clisp.org>
2514
2515         Tests for module 'fmal-ieee'.
2516         * modules/fmal-ieee-tests: New file.
2517         * tests/test-fmal-ieee.c: New file.
2518
2519         New module 'fmal-ieee'.
2520         * modules/fmal-ieee: New file.
2521
2522         Tests for module 'fma-ieee'.
2523         * modules/fma-ieee-tests: New file.
2524         * tests/test-fma-ieee.c: New file.
2525
2526         New module 'fma-ieee'.
2527         * modules/fma-ieee: New file.
2528
2529         Tests for module 'fmaf-ieee'.
2530         * modules/fmaf-ieee-tests: New file.
2531         * tests/test-fmaf-ieee.c: New file.
2532         * tests/test-fma-ieee.h: New file.
2533
2534         New module 'fmaf-ieee'.
2535         * modules/fmaf-ieee: New file.
2536
2537 2012-02-26  Bruno Haible  <bruno@clisp.org>
2538
2539         Tests for module 'ldexpl-ieee'.
2540         * modules/ldexpl-ieee-tests: New file.
2541         * tests/test-ldexpl-ieee.c: New file.
2542
2543         New module 'ldexpl-ieee'.
2544         * modules/ldexpl-ieee: New file.
2545
2546         Tests for module 'ldexp-ieee'.
2547         * modules/ldexp-ieee-tests: New file.
2548         * tests/test-ldexp-ieee.c: New file.
2549
2550         New module 'ldexp-ieee'.
2551         * modules/ldexp-ieee: New file.
2552
2553         Tests for module 'ldexpf-ieee'.
2554         * modules/ldexpf-ieee-tests: New file.
2555         * tests/test-ldexpf-ieee.c: New file.
2556         * tests/test-ldexp-ieee.h: New file.
2557
2558         New module 'ldexpf-ieee'.
2559         * modules/ldexpf-ieee: New file.
2560
2561 2012-02-26  Bruno Haible  <bruno@clisp.org>
2562
2563         Refactor frexp*-ieee tests.
2564         * tests/test-frexp-ieee.h: New file.
2565         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2566         (main): Just call test_function.
2567         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2568         (main): Just call test_function.
2569         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2570         (main): Just call test_function.
2571         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2572         * modules/frexp-ieee-tests (Files): Likewise.
2573         * modules/frexpl-ieee-tests (Files): Likewise.
2574
2575         Tests for module 'frexpl-ieee'.
2576         * modules/frexpl-ieee-tests: New file.
2577         * tests/test-frexpl-ieee.c: New file.
2578
2579         New module 'frexpl-ieee'.
2580         * modules/frexpl-ieee: New file.
2581
2582         Tests for module 'frexp-ieee'.
2583         * modules/frexp-ieee-tests: New file.
2584         * tests/test-frexp-ieee.c: New file.
2585
2586         New module 'frexp-ieee'.
2587         * modules/frexp-ieee: New file.
2588
2589         Tests for module 'frexpf-ieee'.
2590         * modules/frexpf-ieee-tests: New file.
2591         * tests/test-frexpf-ieee.c: New file.
2592
2593         New module 'frexpf-ieee'.
2594         * modules/frexpf-ieee: New file.
2595
2596 2012-02-26  Bruno Haible  <bruno@clisp.org>
2597
2598         roundl-ieee tests: More tests.
2599         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2600         (main): Add tests for [MX] shaded specification in POSIX.
2601         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2602         (Depends-on): Add isnanl-nolibm.
2603
2604         round-ieee tests: More tests.
2605         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2606         (main): Add tests for [MX] shaded specification in POSIX.
2607         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2608         (Depends-on): Add isnand-nolibm.
2609
2610         roundf-ieee tests: More tests.
2611         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2612         (main): Add tests for [MX] shaded specification in POSIX.
2613         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2614         (Depends-on): Add isnanf-nolibm.
2615
2616         truncl-ieee tests: More tests.
2617         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2618         (main): Add tests for [MX] shaded specification in POSIX.
2619         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2620         (Depends-on): Add isnanl-nolibm.
2621
2622         trunc-ieee tests: More tests.
2623         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2624         (main): Add tests for [MX] shaded specification in POSIX.
2625         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2626         (Depends-on): Add isnand-nolibm.
2627
2628         truncf-ieee tests: More tests.
2629         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2630         (main): Add tests for [MX] shaded specification in POSIX.
2631         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2632         (Depends-on): Add isnanf-nolibm.
2633
2634         ceill-ieee tests: More tests.
2635         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2636         (main): Add tests for [MX] shaded specification in POSIX.
2637         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2638         (Depends-on): Add isnanl-nolibm.
2639
2640         ceil-ieee tests: More tests.
2641         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2642         (main): Add tests for [MX] shaded specification in POSIX.
2643         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2644         (Depends-on): Add isnand-nolibm.
2645
2646         ceilf-ieee tests: More tests.
2647         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2648         (main): Add tests for [MX] shaded specification in POSIX.
2649         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2650         (Depends-on): Add isnanf-nolibm.
2651
2652         floorl-ieee tests: More tests.
2653         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2654         (main): Add tests for [MX] shaded specification in POSIX.
2655         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2656         (Depends-on): Add isnanl-nolibm.
2657
2658         floor-ieee tests: More tests.
2659         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2660         (main): Add tests for [MX] shaded specification in POSIX.
2661         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2662         (Depends-on): Add isnand-nolibm.
2663
2664         floorf-ieee tests: More tests.
2665         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2666         (main): Add tests for [MX] shaded specification in POSIX.
2667         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2668         (Depends-on): Add isnanf-nolibm.
2669
2670 2012-02-26  Bruno Haible  <bruno@clisp.org>
2671
2672         fpieee: More comments.
2673         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2674
2675 2012-02-25  Bruno Haible  <bruno@clisp.org>
2676
2677         Tests for module 'log10l'.
2678         * modules/log10l-tests: New file.
2679         * tests/test-log10l.c: New file.
2680         * tests/test-math-c++.cc: Check the declaration of log10l.
2681
2682         New module 'log10l'.
2683         * lib/math.in.h (log10l): New declaration.
2684         * lib/log10l.c: New file.
2685         * m4/log10l.m4: New file.
2686         * modules/log10l: New file.
2687         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2689         HAVE_DECL_LOG10L.
2690         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2691         HAVE_DECL_LOG10L.
2692         * doc/posix-functions/log10l.texi: Mention the new module.
2693
2694 2012-02-25  Bruno Haible  <bruno@clisp.org>
2695
2696         fmodl, remainder*: Avoid wrong results due to rounding errors.
2697         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2698         expected bounds.
2699         * lib/remainderf.c (remainderf): Likewise.
2700         * lib/remainder.c (remainder): Likewise.
2701         * lib/remainderl.c (remainderl): Likewise.
2702
2703 2012-02-25  Bruno Haible  <bruno@clisp.org>
2704
2705         Tests for module 'remainderl'.
2706         * modules/remainderl-tests: New file.
2707         * tests/test-remainderl.c: New file.
2708         * tests/test-math-c++.cc: Check the declaration of remainderl.
2709
2710         New module 'remainderl'.
2711         * lib/math.in.h (remainderl): New declaration.
2712         * lib/remainderl.c: New file.
2713         * m4/remainderl.m4: New file.
2714         * modules/remainderl: New file.
2715         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2717         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2718         HAVE_REMAINDERL.
2719         * doc/posix-functions/remainderl.texi: Mention the new module.
2720
2721 2012-02-25  Bruno Haible  <bruno@clisp.org>
2722
2723         Tests for module 'remainderf'.
2724         * modules/remainderf-tests: New file.
2725         * tests/test-remainderf.c: New file.
2726         * tests/test-math-c++.cc: Check the declaration of remainderf.
2727
2728         New module 'remainderf'.
2729         * lib/math.in.h (remainderf): New declaration.
2730         * lib/remainderf.c: New file.
2731         * m4/remainderf.m4: New file.
2732         * modules/remainderf: New file.
2733         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2735         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2736         HAVE_REMAINDERF.
2737         * doc/posix-functions/remainderf.texi: Mention the new module.
2738
2739 2012-02-25  Bruno Haible  <bruno@clisp.org>
2740
2741         remainder: Support for MSVC.
2742         * lib/math.in.h (remainder): New declaration.
2743         * lib/remainder.c: New file.
2744         * m4/remainder.m4: New file.
2745         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2746         (Depends-on): Add math, round, fma.
2747         (configure.ac): Use results of gl_FUNC_REMAINDER.
2748         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2750         HAVE_DECL_REMAINDER.
2751         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2752         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2753         * tests/test-math-c++.cc: Check the declaration of remainder.
2754         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2755         problems are fixed.
2756
2757 2012-02-25  Bruno Haible  <bruno@clisp.org>
2758
2759         Tests for module 'fmodl'.
2760         * modules/fmodl-tests: New file.
2761         * tests/test-fmodl.c: New file.
2762         * tests/test-math-c++.cc: Check the declaration of fmodl.
2763
2764         New module 'fmodl'.
2765         * lib/math.in.h (fmodl): New declaration.
2766         * lib/fmodl.c: New file.
2767         * m4/fmodl.m4: New file.
2768         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2770         REPLACE_FMODL.
2771         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2772         REPLACE_FMODL.
2773         * modules/fmodl: New file.
2774         * doc/posix-functions/fmodl.texi: Mention the new module.
2775
2776 2012-02-25  Bruno Haible  <bruno@clisp.org>
2777
2778         Tests for module 'modfl'.
2779         * modules/modfl-tests: New file.
2780         * tests/test-modfl.c: New file.
2781         * tests/test-math-c++.cc: Check the declaration of modfl.
2782
2783         New module 'modfl'.
2784         * lib/math.in.h (modfl): New declaration.
2785         * lib/modfl.c: New file.
2786         * m4/modfl.m4: New file.
2787         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2789         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2790         * modules/modfl: New file.
2791         * doc/posix-functions/modfl.texi: Mention the new module.
2792
2793 2012-02-25  Bruno Haible  <bruno@clisp.org>
2794
2795         Tests for module 'fabsl'.
2796         * modules/fabsl-tests: New file.
2797         * tests/test-fabsl.c: New file.
2798         * tests/test-math-c++.cc: Check the declaration of fabsl.
2799
2800         New module 'fabsl'.
2801         * lib/math.in.h (fabsl): New declaration.
2802         * lib/fabsl.c: New file.
2803         * m4/fabsl.m4: New file.
2804         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2806         REPLACE_FABSL.
2807         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2808         REPLACE_FABSL.
2809         * modules/fabsl: New file.
2810         * doc/posix-functions/fabsl.texi: Mention the new module.
2811
2812 2012-02-25  Bruno Haible  <bruno@clisp.org>
2813
2814         fabs tests: More tests.
2815         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2816         (zero): New variable.
2817         (main): Add tests for signed zero.
2818         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2819
2820         fabsf tests: More tests.
2821         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2822         (zero): New variable.
2823         (main): Add tests for signed zero.
2824         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2825
2826 2012-02-24  Bruno Haible  <bruno@clisp.org>
2827
2828         atanl: Provide function definition on MSVC.
2829         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2830         function pointer.
2831         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2832
2833 2012-02-24  Bruno Haible  <bruno@clisp.org>
2834
2835         acosl: Provide function definition on MSVC.
2836         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2837         function pointer.
2838         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2839
2840 2012-02-24  Bruno Haible  <bruno@clisp.org>
2841
2842         asinl: Provide function definition on MSVC.
2843         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2844         function pointer.
2845         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2846
2847 2012-02-24  Bruno Haible  <bruno@clisp.org>
2848
2849         tanl: Provide function definition on MSVC.
2850         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2851         function pointer.
2852         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2853
2854 2012-02-24  Bruno Haible  <bruno@clisp.org>
2855
2856         cosl: Provide function definition on MSVC.
2857         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2858         function pointer.
2859         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2860
2861 2012-02-24  Bruno Haible  <bruno@clisp.org>
2862
2863         sinl: Provide function definition on MSVC.
2864         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2865         function pointer.
2866         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2867
2868 2012-02-24  Bruno Haible  <bruno@clisp.org>
2869
2870         logl: Provide function definition on MSVC.
2871         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2872         function pointer.
2873         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2874
2875 2012-02-24  Bruno Haible  <bruno@clisp.org>
2876
2877         expl: Provide function definition on MSVC.
2878         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2879         function pointer.
2880         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2881
2882 2012-02-24  Bruno Haible  <bruno@clisp.org>
2883
2884         sqrtl: Provide function definition on MSVC.
2885         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2886         a function pointer.
2887         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2888
2889 2012-02-24  Bruno Haible  <bruno@clisp.org>
2890
2891         ceill: Provide function definition on MSVC.
2892         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2893         used as a function pointer.
2894         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2895
2896 2012-02-24  Bruno Haible  <bruno@clisp.org>
2897
2898         floorl: Provide function definition on MSVC.
2899         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2900         used as a function pointer.
2901         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2902
2903 2012-02-24  Bruno Haible  <bruno@clisp.org>
2904
2905         ceilf: Provide function definition on MSVC.
2906         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2907         used as a function pointer.
2908         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2909
2910 2012-02-24  Bruno Haible  <bruno@clisp.org>
2911
2912         floorf: Provide function definition on MSVC.
2913         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2914         used as a function pointer.
2915         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2916
2917 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2918
2919         stdnoreturn: new module
2920         This implements a replacement for C11's <stdnoreturn.h>.
2921         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2922         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2923         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2924         * tests/test-stdnoreturn.c: New files.
2925
2926 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2927
2928         regex: fix false multibyte matches in some regular expressions
2929         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2930         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2931         * lib/regex_internal.c (re_string_skip_chars):
2932         Fix miscomputation of remain_len that may cause incomplete
2933         multi-byte character and false match.
2934
2935 2012-02-24  Jim Meyering  <meyering@redhat.com>
2936
2937         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2938         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2939         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2940         Remove now-unnecessary str''cmp obfuscation.
2941         Suggested by Akim Demaille.
2942
2943 2012-02-24  Bruno Haible  <bruno@clisp.org>
2944
2945         streq: Rename macro.
2946         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2947         * NEWS: Mention the change.
2948         * lib/mbrtowc.c (mbrtowc): Update.
2949         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2950         * lib/wcwidth.c (wcwidth): Update.
2951         Suggested by Akim Demaille and Jim Meyering.
2952
2953 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2954
2955         regex: fix typo in definition of MIN
2956         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2957         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2958
2959 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2960             Bruno Haible  <bruno@clisp.org>
2961
2962         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2963         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2964         entries into a stack-allocated buffer directly.
2965         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2966
2967 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2968             Bruno Haible  <bruno@clisp.org>
2969
2970         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2971
2972          - There were several instances of this pattern:
2973
2974              for (;;) {
2975                n = acl (f, GETACLCNT, 0, NULL);
2976                [ allocate an array A of size N ]
2977                if (acl (f, GETACL, n, a) == n)
2978                  break;
2979              }
2980
2981            This loop might never terminate if some other process is constantly
2982            manipulating the file's ACL.  The loop should be rewritten to
2983            terminate.
2984
2985          - The acl (... GETACLNT ...) call is merely an optimization; its value
2986            is merely a hint as to how big to make the array.  A better
2987            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2988            and just guess a reasonably-big size, growing the size and trying
2989            again if it's not large enough.  This guarantees termination, and
2990            saves a system call.
2991
2992         * lib/acl-internal.h: Include <limits.h>.
2993         (MIN, SIZE_MAX): New macros.
2994         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2995         a stack-allocated buffer, and use malloc if it does not fit. Don't
2996         use GETACLCNT.
2997         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2998
2999 2012-02-19  Bruno Haible  <bruno@clisp.org>
3000
3001         acl: Fix endless loop on Solaris with vxfs.
3002         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3003         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3004         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3005         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3006         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3007         Reported by Bill Jones in
3008         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3009
3010 2012-02-19  Bruno Haible  <bruno@clisp.org>
3011
3012         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3013         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3014         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3015         that this function returns 0 in some more cases.
3016
3017 2012-02-19  Bruno Haible  <bruno@clisp.org>
3018
3019         acl: Update doc references.
3020         * doc/acl-resources.txt: Update links to Solaris documentation.
3021
3022 2012-02-19  Bruno Haible  <bruno@clisp.org>
3023
3024         Fix test failure in many locales on Solaris 11.
3025         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3026         'tr' arguments.
3027         * tests/test-pipe-filter-ii1.c (main): Likewise.
3028         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3029         expressions in the C locale.
3030         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3031         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3032
3033 2012-02-19  Bruno Haible  <bruno@clisp.org>
3034
3035         gnulib-tool: Improve usage message.
3036         * gnulib-tool (func_usage): Move doc of --help and --version to the
3037         section "Operation modes".
3038
3039 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3040
3041         README-release: make it easier to execute commands
3042         * top/README-release: break commands out on to separate lines.
3043
3044 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3045
3046         GNUmakefile: simplify detection of unconfigured trees
3047         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3048         whether the tree make is being run from is already configured or
3049         not.  Related simplifications.
3050
3051 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3052
3053         * gnulib-tool (func_usage): Document --help and --version.
3054
3055 2012-02-11  Jim Meyering  <meyering@redhat.com>
3056
3057         bootstrap: don't exit 0 upon gnulib-tool failure
3058         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3059         its exit status, not 0.
3060
3061 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3062
3063         README-release: various improvements
3064         * top/README-release: Give a command to push changes for the
3065         release.  Add "distcheck" to list of other pre-release checks.
3066         Fix instance of "make stable" which should be "make TYPE".
3067
3068 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3069
3070         maint: replace FSF snail-mail addresses with URLs
3071         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3072         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3073         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3074         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3075         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3076         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3077         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3078         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3079         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3080         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3081         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3082         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3083         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3084         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3085         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3086         * lib/glthread/thread.c, lib/glthread/thread.h:
3087         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3088         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3089         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3090         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3091         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3092         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3093         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3094         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3095         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3096         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3097         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3098         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3099         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3100         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3101         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3102         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3103         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3104         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3105         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3106         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3107         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3108         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3109         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3110         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3111         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3112         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3113         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3114         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3115         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3116         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3117         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3118         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3119         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3120         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3121         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3122         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3123         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3124         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3125         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3126         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3127         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3128         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3129         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3130         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3131         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3132         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3133         * tests/test-poll.c, tests/test-quotearg-simple.c:
3134         * tests/test-quotearg.c, tests/test-quotearg.h:
3135         * tests/test-round-ieee.c, tests/test-round1.c:
3136         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3137         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3138         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3139         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3140         * tests/test-strerror.c, tests/test-strerror_r.c:
3141         * tests/test-strsignal.c, tests/test-strverscmp.c:
3142         * tests/test-xmemdup0.c:
3143         Replace FSF snail mail addresses with URLs, as per GNU coding
3144         standards.  See glibc bug
3145         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3146
3147 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3148
3149         README-release: capitalize a word and split a line
3150         * top/README-release: Fix punctuation and spacing.
3151
3152 2012-02-08  Akim Demaille  <demaille@gostai.com>
3153
3154         fatal-signal: use C prototypes (with explicit void).
3155         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3156         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3157
3158 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3159
3160         regex: spelling fix
3161         * lib/regexec.c: spelling fix
3162
3163         regex: rely on stdint.h for SIZE_MAX
3164         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3165
3166 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3167
3168         regex: merge glibc changes
3169
3170         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3171         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3172         (init_word_char): Work even if bitset words are not exactly 32 or
3173         64 bits wide.  Don't assume there are no padding bits.
3174         * lib/regex.c [_LIBC]: Do not include <config.h>.
3175         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3176         and -Wtype-limits.
3177         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3178         needless disagreement with glibc.  All uses changed.  Define it to
3179         1 only if _GNU_SOURCE, to match glibc.
3180         (_REG_RM_NAME): Remove; no longer needed, since the names in
3181         question are now all protected by __USE_GNU.
3182         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3183         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3184         * lib/regex_internal.h (MIN): New macro.
3185
3186         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3187         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3188
3189         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3190         * lib/regex_internal.c (re_string_fetch_byte_case):
3191         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3192         is miscompiled, and it turns out it is because of an incorrect
3193         attribute on re_string_fetch_byte_case.  Unlike
3194         re_string_peek_byte_case, this one is really not pure, it modifies
3195         memory (increments pstr->cur_idx), and with the pure attribute GCC
3196         assumed it doesn't and it cached the presumed value of
3197         regexp->cur_idx in a variable across the
3198          for (;; ++i)
3199            {
3200              if (i >= BRACKET_NAME_BUF_SIZE)
3201                return REG_EBRACK;
3202              if (token->type == OP_OPEN_CHAR_CLASS)
3203                ch = re_string_fetch_byte_case (regexp);
3204              else
3205                ch = re_string_fetch_byte (regexp);
3206              if (re_string_eoi(regexp))
3207                return REG_EBRACK;
3208              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3209                break;
3210              elem->opr.name[i] = ch;
3211            }
3212
3213         2011-11-29 Andreas Schwab <schwab@redhat.com>
3214         * lib/regcomp.c (build_equiv_class):
3215         Fix access after end of search string in regex matcher.
3216
3217         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3218         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3219
3220         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3221         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3222
3223         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3224         * lib/regcomp.c (parse_branch, parse_sub_exp):
3225         More regex memory leak fixes and tests.
3226         (parse_sub_exp, parse_bracket_exp):
3227         Fix memory leak for some invalid regular expressions.
3228
3229         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3230         * lib/regex_internal.c, lib/regexec.c:
3231         Fix unnecessary overallocation due to incomplete character.  When
3232         incomplete characters are found at the end of a string the code
3233         ran amok and allocated lots of memory.  Stricter limits are now in
3234         place.
3235
3236         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3237         * lib/regex.h: Update documentation.
3238
3239         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3240         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3241
3242         2010-05-05 Andreas Schwab <schwab@redhat.com>
3243         * lib/regexec.c (find_collation_sequence_value):
3244         Fix lookup of collation sequence value during regexp matching.
3245
3246         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3247         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3248
3249         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3250         * lib/regex.h: Cleanup namespace.
3251
3252         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3253         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3254
3255         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3256         * lib/regex_internal.h: Prevent some declarations and definitions
3257         to be seen when used in tests.
3258
3259         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3260         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3261         __libc_lock_* macros if not _LIBC.
3262         (struct re_dfa_t): Add lock.
3263
3264 2012-02-07  Eric Blake  <eblake@redhat.com>
3265
3266         maint.mk: also prohibit lower-case @var@
3267         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3268         lower case, like @top_srcdir@.
3269
3270 2012-02-04  Eric Blake  <eblake@redhat.com>
3271
3272         canonicalize: avoid uninitialized memory use
3273         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3274         random '/' left in dest.
3275         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3276
3277 2012-02-04  Bruno Haible  <bruno@clisp.org>
3278
3279         isatty: Fix test failure of ptsname_r on native Windows.
3280         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3281         and don't set errno.
3282         (isatty): Test first whether fd is valid. Set errno when returning 0.
3283
3284 2012-02-04  Bruno Haible  <bruno@clisp.org>
3285
3286         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3287         * tests/test-spawn-pipe-main.c: Include progname.h.
3288         (main): Invoke set_program_name.
3289         * modules/spawn-pipe-tests (Depends-on): Add progname.
3290
3291         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3292         * tests/test-nonblocking-socket-main.c: Include progname.h.
3293         (main): Invoke set_program_name.
3294         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3295
3296         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3297         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3298         (main): Invoke set_program_name.
3299         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3300
3301 2012-02-04  Eric Blake  <eblake@redhat.com>
3302
3303         canonicalize-lgpl: fix // handling
3304         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3305
3306         canonicalize: fix // handling
3307         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3308         /// to //, since only // is special.
3309
3310 2012-02-04  Bruno Haible  <bruno@clisp.org>
3311
3312         ioctl: Fix test failure on native Windows.
3313         * lib/ioctl.c: Include msvc-nothrow.h.
3314         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3315
3316 2012-02-04  Bruno Haible  <bruno@clisp.org>
3317
3318         fsync: Avoid test failure on native Windows.
3319         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3320         read-only.
3321
3322 2012-02-04  Bruno Haible  <bruno@clisp.org>
3323
3324         sys_select: Avoid syntax error on OpenBSD 5.0.
3325         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3326         currently being included, just include the system's <sys/select.h>.
3327
3328 2012-02-04  Bruno Haible  <bruno@clisp.org>
3329
3330         sys_select: Avoid syntax error on OpenBSD 5.0.
3331         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3332         <sys/select.h>, not before.
3333         Reported by Jiri B <jirib@devio.us>.
3334
3335 2012-02-04  Bruno Haible  <bruno@clisp.org>
3336
3337         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3338         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3339         global variables.
3340         * tests/test-get-rusage-data.c (main): Likewise.
3341         Reported by Jim Meyering.
3342
3343 2012-02-04  Bruno Haible  <bruno@clisp.org>
3344
3345         stdioext: Fix last commit.
3346         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3347
3348 2012-02-03  Bruno Haible  <bruno@clisp.org>
3349
3350         stdioext: Add tentative support for Plan9.
3351         * lib/stdio-impl.h: Include <errno.h>.
3352         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3353         * lib/freadable.c (freadable): Likewise.
3354         * lib/fwritable.c (fwritable): Likewise.
3355         * lib/fbufmode.c (fbufmode): Likewise.
3356         * lib/freading.c (freading): Likewise.
3357         * lib/fwriting.c (fwriting): Likewise.
3358         * lib/freadptr.c (freadptr): Likewise.
3359         * lib/freadseek.c (freadptrinc): Likewise.
3360         * lib/freadahead.c (freadahead): Likewise.
3361         * lib/fpurge.c (fpurge): Likewise.
3362         * lib/fseeko.c (rpl_fseeko): Likewise.
3363         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3364         Reported by Jens Staal <staal1978@gmail.com>.
3365
3366 2012-02-02  Jim Meyering  <meyering@redhat.com>
3367
3368         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3369         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3370         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3371         not even to try to add the attribute.  Instead, add a pragma to suppress
3372         the suggestion/warning.
3373
3374 2012-01-31  Karl Berry  <karl@gnu.org>
3375
3376         setstate doc: typo.
3377         * doc/posix-functions/setstate.texi (setstate): { not (.
3378
3379 2012-01-31  Bruno Haible  <bruno@clisp.org>
3380
3381         popen: Make more robust on Windows.
3382         * lib/popen.c: On native Windows, use the _popen based code even if
3383         HAVE_POPEN is set.
3384         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3385         environment variable on native Windows.
3386
3387 2012-01-30  Bruno Haible  <bruno@clisp.org>
3388
3389         pclose: Fix typo.
3390         * lib/stdio.in.h (pclose): Fix typo in warning message.
3391
3392 2012-01-30  Bruno Haible  <bruno@clisp.org>
3393
3394         doc about getlogin_r, setstate.
3395         * doc/posix-functions/getlogin_r.texi: List the incompatible
3396         declaration problem under "not fixed by gnulib".
3397         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3398         problem on Solaris 11 and other platforms.
3399
3400 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3401             Bruno Haible  <bruno@clisp.org>
3402
3403         poll tests: Make test more robust.
3404         * tests/test-poll.c: Include macros.h.
3405         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3406         return value of various I/O operations.
3407         * modules/poll-tests (Files): Add tests/macros.h.
3408
3409 2012-01-30  Bruno Haible  <bruno@clisp.org>
3410
3411         sys_stat: Fix support for mingw64 and MSVC.
3412         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3413         header files already do it.
3414         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3415         stat itself.
3416         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3417
3418 2012-01-30  Bruno Haible  <bruno@clisp.org>
3419
3420         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3422         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3423
3424 2012-01-29  Bruno Haible  <bruno@clisp.org>
3425
3426         quotearg: Fix test failure on MacOS X 10.5.
3427         * tests/test-quotearg-simple.c: Include localcharset.h.
3428         (main): If the locale encoding is not ASCII, bypass the tests of
3429         locale_quoting_style and clocale_quoting_style.
3430         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3431
3432 2012-01-29  Jim Meyering  <meyering@redhat.com>
3433
3434         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3435         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3436         detect uses of canonicalize_file_name.
3437
3438 2012-01-28  Bruno Haible  <bruno@clisp.org>
3439
3440         test-framework-sh: Fix test failure with AIX 7.1 diff.
3441         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3442         in column 1, like 'diff -c' does.
3443         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3444         whether 'diff -u' is used. Instead, test whether the output contains
3445         some '@' character.
3446
3447 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3448
3449         strtoimax: eliminate need for stdint.h, inttypes.h checks
3450         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3451         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3452         the prerequisites for a recently-introduced strtoimax test.
3453         I guess this might cause strtoimax to be replaced when not
3454         strictly necessary on older hosts, but this shouldn't introduce
3455         any bugs and it should make Emacs 'configure' faster on typical
3456         modern hosts.  Problem discovered when importing the latest gnulib
3457         to an Emacs test version.
3458         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3459
3460 2012-01-28  Bruno Haible  <bruno@clisp.org>
3461
3462         sys_time: Override 'struct timeval' on some native Windows platforms.
3463         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3464         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3465         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3466         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3467         needs to be overridden.
3468         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3469         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3470         * tests/test-sys_select.c: Check that the tv_sec member has the same
3471         size as a 'time_t'.
3472         * tests/test-sys_time.c: Likewise.
3473         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3474         is set, set also REPLACE_GETTIMEOFDAY.
3475         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3476         convert the resulting 'struct timeval' before returning.
3477         * lib/select.c: Include <sys/time.h>.
3478         (select, timeval): Undefine at the right place.
3479         * modules/select (Depends-on): Add sys_time.
3480         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3481         some Windows platforms.
3482         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3483
3484 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3485
3486         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3487         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3488         an integer.
3489         * lib/fcntl.c (dupfd): Likewise.
3490         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3491
3492 2012-01-28  Bruno Haible  <bruno@clisp.org>
3493
3494         fcntl: Avoid compilation error on native Windows.
3495         * modules/fcntl (Depends-on): Add 'close'.
3496
3497 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3498
3499         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3500         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3501         pointer to an integer.
3502         * lib/poll.c (IsConsoleHandle): Likewise.
3503         * lib/isatty.c (IsConsoleHandle): Likewise.
3504
3505 2012-01-28  Jim Meyering  <meyering@redhat.com>
3506
3507         doc: clarify README-release
3508         * top/README-release: Clarify: you should make a point to have
3509         the latest stable versions of build tools in your PATH, and the
3510         reference to buildreq is solely for its list of tool names, not
3511         for its minimal-functional version numbers.
3512         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3513
3514         maint.mk: use more readable (yet functionally equivalent) quoting
3515         It is common to quote a single quote in a single quoted string like
3516         this:  '...'\''...'.  Unless you know the idiom, that looks like
3517         gibberish, so prefer to double-quote the string when possible.
3518         Then you can use a more readable, lone single quote: "...'..."
3519         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3520         "don't" is more readable than the equivalent 'don'\''t'.
3521         (sc_cast_of_x_alloc_return_value): Likewise.
3522         (sc_cast_of_alloca_return_value): Likewise.
3523         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3524         rather than '\'':'\''.
3525
3526 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3527
3528         stdalign: relax _Alignof and tighten _Alignas test
3529         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3530         as it was too strict: alignof must divide offsetof, but it need
3531         not equal offsetof.  Inspired by Joseph S. Myers's comment
3532         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3533         Conversely, tighten the _Alignas test a bit, as the resulting
3534         alignment must be exactly 8.
3535
3536 2012-01-27  Bruno Haible  <bruno@clisp.org>
3537
3538         stdalign: Document the last change.
3539         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3540
3541 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3542
3543         stdalign: check that alignof and offsetof are consistent
3544         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3545         Problem reported for gnulib by Richard W.M. Jones in
3546         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3547
3548 2012-01-27  Jim Meyering  <meyering@redhat.com>
3549
3550         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3551         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3552         convert a sequence with gaps to the minimal containing range.
3553         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3554         * tests/test-update-copyright.sh: Test for this.
3555         The FSF confirmed it is ok to do this, assuming there is at
3556         least one significant change per year in the affected range:
3557         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3558
3559 2012-01-26  Bruno Haible  <bruno@clisp.org>
3560
3561         pipe2: refine doc about thread-safety
3562         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3563         multithread-safety problem.
3564         * doc/glibc-functions/accept4.texi: Likewise.
3565
3566 2012-01-26  Bruno Haible  <bruno@clisp.org>
3567
3568         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3569         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3570         In the test program, include <fcntl.h>, for O_RDONLY.
3571
3572 2012-01-26  Eric Blake  <eblake@redhat.com>
3573
3574         pipe2: document lack of thread-safety in replacement
3575         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3576         issue in replacement.
3577         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3578         Based on a report by Eric Wong.
3579
3580 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3581             Bruno Haible  <bruno@clisp.org>
3582
3583         malloca: Avoid warnings on x86_64 mingw64.
3584         * lib/malloca.c: Include <stdint.h>.
3585         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3586         * modules/malloca (Depends-on): Add stdint.
3587         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3588
3589 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3590
3591         obstack: remove __STDC__ conditionals
3592         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3593         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3594         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3595         m4/include_next.m4 as the only gnulib-maintained places that still
3596         refer to __STDC__.
3597
3598 2012-01-24  Bruno Haible  <bruno@clisp.org>
3599
3600         havelib: Modern quoting.
3601         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3602         the recent change to the GNU coding standards.
3603
3604 2012-01-24  Bruno Haible  <bruno@clisp.org>
3605
3606         stdint: Improve support for Android.
3607         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3608         Reported by Simon Josefsson <simon@josefsson.org>.
3609
3610 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3611
3612         doc: omit trailing empty lines from INSTALL etc.
3613         * doc/Makefile (INSTALL): Omit trailing empty lines.
3614         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3615         omit trailing empty lines.  This simplifies the build procedure.
3616
3617 2012-01-23  Jim Meyering  <meyering@redhat.com>
3618
3619         tests: avoid spurious warnings about gl_sockets_startup
3620         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3621         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3622         reporting a "statement with no effect".
3623         * tests/test-accept.c (main): Mark as "(void)".
3624         * tests/test-accept4.c (main): Likewise.
3625         * tests/test-bind.c (main): Likewise.
3626         * tests/test-connect.c (main): Likewise.
3627         * tests/test-getpeername.c (main): Likewise.
3628         * tests/test-getsockname.c (main): Likewise.
3629         * tests/test-getsockopt.c (main): Likewise.
3630         * tests/test-listen.c (main): Likewise.
3631         * tests/test-recv.c (main): Likewise.
3632         * tests/test-recvfrom.c (main): Likewise.
3633         * tests/test-send.c (main): Likewise.
3634         * tests/test-sendto.c (main): Likewise.
3635         * tests/test-setsockopt.c (main): Likewise.
3636         * tests/test-shutdown.c (main): Likewise.
3637
3638 2012-01-21  Bruno Haible  <bruno@clisp.org>
3639
3640         locale-fr.m4: Fix for Android.
3641         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3642         failure of the test program on Bionic libc.
3643
3644 2012-01-21  Jim Meyering  <meyering@redhat.com>
3645
3646         bootstrap: fail when bootstrap_post_import_hook fails
3647         Otherwise, it's far too easy to miss diagnostics emitted
3648         between gnulib-tool's output and that of running configure.
3649         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3650
3651 2012-01-17  Jim Meyering  <meyering@redhat.com>
3652
3653         maint: enable sc_trailing_blank
3654         * build-aux/pmccabe.css: Remove trailing blanks.
3655         * doc/acl-cygwin.txt: Likewise.
3656         * doc/gnu-oids.texi: Likewise
3657         * cfg.mk: Enable sc_trailing_blank.
3658         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3659
3660 2012-01-17  Jim Meyering  <meyering@redhat.com>
3661
3662         maint: enable sc_prohibit_openat_without_use
3663         * cfg.mk: Enable sc_prohibit_openat_without_use.
3664         Exempt lib/selinux-at.c.
3665
3666 2012-01-17  Jim Meyering  <meyering@redhat.com>
3667
3668         maint: enable sc_prohibit_cloexec_without_use
3669         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3670         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3671
3672 2012-01-17  Jim Meyering  <meyering@redhat.com>
3673
3674         maint: enable sc_prohibit_intprops_without_use
3675         * cfg.mk: Enable sc_prohibit_intprops_without_use
3676         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3677
3678 2012-01-17  Jim Meyering  <meyering@redhat.com>
3679
3680         maint: enable sc_prohibit_hash_pjw_without_use
3681         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3682         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3683         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3684         following " (".
3685
3686 2012-01-17  Jim Meyering  <meyering@redhat.com>
3687
3688         maint: enable double-word-prohibiting rule
3689         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3690         Exempt three files.
3691
3692 2012-01-17  Jim Meyering  <meyering@redhat.com>
3693
3694         maint: remove empty lines at EOF, but excluding modules/*
3695         Apply syntax rules at home as well as abroad.  Most changes
3696         were induced by running this:
3697           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3698             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3699             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3700         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3701         Exempt modules/* and two binary files.
3702         Also exempt doc/INSTALL*, per request from Bruno Haible.
3703         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3704         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3705         * doc/Copyright/request-assign.future: Likewise.
3706         * doc/Copyright/request-disclaim.changes: Likewise.
3707         * doc/INSTALL: Likewise.
3708         * doc/INSTALL.ISO: Likewise.
3709         * doc/INSTALL.UTF-8: Likewise.
3710         * doc/acl-cygwin.txt: Likewise.
3711         * doc/acl-resources.txt: Likewise.
3712         * doc/fdl-1.2.texi: Likewise.
3713         * doc/fdl-1.3.texi: Likewise.
3714         * doc/fdl.texi: Likewise.
3715         * lib/argp-pin.c: Likewise.
3716         * lib/round.c: Likewise.
3717         * lib/unicase/u16-totitle.c: Likewise.
3718         * lib/unictype/block_test.c: Likewise.
3719         * lib/uninorm/canonical-decomposition.c: Likewise.
3720         * m4/README: Likewise.
3721         * m4/relocatable-lib.m4: Likewise.
3722         * tests/test-isnand-nolibm.c: Likewise.
3723         * tests/test-isnand.c: Likewise.
3724         * tests/uninorm/NormalizationTest.txt: Likewise.
3725
3726 2012-01-17  Jim Meyering  <meyering@redhat.com>
3727
3728         maint: add framework to run syntax-check rules against gnulib sources
3729         * cfg.mk: New file, to disable all currently-failing tests.
3730         We'll enable them one by one, as they are made to pass.
3731         * Makefile (sc_maint): New rule.
3732
3733 2012-01-21  Bruno Haible  <bruno@clisp.org>
3734
3735         stdint: Add support for Android.
3736         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3737         include the system's <stdint.h>.
3738         Reported by Simon Josefsson <simon@josefsson.org>.
3739
3740 2012-01-19  Jim Meyering  <meyering@redhat.com>
3741
3742         bootstrap: add bootstrap_post_import_hook
3743         Bison does still need something like the gnulib_mk_hook whose
3744         invocation I had to remove along with slurp in commit 767ccd40.
3745         Technically, we could get along without it, but doing so would
3746         have required living with a warning and a mandatory post-bootstrap
3747         automake rerun.
3748         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3749         (bootstrap_post_import_hook): New function.
3750         Invoke it after gnulib-tool --import and before autoreconf.
3751
3752 2012-01-18  Jim Meyering  <meyering@redhat.com>
3753
3754         gitlog-to-changelog: don't use "no_"-prefixed variable name
3755         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3756         to enable both --cluster and --no-cluster.  Change variable name,
3757         s/\$no_cluster/$cluster/, and reverse usage to match.
3758
3759         gitlog-to-changelog: use "||", not "or" in expressions
3760         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3761         expressions.
3762
3763 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3764
3765         gitlog-to-changelog: new option --no-cluster
3766         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3767         clustering of adjacent commit messages.
3768
3769 2012-01-17  Jim Meyering  <meyering@redhat.com>
3770
3771         maint: spell file systems with two words, not one
3772         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3773         two words, not one.
3774
3775 2012-01-16  Jim Meyering  <meyering@redhat.com>
3776
3777         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3778         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3779
3780 2012-01-16  Eric Blake  <eblake@redhat.com>
3781
3782         bootstrap: cater to autoconf 2.59
3783         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3784         is not available.
3785
3786         bootstrap: properly check for libtool
3787         * build-aux/bootstrap (libtoolize): Also run libtool when older
3788         usage is detected.
3789
3790 2012-01-15  Bruno Haible  <bruno@clisp.org>
3791
3792         Improve support for MSVC 9.
3793         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3794         clashes on MSVC.
3795         * lib/fcntl.in.h: Likewise.
3796         * lib/stdlib.in.h: Likewise.
3797         * lib/sys_stat.in.h: Likewise.
3798
3799 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3800
3801         gnupload: we hold the master copy of this script now
3802         For motivation and more information, see:
3803         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3804         * build-aux/gnupload: Make it clear in the heading comments that the
3805         master copy of this file is maintained by gnulib.  Since we are at
3806         it, bump its copyright year and ...
3807         ($scriptversion): ... the date in its version.
3808         ($usage): Patches and bug reports should be sent to the gnulib list,
3809         not the automake one.
3810         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3811         anymore.
3812
3813 2012-01-15  Bruno Haible  <bruno@clisp.org>
3814
3815         Fix module 'random'.
3816         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3817         initstate, setstate are declared.
3818
3819 2012-01-14  Bruno Haible  <bruno@clisp.org>
3820
3821         Tests for module 'random'.
3822         * modules/random-tests: New file.
3823         * tests/test-random.c: New file, based on tests/test-random_r.c.
3824
3825         New module 'random'.
3826         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3827         declarations.
3828         * lib/random.c: New file, based on glibc/stdlib/random.c.
3829         * m4/random.m4: New file.
3830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3831         HAVE_RANDOM.
3832         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3833         * modules/random: New file.
3834         * config/srclist.txt: Add an entry for random.c.
3835         * doc/posix-functions/random.texi: Mention the 'random' module.
3836         * doc/posix-functions/initstate.texi: Likewise.
3837         * doc/posix-functions/setstate.texi: Likewise.
3838         * doc/posix-functions/srandom.texi: Likewise.
3839
3840 2012-01-12  Bruno Haible  <bruno@clisp.org>
3841
3842         random_r: Use common idioms.
3843         * lib/random_r.c: Include <stdlib.h> first.
3844
3845         random_r: Override incompatible API on AIX, OSF/1.
3846         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3847         Override the system function if REPLACE_RANDOM_R is 1.
3848         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3849         and OSF/1, set REPLACE_RANDOM_R.
3850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3851         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3852         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3853         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3854         * doc/glibc-functions/random_r.texi: Likewise.
3855         * doc/glibc-functions/setstate_r.texi: Likewise.
3856
3857         random_r: Support for MSVC 9.
3858         * lib/random_r.c: Include stdint.h, not inttypes.h.
3859
3860 2012-01-12  Eric Blake  <eblake@redhat.com>
3861
3862         inet_ntop: guard extra work by IF_LINT
3863         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3864         better code generation when not checking for warnings.
3865         Suggested by Paul Eggert and Jim Meyering.
3866
3867         strptime: fix regression on mingw
3868         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3869         Fix regression.  Reported by Bruno Haible.
3870
3871 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3872             Bruno Haible  <bruno@clisp.org>
3873
3874         copy-file: add error-code-returning variant.
3875         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3876         (qcopy_file_preserving): New declaration.
3877         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3878         copy_file_preserving. Change return type to 'int'. Don't emit an error
3879         message here.
3880         (copy_file_preserving): New function.
3881         * tests/test-copy-file.c: Include <stdlib.h>.
3882         (main): Test qcopy_file_preserving if the environment variable
3883         NO_STDERR_OUTPUT is set.
3884         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3885         with NO_STDERR_OUTPUT
3886         * tests/test-copy-file-2.sh: Likewise.
3887
3888 2012-01-10  Bruno Haible  <bruno@clisp.org>
3889
3890         copy-file: Use 'quote' module consistently.
3891         * lib/copy-file.c (copy_file_preserving): Use quote().
3892
3893         copy-file: Refactor.
3894         * lib/copy-file.c: Include quote.h.
3895         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3896         message here.
3897         * modules/copy-file (Depends-on): Add quote.
3898
3899         acl: Export qcopy_acl.
3900         * lib/acl.h (qcopy_acl): New declaration.
3901         * lib/copy-acl.c (qcopy_acl): Make non-static.
3902
3903         acl: Rename a local variable.
3904         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3905
3906         acl: Align return values of copy_acl and qcopy_acl.
3907         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3908         maybe < -1.
3909
3910 2012-01-11  Eric Blake  <eblake@redhat.com>
3911
3912         strptime: silence gcc warnings
3913         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3914         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3915         Reported by Daniel P. Berrange.
3916
3917         inet_ntop: silence gcc warning
3918         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3919         Reported by Daniel P. Berrange.
3920
3921 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3922
3923         getloadavg test: skip the test on GNU/Linux without /proc mounted
3924         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3925         file.  When /proc is not mounted, it always fails with ENOENT.
3926         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3927         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3928
3929 2012-01-10  Bruno Haible  <bruno@clisp.org>
3930
3931         regex: Avoid link error on MSVC 9.
3932         * modules/regex (Depends-on): Add wctype.
3933
3934 2012-01-10  Bruno Haible  <bruno@clisp.org>
3935
3936         doc: Mention --with-tests option.
3937         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3938         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3939         --with-tests.
3940         Reported by Reuben Thomas.
3941
3942 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3943
3944         users.txt: order package names lexicographically.
3945         * users.txt: Order package names lexicographically.
3946
3947 2012-01-10  Jim Meyering  <meyering@redhat.com>
3948
3949         maint.mk: fix description in comment
3950         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3951
3952         ignore-value: remove deprecated ignore_ptr function
3953         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3954         * NEWS: Note this.
3955
3956 2012-01-09  Jim Meyering  <meyering@redhat.com>
3957
3958         test-init.sh: avoid a subshell
3959         * tests/test-init.sh: Remove protective subshell.
3960         Suggested by Bernhard Voelker.  While a subshell is normally
3961         required to protect against older shells (Solaris, FreeBSD) that
3962         warn about a missing program before performing redirection, the
3963         shell-selection tests performed by init.sh probably exclude any
3964         offending shell.
3965
3966 2012-01-08  Bruno Haible  <bruno@clisp.org>
3967
3968         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3969         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3970         variable.
3971
3972 2012-01-08  Bruno Haible  <bruno@clisp.org>
3973
3974         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3975         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3976         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3977         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3978         macro.
3979         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3980         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3981         * lib/spawn_faction_addopen.c: Add workaround implementation if
3982         HAVE_WORKING_POSIX_SPAWN.
3983         * modules/spawn (Makefile): Substitute
3984         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3985         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3986         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3987         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3988         (Depends-on): Update conditions.
3989         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3990         the Solaris 11 bug.
3991
3992 2012-01-08  Bruno Haible  <bruno@clisp.org>
3993
3994         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3995         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3996         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3997         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3998         macro.
3999         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4000         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4001         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4002         HAVE_WORKING_POSIX_SPAWN.
4003         * modules/spawn (Makefile): Substitute
4004         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4005         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4006         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4007         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4008         (Depends-on): Update conditions.
4009         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4010         the Solaris 11 bug.
4011
4012 2012-01-08  Bruno Haible  <bruno@clisp.org>
4013
4014         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4015         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4016         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4017         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4018         HAVE_WORKING_POSIX_SPAWN.
4019         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4020         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4021         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4022         * lib/spawn_faction_addclose.c: Add workaround implementation if
4023         HAVE_WORKING_POSIX_SPAWN.
4024         * modules/spawn (Makefile): Substitute
4025         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4026         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4027         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4028         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4029         (Depends-on): Update conditions.
4030         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4031         the Solaris 11 bug.
4032
4033 2012-01-08  Bruno Haible  <bruno@clisp.org>
4034
4035         doc: Update for Solaris 11 2011-11.
4036         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4037         * m4/printf.m4: Update comments.
4038
4039 2012-01-08  Bruno Haible  <bruno@clisp.org>
4040
4041         mktime: Avoid compilation error on Solaris 11.
4042         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4043
4044 2012-01-08  Bruno Haible  <bruno@clisp.org>
4045
4046         doc: Small fix.
4047         * doc/posix-headers/nl_types.texi: Correct platforms list.
4048
4049 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4050
4051         Add lgpl-3.0 module.
4052         * MODULES.html.sh (Support for building documentation): Add
4053         lgpl-3.0.
4054         * modules/lgpl-3.0: New file.
4055
4056 2012-01-08  Jim Meyering  <meyering@redhat.com>
4057
4058         select.c: indent with spaces, not TABs
4059         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4060
4061 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4062
4063         quotearg: do not use grave accent for left quote
4064         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4065         locale_quoting_style.
4066         (quotearg_buffer_restyled): Fix example.
4067         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4068
4069 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4070
4071         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4072         Most programs do not have translation catalogs for English and much
4073         less separate catalogs for British and American English.  Drop the
4074         suggestion to translators about these two, and provide it
4075         automatically for Unicode locales.  Like most programs, even those
4076         using American English, we use single quotation marks.  This conflicts
4077         with the American typographic convention, but works better when you
4078         cite the entire error message within double quotes.  It also tries not
4079         to clash with established practice and with what non-gnulib programs
4080         will usually do.
4081         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4082         using an UTF-8 or GB-18030 locale.  The list of other locales with
4083         quotes was provided by Bruno Haible.
4084         (quotearg_buffer_restyled): Adjust instructions to translators.
4085         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4086         text, since this would be wrong when using Unicode.
4087         * modules/quotearg: Depend on c-strcaseeq.
4088
4089 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4090
4091         quotearg: fix Wikipedia link
4092         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4093
4094 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4095
4096         Fix for mingw with MSVC9.
4097         * m4/ld-version-script.m4: Check that compiler rejects version
4098         scripts with syntax errors.  Reported by Bruno Haible
4099         <bruno@clisp.org>.
4100
4101 2012-01-06  Bruno Haible  <bruno@clisp.org>
4102
4103         Talk about "native Windows API", not "Woe32".
4104         * lib/accept4.c: Update comments to mention native Windows.
4105         * lib/execute.c: Likewise.
4106         * lib/fatal-signal.c: Likewise.
4107         * lib/localcharset.c: Likewise.
4108         * lib/nanosleep.c: Likewise.
4109         * lib/nl_langinfo.c: Likewise.
4110         * lib/pclose.c: Likewise.
4111         * lib/pipe-filter-gi.c: Likewise.
4112         * lib/pipe-filter-ii.c: Likewise.
4113         * lib/pipe.c: Likewise.
4114         * lib/pipe2.c: Likewise.
4115         * lib/popen.c: Likewise.
4116         * lib/progreloc.c: Likewise.
4117         * lib/relocatable.c: Likewise.
4118         * lib/sigaction.c: Likewise.
4119         * lib/sigprocmask.c: Likewise.
4120         * lib/spawn-pipe.h: Likewise.
4121         * lib/spawn-pipe.c: Likewise.
4122         * lib/spawni.c: Likewise.
4123         * lib/stat-time.h: Likewise.
4124         * lib/w32spawn.h: Likewise.
4125         * tests/test-isatty.c: Likewise.
4126         * lib/config.charset: More comments.
4127         * doc/gnulib-intro.texi: Mention native Windows.
4128         * doc/posix-functions/_Exit_C99.texi: Likewise.
4129         * doc/posix-headers/fcntl.texi: Likewise.
4130
4131 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4132
4133         argp: Avoid crash if translator uses % characters in a translation.
4134         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4135         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4136
4137 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4138
4139         doc: C11 and C++11 are now official
4140         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4141         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4142         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4143         * modules/stdalign:
4144         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4145
4146 2012-01-06  Bruno Haible  <bruno@clisp.org>
4147
4148         uc-is-grapheme-break tests: Tweak.
4149         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4150         message.
4151
4152 2012-01-06  Bruno Haible  <bruno@clisp.org>
4153
4154         test-init.sh: correct the test for diff -u
4155         * tests/test-init.sh: Also redirect stdout to /dev/null.
4156
4157 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4158
4159         Use ', not `, for quoting output.
4160         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4161         (print_changelog_deltas, get_tool_versions, main program):
4162         * build-aux/git-version-gen:
4163         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4164         * build-aux/move-if-change (help):
4165         * build-aux/useless-if-before-free (usage, main program):
4166         * check-module (parse_module_file, usage)
4167         (find_included_lib_files, check_module):
4168         * lib/argmatch.c (main) [TEST]:
4169         * lib/argp-help.c (_help):
4170         * lib/getopt1.c (main) [TEST]:
4171         * lib/git-merge-changelog.c (usage):
4172         * lib/xstrtol-error.c (xstrtol_error):
4173         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4174         * m4/argz.m4 (gl_FUNC_ARGZ):
4175         * m4/bison.m4 (gl_BISON):
4176         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4177         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4178         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4179         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4180         * m4/gc-random.m4 (gl_GC_RANDOM):
4181         * m4/intl.m4 (gt_CHECK_DECL):
4182         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4183         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4184         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4185         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4186         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4187         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4188         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4189         * tests/test-dirname.c (main):
4190         * tests/test-getpass.c (main):
4191         * tests/test-iconvme.c (main):
4192         * tests/test-parse-datetime.c (LOG):
4193         * tests/test-xstrtoimax.sh:
4194         * tests/test-xstrtol.sh:
4195         * tests/test-xstrtoll.sh:
4196         * tests/test-xstrtoumax.sh:
4197         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4198         * top/GNUmakefile (abort-due-to-no-makefile):
4199         Quote 'like this', not `like this', as per the recent change to
4200         the GNU coding standards.
4201
4202 2012-01-05  Bruno Haible  <bruno@clisp.org>
4203
4204         strtoimax: Don't force a replacement on systems where intmax_t is int.
4205         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4206         'intmax_t' is not larger than 'int'.
4207         Reported by Pádraig Brady <P@draigBrady.com>.
4208
4209 2012-01-05  Bruno Haible  <bruno@clisp.org>
4210
4211         doc: Mention NetBSD bugs.
4212         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4213         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4214
4215 2012-01-05  Bruno Haible  <bruno@clisp.org>
4216
4217         strtoumax tests: Enhance tests.
4218         * tests/test-strtoumax.c (main): Add tests for large values.
4219
4220 2012-01-05  Bruno Haible  <bruno@clisp.org>
4221
4222         strtoimax: Work around AIX 5.1 bug.
4223         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4224         definition.
4225         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4226         Set HAVE_STRTOIMAX.
4227         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4228         REPLACE_STRTOIMAX.
4229         * modules/inttypes-incomplete (Makefile.am): Substitute
4230         REPLACE_STRTOIMAX.
4231         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4232         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4233         (Depends-on): Update conditions.
4234         * tests/test-strtoimax.c (main): Add tests for large values.
4235         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4236
4237 2012-01-05  Bruno Haible  <bruno@clisp.org>
4238
4239         inttypes: Modernize.
4240         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4241         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4242         (Makefile.am): Update inttypes.h rule.
4243
4244 2012-01-05  Jim Meyering  <meyering@redhat.com>
4245
4246         init.sh: don't waste a subshell just to redirect stderr
4247         * tests/init.sh: In testing for diff -u and diff -c, use a
4248         stderr-redirecting exec inside `...` rather than a subshell.
4249
4250         test-init.sh: avoid failure on HP-UX 11.00
4251         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4252         resolves to diff -c or cmp.  Reported by Bruno Haible.
4253
4254 2012-01-05  Bruno Haible  <bruno@clisp.org>
4255
4256         Tests for module 'strtoull'.
4257         * modules/strtoull-tests: New file.
4258         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4259
4260 2012-01-05  Bruno Haible  <bruno@clisp.org>
4261
4262         Tests for module 'strtoll'.
4263         * modules/strtoll-tests: New file.
4264         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4265
4266 2012-01-05  Bruno Haible  <bruno@clisp.org>
4267
4268         Tests for module 'strtoul'.
4269         * modules/strtoul-tests: New file.
4270         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4271
4272 2012-01-05  Bruno Haible  <bruno@clisp.org>
4273
4274         Tests for module 'strtol'.
4275         * modules/strtol-tests: New file.
4276         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4277
4278 2012-01-04  Jim Meyering  <meyering@redhat.com>
4279
4280         test-init.sh: accommodate Solaris 5.10's different diff -u output
4281         * tests/test-init.sh: Also exempt @@ lines from the comparison
4282         of diff output, since Solaris 5.10 and GNU diff formats differ.
4283         Reported by Stefano Lattarini.
4284
4285 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4286
4287         test-posixtm: don't assume signed integer wraparound
4288         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4289         after signed integer overflow.  Inspired by (though it may not
4290         fix) Bruno Haible's bug report in
4291         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4292
4293         Spell out "Windows 9x" and "Windows XP".
4294         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4295         "Windows 9x" and "WinXP" with "Windows XP".
4296
4297 2012-01-04  Jim Meyering  <meyering@redhat.com>
4298
4299         test-vc-list-files-cvs.sh: remove obsolete comment
4300         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4301         double exit.  Now that's all encapsulated via skip_ and Exit.
4302
4303 2012-01-04  Bruno Haible  <bruno@clisp.org>
4304
4305         Talk about "native Windows API", not "Win32".
4306         * lib/classpath.c: Update comments to mention native Windows.
4307         * lib/csharpexec.c: Likewise.
4308         * lib/dup2.c: Likewise.
4309         * lib/error.c: Likewise.
4310         * lib/fcntl.c: Likewise.
4311         * lib/filename.h: Likewise.
4312         * lib/findprog.c: Likewise.
4313         * lib/get-rusage-as.c: Likewise.
4314         * lib/get-rusage-data.c: Likewise.
4315         * lib/getpagesize.c: Likewise.
4316         * lib/javaexec.c: Likewise.
4317         * lib/msvc-inval.c: Likewise.
4318         * lib/msvc-nothrow.c: Likewise.
4319         * lib/nanosleep.c: Likewise.
4320         * lib/nonblocking.c: Likewise.
4321         * lib/printf-parse.c: Likewise.
4322         * lib/setlocale.c: Likewise.
4323         * lib/sigaction.c: Likewise.
4324         * lib/strerror_r.c: Likewise.
4325         * lib/tmpdir.c: Likewise.
4326         * lib/vasnprintf.c: Likewise.
4327         * lib/w32spawn.h: Likewise.
4328         * lib/waitpid.c: Likewise.
4329         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4330         * m4/locale-ar.m4: Likewise.
4331         * m4/locale-fr.m4: Likewise.
4332         * m4/locale-ja.m4: Likewise.
4333         * m4/locale-tr.m4: Likewise.
4334         * m4/locale-zh.m4: Likewise.
4335         * m4/printf.m4: Likewise.
4336         * tests/test-cloexec.c: Likewise.
4337         * tests/test-copy-acl.sh: Likewise.
4338         * tests/test-copy-file.sh: Likewise.
4339         * tests/test-file-has-acl.sh: Likewise.
4340         * tests/test-set-mode-acl.sh: Likewise.
4341         * tests/test-dup-safer.c: Likewise.
4342         * tests/test-dup2.c: Likewise.
4343         * tests/test-dup3.c: Likewise.
4344         * tests/test-fcntl.c: Likewise.
4345         * tests/test-nonblocking-pipe.h: Likewise.
4346         * tests/test-nonblocking-socket.h: Likewise.
4347         * tests/test-pipe.c: Likewise.
4348         * tests/test-pipe2.c: Likewise.
4349         * tests/test-spawn-pipe-child.c: Likewise.
4350         * doc/acl-resources.txt: Likewise.
4351         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4352         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4353         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4354         * lib/localcharset.c: Update comments to mention native Windows.
4355         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4356         * lib/localename.c: Likewise.
4357         * lib/progreloc.c: Likewise.
4358         * lib/relocatable.c: Likewise.
4359         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4360         (windows_compute_revents): Renamed from win32_compute_revents.
4361         (windows_compute_revents_socket): Renamed from
4362         win32_compute_revents_socket.
4363         * lib/select.c: Update comments to mention native Windows.
4364         (windows_poll_handle): Renamed from win32_poll_handle.
4365         * m4/threadlib.m4: Update comments to mention native Windows.
4366         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4367         --enable-threads=windows instead of --enable-threads=win32. Set
4368         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4369         * lib/glthread/lock.h: Update comments to mention native Windows.
4370         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4371         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4372         USE_WIN32_THREADS.
4373         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4374         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4375         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4376         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4377         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4378         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4379         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4380         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4381         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4382         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4383         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4384         * tests/test-tls.c: Likewise.
4385         Rationale:
4386         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4387         on both 32-bit and 64-bit Windows systems.
4388         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4389         line of distinction is between "native Windows" on one side and Unix/
4390         POSIX systems on the other side. More details in
4391         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4392         Suggested by Paul Eggert.
4393
4394 2012-01-03  Bruno Haible  <bruno@clisp.org>
4395
4396         isatty: Support for MSVC 9.
4397         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4398         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4399         (_isatty_nothrow): New function.
4400         (isatty): Use it instead of _isatty.
4401         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4402         * lib/poll.c (IsConsoleHandle): Likewise.
4403         * lib/select.c (IsConsoleHandle): Likewise.
4404         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4405         (gl_PREREQ_ISATTY): New macro.
4406         * modules/isatty (Depends-on): Add msvc-inval.
4407         (configure.ac): Invoke gl_PREREQ_ISATTY.
4408
4409 2012-01-03  Jim Meyering  <meyering@redhat.com>
4410
4411         maint.mk: remove temporary transition aid from over 1.5 years ago
4412         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4413         purpose was to aid in the transition (avoiding silent malfunction)
4414         from that old name to the new _sc_search_regexp.  This shim was
4415         added by commit 219c504b.
4416
4417         init.sh: do not try to accommodate compare arguments starting with "-"
4418         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4419         compare arguments that start with "-".  Besides, we do not worry
4420         about this when invoking diff or cmp; why start now with sed?
4421         Using "--" to separate options from argument would trigger sed
4422         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4423         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4424
4425 2012-01-02  Bruno Haible  <bruno@clisp.org>
4426
4427         Enhance tests for module 'isatty'.
4428         * modules/isatty-tests (Depends-on): Add pipe-posix.
4429         * tests/test-isatty.c: Include <fcntl.h>.
4430         (DEV_NULL): New macro.
4431         (main): Test the resut of isatty() also on regular files, pipes, and
4432         /dev/null.
4433
4434         New module 'isatty'.
4435         * lib/unistd.in.h (isatty): New declaration.
4436         * lib/isatty.c: New file, based on an idea of
4437         Bastien Roucariès <roucaries.bastien@gmail.com>.
4438         * m4/isatty.m4: New file.
4439         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4440         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4441         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4442         REPLACE_ISATTY.
4443         * modules/isatty: New file.
4444         * doc/posix-functions/isatty.texi: Mention the new module.
4445         Suggested by Paolo Bonzini.
4446
4447 2012-01-02  Bruno Haible  <bruno@clisp.org>
4448
4449         canonicalize: Tweak 2011-12-29 commit.
4450         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4451         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4452
4453 2012-01-02  Jim Meyering  <meyering@redhat.com>
4454
4455         gitlog-to-changelog: describe input syntax in --help output
4456         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4457
4458         gitlog-to-changelog: fix typo in --help: show backslash before email @
4459         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4460         in sources, but not in actual output.
4461
4462 2011-12-30  Jim Meyering  <meyering@redhat.com>
4463
4464         gitlog-to-changelog: don't malfunction when name contains %-directive
4465         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4466         in a name string cause trouble.  E.g., with a user name of "%s",
4467         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4468
4469 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4470
4471         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4472         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4473         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4474         the "  (tiny change)" notation that is appended to the standard
4475         ChangeLog "date  name  email" header line.
4476
4477 2012-01-01  Jim Meyering  <meyering@redhat.com>
4478
4479         test-framework-sh: init.sh: fix "make dist" failure
4480         When using gnulib-tool's --with-tests option and any module that
4481         depends on test-framework-sh, "make dist" would fail due to the
4482         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4483         in the gltests directory, and not in the gllib/ directory.
4484         One way to work around that is to move the EXTRA_DIST += init.sh
4485         from the primary module to the -tests one:
4486         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4487         * modules/test-framework-sh (Makefile.am): ...not here.
4488         Reported by Tom G. Christensen in
4489         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4490
4491         version-etc: update copyright year reported by --version
4492         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4493
4494 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4495
4496         canonicalize: only stat() if required
4497         * lib/canonicalize.c (canonicalize_filename_mode):
4498         Avoid calling l?stat() when both CAN_MISSING,
4499         and CAN_NOLINKS are set, as we neither need
4500         to resolve symlinks or test component existence.
4501
4502 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4503
4504         doc: cover st_ino issues once; add OpenVMS etc.
4505         * doc/posix-functions/stat.texi (stat):
4506         * doc/posix-functions/lstat.texi (lstat):
4507         * doc/posix-functions/fstatat.texi (fstatat):
4508         * doc/posix-functions/fstat.texi (fstat):
4509         Move general 'struct stat' stuff to sys_stat.texi,
4510         leaving behind a pointer.
4511         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4512         Merge duplicate info about 'struct stat' problems into here.
4513         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4514         and suggest partial workarounds.
4515
4516         same-inode: port to OpenVMS
4517         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4518         three st_ino values.
4519
4520 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4521
4522         canonicalize: fix references to stat() and lstat()
4523         * lib/canonicalize.c (canonicalize_filename_mode):
4524         Ensure references always resolve to a replacement
4525         function if required (even via a macro).
4526
4527 2011-12-30  Jim Meyering  <meyering@redhat.com>
4528
4529         gitlog-to-changelog: remove a little duplication
4530         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4531         rather than twice.
4532
4533 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4534
4535         canonicalize: add support for not resolving symlinks
4536         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4537         indicate we don't want to follow symlinks.  Also
4538         provide CAN_MODE_MASK to aid setting these existing
4539         mutually exclusive values.
4540         * lib/canonicalize.c (canonicalize_filename_mode):
4541         Extract the flags from can_mode parameter, which
4542         are currently just used to select between stat()
4543         and lstat().  Also ensure that mutually exclusive
4544         values are flagged immediately as invalid.
4545         * tests/test-canonicalize.c: Verify symlinks are
4546         not followed, and that invalid flag combinations
4547         are diagnosed.
4548
4549 2011-12-25  Jim Meyering  <meyering@redhat.com>
4550
4551         gitlog-to-changelog: do not clump multi-paragraph entries
4552         Identical header lines (date,name,email+coauthors) are suppressed,
4553         thus putting all entries with those same characteristics under
4554         a single header.  However, when a log entry consists of two or
4555         more paragraphs, it may not be clear where it starts and ends.
4556         This change makes it so that such an entry is always separated
4557         from others by a header line, even when that header would
4558         otherwise be suppressed.
4559         * build-aux/gitlog-to-changelog: Implement the above.
4560         Inspired by a related request from Stefano Lattarini in
4561         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4562
4563 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4564
4565         announce-gen: fix `cmd' typo in diagnostic
4566         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4567         diagnostic: a missing '$' meant that the command was not output.
4568
4569 2011-12-23  Jim Meyering  <meyering@redhat.com>
4570
4571         test-framework-sh: distribute init.sh
4572         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4573         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4574         fail due to the lack of init.sh.
4575
4576         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4577         * modules/atexit-tests: Rather than listing tests/init.sh,
4578         now that there's a module for it, simply depend on that new module.
4579         * modules/closein-tests: Likewise.
4580         * modules/exclude-tests: Likewise.
4581         * modules/getcwd-tests: Likewise.
4582         * modules/perror-tests: Likewise.
4583         * modules/pread-tests: Likewise.
4584         * modules/pwrite-tests: Likewise.
4585         * modules/vc-list-files-tests: Likewise.
4586         * modules/verify-tests: Likewise.
4587         * modules/xalloc-die-tests: Likewise.
4588         * modules/xstrtoimax-tests: Likewise.
4589         * modules/xstrtol-tests: Likewise.
4590         * modules/xstrtoll-tests: Likewise.
4591         * modules/xstrtoumax-tests: Likewise.
4592         * modules/yesno-tests: Likewise.
4593
4594 2011-12-22  Jim Meyering  <meyering@redhat.com>
4595
4596         test-framework-sh: add minimal tests of init.sh's compare function
4597         * modules/test-framework-sh-tests: New file.
4598         * tests/test-init.sh: New file.
4599
4600         test-framework-sh: new module
4601         * modules/test-framework-sh: New file.
4602         * MODULES.html.sh (Support for maintaining and releasing projects):
4603         List it.
4604
4605         init.sh: do not emit simulated diff output to stderr
4606         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4607
4608 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4609
4610         .gitignore: ignore gnulib.dvi and regex.info
4611         * doc/.gitignore:add gnulib.dvi and regex.info
4612
4613 2011-12-22  Jim Meyering  <meyering@redhat.com>
4614
4615         init.sh: correct previous change
4616         * tests/init.sh (compare): My previous change was wrong.
4617         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4618
4619         init.sh: avoid unwarranted test failure when using "set -e"
4620         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4621         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4622         a use like "compare exp out" would get evoke an unconditional failure.
4623
4624 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4625
4626         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4627         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4628         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4629         autoreconf that did not.
4630         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4631         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4632
4633 2011-12-17  Jim Meyering  <meyering@redhat.com>
4634
4635         bootstrap: remove some now-unneeded code
4636         This script arose back when gnulib-tool was young.
4637         Since then, it has seen improvements that render much of this
4638         script unnecessary.  In particular, it can now make symlinks
4639         to the files it uses.  Also, I no longer see as much value in
4640         marking files as read-only via comments.
4641         If you relied on the symlink-creation feature of the preceding
4642         version of this script, you can get most of that functionality
4643         by adding the --symlink option to the definition of
4644         gnulib_tool_option_extras in your bootstrap.conf file.
4645         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4646         Run autopoint and libtoolize *before* gnulib-tool.
4647         After it, run an abbreviated autoreconf, rather than a loop around
4648         all tools.
4649         (slirp, bt_mark_as_generated): Remove functions.
4650
4651 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4652
4653         ftoastr: fix typo
4654         * lib/ftoastr.h: Fix misspelling in comment.
4655
4656 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4657
4658         * top/README-release: fix punctuation.
4659
4660 2011-12-17  Jim Meyering  <meyering@redhat.com>
4661
4662         bootstrap: correct the recent buildreq change
4663         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4664         had no effect.
4665         * build-aux/bootstrap (buildreq): Bracket each search term with
4666         "*...*", so that the shell "case" statement works as intended.
4667         Add comments.
4668
4669 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4670
4671         build: let bootstrap resort to wget when downloading .po files
4672         * build-aux/bootstrap (download_po_files): Fallback to wget when
4673         downloading the .po files via rsync fails.  This is necessary to
4674         bootstrap from behind a strict firewall.
4675
4676 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4677
4678         stdint: don't assume C++11 when compiling with g++
4679         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4681         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4682         work also in C++ before C++11, as that improperly inhibits
4683         generating a substitute stdint.h for that case.
4684
4685 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4686
4687         alloca: protect comment from gnulib-tool
4688         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4689         that gnulib-tool doesn't think it's a license, and munge it to
4690         say "GCC version 3".
4691
4692 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4693
4694         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4695         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4696         $(abs_top_builddir) instead of $(top_builddir).
4697
4698 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4699
4700         strftime-tests: also test nanoseconds
4701         * tests/test-strftime.c (T): Add a test of %N.
4702
4703 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4704
4705         inttypes, stdint: add C++11 support
4706         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4707         when including inttypes.h and stdint.h.  Support this change to
4708         the standard.
4709         * doc/posix-headers/inttypes.texi (inttypes.h):
4710         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4711         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4712         Define if not defined already, for the benefit of pre-C++11 hosts.
4713         Define the standard format macros (e.g., PRId8) always.
4714         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4715         Likewise, if __cpluspus.  Define the standard constant and limit
4716         macros (e.g., INT8_C, INT8_MAX) always.
4717         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4718         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4719         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4720         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4721         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4722         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4723         Likewise.
4724
4725 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4726
4727         nonblocking tests: Fix test failure on Linux/PPC.
4728         Suggested by Prerna Saxena in
4729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4730         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4731         Set to 1100000.
4732
4733 2011-12-12  Jim Meyering  <meyering@redhat.com>
4734
4735         argmatch: don't hard-code `' when listing valid option arguments
4736         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4737         use the quote function to add quotes.  Use fputs rather than
4738         fprintf for the format string with no format directive.
4739
4740 2011-12-07  Eric Blake  <eblake@redhat.com>
4741
4742         bootstrap: detect tools required by gnulib-tool
4743         * build-aux/bootstrap (buildreq): Provide minimum implicit
4744         dependencies.
4745         * DEPENDENCIES: Mention patch as a prereq.
4746
4747 2011-12-04  Bruno Haible  <bruno@clisp.org>
4748
4749         sethostname: Port to Windows platforms.
4750         * lib/sethostname.c: Provide an alternate implementation for Windows
4751         platforms.
4752         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4753         (main): Skip the test if sethostname() fails with EPERM. On Windows
4754         platforms, don't check the result of gethostname().
4755
4756 2011-12-04  Bruno Haible  <bruno@clisp.org>
4757             Jim Meyering  <meyering@redhat.com>
4758
4759         tests: Avoid spurious error message on platforms without mktemp program.
4760         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4761
4762 2011-12-04  Bruno Haible  <bruno@clisp.org>
4763
4764         sethostname: Fix documentation.
4765         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4766         "not fixed" section.
4767
4768 2011-12-03  Bruno Haible  <bruno@clisp.org>
4769
4770         gnulib-tool: Verify that the License field is present and non-empty.
4771         * gnulib-tool (func_get_license_raw): New function, extracted from
4772         func_get_license.
4773         (func_get_license): Use it. Warn if the module is not a test module and
4774         has no license.
4775         Suggested by Jim Meyering.
4776
4777 2011-12-03  Bruno Haible  <bruno@clisp.org>
4778
4779         sethostname tests: Fix link error on mingw.
4780         * tests/test-sethostname1.c: New file, extracted from
4781         tests/test-sethostname.c.
4782         * tests/test-sethostname2.c: New file, extracted from
4783         tests/test-sethostname.c.
4784         * tests/test-sethostname.c: Remove file.
4785         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4786         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4787         (Depends-on): Add gethostname.
4788         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4789         Link the latter with $(GETHOSTNAME_LIB).
4790
4791         sethostname tests: Fix compilation error on mingw.
4792         * tests/test-sethostname.c: Don't include <sys/types.h>.
4793         (geteuid): Use a dummy value without uid_t.
4794         * modules/sethostname-tests (Depends-on): Remove sys_types.
4795
4796         sethostname tests: Avoid a gcc warning.
4797         * tests/test-sethostname.c (main): Remove an unused variable.
4798
4799         Tweak last commit.
4800         * modules/sethostname-tests (Files): Sort by decreasing importance.
4801         (configure.ac): Check for geteuid.
4802         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4803         the test when there's nothing to test. Drop an unnecessary cast.
4804         Improve an error message. Verify that the final sethostname() call
4805         succeeds.
4806
4807 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4808
4809         Add a test suite for the sethostname module.
4810         * modules/sethostname-tests: New file.  A test program
4811         for the sethostname module.
4812         * tests/test-sethostname.c: Likewise.
4813
4814 2011-12-03  Bruno Haible  <bruno@clisp.org>
4815
4816         Tweak last commit.
4817         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4818         Fix preprocessor directives indentation. Fix typos.
4819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4820         * modules/unistd (Makefile): Likewise.
4821
4822 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4823
4824         Integrate the sethostname module into unistd.
4825         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4826         into the unistd.h header.
4827         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4828         preprocessor directives.
4829         * modules/unistd: Setup the Makefile substitutions of the
4830         SETHOSTNAME preprocessor directives.
4831
4832 2011-12-03  Bruno Haible  <bruno@clisp.org>
4833
4834         Tweak last commit.
4835         * lib/sethostname.c: Don't include <string.h>.
4836         (sethostname): No need to copy the argument string to the stack. Don't
4837         call clearerr. Preserve errno when fprintf failed.
4838         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4839         Don't invoke AC_REPLACE_FUNCS.
4840         * modules/sethostname (Link): Remove empty section.
4841         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4842         failure problem.
4843
4844 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4845
4846         New module 'sethostname'.
4847         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4848         for systems that lack it.
4849         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4850         sethostname declaration and function.
4851         * modules/sethostname: New file.  Define the sethostname module.
4852
4853 2011-12-03  Bruno Haible  <bruno@clisp.org>
4854
4855         Tweak last commit.
4856         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4857
4858 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4859
4860         Split the HOST_NAME_MAX detection into a separate m4 macro.
4861         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4862         macro so it can be used by the pending sethostname module.
4863
4864 2011-12-03  Bruno Haible  <bruno@clisp.org>
4865
4866         Fix module descriptions syntax.
4867         * modules/argv-iter (License): Fix syntax.
4868         * modules/di-set (License): Likewise.
4869         * modules/ino-map (License): Likewise.
4870         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4871
4872 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4873
4874         stdalign: port to Clang 3.0
4875         Problem reported by Simon Josefsson in
4876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4877         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4878         which has <stdalign.h> but which does not define alignof.
4879         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4880
4881 2011-12-01  Eric Blake  <eblake@redhat.com>
4882
4883         mktempd: silence dd usage
4884         * build-aux/mktempd (rand_bytes): Silence dd.
4885
4886 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4887
4888         manywarnings: Don't mention gcc version in docstring.
4889         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4890         Jim Meyering <meyering@redhat.com>.
4891
4892 2011-11-30  Jim Meyering  <meyering@redhat.com>
4893
4894         hash: mark a few floating point constants with "f" suffix
4895         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4896         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4897         floating point constants with "f", since they're destined to be
4898         saved/used as "float"s.
4899
4900 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4901
4902         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4903         * tests/test-float.c (test_long_double): Correct and re-enable the
4904         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4905
4906 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4907
4908         Avoid subtracting two pointers that don't point into the same block.
4909         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4910         only pointers into the same memory block are subtracted. We cannot
4911         assume that sizeof (ptrdiff_t) == sizeof (void *).
4912
4913 2011-11-29  Eric Blake  <eblake@redhat.com>
4914
4915         maint.mk: add syntax check for use of compare from init.sh
4916         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4917         moved here from coreutils.
4918
4919         manywarnings: drop -Wunsuffixed-float-constants
4920         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4921         '1.0D', which is the only way to silence this warning for 'double'.
4922
4923 2011-11-29  Jim Meyering  <meyering@redhat.com>
4924
4925         hash: mark compute_bucket_size with the pure attribute
4926         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4927
4928         quotearg, propername: correct pragma guard expression
4929         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4930         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4931
4932 2011-11-28  Jim Meyering  <meyering@redhat.com>
4933
4934         propername: do not mark proper_name with the const attribute
4935         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4936         since it examines data pointed to by its parameter.
4937         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4938         the suggestion from -Wsuggest-attribute=const.
4939
4940         propername: mark one more function as const
4941         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4942
4943 2011-11-27  Jim Meyering  <meyering@redhat.com>
4944
4945         mark functions with const and pure attributes
4946
4947         Mark functions per suggestions from gcc-4.6 when using these options:
4948         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4949         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4950         Follow these guidelines: when possible, apply the attribute to
4951         an extern declaration, not to its definition.  Apply it to the
4952         definition only when the definition is static.
4953         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4954         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4955         * lib/base64.h (isbase64): Likewise.
4956         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4957         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4958         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4959         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4960         (c_tolower, c_toupper): Likewise.
4961         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4962         * lib/chdir-long.c (find_non_slash): Likewise.
4963         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4964         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4965         * lib/file-type.h (file_type): Likewise.
4966         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4967         * lib/filevercmp.c (verrevcmp): Likewise.
4968         * lib/freadahead.h (freadahead): Likewise.
4969         * lib/fts.c (fts_maxarglen): Likewise.
4970         * lib/hash-pjw.h (hash_pjw): Likewise.
4971         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4972         * lib/hash.c (is_prime, next_prime): Likewise.
4973         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4974         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4975         (hash_table_ok, hash_get_first, hash_string): Likewise.
4976         (compute_bucket_size): Likewise.
4977         * lib/i-ring.h (i_ring_empty): Likewise.
4978         * lib/isnan.c (isnanl): Likewise.
4979         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4980         * lib/memcasecmp.h (memcasecmp): Likewise.
4981         * lib/memchr2.h (memchr2): Likewise.
4982         * lib/memcmp2.h (memcmp2): Likewise.
4983         * lib/parse-datetime.y (lookup_zone): Likewise.
4984         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4985         [!WINDOWS_SOCKETS]: Likewise.
4986         * lib/strnlen1.h (strnlen1): Likewise.
4987         * lib/uniwidth.in.h (uc_width): Likewise.
4988         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4989         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4990         (quoting_options_from_style): Add a comment.
4991         * lib/propername.h (proper_name): Add a comment.
4992
4993 2011-11-27  Bruno Haible  <bruno@clisp.org>
4994
4995         Remove unused macros from !_LIBC code in glibc-borrowed files.
4996         * lib/fnmatch.c (STRCOLL): Remove macro.
4997         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4998         * lib/glob.c (__stat, __readdir64): Remove macros.
4999         * lib/tempname.c (__open64, __xstat64): Remove macros.
5000         Suggested by Paul Eggert.
5001
5002 2011-11-27  Bruno Haible  <bruno@clisp.org>
5003
5004         getcwd: Fix link error on MSVC 9.
5005         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5006
5007 2011-11-27  Bruno Haible  <bruno@clisp.org>
5008
5009         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5010         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5011         HAVE_OPENDIR is 0.
5012         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5013         HAVE_CLOSEDIR is 0.
5014         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5015         is 0.
5016         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5017
5018 2011-11-27  Bruno Haible  <bruno@clisp.org>
5019
5020         getcwd: Fix bug from 2011-08-17.
5021         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5022         platforms that need it.
5023         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5024         code of 4 to be a failure, not a success. This ensures that
5025         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5026
5027 2011-11-27  Bruno Haible  <bruno@clisp.org>
5028
5029         binary-io tests: Avoid test failure on mingw when libtool is used.
5030         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5031         Don't verify the size of t-bin-out1.tmp here.
5032         * tests/test-binary-io.sh: Verify it here.
5033         Reported by Simon Josefsson.
5034
5035 2011-11-26  Bruno Haible  <bruno@clisp.org>
5036
5037         Fix conflict between two instantiations of module 'unistd'.
5038         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5039         ${include_guard_prefix} also in the autoconf snippet.
5040         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5042         GNULIB_UNISTD_H_GETOPT.
5043         * modules/getopt-posix (configure.ac): Set the
5044         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5045         * modules/getopt-gnu (configure.ac): Likewise.
5046         * modules/unistd (Makefile.am): Change the substitution value of
5047         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5048         Reported by Simon Josefsson.
5049
5050 2011-11-25  Bruno Haible  <bruno@clisp.org>
5051
5052         pagealign_alloc: Doc and comments.
5053         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5054         module.
5055         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5056
5057 2011-11-25  Jim Meyering  <meyering@redhat.com>
5058
5059         test-update-copyright.sh: avoid false-positive failure
5060         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5061         around false positive failure on Cygwin/Windows.  The latter was
5062         matching erroneously-created files with names like
5063         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5064
5065 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5066
5067         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5068         * m4/valgrind-tests.m4: Check that the parameters that will be
5069         used works, not just a subset of them.  Reported by Bruno Haible
5070         <bruno@clisp.org>.
5071
5072 2011-11-24  Jim Meyering  <meyering@redhat.com>
5073
5074         test-stdalign.c: comment out long double tests
5075         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5076         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5077         error: '_Alignas' specifiers cannot reduce alignment of \
5078         'static_longdouble_alignas'.
5079
5080 2011-11-22  Jim Meyering  <meyering@redhat.com>
5081
5082         init.sh: make "compare /dev/null FILE" output more readable
5083         * tests/init.sh (compare_): Document the preferred order of arguments.
5084         (emit_diff_u_header_): New function.
5085         (compare_dev_null_): Emit a simulated diff, rather than just the
5086         contents of the unexpected file.  Suggestion from Bruno Haible.
5087
5088 2011-11-21  Jim Meyering  <meyering@redhat.com>
5089             Eric Blake  <eblake@redhat.com>
5090
5091         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5092         * tests/init.sh: Make our compare function slightly more portable.
5093         Reported by Bruno Haible in
5094         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5095
5096 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5097
5098         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5099         before using it, in code that ends up in config.h.
5100
5101 2011-11-20  Bruno Haible  <bruno@clisp.org>
5102
5103         getcwd: Work around getcwd bug on AIX 5..7.
5104         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5105         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5106         Use a different value for gl_cv_func_getcwd_path_max. Move the
5107         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5108         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5109         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5110         Define HAVE_MINIMALLY_WORKING_GETCWD.
5111         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5112         where it is not even minimally working, that is, on AIX.
5113         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5114         m4/getcwd-path-max.m4.
5115         (main): Update exit code computation.
5116         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5117         getcwd does not handle long file names.
5118
5119 2011-11-20  Bruno Haible  <bruno@clisp.org>
5120
5121         getcwd: Fix bug from 2009-09-10.
5122         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5123         like "no".
5124
5125 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5126
5127         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5128
5129 2011-11-20  Bruno Haible  <bruno@clisp.org>
5130
5131         fma tests: Avoid shadowing local variables.
5132         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5133         expected.
5134
5135 2011-11-20  Bruno Haible  <bruno@clisp.org>
5136
5137         copysignf tests: Fix.
5138         * tests/test-copysignf.c: Fix signature check.
5139
5140 2011-11-20  Bruno Haible  <bruno@clisp.org>
5141
5142         fma: Remove unused code.
5143         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5144         unused macros.
5145
5146 2011-11-20  Bruno Haible  <bruno@clisp.org>
5147
5148         sethostname: Fix doc about AIX.
5149         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5150         sethostname; it has it.
5151
5152         sethostname: Mention more portability problems.
5153         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5154         problem.
5155         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5156
5157 2011-11-19  Bruno Haible  <bruno@clisp.org>
5158
5159         Depend on module fcntl-h when AT_FDCWD is used.
5160         * modules/utimens (Depends-on): Add fcntl-h.
5161         * modules/areadlinkat (Depends-on): Likewise.
5162         * modules/areadlinkat-with-size (Depends-on): Likewise.
5163         * modules/faccessat (Depends-on): Likewise.
5164         * modules/fchmodat (Depends-on): Likewise.
5165         * modules/fchownat (Depends-on): Likewise.
5166         * modules/getcwd (Depends-on): Likewise.
5167         * modules/mkdirat (Depends-on): Likewise.
5168         * modules/mkfifoat (Depends-on): Likewise.
5169         * modules/readlinkat (Depends-on): Likewise.
5170         * modules/symlinkat (Depends-on): Likewise.
5171         * modules/dup2-tests (Depends-on): Likewise.
5172         * modules/fdutimensat-tests (Depends-on): Likewise.
5173         * modules/futimens-tests (Depends-on): Likewise.
5174
5175 2011-11-19  Bruno Haible  <bruno@clisp.org>
5176
5177         euidaccess: Update a comment.
5178         * lib/euidaccess.c: Update comment about platforms with faccessat.
5179
5180 2011-11-19  Bruno Haible  <bruno@clisp.org>
5181
5182         openat: Fix file list.
5183         * modules/openat (Files): Remove lib/at-func.c.
5184
5185 2011-11-19  Bruno Haible  <bruno@clisp.org>
5186
5187         fstatat: Simplify.
5188         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5189         gnulib should define rpl_fstatat, there is a
5190         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5191
5192 2011-11-19  Bruno Haible  <bruno@clisp.org>
5193
5194         Ensure 'inline' can be used in tests/test-utimens-common.h.
5195         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5196         * modules/futimens-tests (configure.ac): Likewise.
5197         * modules/utimens-tests (configure.ac): Likewise.
5198         * modules/utimensat-tests (configure.ac): Likewise.
5199
5200 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5201
5202         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5203         not hash_insert0.
5204         (hash_insert_if_absent): Doc fix.
5205
5206 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5207
5208         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5209
5210 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5211
5212         test-getcwd: disambiguate exit status
5213         * tests/test-getcwd.c (test_long_name): Return 0..7.
5214         (main): Exit with an unambiguous exit status.  The old
5215         code yielded a mysterious mixture of two failure codes.
5216
5217         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5218         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5219         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5220         rpl_fstatat or fstatat.  This should fix the other problem
5221         reported by Kai Habel in
5222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5223         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5225         and I reproduced it on a Solaris 8 host we still have in production.
5226
5227 2011-11-18  Jim Meyering  <meyering@redhat.com>
5228
5229         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5230         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5231         Add a sentence to the comment.
5232         (hash_insert0): New function that simply calls hash_insert_if_absent.
5233         * lib/hash.h (hash_insert_if_absent): Declare it.
5234         (hash_insert0): Add deprecation attribute.
5235         (_GL_ATTRIBUTE_DEPRECATED): Define.
5236         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5237         not hash_insert0.
5238         * NEWS: Mention it, even though it's not really an incompatible change.
5239
5240 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5241
5242         openat: avoid compilation failure due to lack of <errno.h> inclusion
5243         * lib/openat.c: Include <errno.h>.
5244
5245 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5246
5247         * modules/getcwd (Depends-on): Add fdopendir.
5248         This fixes one of the two problems reported by Kai Habel in
5249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5250
5251         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5252         stdalign problem reported by Ian Beckwith in
5253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5254         * modules/crypto/gc-arcfour (Depends-on):
5255         Depend conditionally on crypto/arcfour.
5256         * modules/crypto/gc-arctwo (Depends-on):
5257         Depend conditionally on crypto/arctwo.
5258         * modules/crypto/gc-des (Depends-on):
5259         Depend conditionally on crypto/des.
5260         * modules/crypto/gc-hmac-md5 (Depends-on):
5261         Depend conditionally on crypto/hmac-md5.
5262         * modules/crypto/gc-hmac-sha1 (Depends-on):
5263         Depend conditionally on crypto/hmac-sha1.
5264         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5265         * modules/crypto/gc-md4 (Depends-on):
5266         Depend conditionally on crypto/md4.
5267         * modules/crypto/gc-md5 (Depends-on):
5268         Depend conditionally on crypto/md5.
5269         * modules/crypto/gc-rijndael (Depends-on):
5270         Depend conditionally on crypto/rijndael.
5271         * modules/crypto/gc-sha1 (Depends-on):
5272         Depend conditionally on crypto/sha1.
5273         * modules/crypto/gc-arcfour:
5274         * modules/crypto/gc-arctwo:
5275         * modules/crypto/gc-des:
5276         * modules/crypto/gc-hmac-md5:
5277         * modules/crypto/gc-hmac-sha1:
5278         * modules/crypto/gc-md2:
5279         * modules/crypto/gc-md4:
5280         * modules/crypto/gc-md5:
5281         * modules/crypto/gc-rijndael:
5282         * modules/crypto/gc-sha1:
5283         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5284         now that the conditional dependencies do the work for us.
5285
5286 2011-11-17  Jim Meyering  <meyering@redhat.com>
5287
5288         tests: factor st_ctime-comparison out of two headers
5289         * tests/test-utimens-common.h (ctime_compare): Define.
5290         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5291         * tests/test-lutimens.h (test_lutimens): Likewise.
5292         * tests/test-utimens.h (test_utimens): Likewise.
5293
5294         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5295         Invoke the test program via an init.sh-using wrapper.
5296         * tests/test-getcwd.sh: New file.
5297         * modules/getcwd-tests (Files): Add it.
5298         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5299
5300 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5301
5302         gitlog-to-changelog: support multi-author commits.
5303         The FSF cares about keeping track of all authors of patches to its
5304         projects, but Git doesn't provide obvious support for multi-author
5305         changesets. Consensus seems to be forming around the use of extra
5306         Signed-off-by inspired lines in the log message formatted as
5307         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5308         multi-author commits between version control systems.
5309         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5310         log message and output in standard ChangeLog multi-author format.
5311         Reported by Peter Rosin <peda@lysator.liu.se>
5312
5313 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5314             Bruno Haible  <bruno@clisp.org>
5315
5316         Fix some modules' file list.
5317         * modules/fstatat (Files): Add m4/lstat.m4.
5318         * modules/openat (Files): Likewise.
5319         * modules/unlinkat (Files): Likewise.
5320
5321 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5322
5323         maint.mk: fix tight-scope.mk generation in VPATH builds.
5324         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5325         reference with $(srcdir) so that the file is found correctly even
5326         when running `make syntax-check' in a VPATH build.
5327
5328 2011-11-13  Bruno Haible  <bruno@clisp.org>
5329             Jim Meyering  <meyering@redhat.com>
5330
5331         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5332         * tests/init.sh (compare): Remove "No differences encountered" or
5333         synonymous output from the 'diff' program.
5334
5335 2011-11-13  Bruno Haible  <bruno@clisp.org>
5336
5337         Makefile: Tweak indentation.
5338         * Makefile: Use tab as first character in every line that contains rule
5339         commands.
5340
5341 2011-11-13  Bruno Haible  <bruno@clisp.org>
5342
5343         Syntax check for copyright statements.
5344         * check-copyright: New file.
5345         * Makefile (sc_check_copyright): New rule.
5346
5347 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5348
5349         * build-aux/git-version-gen: Add --prefix to configure the tag
5350         match string.
5351
5352 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5353
5354         * build-aux/git-version-gen: Add --help and --version.
5355
5356 2011-11-12  Jim Meyering  <meyering@redhat.com>
5357
5358         revamp the other test-exclude?.sh scripts to use init.sh, too
5359         * tests/test-exclude1.sh: Use init.sh.
5360         * tests/test-exclude2.sh: Likewise.
5361         * tests/test-exclude3.sh: Likewise.
5362         * tests/test-exclude4.sh: Likewise.
5363         * tests/test-exclude5.sh: Likewise.
5364         * tests/test-exclude6.sh: Likewise.
5365         * tests/test-exclude7.sh: Likewise.
5366         * tests/test-exclude8.sh: Likewise.
5367         * modules/exclude-tests (Files): List init.sh.
5368
5369         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5370         These shell scripts ignored failure of the binary test-exclude,
5371         so making the latter return 77 didn't cause them to be skipped.
5372         * tests/test-exclude5.sh: Exit with test-exclude's error status
5373         when that program fails.  Revamp to use init.sh.
5374         * tests/test-exclude2.sh: Likewise.
5375
5376         test-exclude: fix a typo
5377         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5378
5379 2011-11-11  Bruno Haible  <bruno@clisp.org>
5380
5381         obstack: Fix compilation error on MSVC 9.
5382         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5383
5384 2011-11-11  Jim Meyering  <meyering@redhat.com>
5385
5386         test-exclude: skip tests rather than failing on deficient systems
5387         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5388         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5389         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5390         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5391
5392 2011-11-10  Bruno Haible  <bruno@clisp.org>
5393
5394         ptsname_r test: Avoid gcc warning on glibc systems.
5395         * tests/test-ptsname_r.c (null_ptr): New function.
5396         (test_errors): Use it.
5397
5398 2011-11-10  Bruno Haible  <bruno@clisp.org>
5399
5400         ptsname_r: Avoid compilation error on OSF/1 5.1.
5401         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5403         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5404         function is not declared or incompatibly declared.
5405         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5406         * modules/ptsname_r (Depends-on, configure.ac): Update.
5407         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5408
5409 2011-11-10  Bruno Haible  <bruno@clisp.org>
5410
5411         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5412         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5413         When cross-compiling, guess yes on all platforms except AIX.
5414         Reported by Ludovic Courtès <ludo@gnu.org>.
5415
5416 2011-11-09  Bruno Haible  <bruno@clisp.org>
5417
5418         ptsname_r tests: Fix bugs.
5419         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5420         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5421
5422 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5423
5424         fstatat: work with cross-compilation
5425         Problem reported by Ludovic Courtès in
5426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5427         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5428         "cross-compiling" and assume the bug is present.  Replace
5429         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5430         an inverted sense, to be more conservative about our assumptions.
5431         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5432
5433 2011-11-09  Bruno Haible  <bruno@clisp.org>
5434
5435         Improve MODULES.html output.
5436         * modules/mkfifoat (Description): Use the word "function".
5437         * modules/readlinkat (Description): Likewise.
5438         * modules/symlinkat (Description): Likewise.
5439
5440 2011-11-09  Eric Blake  <eblake@redhat.com>
5441
5442         ptsname_r-tests: new test module
5443         * modules/ptsname_r-tests: New module.
5444         * tests/test-ptsname_r.c: New file.
5445
5446         ptsname_r: new module
5447         * modules/ptsname_r: New module.
5448         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5449         * lib/ptsname.c (__ptsname_r): Split...
5450         * lib/ptsname_r.c: ...into new file.
5451         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5452         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5453         * modules/stdlib (Makefile.am): Substitute witnesses.
5454         * lib/stdlib.in.h (ptsname_r): Declare it.
5455         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5456         * MODULES.html.sh (Misc): Likewise.
5457         * modules/ptsname (Depends-on): Alter dependency.
5458         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5459
5460 2011-11-09  Jim Meyering  <meyering@redhat.com>
5461
5462         announce-gen: be more concise when there's only one URL+tarball
5463         * build-aux/announce-gen (get_tool_versions): When you distribute
5464         only one type of tarball, combine the first two "Here are..."
5465         sections and make the key-checking grammar independent of
5466         how many tarballs there are.
5467
5468 2011-11-09  Eric Blake  <eblake@redhat.com>
5469
5470         openpty: provide a stub on mingw
5471         * lib/pty.in.h (includes): Provide forward declarations.
5472         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5473
5474         raise: fix mingw handling of SIGPIPE
5475         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5476
5477 2011-11-08  Bruno Haible  <bruno@clisp.org>
5478
5479         More conditional dependencies.
5480         * modules/faccessat (Depends-on): Add conditions.
5481         * modules/fchmodat (Depends-on): Likewise.
5482         * modules/fchownat (Depends-on): Likewise.
5483         * modules/fstatat (Depends-on): Likewise.
5484         * modules/mkfifoat (Depends-on): Likewise.
5485         * modules/readlinkat (Depends-on): Likewise.
5486         * modules/symlinkat (Depends-on): Likewise.
5487         * modules/unlinkat (Depends-on): Likewise.
5488         * modules/utimensat (Depends-on): Likewise.
5489         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5490         * modules/linkat (Depends-on): Refine the conditions.
5491         * modules/renameat (Depends-on): Likewise.
5492
5493 2011-11-08  Bruno Haible  <bruno@clisp.org>
5494
5495         faccessat: Move AC_LIBOBJ invocation to module description.
5496         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5497         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5498         invocation from here...
5499         * modules/faccessat (configure.ac): ... to here. Invoke
5500         gl_PREREQ_FACCESSAT.
5501
5502 2011-11-08  Bruno Haible  <bruno@clisp.org>
5503
5504         faccessat: Simplify autoconf macro.
5505         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5506         gl_FUNC_EUIDACCESS.
5507
5508 2011-11-08  Bruno Haible  <bruno@clisp.org>
5509
5510         renameat: Fix dependencies.
5511         * modules/renameat (Depends-on): Add stdbool.
5512
5513 2011-11-08  Bruno Haible  <bruno@clisp.org>
5514
5515         mkfifoat: Fix module description.
5516         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5517         not gl_UNISTD_MODULE_INDICATOR.
5518
5519 2011-11-08  Bruno Haible  <bruno@clisp.org>
5520
5521         fstatat: Remove unused dependency.
5522         * modules/fstatat (Depends-on): Remove fstat.
5523
5524 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5525
5526         GNUmakefile: behave when Makefile is missing.
5527         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5528
5529 2011-11-08  Bruno Haible  <bruno@clisp.org>
5530
5531         openat: Conditionalize dependencies.
5532         * lib/openat.c: Reduce the scope of some #includes.
5533         * modules/openat (Depends-on): Add conditions.
5534
5535 2011-11-07  Jim Meyering  <meyering@redhat.com>
5536
5537         maint.mk: extract GPG key ID without using a temporary file
5538         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5539         without using a temporary file.  Based on a suggestion from Werner Koch
5540         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5541
5542 2011-11-07  Eric Blake  <eblake@redhat.com>
5543
5544         grantpt: fix typo
5545         * lib/stdlib.in.h (grantpt): Check correct function.
5546
5547         maint.mk: silence new syntax check
5548         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5549
5550 2011-11-06  Bruno Haible  <bruno@clisp.org>
5551
5552         Doc about floating-point and math API.
5553         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5554         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5555
5556 2011-11-06  Bruno Haible  <bruno@clisp.org>
5557
5558         stdalign tests: Skip the test when compiled by Sun C.
5559         * tests/test-stdalign.c (main): Skip the test on Sun C.
5560
5561 2011-11-06  Bruno Haible  <bruno@clisp.org>
5562
5563         ansi-c++-opt: Complete the 2011-06-05 change.
5564         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5565         does not support namespaces, set the variable to "no", not to ":".
5566
5567 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5568
5569         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5570
5571 2011-11-06  Bruno Haible  <bruno@clisp.org>
5572
5573         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5574         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5575         (minus_zerol) [HP-UX]: New macro.
5576         (unary_minus) [HP-UX]: New function.
5577         (copysignl) [HP-UX]: Use unary_minus function.
5578
5579 2011-11-06  Bruno Haible  <bruno@clisp.org>
5580
5581         ldexp, ldexpf, ldexpl: Enhance tests.
5582         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5583         and tests/test-ldexpl.c.
5584         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5585         LDEXP, MIN_EXP, MAX_EXP): New macros.
5586         Include test-ldexp.h.
5587         (main): Just call test_function.
5588         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5589         infinity.h, nan.h.
5590         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5591         MAX_EXP): New macros.
5592         Include test-ldexp.h.
5593         (x, y): Remove variables.
5594         (main): Just call test_function.
5595         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5596         infinity.h, nan.h.
5597         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5598         MAX_EXP): New macros.
5599         Include test-ldexp.h.
5600         (x, y): Remove variables.
5601         (main): Just call test_function.
5602         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5603         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5604         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5605         (Depends-on): Add isnand-nolibm, signbit, float.
5606         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5607         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5608         (Depends-on): Add isnanf-nolibm, signbit, float.
5609
5610 2011-11-06  Bruno Haible  <bruno@clisp.org>
5611
5612         math tests: Cosmetics.
5613         * tests/test-math-c++.cc: Reorder declarations.
5614
5615 2011-11-05  Bruno Haible  <bruno@clisp.org>
5616
5617         fma*: Simplify test.
5618         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5619         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5620
5621         Tests for module 'fmal'.
5622         * modules/fmal-tests: New file.
5623         * tests/test-fmal1.c: New file.
5624         * tests/test-fmal2.c: New file.
5625
5626         New module 'fmal'.
5627         * lib/math.in.h (fmal): New declaration.
5628         * lib/fmal.c: New file.
5629         * m4/fmal.m4: New file.
5630         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5632         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5633         REPLACE_FMAL.
5634         * modules/fmal: New file.
5635         * doc/posix-functions/fmal.texi: Mention the new module and the various
5636         bugs.
5637
5638         Tests for module 'fmaf'.
5639         * modules/fmaf-tests: New file.
5640         * tests/test-fmaf1.c: New file.
5641         * tests/test-fmaf2.c: New file.
5642
5643         New module 'fmaf'.
5644         * lib/math.in.h (fmaf): New declaration.
5645         * lib/fmaf.c: New file.
5646         * m4/fmaf.m4: New file.
5647         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5648         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5649         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5650         REPLACE_FMAF.
5651         * modules/fmaf: New file.
5652         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5653         bugs.
5654
5655         Tests for module 'fma'.
5656         * modules/fma-tests: New file.
5657         * tests/test-fma1.c: New file.
5658         * tests/test-fma1.h: New file.
5659         * tests/test-fma2.c: New file.
5660         * tests/test-fma2.h: New file.
5661
5662         New module 'fma'.
5663         * lib/math.in.h (fma): New declaration.
5664         * lib/fma.c: New file.
5665         * m4/fma.m4: New file.
5666         * m4/fegetround.m4: New file.
5667         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5669         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5670         REPLACE_FMA.
5671         * modules/fma: New file.
5672         * doc/posix-functions/fma.texi: Mention the new module and the various
5673         bugs.
5674
5675         Extend gl_MATHFUNC.
5676         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5677         Support 'void' as argument type.
5678         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5679
5680 2011-11-05  Jim Meyering  <meyering@redhat.com>
5681
5682         maint.mk: also prohibit inclusion of dirent.h without use
5683         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5684
5685 2011-11-05  Bruno Haible  <bruno@clisp.org>
5686
5687         ldexpl tests: Avoid test failure on MSVC 9.
5688         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5689         value. Needed in order to enforce the conversion from a value greater
5690         than LDBL_MAX to Infinity.
5691
5692 2011-11-05  Bruno Haible  <bruno@clisp.org>
5693
5694         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5695         * modules/at-internal: New file, extracted from modules/openat.
5696         * modules/openat-h: New file.
5697         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5698         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5699         * modules/openat (Description): Add reference to POSIX function.
5700         (Files): Remove lib/openat.h, lib/openat-proc.c.
5701         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5702         intprops, unistd.
5703         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5704         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5705         gl_FCNTL_MODULE_INDICATOR.
5706         (Include): Remove unistd.h, openat.h.
5707         * modules/areadlinkat (Files): Add lib/at-func.c.
5708         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5709         openat-die, openat-h, save-cwd.
5710         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5711         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5712         openat-die, openat-h, save-cwd, unistd.
5713         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5714         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5715         openat-h, save-cwd. Remove fcntl-h, openat.
5716         * modules/fchmodat (Files): Remove lib/openat.h.
5717         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5718         openat, stdbool, unistd.
5719         * modules/fchownat (Files): Remove lib/openat.h.
5720         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5721         openat, stdbool, sys_stat.
5722         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5723         lib/openat-proc.c.
5724         (Depends-on): Add at-internal.
5725         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5726         * modules/fstatat (Files): Remove lib/openat.h.
5727         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5728         stdbool, unistd.
5729         * modules/fts (Depends-on): Add openat-h.
5730         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5731         openat.
5732         * modules/mkdirat (Files): Remove lib/openat.h.
5733         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5734         openat, stdbool, sys_stat.
5735         * modules/mkfifoat (Files): Add lib/at-func.c.
5736         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5737         openat-h, save-cwd. Remove fcntl-h, openat.
5738         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5739         * modules/readlinkat (Files): Add lib/at-func.c.
5740         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5741         openat-h, save-cwd. Remove fcntl-h, openat.
5742         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5743         openat.
5744         * modules/selinux-at (Files): Add lib/at-func.c.
5745         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5746         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5747         * modules/symlinkat (Files): Add lib/at-func.c.
5748         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5749         openat-h, save-cwd. Remove fcntl-h, openat.
5750         * modules/unlinkat (Files): Remove lib/openat.h.
5751         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5752         stdbool.
5753         * modules/utimensat (Files): Add lib/at-func.c.
5754         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5755         openat-die, openat-h, save-cwd.
5756         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5757         * modules/fdutimensat-tests (Depends-on): Add openat.
5758         * modules/fstatat-tests (Depends-on): Add openat-h.
5759         * modules/readlinkat-tests (Depends-on): Add openat.
5760         * modules/symlinkat-tests (Depends-on): Add openat.
5761
5762 2011-11-05  Bruno Haible  <bruno@clisp.org>
5763
5764         openat: Include <stdbool.h>.
5765         * lib/openat.c: Include <stdbool.h>.
5766
5767 2011-11-04  Bruno Haible  <bruno@clisp.org>
5768
5769         fchownat, renameat, unlinkat: Fix dependencies.
5770         * modules/fchownat (Depends-on): Add fstatat.
5771         * modules/renameat (Depends-on): Likewise.
5772         * modules/unlinkat (Depends-on): Likewise.
5773
5774 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5775
5776         openat: remove direct dependency on dirent
5777         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5778         and hasn't been needed ever since fdopendir was split into its own
5779         module on 2009-08-31.
5780         * modules/openat (Depends-on): Remove dirent.
5781
5782 2011-11-04  Bruno Haible  <bruno@clisp.org>
5783
5784         renameat: Optimize code size.
5785         * modules/renameat (configure.ac): Don't compile at-func2.c if
5786         REPLACE_RENAMEAT is 1.
5787
5788 2011-11-04  Bruno Haible  <bruno@clisp.org>
5789
5790         openat tests: Fix file list.
5791         * modules/openat-tests (Files): Add tests/test-open.h.
5792
5793 2011-11-04  Bruno Haible  <bruno@clisp.org>
5794
5795         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5796         * modules/fchmodat (Depends-on): Add openat-die.
5797         * modules/fchownat (Depends-on): Likewise.
5798         * modules/linkat (Depends-on): Likewise.
5799         * modules/renameat (Depends-on): Likewise.
5800         * modules/openat (Depends-on): Add dirent.
5801
5802 2011-11-04  Jim Meyering  <meyering@redhat.com>
5803
5804         at-func*.c: fix comments
5805         * lib/at-func2.c: Correct/improve first-line comment.
5806         * lib/at-func.c: Correct grammar in first-line comment.
5807
5808 2011-11-04  Bruno Haible  <bruno@clisp.org>
5809
5810         New module 'mkdirat', split off from module 'openat'.
5811         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5812         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5813         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5814         * modules/mkdirat: New file, extracted from modules/openat.
5815         * modules/openat (Files): Remove lib/mkdirat.c.
5816         (Depends-on): Remove mkdir.
5817         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5818         (Include): Remove <sys/stat.h>.
5819         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5820         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5821         tests/test-mkdir.h.
5822         (Depends-on): Remove ignore-value.
5823         (Makefile.am): Remove rules for test-mkdirat.
5824         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5825         of module 'openat'.
5826         * NEWS: Mention the change.
5827
5828 2011-11-04  Bruno Haible  <bruno@clisp.org>
5829
5830         closedir: Avoid warning on mingw.
5831         * lib/closedir.c: Include <unistd.h>.
5832
5833 2011-11-04  Bruno Haible  <bruno@clisp.org>
5834
5835         New module 'fstatat', split off from module 'openat'.
5836         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5837         defined.
5838         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5839         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5840         gl_FUNC_FSTATAT.
5841         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5842         * modules/fstatat: New file, extracted from modules/openat.
5843         * modules/openat (Files): Remove lib/fstatat.c.
5844         (Depends-on): Remove lstat.
5845         (configure.ac): Remove AC_LIBOBJ of fstatat.
5846         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5847         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5848         tests/test-lstat.h, tests/test-stat.h.
5849         (Depends-on): Remove getcwd-lgpl.
5850         (Makefile.am): Remove rules for test-fstatat.
5851         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5852         of module 'openat'.
5853         * NEWS: Mention the change.
5854         * modules/getcwd (Depends-on): Add fstatat.
5855         * modules/linkat (Depends-on): Likewise.
5856         * modules/mkfifoat-tests (Depends-on): Likewise.
5857         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5858
5859 2011-11-03  Bruno Haible  <bruno@clisp.org>
5860
5861         New module 'unlinkat', split off from module 'openat'.
5862         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5863         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5864         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5865         * modules/unlinkat: New file, extracted from modules/openat. Correct
5866         the dependency conditions.
5867         * modules/openat (Files): Remove lib/unlinkat.c.
5868         (Depends-on): Remove rmdir, unlink.
5869         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5870         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5871         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5872         tests/test-rmdir.h, tests/test-unlink.h.
5873         (Depends-on): Remove unlinkdir.
5874         (Makefile.am): Remove rules for test-unlinkat.
5875         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5876         of module 'openat'.
5877         * NEWS: Mention the change.
5878         * modules/linkat-tests (Depends-on): Add unlinkat.
5879         * modules/mkfifoat-tests (Depends-on): Likewise.
5880         * modules/readlinkat-tests (Depends-on): Likewise.
5881
5882 2011-11-02  Bruno Haible  <bruno@clisp.org>
5883
5884         New module 'fchmodat', split off from module 'openat'.
5885         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5886         defined.
5887         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5888         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5889         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5890         * modules/fchmodat: New file, extracted from modules/openat.
5891         * modules/openat (Files): Remove lib/fchmodat.c.
5892         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5893         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5894         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5895         (Makefile.am): Remove rules for test-fchmodat.
5896         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5897         of module 'openat'.
5898         * NEWS: Mention the change.
5899
5900 2011-11-02  Jim Meyering  <meyering@redhat.com>
5901
5902         putenv: indent #definition of "environ" to placate cppi
5903         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5904
5905         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5906         Git logs are often treated as immutable, because editing them
5907         changes the SHA1 checksums of all descendants.  Thus, errors in
5908         git logs tend to stay there forever.  However, when we generate
5909         a ChangeLog file -- typically for distribution -- from that git log,
5910         we can actually make corrections in the generated file.  The key
5911         lies in recording in machine-readable/applicable form the desired
5912         corrections.  See --help for description and an example.
5913         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5914         (usage): Describe it; alphabetize option descriptions.
5915         (main): Honor the new option, carefully.
5916
5917 2011-11-01  Jim Meyering  <meyering@redhat.com>
5918
5919         gitlog-to-changelog: avoid an infloop
5920         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5921         that ends up being empty.
5922
5923 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5924
5925         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5926         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5927         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5928         contains (possibly-quoted) backslashes.  This should avoid
5929         all-too-common shell bugs if COMPLICATED contains backslashes in
5930         the "wrong" places.  Reported by David Evans in
5931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5932         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5933         because we want ASCII ranges.  Is there some reason we don't use
5934         the C locale everywhere in this script?
5935         (func_module, top level): Avoid unwanted pathname expansion when
5936         $repo_url_prefix or $repo_url_suffix_repl contain shell
5937         metacharacters like '?' and '*'.
5938
5939 2011-11-01  Bruno Haible  <bruno@clisp.org>
5940
5941         fchownat: Improve description.
5942         * modules/fchownat (Description): Add link to function.
5943
5944 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5945
5946         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5947         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5949         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5950
5951 2011-11-01  Bruno Haible  <bruno@clisp.org>
5952
5953         alignof: Avoid collision with stdalign module.
5954         * lib/alignof.h (alignof): Remove macro.
5955         * NEWS: Mention the change.
5956         Reported by Paul Eggert.
5957
5958 2011-11-01  Bruno Haible  <bruno@clisp.org>
5959
5960         New module 'fchownat', split off from module 'openat'.
5961         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5962         defined.
5963         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5964         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5965         invoke gl_FUNC_FCHOWNAT.
5966         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5967         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5968         * modules/fchownat: New file, extracted from modules/openat.
5969         * modules/openat (Files): Remove lib/fchownat.c.
5970         (Depends-on): Remove lchown.
5971         (configure.ac): Remove AC_LIBOBJ of fchownat.
5972         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5973         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5974         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5975         (Depends-on): Remove mgetgroups, usleep, stat-time.
5976         (configure.ac): Remove test for getegid.
5977         (Makefile.am): Remove rules for test-fchownat.
5978         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5979         of module 'openat'.
5980         * NEWS: Mention the change.
5981
5982 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5983
5984         stdalign: port better to MSVC and to Sun C 5.11
5985         This fixes some of the problems reported by Bruno Haible in
5986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5987         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5988         shortcomings of MSVC and of Sun C 5.11.
5989         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5990         around __declspec arg.
5991         * modules/stdalign-tests (Files): Add tests/macros.h.
5992         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5993         Include macros.h, for ASSERT.
5994         (DECLARE_ALIGNED): Remove.
5995         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5996         to catch bug), and to 1 if not (simplifies the rest of the code).
5997         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5998         (CHECK_AUTO): Remove.
5999         (CHECK_ALIGNED): Check only the alignment of the static vars,
6000         since auto var alignment isn't supported by Sun C 5.11.
6001         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6002         ASSERT failures are easier to diagnose.
6003
6004 2011-10-31  Bruno Haible  <bruno@clisp.org>
6005
6006         doc about some IRIX 5.3 problems.
6007         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6008         on IRIX 5.3.
6009         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6010         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6011         5.3.
6012         * doc/posix-functions/grantpt.texi: Likewise.
6013         * doc/posix-functions/unlockpt.texi: Likewise.
6014         * doc/posix-functions/lgamma.texi: Likewise.
6015         * doc/posix-functions/nextafter.texi: Likewise.
6016         * doc/posix-functions/remainder.texi: Likewise.
6017         * doc/posix-functions/select.texi: Mention misplaced declaration on
6018         IRIX 5.3.
6019         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6020
6021 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6022
6023         gitlog-to-changelog: fix git-log invocation.
6024         git-log mishandles date strings before 1970-01-01 UTC, and there is
6025         no use to specify --since=1970-01-01 by default anyway.
6026         * build-aux/gitlog-to-changelog: By default, when no --since option
6027         was given, do not specify explicit --since option to git-log.
6028
6029 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6030
6031         gitlog-to-changelog: new option --append-dot.
6032         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6033         first non-blank line of each commit message terminated with a dot.
6034
6035 2011-10-30  Bruno Haible  <bruno@clisp.org>
6036
6037         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6038         * lib/ffsl.h: Include <config.h>.
6039         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6040
6041 2011-10-30  Jim Meyering  <meyering@redhat.com>
6042
6043         GNUmakefile: reenable "make syntax-check" for most projects
6044         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6045         build-aux variable", "syntax-check" would do nothing but succeed with
6046         the "No version control files detected..." diagnostic (unless you
6047         happened to override _build-aux via cfg.mk).
6048         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6049         to precede inclusion of maint.mk.  Otherwise, these variables would
6050         be used undefined in any project that does not override the default.
6051
6052 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6053
6054         gitlog-to-changelog: treat a message with only blank lines as empty.
6055         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6056         trailing blank lines before the code that issues a warning about an
6057         empty commit message.
6058
6059 2011-10-30  Jim Meyering  <meyering@redhat.com>
6060
6061         test-parse-datetime.c: avoid new DST-related false positive test failure
6062         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6063         based on the time/date we'll convert, not the current time.
6064         Otherwise, the moment we cross a DST boundary like today's in
6065         Europe, (CEST to CET), that offset ends up being one hour off.
6066
6067 2011-10-27  Bruno Haible  <bruno@clisp.org>
6068
6069         fstat: Tweak documentation.
6070         * modules/fstat (Description): More precise description.
6071
6072 2011-10-27  Bruno Haible  <bruno@clisp.org>
6073
6074         Update documentation regarding 'largefile' module.
6075         * doc/posix-functions/fstat.texi: Tweak wording.
6076         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6077         problems with huge directories and/or small ino_t types.
6078         * doc/posix-functions/readdir.texi: Likewise.
6079         * doc/posix-functions/rewinddir.texi: Likewise.
6080
6081 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6082
6083         maint.mk: don't maintain a second build-aux variable.
6084         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6085         depends on GNUmakefile, which already maintains a cfg.mk
6086         overridable $(_build-aux) for projects with a non-standard
6087         build-aux directory location, although without the $(srcdir)
6088         prefix.  Use that variable consistently instead of introducing a
6089         second one.  Adjust all call sites.
6090
6091 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6092
6093         Add stdalign module and use it in other modules.
6094         This is based on a previous proposal by Bruno Haible
6095         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6096
6097         stdalign: new module
6098         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6099         * modules/stdalign: New files.
6100         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6101         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6102
6103         stdalign-tests: new module
6104         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6105
6106         argp: use stdalign
6107         * lib/argp-parse.c: Include <stdalign.h>.
6108         (alignof): Remove.
6109         * modules/argp (Depends-on): Add stdalign.
6110
6111         crypto libraries: use stdalign
6112         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6113         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6114         Do not include <stdlib.h> twice, in md4.c.
6115         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6116         because we are accessing a pointer's bit-pattern, not a size.
6117         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6118         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6119         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6120         * modules/crypto/sha512: Likewise.
6121
6122         sys_socket: use stdalign, not alignof
6123         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6124         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6125
6126 2011-10-27  Bruno Haible  <bruno@clisp.org>
6127
6128         raise test: Avoid a test failure on Linux/MIPS.
6129         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6130         because 99 is a valid signal on Linux/MIPS.
6131
6132 2011-10-27  Bruno Haible  <bruno@clisp.org>
6133
6134         nonblocking tests: Fix test failure on Linux/MIPS.
6135         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6136         Set to 270000.
6137
6138 2011-10-27  Bruno Haible  <bruno@clisp.org>
6139
6140         utimensat: Work around problem on Linux/hppa.
6141         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6142         values.
6143         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6144
6145 2011-10-25  Jim Meyering  <meyering@redhat.com>
6146
6147         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6148         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6149         after symbols like NULL, size_t, etc.
6150         Reported by Alfred M. Szmidt.
6151
6152         maint.mk: exempt ENODATA from a syntax-check rule
6153         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6154         from the sc_prohibit_always-defined_macros syntax-check rule.
6155         Add a comment.  See this for more details:
6156         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6157
6158 2011-10-23  Jim Meyering  <meyering@redhat.com>
6159
6160         fts: close parent dir FD before returning from post-traversal fts_read
6161         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6162         unlink A, even though an FD open on A remained.  This is suboptimal
6163         (holding a file descriptor open longer than needed), but otherwise not
6164         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6165         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6166         that represents a real problem: it causes the removal of A to fail
6167         with e.g., "rm: cannot remove `A': Device or resource busy"
6168
6169         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6170         directory file descriptors.  After completing the final, FTS_DP,
6171         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6172         cache, but then proceeded to add a new FD to it via the subsequent
6173         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6174         final file descriptor would be closed only via fts_close's call to
6175         fd_ring_clear.  Now, it is usually closed earlier, via the final
6176         FTS_DP-returning fts_read call.
6177         * lib/fts.c (restore_initial_cwd): New function, converted from
6178         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6179         Update callers.
6180         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6181         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6182
6183 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6184             Bruno Haible  <bruno@clisp.org>
6185             Jim Meyering  <jim@meyering.net>
6186
6187         readme-release: improve safety of release prep instructions.
6188         * README-release: Don't git pull all branches when only master
6189         is needed for the release process.
6190         Run make maintainer-clean before changing trees and merging.
6191         Don't try to run ./configure right after git pull in case files
6192         that influence the bootstrap process have changed, move the
6193         ./configure step to after running ./bootstrap.
6194         Don't bootstrap "one last time"... it's the first time!
6195
6196 2011-10-22  Bruno Haible  <bruno@clisp.org>
6197
6198         errno, strerror-override: Support for MSVC 10.
6199         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6200         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6201         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6202         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6203         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6204         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6205         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6206         Assign values compatible with MSVC 10.
6207         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6208         New macros.
6209         (GNULIB_defined_EWINSOCK): New macro.
6210         * lib/strerror-override.c (strerror_override): Update accordingly.
6211         * lib/strerror-override.h: Likewise.
6212         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6213         longer equal to the corresponding errno value.
6214         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6215
6216 2011-10-22  Bruno Haible  <bruno@clisp.org>
6217
6218         perror: Recognize when test program crashes.
6219         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6220         strerror, set gl_cv_func_perror_works to no.
6221         Reported by Daniel Richard G. <skunk@iskunk.org>.
6222
6223         perror: Fix indentation.
6224         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6225
6226 2011-10-22  Bruno Haible  <bruno@clisp.org>
6227
6228         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6229         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6230         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6231         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6232         functions, not as a macro.
6233         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6234         macros.
6235         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6236         absence of macro.
6237         Suggested by Eric Blake.
6238         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6239
6240 2011-10-21  Bruno Haible  <bruno@clisp.org>
6241
6242         relocatable-prog-wrapper: Don't leave object files behind.
6243         * build-aux/install-reloc: Re-synchronize list of .o files to be
6244         removed with list of compilation units.
6245
6246 2011-10-20  Bruno Haible  <bruno@clisp.org>
6247
6248         openpty, posix_openpt: Remove code duplication.
6249         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6250         * lib/openpty.c: Include <stdlib.h>.
6251         (openpty): Use posix_openpt on all platforms except IRIX.
6252         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6253
6254 2011-10-20  Bruno Haible  <bruno@clisp.org>
6255
6256         unlockpt: Detect invalid argument.
6257         * lib/unlockpt.c: Include <fcntl.h>.
6258         (unlockpt): Check whether fd is valid, using fcntl().
6259         * modules/unlockpt (Depends-on): Add fcntl-h.
6260
6261 2011-10-20  Bruno Haible  <bruno@clisp.org>
6262
6263         openpty: Avoid compilation error on AIX 6.1.
6264         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6265
6266 2011-10-20  Bruno Haible  <bruno@clisp.org>
6267
6268         posix_openpt: Support for OpenBSD.
6269         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6270         (posix_openpt) [OpenBSD]: New code.
6271         * lib/grantpt.c: Include <fcntl.h>.
6272         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6273         * modules/grantpt (Depends-on): Add fcntl-h.
6274
6275 2011-10-20  Bruno Haible  <bruno@clisp.org>
6276
6277         posix_openpt test: Coding style.
6278         * tests/test-posix_openpt.c: Use GNU coding style.
6279
6280 2011-10-20  Bruno Haible  <bruno@clisp.org>
6281
6282         grantpt: Support --avoid=pt_chown.
6283         * modules/grantpt (Files): Add lib/pty-private.h.
6284
6285 2011-10-20  Bruno Haible  <bruno@clisp.org>
6286
6287         posix_openpt: Fix autoconf macro.
6288         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6289         unneeded check for _getpty.
6290
6291 2011-10-20  Bruno Haible  <bruno@clisp.org>
6292
6293         openpty: Update comments.
6294         * lib/openpty.c: Add comments about Minix.
6295
6296 2011-10-19  Eric Blake  <eblake@redhat.com>
6297
6298         openpty: relax license
6299         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6300
6301         pt_chown: use configmake to simplify build
6302         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6303
6304         ptsname and others: relax license
6305         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6306         * modules/unlockpt (License): Likewise.
6307         * modules/pt_chown (License): Likewise.
6308         * modules/ptsname (License): Likewise.
6309         * modules/ttyname_r (License): Likewise.
6310
6311 2011-10-19  Jim Meyering  <meyering@redhat.com>
6312
6313         posix_openpt: remove spurious #endif
6314         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6315
6316 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6317
6318         maint.mk: Respect $(build_aux) in web-manual rule.
6319         * top/maint.mk (web-manual): Find gen-announce script in user's
6320         $(build_aux) directory instead of hard-coding 'build-aux'.
6321
6322 2011-10-19  Bruno Haible  <bruno@clisp.org>
6323
6324         posix_openpt: Fix compilation error.
6325         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6326         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6327         Mention the openpty module as an alternative.
6328
6329 2011-10-19  Bruno Haible  <bruno@clisp.org>
6330
6331         Support for old NeXTstep 3.3 frexp().
6332         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6333         execution time of the test to 5 seconds.
6334         Reported by Daniel Richard G. <skunk@iskunk.org>.
6335
6336 2011-10-19  Bruno Haible  <bruno@clisp.org>
6337
6338         Support for old NeXTstep 3.3 sed.
6339         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6340         part, use /.../, not \|...|. Escape periods in the header file name.
6341         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6342         Reported by Daniel Richard G. <skunk@iskunk.org>.
6343
6344 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6345
6346         Support for old NeXTstep 3.3 gcc.
6347         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6348         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6349         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6350         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6351         * lib/regex.h (_Restrict_arr_): Likewise.
6352         * lib/regex_internal.h (re_token_t): Likewise.
6353         * lib/regexec.c (check_node_accept_bytes): Likewise.
6354         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6355
6356 2011-10-18  Eric Blake  <eblake@redhat.com>
6357
6358         posix_openpt: new module
6359         * modules/posix_openpt: New module.
6360         * m4/posix_openpt.m4: New file.
6361         * lib/posix_openpt.c: Likewise.
6362         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6363         (gl_STDLIB_H_DEFAULTS): Set defaults.
6364         * modules/stdlib (Makefile.am): Substitute macros.
6365         * lib/stdlib.in.h (posix_openpt): Declare.
6366         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6367         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6368         * modules/posix_openpt-tests: New test module.
6369         * tests/test-posix_openpt.c: New test.
6370
6371 2011-10-15  Bruno Haible  <bruno@clisp.org>
6372
6373         xstrtoll: Fix compilation failure.
6374         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6375         from lib/strtol.c.
6376         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6377         some platforms.
6378         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6379
6380 2011-10-15  Bruno Haible  <bruno@clisp.org>
6381
6382         vasnprintf: Optimize bit search operation.
6383         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6385         gl_DOUBLE_EXPONENT_LOCATION.
6386         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6387         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6388         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6389         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6390         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6391         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6392         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6393         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6394         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6395
6396 2011-10-15  Bruno Haible  <bruno@clisp.org>
6397
6398         vasnprintf: Fix comments.
6399         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6400
6401 2011-10-14  Bruno Haible  <bruno@clisp.org>
6402
6403         Tests for module 'integer_length_ll'.
6404         * modules/integer_length_ll-tests: New file.
6405         * tests/test-integer_length_ll.c: New file.
6406
6407         New module 'integer_length_ll'.
6408         * lib/integer_length_ll.c: New file.
6409         * modules/integer_length_ll: New file.
6410
6411 2011-10-14  Bruno Haible  <bruno@clisp.org>
6412
6413         Tests for module 'integer_length_l'.
6414         * modules/integer_length_l-tests: New file.
6415         * tests/test-integer_length_l.c: New file.
6416
6417         New module 'integer_length_l'.
6418         * lib/integer_length_l.c: New file.
6419         * modules/integer_length_l: New file.
6420
6421 2011-10-14  Bruno Haible  <bruno@clisp.org>
6422
6423         Tests for module 'integer_length'.
6424         * modules/integer_length-tests: New file.
6425         * tests/test-integer_length.c: New file.
6426
6427         New module 'integer_length'.
6428         * lib/integer_length.h: New file.
6429         * lib/integer_length.c: New file.
6430         * modules/integer_length: New file.
6431
6432 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6433
6434         popen: Fix dependency conditions.
6435         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6436
6437 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6438
6439         perror: Fix autoconf test.
6440         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6441         <stdlib.h> and <string.h>.
6442
6443 2011-10-14  Bruno Haible  <bruno@clisp.org>
6444
6445         ffsl: Optimize on 64-bit platforms.
6446         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6447         unrolling.
6448
6449 2011-10-13  Bruno Haible  <bruno@clisp.org>
6450
6451         ffsl: Optimize on 32-bit platforms.
6452         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6453         use ffs() without a loop.
6454
6455         ffsl, ffsll: Optimize for GCC.
6456         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6457         * lib/ffsl.c (GCC_BUILTIN): New macro.
6458         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6459
6460 2011-10-13  Bruno Haible  <bruno@clisp.org>
6461
6462         ffs, bcopy, memset: Support symbol renaming via config.h.
6463         * lib/ffs.c: Include <config.h>.
6464         * lib/bcopy.c: Likewise.
6465         * lib/memset.c: Likewise.
6466
6467 2011-10-10  Bruno Haible  <bruno@clisp.org>
6468
6469         atanl: Simplify for platforms where 'long double' == 'double'.
6470         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6471         alternative implementation.
6472         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6473         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6474         * modules/atanl (Depends-on): Add atan. Update conditions.
6475
6476 2011-10-10  Bruno Haible  <bruno@clisp.org>
6477
6478         acosl: Simplify for platforms where 'long double' == 'double'.
6479         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6480         alternative implementation.
6481         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6482         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6483         * modules/acosl (Depends-on): Add acos. Update conditions.
6484
6485 2011-10-10  Bruno Haible  <bruno@clisp.org>
6486
6487         asinl: Simplify for platforms where 'long double' == 'double'.
6488         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6489         alternative implementation.
6490         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6491         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6492         * modules/asinl (Depends-on): Add asin. Update conditions.
6493
6494 2011-10-10  Bruno Haible  <bruno@clisp.org>
6495
6496         tanl: Simplify for platforms where 'long double' == 'double'.
6497         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6498         implementation.
6499         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6500         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6501         * modules/tanl (Depends-on): Add tan. Update conditions.
6502         (configure.ac): Don't compile trigl.c if
6503         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6504
6505 2011-10-10  Bruno Haible  <bruno@clisp.org>
6506
6507         cosl: Simplify for platforms where 'long double' == 'double'.
6508         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6509         implementation.
6510         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6511         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6512         * modules/cosl (Depends-on): Add cos. Update conditions.
6513         (configure.ac): Don't compile sincosl.c and trigl.c if
6514         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6515
6516 2011-10-10  Bruno Haible  <bruno@clisp.org>
6517
6518         sinl: Simplify for platforms where 'long double' == 'double'.
6519         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6520         implementation.
6521         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6522         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6523         * modules/sinl (Depends-on): Add sin. Update conditions.
6524         (configure.ac): Don't compile sincosl.c and trigl.c if
6525         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6526
6527 2011-10-10  Bruno Haible  <bruno@clisp.org>
6528
6529         logl: Simplify for platforms where 'long double' == 'double'.
6530         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6531         implementation.
6532         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6533         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6534         * modules/logl (Depends-on): Add log. Update conditions.
6535
6536 2011-10-10  Bruno Haible  <bruno@clisp.org>
6537
6538         expl: Simplify for platforms where 'long double' == 'double'.
6539         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6540         implementation.
6541         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6542         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6543         * modules/expl (Depends-on): Add exp. Update conditions.
6544
6545 2011-10-10  Bruno Haible  <bruno@clisp.org>
6546
6547         sqrtl: Simplify for platforms where 'long double' == 'double'.
6548         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6549         alternative implementation.
6550         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6551         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6552         * modules/sqrtl (Depends-on): Update conditions.
6553
6554 2011-10-10  Bruno Haible  <bruno@clisp.org>
6555
6556         ldexpl: Simplify for platforms where 'long double' == 'double'.
6557         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6558         alternative implementation.
6559         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6560         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6561         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6562
6563 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6564
6565         ffsll: set correct witness
6566         * modules/ffsll (configure.ac): Fix typo.
6567
6568 2011-10-10  Bruno Haible  <bruno@clisp.org>
6569
6570         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6571         * lib/printf-frexpl.c: Include <config.h>.
6572         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6573         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6574         second time.
6575         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6576         gl_LONG_DOUBLE_VS_DOUBLE.
6577         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6578         conditions.
6579
6580 2011-10-10  Bruno Haible  <bruno@clisp.org>
6581
6582         frexpl: Simplify for platforms where 'long double' == 'double'.
6583         * lib/frexpl.c: Include <config.h>.
6584         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6585         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6586         time.
6587         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6588         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6589         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6590         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6591         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6592         conditions.
6593
6594 2011-10-10  Jim Meyering  <meyering@redhat.com>
6595
6596         test-renameat: don't leave behind a temporary file
6597         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6598           ERROR: files left in build directory after distclean:
6599           ./gltests/test-renameat.too
6600           make[1]: *** [distcleancheck] Error 1
6601         Reported by Tom G. Christensen.
6602
6603 2011-10-09  Bruno Haible  <bruno@clisp.org>
6604
6605         rint: Determine RINT_LIBM correctly on AIX 7.
6606         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6607         directly, not only through a function pointer. Also accept an optional
6608         4th argument with extra code.
6609         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6610         rintf() call by gcc when optimizing.
6611
6612         mathfunc.m4: Refactor.
6613         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6614         m4 variable.
6615
6616 2011-10-09  Bruno Haible  <bruno@clisp.org>
6617
6618         rintl: Simplify for platforms where 'long double' == 'double'.
6619         * lib/rintl.c: Include <config.h>.
6620         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6621         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6622         time.
6623         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6624         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6625         * modules/rintl (Depends-on): Add rint. Update conditions.
6626
6627 2011-10-09  Bruno Haible  <bruno@clisp.org>
6628
6629         roundl: Simplify for platforms where 'long double' == 'double'.
6630         * lib/roundl.c: Include <config.h>.
6631         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6632         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6633         time.
6634         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6635         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6636         * modules/roundl (Depends-on): Add round. Update conditions.
6637
6638 2011-10-09  Bruno Haible  <bruno@clisp.org>
6639
6640         truncl: Simplify for platforms where 'long double' == 'double'.
6641         * lib/truncl.c: Include <config.h>.
6642         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6643         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6644         time.
6645         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6646         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6647         * modules/truncl (Depends-on): Add trunc. Update conditions.
6648
6649 2011-10-09  Bruno Haible  <bruno@clisp.org>
6650
6651         ceill: Simplify for platforms where 'long double' == 'double'.
6652         * lib/ceill.c: Include <config.h>.
6653         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6654         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6655         time.
6656         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6657         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6658         * modules/ceill (Depends-on): Add ceil. Update conditions.
6659
6660 2011-10-09  Bruno Haible  <bruno@clisp.org>
6661
6662         floorl: Simplify for platforms where 'long double' == 'double'.
6663         * lib/floorl.c: Include <config.h>.
6664         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6665         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6666         time.
6667         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6668         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6669         * modules/floorl (Depends-on): Add floor. Update conditions.
6670
6671 2011-10-09  Bruno Haible  <bruno@clisp.org>
6672
6673         rint: Fix ordering constraints.
6674         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6675         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6676         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6677
6678 2011-10-09  Bruno Haible  <bruno@clisp.org>
6679
6680         copysignl: Simplify for platforms where 'long double' == 'double'.
6681         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6682         alternative.
6683         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6684         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6685         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6686
6687 2011-10-09  Bruno Haible  <bruno@clisp.org>
6688
6689         Tests for module 'rintl'.
6690         * modules/rintl-tests: New file.
6691         * tests/test-rintl.c: New file.
6692
6693         New module 'rintl'.
6694         * lib/math.in.h (rintl): New declaration.
6695         * lib/rintl.c: New file.
6696         * m4/rintl.m4: New file.
6697         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6699         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6700         * modules/rintl: New file.
6701         * tests/test-math-c++.cc: Check the declaration of rintl.
6702         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6703         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6704         * doc/posix-functions/rintl.texi: Mention the new module.
6705
6706 2011-10-09  Bruno Haible  <bruno@clisp.org>
6707
6708         Tests for module 'rintf'.
6709         * modules/rintf-tests: New file.
6710         * tests/test-rintf.c: New file.
6711
6712         New module 'rintf'.
6713         * lib/math.in.h (rintf): New declaration.
6714         * lib/rintf.c: New file.
6715         * m4/rintf.m4: New file.
6716         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6718         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6719         * modules/rintf: New file.
6720         * tests/test-math-c++.cc: Check the declaration of rintf.
6721         * doc/posix-functions/rintf.texi: Mention the new module.
6722
6723 2011-10-09  Bruno Haible  <bruno@clisp.org>
6724
6725         rint: Support for MSVC.
6726         * lib/math.in.h (rint): New declaration.
6727         * lib/rint.c: New file.
6728         * m4/rint.m4: New file.
6729         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6731         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6732         * modules/rint (Description): Fix.
6733         (Files): Add lib/rint.c, m4/rint.m4.
6734         (Depends-on): Add math.
6735         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6736         gl_MATH_MODULE_INDICATOR.
6737         * tests/test-math-c++.cc: Check the declaration of rint.
6738         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6739         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6740         * doc/posix-functions/rint.texi: Mention the replacement provided by
6741         the module.
6742
6743         rint tests: More tests.
6744         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6745         minus-zero.h, infinity.h, nan.h.
6746         (main): Skip the test if the current rounding mode is not standard. Add
6747         tests for negative numbers, minus zero, infinity, NaN.
6748         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6749         tests/nan.h.
6750         (Depends-on): Add isnand-nolibm.
6751
6752 2011-10-09  Bruno Haible  <bruno@clisp.org>
6753
6754         Tests for module 'copysignl'.
6755         * modules/copysignl-tests: New file.
6756         * tests/test-copysignl.c: New file.
6757
6758         New module 'copysignl'.
6759         * lib/math.in.h (copysignl): New declaration.
6760         * lib/copysignl.c: New file.
6761         * m4/copysignl.m4: New file.
6762         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6763         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6764         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6765         HAVE_COPYSIGNL.
6766         * modules/copysignl: New file.
6767         * tests/test-math-c++.cc: Check the declaration of copysignl.
6768         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6769         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6770         * doc/posix-functions/copysignl.texi: Mention the new module.
6771
6772 2011-10-09  Bruno Haible  <bruno@clisp.org>
6773
6774         Tests for module 'copysignf'.
6775         * modules/copysignf-tests: New file.
6776         * tests/test-copysignf.c: New file.
6777
6778         New module 'copysignf'.
6779         * lib/math.in.h (copysignf): New declaration.
6780         * lib/copysignf.c: New file.
6781         * m4/copysignf.m4: New file.
6782         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6784         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6785         HAVE_COPYSIGNF.
6786         * modules/copysignf: New file.
6787         * tests/test-math-c++.cc: Check the declaration of copysignf.
6788         * doc/posix-functions/copysignf.texi: Mention the new module.
6789
6790 2011-10-09  Bruno Haible  <bruno@clisp.org>
6791
6792         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6793         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6794         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6795         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6796         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6797         gl_SIGNAL_H_DEFAULTS.
6798
6799 2011-10-09  Bruno Haible  <bruno@clisp.org>
6800
6801         poll: Make macro safer.
6802         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6803         ac_cv_header_poll_h is not set.
6804
6805 2011-10-09  Bruno Haible  <bruno@clisp.org>
6806
6807         copysign: Provide replacement.
6808         * lib/math.in.h (copysign): New declaration.
6809         * lib/copysign.c: New file.
6810         * m4/copysign.m4: New file.
6811         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6812         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6813         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6814         HAVE_COPYSIGN.
6815         * modules/copysign (Description): Clarify.
6816         (Files): Add lib/copysign.c, m4/copysign.m4.
6817         (Depends-on): Add math, signbit.
6818         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6819         gl_MATH_MODULE_INDICATOR.
6820         * tests/test-math-c++.cc: Check the declaration of copysign.
6821         * doc/posix-functions/copysign.texi: Mention the effects of the module
6822         on Minix and MSVC.
6823
6824 2011-10-09  Bruno Haible  <bruno@clisp.org>
6825
6826         isinf: Ensure macro on AIX 5.1.
6827         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6828         macro.
6829         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6830
6831 2011-10-09  Bruno Haible  <bruno@clisp.org>
6832
6833         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6834         * modules/snprintf-posix-tests (configure.ac): Require
6835         gl_LONG_DOUBLE_VS_DOUBLE.
6836         * modules/sprintf-posix-tests (configure.ac): Likewise.
6837         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6838         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6839         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6840         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6841         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6842         tests on platforms where 'long double' is the same as 'double'.
6843         * tests/test-sprintf-posix.h (test_function): Likewise.
6844         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6845         * tests/test-vasprintf-posix.c (test_function): Likewise.
6846
6847         *printf: Fix for platforms where 'long double' == 'double'.
6848         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6849         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6850         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6851         * modules/fprintf-posix (Files): Likewise.
6852         * modules/obstack-printf-posix (Files): Likewise.
6853         * modules/snprintf-posix (Files): Likewise.
6854         * modules/sprintf-posix (Files): Likewise.
6855         * modules/vasnprintf (Files): Likewise.
6856         * modules/vasnprintf-posix (Files): Likewise.
6857         * modules/vasprintf-posix (Files): Likewise.
6858         * modules/vdprintf-posix (Files): Likewise.
6859         * modules/vfprintf-posix (Files): Likewise.
6860         * modules/vsnprintf-posix (Files): Likewise.
6861         * modules/vsprintf-posix (Files): Likewise.
6862         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6863         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6864         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6865         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6866         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6867         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6868         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6869
6870         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6871         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6872         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6873         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6874         'long double'.
6875         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6876
6877         isinf: Fix for platforms where 'long double' == 'double'.
6878         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6879         Don't blindly assume 80-bit 'long double'.
6880
6881         isfinite: Fix for platforms where 'long double' == 'double'.
6882         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6883         Don't blindly assume 80-bit 'long double'.
6884
6885         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6886         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6887         * modules/isfinite-tests (configure.ac): Require
6888         gl_LONG_DOUBLE_VS_DOUBLE.
6889         * modules/isinf-tests (configure.ac): Likewise.
6890         * modules/isnan-tests (configure.ac): Likewise.
6891         * modules/isnanl-tests (configure.ac): Likewise.
6892         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6893         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6894         tests on platforms where 'long double' is the same as 'double'.
6895         * tests/test-isinf.c (test_isinfl): Likewise.
6896         * tests/test-isnan.c (test_long_double): Likewise.
6897         * tests/test-isnanl.h (main): Likewise.
6898
6899 2011-10-08  Bruno Haible  <bruno@clisp.org>
6900
6901         Tests for module 'tanhf'.
6902         * modules/tanhf-tests: New file.
6903         * tests/test-tanhf.c: New file.
6904
6905         New module 'tanhf'.
6906         * lib/math.in.h (tanhf): New declaration.
6907         * lib/tanhf.c: New file.
6908         * m4/tanhf.m4: New file.
6909         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6911         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6912         * modules/tanhf: New file.
6913         * tests/test-math-c++.cc: Check the declaration of tanhf.
6914         * doc/posix-functions/tanhf.texi: Mention the new module.
6915
6916         tanh: Use a .m4 file.
6917         * m4/tanh.m4: New file.
6918         * modules/tanh (Files): Add it.
6919         (configure.ac): Just invoke gl_FUNC_TANH.
6920
6921 2011-10-08  Bruno Haible  <bruno@clisp.org>
6922
6923         Tests for module 'coshf'.
6924         * modules/coshf-tests: New file.
6925         * tests/test-coshf.c: New file.
6926
6927         New module 'coshf'.
6928         * lib/math.in.h (coshf): New declaration.
6929         * lib/coshf.c: New file.
6930         * m4/coshf.m4: New file.
6931         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6933         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6934         * modules/coshf: New file.
6935         * tests/test-math-c++.cc: Check the declaration of coshf.
6936         * doc/posix-functions/coshf.texi: Mention the new module.
6937
6938         cosh: Use a .m4 file.
6939         * m4/cosh.m4: New file.
6940         * modules/cosh (Files): Add it.
6941         (configure.ac): Just invoke gl_FUNC_COSH.
6942
6943 2011-10-08  Bruno Haible  <bruno@clisp.org>
6944
6945         Tests for module 'sinhf'.
6946         * modules/sinhf-tests: New file.
6947         * tests/test-sinhf.c: New file.
6948
6949         New module 'sinhf'.
6950         * lib/math.in.h (sinhf): New declaration.
6951         * lib/sinhf.c: New file.
6952         * m4/sinhf.m4: New file.
6953         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6955         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6956         * modules/sinhf: New file.
6957         * tests/test-math-c++.cc: Check the declaration of sinhf.
6958         * doc/posix-functions/sinhf.texi: Mention the new module.
6959
6960         sinh: Use a .m4 file.
6961         * m4/sinh.m4: New file.
6962         * modules/sinh (Files): Add it.
6963         (configure.ac): Just invoke gl_FUNC_SINH.
6964
6965 2011-10-08  Bruno Haible  <bruno@clisp.org>
6966
6967         Tests for module 'atan2f'.
6968         * modules/atan2f-tests: New file.
6969         * tests/test-atan2f.c: New file.
6970
6971         New module 'atan2f'.
6972         * lib/math.in.h (atan2f): New declaration.
6973         * lib/atan2f.c: New file.
6974         * m4/atan2f.m4: New file.
6975         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6977         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6978         * modules/atan2f: New file.
6979         * tests/test-math-c++.cc: Check the declaration of atan2f.
6980         * doc/posix-functions/atan2f.texi: Mention the new module.
6981
6982         atan2: Use a .m4 file.
6983         * m4/atan2.m4: New file.
6984         * modules/atan2 (Files): Add it.
6985         (configure.ac): Just invoke gl_FUNC_ATAN2.
6986
6987 2011-10-08  Bruno Haible  <bruno@clisp.org>
6988
6989         Tests for module 'atanf'.
6990         * modules/atanf-tests: New file.
6991         * tests/test-atanf.c: New file.
6992
6993         New module 'atanf'.
6994         * lib/math.in.h (atanf): New declaration.
6995         * lib/atanf.c: New file.
6996         * m4/atanf.m4: New file.
6997         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6999         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7000         * modules/atanf: New file.
7001         * tests/test-math-c++.cc: Check the declaration of atanf.
7002         * doc/posix-functions/atanf.texi: Mention the new module.
7003
7004         atan: Use a .m4 file.
7005         * m4/atan.m4: New file.
7006         * modules/atan (Files): Add it.
7007         (configure.ac): Just invoke gl_FUNC_ATAN.
7008
7009 2011-10-08  Bruno Haible  <bruno@clisp.org>
7010
7011         Tests for module 'acosf'.
7012         * modules/acosf-tests: New file.
7013         * tests/test-acosf.c: New file.
7014
7015         New module 'acosf'.
7016         * lib/math.in.h (acosf): New declaration.
7017         * lib/acosf.c: New file.
7018         * m4/acosf.m4: New file.
7019         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7021         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7022         * modules/acosf: New file.
7023         * tests/test-math-c++.cc: Check the declaration of acosf.
7024         * doc/posix-functions/acosf.texi: Mention the new module.
7025
7026         acos: Use a .m4 file.
7027         * m4/acos.m4: New file.
7028         * modules/acos (Files): Add it.
7029         (configure.ac): Just invoke gl_FUNC_ACOS.
7030
7031 2011-10-08  Bruno Haible  <bruno@clisp.org>
7032
7033         Tests for module 'asinf'.
7034         * modules/asinf-tests: New file.
7035         * tests/test-asinf.c: New file.
7036
7037         New module 'asinf'.
7038         * lib/math.in.h (asinf): New declaration.
7039         * lib/asinf.c: New file.
7040         * m4/asinf.m4: New file.
7041         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7043         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7044         * modules/asinf: New file.
7045         * tests/test-math-c++.cc: Check the declaration of asinf.
7046         * doc/posix-functions/asinf.texi: Mention the new module.
7047
7048         asin: Use a .m4 file.
7049         * m4/asin.m4: New file.
7050         * modules/asin (Files): Add it.
7051         (configure.ac): Just invoke gl_FUNC_ASIN.
7052
7053 2011-10-08  Bruno Haible  <bruno@clisp.org>
7054
7055         Tests for module 'tanf'.
7056         * modules/tanf-tests: New file.
7057         * tests/test-tanf.c: New file.
7058
7059         New module 'tanf'.
7060         * lib/math.in.h (tanf): New declaration.
7061         * lib/tanf.c: New file.
7062         * m4/tanf.m4: New file.
7063         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7065         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7066         * modules/tanf: New file.
7067         * tests/test-math-c++.cc: Check the declaration of tanf.
7068         * doc/posix-functions/tanf.texi: Mention the new module.
7069
7070         tan: Use a .m4 file.
7071         * m4/tan.m4: New file.
7072         * modules/tan (Files): Add it.
7073         (configure.ac): Just invoke gl_FUNC_TAN.
7074
7075 2011-10-08  Bruno Haible  <bruno@clisp.org>
7076
7077         Tests for module 'cosf'.
7078         * modules/cosf-tests: New file.
7079         * tests/test-cosf.c: New file.
7080
7081         New module 'cosf'.
7082         * lib/math.in.h (cosf): New declaration.
7083         * lib/cosf.c: New file.
7084         * m4/cosf.m4: New file.
7085         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7087         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7088         * modules/cosf: New file.
7089         * tests/test-math-c++.cc: Check the declaration of cosf.
7090         * doc/posix-functions/cosf.texi: Mention the new module.
7091
7092         cos: Use a .m4 file.
7093         * m4/cos.m4: New file.
7094         * modules/cos (Files): Add it.
7095         (configure.ac): Just invoke gl_FUNC_COS.
7096
7097 2011-10-08  Bruno Haible  <bruno@clisp.org>
7098
7099         Tests for module 'sinf'.
7100         * modules/sinf-tests: New file.
7101         * tests/test-sinf.c: New file.
7102
7103         New module 'sinf'.
7104         * lib/math.in.h (sinf): New declaration.
7105         * lib/sinf.c: New file.
7106         * m4/sinf.m4: New file.
7107         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7109         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7110         * modules/sinf: New file.
7111         * tests/test-math-c++.cc: Check the declaration of sinf.
7112         * doc/posix-functions/sinf.texi: Mention the new module.
7113
7114         sin: Use a .m4 file.
7115         * m4/sin.m4: New file.
7116         * modules/sin (Files): Add it.
7117         (configure.ac): Just invoke gl_FUNC_SIN.
7118
7119 2011-10-08  Bruno Haible  <bruno@clisp.org>
7120
7121         Tests for module 'powf'.
7122         * modules/powf-tests: New file.
7123         * tests/test-powf.c: New file.
7124
7125         New module 'powf'.
7126         * lib/math.in.h (powf): New declaration.
7127         * lib/powf.c: New file.
7128         * m4/powf.m4: New file.
7129         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7131         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7132         * modules/powf: New file.
7133         * tests/test-math-c++.cc: Check the declaration of powf.
7134         * doc/posix-functions/powf.texi: Mention the new module.
7135
7136         pow: Use a .m4 file.
7137         * m4/pow.m4: New file.
7138         * modules/pow (Files): Add it.
7139         (configure.ac): Just invoke gl_FUNC_POW.
7140
7141 2011-10-08  Bruno Haible  <bruno@clisp.org>
7142
7143         Tests for module 'log10f'.
7144         * modules/log10f-tests: New file.
7145         * tests/test-log10f.c: New file.
7146
7147         New module 'log10f'.
7148         * lib/math.in.h (log10f): New declaration.
7149         * lib/log10f.c: New file.
7150         * m4/log10f.m4: New file.
7151         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7153         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7154         * modules/log10f: New file.
7155         * tests/test-math-c++.cc: Check the declaration of log10f.
7156         * doc/posix-functions/log10f.texi: Mention the new module.
7157
7158         log10: Use a .m4 file.
7159         * m4/log10.m4: New file.
7160         * modules/log10 (Files): Add it.
7161         (configure.ac): Just invoke gl_FUNC_LOG10.
7162
7163 2011-10-08  Bruno Haible  <bruno@clisp.org>
7164
7165         Tests for module 'logf'.
7166         * modules/logf-tests: New file.
7167         * tests/test-logf.c: New file.
7168
7169         New module 'logf'.
7170         * lib/math.in.h (logf): New declaration.
7171         * lib/logf.c: New file.
7172         * m4/logf.m4: New file.
7173         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7175         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7176         * modules/logf: New file.
7177         * tests/test-math-c++.cc: Check the declaration of logf.
7178         * doc/posix-functions/logf.texi: Mention the new module.
7179
7180         log: Use a .m4 file.
7181         * m4/log.m4: New file.
7182         * modules/log (Files): Add it.
7183         (configure.ac): Just invoke gl_FUNC_LOG.
7184
7185 2011-10-08  Bruno Haible  <bruno@clisp.org>
7186
7187         Tests for module 'expf'.
7188         * modules/expf-tests: New file.
7189         * tests/test-expf.c: New file.
7190
7191         New module 'expf'.
7192         * lib/math.in.h (expf): New declaration.
7193         * lib/expf.c: New file.
7194         * m4/expf.m4: New file.
7195         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7197         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7198         * modules/expf: New file.
7199         * tests/test-math-c++.cc: Check the declaration of expf.
7200         * doc/posix-functions/expf.texi: Mention the new module.
7201
7202         exp: Use a .m4 file.
7203         * m4/exp.m4: New file.
7204         * modules/exp (Files): Add it.
7205         (configure.ac): Just invoke gl_FUNC_EXP.
7206
7207 2011-10-08  Bruno Haible  <bruno@clisp.org>
7208
7209         Tests for module 'sqrtf'.
7210         * modules/sqrtf-tests: New file.
7211         * tests/test-sqrtf.c: New file.
7212
7213         New module 'sqrtf'.
7214         * lib/math.in.h (sqrtf): New declaration.
7215         * lib/sqrtf.c: New file.
7216         * m4/sqrtf.m4: New file.
7217         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7219         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7220         * modules/sqrtf: New file.
7221         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7222         * doc/posix-functions/sqrtf.texi: Mention the new module.
7223
7224 2011-10-08  Bruno Haible  <bruno@clisp.org>
7225
7226         Tests: Avoid link failures w.r.t. libintl.
7227         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7228         $(LIBINTL).
7229         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7230         $(LIBINTL).
7231         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7232         against $(LIBINTL).
7233         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7234         $(LIBINTL).
7235         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7236         $(LIBINTL).
7237         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7238
7239 2011-10-08  Bruno Haible  <bruno@clisp.org>
7240
7241         pow tests: Defeat compiler optimizations.
7242         * tests/test-pow.c (main): Assign arguments to x and y before use.
7243
7244 2011-10-08  Bruno Haible  <bruno@clisp.org>
7245
7246         gnulib-tool: Improve last commit.
7247         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7248         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7249         ignore dependencies that are not among the modules list.
7250
7251 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7252
7253         gnulib-tool: don't follow dependencies to avoided modules
7254         This fixes a bug that is related to the previous one.
7255         * gnulib-tool (func_modules_transitive_closure)
7256         (func_emit_autoconf_snippets):
7257         Check whether a dependency is acceptable before using it.
7258         (--extract-dependencies): Report an error if --avoid is also used,
7259         since this combination of options is not yet supported.
7260
7261         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7262         Problem reported by Peter Dyballa in
7263         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7264         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7265         when echoing "$condition".
7266
7267 2011-10-07  Bruno Haible  <bruno@clisp.org>
7268
7269         Fix documentation about math functions on MacOS X.
7270         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7271         MacOS X 10.5.
7272         * doc/posix-functions/fdim.texi: Likewise.
7273         * doc/posix-functions/feclearexcept.texi: Likewise.
7274         * doc/posix-functions/fegetenv.texi: Likewise.
7275         * doc/posix-functions/fegetround.texi: Likewise.
7276         * doc/posix-functions/feholdexcept.texi: Likewise.
7277         * doc/posix-functions/feraiseexcept.texi: Likewise.
7278         * doc/posix-functions/fesetenv.texi: Likewise.
7279         * doc/posix-functions/fesetround.texi: Likewise.
7280         * doc/posix-functions/fetestexcept.texi: Likewise.
7281         * doc/posix-functions/feupdateenv.texi: Likewise.
7282         * doc/posix-functions/fmax.texi: Likewise.
7283         * doc/posix-functions/fmin.texi: Likewise.
7284         * doc/posix-functions/log2.texi: Likewise.
7285         * doc/posix-functions/modff.texi: Likewise.
7286         * doc/posix-functions/nan.texi: Likewise.
7287         * doc/posix-functions/nanf.texi: Likewise.
7288         * doc/posix-functions/nextafterf.texi: Likewise.
7289         * doc/posix-functions/remquo.texi: Likewise.
7290
7291 2011-10-07  Bruno Haible  <bruno@clisp.org>
7292
7293         modff: Drop assumption about library that defines modff.
7294         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7295         AC_CHECK_FUNCS.
7296         * modules/modff (Files): Add m4/mathfunc.m4.
7297
7298 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7299
7300         raise tests: Avoid a GCC warning.
7301         * tests/test-raise.c (handler): Use _Noreturn.
7302
7303 2011-10-07  Bruno Haible  <bruno@clisp.org>
7304
7305         Tests for module 'ldexpf'.
7306         * modules/ldexpf-tests: New file.
7307         * tests/test-ldexpf.c: New file.
7308
7309         New module 'ldexpf'.
7310         * lib/math.in.h (ldexpf): New declaration.
7311         * lib/ldexpf.c: New file.
7312         * m4/ldexpf.m4: New file.
7313         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7315         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7316         * modules/ldexpf: New file.
7317         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7318         * doc/posix-functions/ldexpf.texi: Mention the new module.
7319
7320 2011-10-06  Bruno Haible  <bruno@clisp.org>
7321
7322         frexpf: Work around problems on IRIX and mingw.
7323         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7325         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7326         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7327         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7328         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7329         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7330
7331 2011-10-06  Bruno Haible  <bruno@clisp.org>
7332
7333         fabsf: Drop assumption about library that defines fabsf.
7334         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7335         AC_CHECK_FUNCS.
7336         * modules/fabsf (Files): Add m4/mathfunc.m4.
7337
7338 2011-10-06  Bruno Haible  <bruno@clisp.org>
7339
7340         frexpf: Drop assumption about library that defines frexpf.
7341         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7342         'int *', 'float *', 'long double *', 'float', 'long double'.
7343         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7344         AC_CHECK_FUNCS.
7345         * modules/frexpf (Files): Add m4/mathfunc.m4.
7346
7347         Tests for module 'frexpf'.
7348         * modules/frexpf-tests: New file.
7349         * tests/test-frexpf.c: New file.
7350
7351         New module 'frexpf'.
7352         * lib/math.in.h (frexpf): New declaration.
7353         * lib/frexpf.c: New file.
7354         * m4/frexpf.m4: New file.
7355         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7357         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7358         * modules/frexpf: New file.
7359         * tests/test-math-c++.cc: Check the declaration of frexpf.
7360         * doc/posix-functions/frexpf.texi: Mention the new module.
7361
7362 2011-10-06  Bruno Haible  <bruno@clisp.org>
7363
7364         math: Sort function declarations of math.in.h.
7365         * lib/math.in.h (frexp, logb): Move declarations.
7366
7367 2011-10-05  Bruno Haible  <bruno@clisp.org>
7368
7369         Tests for module 'modff'.
7370         * modules/modff-tests: New file.
7371         * tests/test-modff.c: New file.
7372
7373         New module 'modff'.
7374         * lib/math.in.h (modff): New declaration.
7375         * lib/modff.c: New file.
7376         * m4/modff.m4: New file.
7377         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7379         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7380         * modules/modff: New file.
7381         * tests/test-math-c++.cc: Check the declaration of modff.
7382         * doc/posix-functions/modff.texi: Mention the new module.
7383
7384         modf tests: Make test sharper.
7385         * tests/test-modf.c (main): Strengthen upper bound.
7386
7387         modf: Use a .m4 file.
7388         * m4/modf.m4: New file.
7389         * modules/modf (Files): Add it.
7390         (configure.ac): Just invoke gl_FUNC_MODF.
7391
7392 2011-10-05  Bruno Haible  <bruno@clisp.org>
7393
7394         Tests for module 'fmodf'.
7395         * modules/fmodf-tests: New file.
7396         * tests/test-fmodf.c: New file.
7397
7398         New module 'fmodf'.
7399         * lib/math.in.h (fmodf): New declaration.
7400         * lib/fmodf.c: New file.
7401         * m4/fmodf.m4: New file.
7402         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7404         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7405         * modules/fmodf: New file.
7406         * tests/test-math-c++.cc: Check the declaration of fmodf.
7407         * doc/posix-functions/fmodf.texi: Mention the new module.
7408
7409         fmod: Use a .m4 file.
7410         * m4/fmod.m4: New file.
7411         * modules/fmod (Files): Add it.
7412         (configure.ac): Just invoke gl_FUNC_FMOD.
7413
7414 2011-10-05  Bruno Haible  <bruno@clisp.org>
7415
7416         Tests for module 'fabsf'.
7417         * modules/fabsf-tests: New file.
7418         * tests/test-fabsf.c: New file.
7419
7420         New module 'fabsf'.
7421         * lib/math.in.h (fabsf): New declaration.
7422         * lib/fabsf.c: New file.
7423         * m4/fabsf.m4: New file.
7424         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7426         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7427         * modules/fabsf: New file.
7428         * tests/test-math-c++.cc: Check the declaration of fabsf.
7429         * doc/posix-functions/fabsf.texi: Mention the new module.
7430
7431         fabs: Use a .m4 file.
7432         * m4/fabs.m4: New file.
7433         * modules/fabs (Files): Add it.
7434         (configure.ac): Just invoke gl_FUNC_FABS.
7435
7436 2011-10-05  Jim Meyering  <meyering@redhat.com>
7437
7438         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7439         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7440         ls -lL regression introduced in coreutils-8.12, it does so at the
7441         cost of an additional stat call in the common case.  Besides, now
7442         that the kernel change that prompted commit 95f7c57f has been reverted
7443         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7444         we have no use for commit 95f7c57f, "file-has-acl: use
7445         acl_extended_file_nofollow if available".
7446
7447 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7448
7449         file-has-acl: revert unintended change in behavior of ls -L
7450         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7451         derived from...
7452         (file_has_acl): ...code here.  Call it.
7453         This problem was introduced with 2011-07-22 commit 95f7c57f,
7454         "file-has-acl: use acl_extended_file_nofollow if available".
7455         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7456
7457 2011-10-03  Bruno Haible  <bruno@clisp.org>
7458
7459         poll: Avoid link errors on MSVC.
7460         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7461         * modules/poll (Depends-on): Add sockets.
7462         (Link): New section.
7463         * NEWS: Mention the change.
7464         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7465         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7466         $(LIB_POLL) instead of $(LIBSOCKET).
7467
7468 2011-10-03  Bruno Haible  <bruno@clisp.org>
7469
7470         sys_select tests: Fix link error on MSVC 9.
7471         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7472         with $(LIB_SELECT) instead of $(LIBSOCKET).
7473
7474 2011-10-03  Bruno Haible  <bruno@clisp.org>
7475
7476         sys_select: Fix compilation error on mingw.
7477         * lib/sys_select.in.h: On native Windows, include <io.h>.
7478
7479 2011-10-03  Bruno Haible  <bruno@clisp.org>
7480
7481         wmemset: Support for MSVC.
7482         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7483         whether wmemset() exists.
7484
7485 2011-10-03  Bruno Haible  <bruno@clisp.org>
7486
7487         wmemmove: Support for MSVC.
7488         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7489         whether wmemmove() exists.
7490
7491 2011-10-03  Bruno Haible  <bruno@clisp.org>
7492
7493         wmemcpy: Support for MSVC.
7494         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7495         whether wmemcpy() exists.
7496
7497 2011-10-03  Bruno Haible  <bruno@clisp.org>
7498
7499         wmemcmp: Support for MSVC.
7500         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7501         whether wmemcmp() exists.
7502
7503 2011-10-03  Bruno Haible  <bruno@clisp.org>
7504
7505         wmemchr: Support for MSVC.
7506         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7507         whether wmemchr() exists.
7508
7509 2011-10-03  Bruno Haible  <bruno@clisp.org>
7510
7511         glthread/*, strsignal: Support for MSVC.
7512         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7513         including <winsock.h> on MSVC 9.
7514         * lib/glthread/lock.h: Likewise.
7515         * lib/glthread/thread.h: Likewise.
7516         * lib/glthread/tls.h: Likewise.
7517         * lib/glthread/yield.h: Likewise.
7518         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7519         if HAVE_UNISTD_H is false.
7520         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7521
7522 2011-10-03  Bruno Haible  <bruno@clisp.org>
7523
7524         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7525         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7526         Set to 100000.
7527
7528 2011-10-03  Bruno Haible  <bruno@clisp.org>
7529
7530         acl: Fix specification.
7531         * lib/file-has-acl.c (file_has_acl): Fix specification.
7532
7533 2011-10-03  Bruno Haible  <bruno@clisp.org>
7534
7535         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7536         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7537         (compute_curr_prefix, shared_library_fullname,
7538         find_shared_library_fullname, get_shared_library_fullname, relocate):
7539         Use it together with PIC && INSTALLDIR.
7540         Reported by <jojelino@gmail.com>
7541         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7542
7543 2011-10-01  Jim Meyering  <meyering@redhat.com>
7544
7545         maint.mk: adjust a release-related rule not to require use of gzip
7546         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7547         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7548         projects that build only .tar.xz files.  Also fix an erroneous test.
7549
7550         test-linkat: don't leave behind a temporary file
7551         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7552         Otherwise, coreutils' "make distcheck" would fail with this:
7553           Only in /c/cu/tests/torture/coreutils/test/\
7554             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7555           make[2]: *** [my-distcheck] Error 1
7556
7557         float, math: add omitted file
7558         * lib/itold.c: Add file, required for yesterday's float change.
7559
7560 2011-10-01  Bruno Haible  <bruno@clisp.org>
7561
7562         isinf: Fix for OpenBSD/x86.
7563         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7564         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7565         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7566
7567 2011-10-01  Bruno Haible  <bruno@clisp.org>
7568
7569         isfinite: Fix syntax error in configure test.
7570         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7571
7572         isfinite: Fix typo.
7573         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7574         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7575
7576 2011-10-01  Bruno Haible  <bruno@clisp.org>
7577
7578         nonblocking tests: Fix test failure on Linux/IA-64.
7579         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7580         Set to 270000.
7581
7582 2011-10-01  Bruno Haible  <bruno@clisp.org>
7583
7584         mkfifoat tests: Fix a test failure on mingw.
7585         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7586         with error ENOSYS.
7587
7588 2011-09-30  Bruno Haible  <bruno@clisp.org>
7589
7590         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7591         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7592         'long double'. Set REPLACE_ITOLD.
7593         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7594         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7595         * lib/itold.c: New file.
7596         * modules/float (Files): Add lib/itold.c.
7597         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7598         (Makefile.am): Substitute REPLACE_ITOLD.
7599         * modules/math (Depends-on): Add float.
7600         (Makefile.am): Substitute REPLACE_ITOLD.
7601         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7602         * doc/posix-headers/math.texi: Likewise.
7603         * doc/posix-functions/logl.texi: Likewise.
7604
7605 2011-09-30  Bruno Haible  <bruno@clisp.org>
7606
7607         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7608         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7609         Set to 140000.
7610
7611 2011-09-30  Bruno Haible  <bruno@clisp.org>
7612
7613         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7614         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7615         invocation, say "right after AC_PROG_CC_STDC", not "right after
7616         AC_PROG_CC".
7617         Reported by Gary V. Vaughan <gary@gnu.org>.
7618
7619 2011-09-30  Bruno Haible  <bruno@clisp.org>
7620
7621         Centralize C99 requirement.
7622         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7623         * modules/stdarg (configure.ac-early): Invoke it instead of
7624         AC_PROG_CC_STDC.
7625         Reported by Gary V. Vaughan and Paul Eggert.
7626
7627 2011-09-29  Bruno Haible  <bruno@clisp.org>
7628
7629         float: Fix LDBL_MAX value on Linux/PowerPC.
7630         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7631         on Linux/PowerPC.
7632         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7633         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7634         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7635         platform.
7636         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7637
7638 2011-09-29  Bruno Haible  <bruno@clisp.org>
7639
7640         doc: Improve doc about gl_EARLY.
7641         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7642         AC_PROG_CC_STDC invocation.
7643         Reported by Gary V. Vaughan <gary@gnu.org>.
7644
7645 2011-09-28  Bruno Haible  <bruno@clisp.org>
7646
7647         fgetc, fputc, fread, fwrite tests: Fix link error.
7648         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7649         on non-MSVC platforms.
7650         * tests/test-fputc.c (main): Likewise.
7651         * tests/test-fread.c (main): Likewise.
7652         * tests/test-fwrite.c (main): Likewise.
7653         Reported by Jim Meyering.
7654
7655 2011-09-27  Bruno Haible  <bruno@clisp.org>
7656
7657         fputc, fwrite tests: Avoid test failure on MSVC.
7658         * tests/test-fgetc.c: Include msvc-inval.h.
7659         (main): Invoke gl_msvc_inval_ensure_handler.
7660         * tests/test-fputc.c: Include msvc-inval.h.
7661         (main): Invoke gl_msvc_inval_ensure_handler.
7662         * tests/test-fread.c: Include msvc-inval.h.
7663         (main): Invoke gl_msvc_inval_ensure_handler.
7664         * tests/test-fwrite.c: Include msvc-inval.h.
7665         (main): Invoke gl_msvc_inval_ensure_handler.
7666         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7667         * modules/fputc-tests (Depends-on): Likewise.
7668         * modules/fread-tests (Depends-on): Likewise.
7669         * modules/fwrite-tests (Depends-on): Likewise.
7670
7671 2011-09-27  Bruno Haible  <bruno@clisp.org>
7672
7673         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7674         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7675         (raise): Remove older, duplicated declaration.
7676         (_gl_raise_SIGPIPE): New declaration.
7677         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7678         (rpl_raise): Remove function.
7679         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7680         a gnulib-defined SIGPIPE here.
7681         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7682         'sigprocmask' has detected missing signal-blocking and the module
7683         'sigpipe' is enabled.
7684         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7685
7686 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7687
7688         base64-tests: avoid memory leak
7689         * tests/test-base64.c (main): Plug memory leak.
7690
7691         base32: new module
7692         * modules/base32: New module.
7693         * lib/base32.c: New file.
7694         * lib/base32.h: Likewise.
7695         * m4/base32.m4: Likewise.
7696         * modules/base32-tests: New test.
7697         * tests/test-base32.c: Likewise.
7698         * MODULES.html.sh (Misc): Mention it.
7699
7700 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7701
7702         gnulib: use more-standard license notice wording
7703         * gnulib-tool (func_emit_copyright_notice): When emitting a
7704         license notice into a file, use the standard wording as suggested
7705         by the current information for GNU maintainers, except say "file"
7706         rather than "program".  The new wording gives a license version
7707         number, which addresses an issue raised by Glenn Morris in
7708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7709         * m4/onceonly.m4: Use that same wording here, too.
7710
7711         dup2: minor simplification
7712         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7713         as lib/dup2.c no longer uses 'inline'.
7714
7715 2011-09-25  Bruno Haible  <bruno@clisp.org>
7716
7717         strings: Fix compilation error on MSVC.
7718         * lib/strings.in.h: Include <stddef.h> for size_t.
7719
7720 2011-09-25  Bruno Haible  <bruno@clisp.org>
7721
7722         fflush et al.: Document limitation on MSVC.
7723         * doc/posix-functions/fflush.texi: Document possible crash in handling
7724         mode other than DEFAULT_HANDLING.
7725         * doc/posix-functions/fgetc.texi: Likewise.
7726         * doc/posix-functions/fputc.texi: Likewise.
7727         * doc/posix-functions/fread.texi: Likewise.
7728         * doc/posix-functions/fwrite.texi: Likewise.
7729
7730 2011-09-25  Bruno Haible  <bruno@clisp.org>
7731
7732         msvc-inval: Allow three invalid parameter handling modes.
7733         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7734         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7735         macros.
7736         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7737         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7738         SANE_LIBRARY_HANDLING as a no-op.
7739         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7740         <stdlib.h>.
7741         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7742
7743 2011-09-25  Bruno Haible  <bruno@clisp.org>
7744
7745         msvc-inval: Make handler multithread-safe.
7746         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7747         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7748         declarations.
7749         (gl_msvc_inval_current): New declaration.
7750         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7751         Operate on the structure returned by gl_msvc_inval_current().
7752         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7753         Remove varaiables.
7754         (tls_index, tls_initialized): New variables.
7755         (not_per_thread): New variable.
7756         (gl_msvc_inval_current): New function.
7757         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7758         returned by gl_msvc_inval_current().
7759
7760 2011-09-25  Bruno Haible  <bruno@clisp.org>
7761
7762         msvc-inval: Install handler globally.
7763         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7764         !_MSC_VER.
7765         (gl_msvc_invalid_parameter_handler): Remove declaration.
7766         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7767         declarations.
7768         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7769         Install the handler globally, don't uninstall it.
7770         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7771         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7772         currently valid, call RaiseException instead.
7773         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7774         for !_MSC_VER.
7775
7776 2011-09-25  Bruno Haible  <bruno@clisp.org>
7777
7778         strerror_r-posix: Fix for MSVC 9.
7779         * lib/strerror_r.c (local_snprintf): New function.
7780         (snprintf): Define to local_snprintf, not to _snprintf.
7781
7782 2011-09-25  Bruno Haible  <bruno@clisp.org>
7783
7784         ftruncate: Support for MSVC 9.
7785         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7786         (chsize_nothrow): New function.
7787         (chsize): Redefine as a macro.
7788         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7789         * modules/ftruncate (Depends-on): Add msvc-inval.
7790
7791 2011-09-25  Bruno Haible  <bruno@clisp.org>
7792
7793         New module 'fstat'.
7794         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7795         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7796         * lib/fchdir.c (rpl_fstat): Remove function.
7797         * m4/fstat.m4: New file.
7798         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7799         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7800         declared.
7801         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7802         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7803         * modules/fstat: New file.
7804         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7805         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7806         is set.
7807         * doc/posix-functions/fstat.texi: Mention the new module and the
7808         problem on MSVC.
7809         * NEWS: Mention the change.
7810         * modules/acl (Depends-on): Add fstat.
7811         * modules/chdir-safer (Depends-on): Likewise.
7812         * modules/chown (Depends-on): Likewise.
7813         * modules/copy-file (Depends-on): Likewise.
7814         * modules/fchdir (Depends-on): Likewise.
7815         * modules/fdopendir (Depends-on): Likewise.
7816         * modules/fopen (Depends-on): Likewise.
7817         * modules/fts (Depends-on): Likewise.
7818         * modules/getcwd (Depends-on): Likewise.
7819         * modules/isapipe (Depends-on): Likewise.
7820         * modules/linkat (Depends-on): Likewise.
7821         * modules/lseek (Depends-on): Likewise.
7822         * modules/mkdir-p (Depends-on): Likewise.
7823         * modules/open (Depends-on): Likewise.
7824         * modules/openat (Depends-on): Likewise.
7825         * modules/read-file (Depends-on): Likewise.
7826         * modules/renameat (Depends-on): Likewise.
7827         * modules/utimens (Depends-on): Likewise.
7828
7829 2011-09-25  Bruno Haible  <bruno@clisp.org>
7830
7831         linkat: Fix compilation on MSVC 9.
7832         * lib/linkat.c: Don't include <stdint.h>.
7833
7834 2011-09-25  Bruno Haible  <bruno@clisp.org>
7835
7836         fclose: Support for MSVC 9.
7837         * lib/fclose.c: Include msvc-inval.h.
7838         (fclose_nothrow): New function.
7839         (rpl_fclose): Use it.
7840         * modules/fclose (Depends-on): Add msvc-inval.
7841         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7842
7843 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7844
7845         dup2: minor simplifications
7846         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7847         that it's a performance win.
7848         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7849         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7850
7851 2011-09-24  Jim Meyering  <meyering@redhat.com>
7852
7853         test-futimens: avoid a warning from gcc -Wshadow
7854         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7855         to avoid a shadowing warning.
7856
7857 2011-09-24  Bruno Haible  <bruno@clisp.org>
7858
7859         fdopen: Support for MSVC 9.
7860         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7861         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7862         * lib/fdopen.c: Include msvc-inval.h.
7863         (fdopen_nothrow): New function.
7864         (rpl_fdopen): Use it.
7865         * modules/fdopen (Depends-on): Add msvc-inval.
7866         * modules/fclose-tests (Depends-on): Add fdopen.
7867         * modules/fflush-tests (Depends-on): Likewise.
7868         * modules/fgetc-tests (Depends-on): Likewise.
7869         * modules/fputc-tests (Depends-on): Likewise.
7870         * modules/fread-tests (Depends-on): Likewise.
7871         * modules/freopen-tests (Depends-on): Likewise.
7872         * modules/fseeko-tests (Depends-on): Likewise.
7873         * modules/ftello-tests (Depends-on): Likewise.
7874         * modules/fwrite-tests  (Depends-on): Likewise.
7875         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7876
7877 2011-09-24  Bruno Haible  <bruno@clisp.org>
7878
7879         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7880         * modules/fgetc-tests (Depends-on): Add unistd.
7881         * modules/fputc-tests (Depends-on): Likewise.
7882         * modules/fread-tests (Depends-on): Likewise.
7883         * modules/fwrite-tests (Depends-on): Likewise.
7884
7885 2011-09-24  Bruno Haible  <bruno@clisp.org>
7886
7887         dup: Simplify autoconf test.
7888         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7889         on gl_MSVC_INVAL's result.
7890
7891 2011-09-24  Bruno Haible  <bruno@clisp.org>
7892
7893         Tests for function fwrite().
7894         * modules/fwrite-tests: New file.
7895         * tests/test-fwrite.c: New file.
7896         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7897
7898         Tests for function fread().
7899         * modules/fread-tests: New file.
7900         * tests/test-fread.c: New file.
7901         * modules/stdio-tests (Depends-on): Add fread-tests.
7902
7903         Activate fputc tests.
7904         * modules/stdio-tests (Depends-on): Add fputc-tests.
7905
7906         Enhance fgetc, fputc tests.
7907         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7908         * tests/test-fputc.c (main): Likewise.
7909
7910 2011-09-24  Bruno Haible  <bruno@clisp.org>
7911
7912         write: Support for MSVC 9.
7913         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7914         is not 1.
7915         * lib/write.c (write_nothrow): New function.
7916         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7917         not 1. Use write_nothrow.
7918         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7919         invalid parameter handler.
7920         (gl_PREREQ_WRITE): New macro.
7921         * modules/write (Depends-on): Add msvc-inval.
7922         (configure.ac): Invoke gl_PREREQ_WRITE.
7923         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7924
7925 2011-09-24  Bruno Haible  <bruno@clisp.org>
7926
7927         read: Fix last commit.
7928         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7929
7930 2011-09-24  Bruno Haible  <bruno@clisp.org>
7931
7932         dup2: Fix last commit.
7933         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7934         (rpl_dup2): Disable fcntl workaround on native Windows.
7935
7936         sigprocmask: Make code safer.
7937         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7938         section that changes macro definitions for this compilation unit.
7939
7940 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7941
7942         dup2: clarify by coalescing Windows-specific material
7943         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7944         "msvc-nothrow.h"' to the Windows-specific section, so that the
7945         Emacs source need not contain these include files.
7946         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7947         Windows-specific fixes into this function rather than just the
7948         nothrow fix, as this shortens and clarifies the code.  Always
7949         define as a function, as that's a bit cleaner than having it be
7950         sometimes a function and sometimes a macro.
7951         (rpl_dup2): Move the Windows-specific stuff out of here and into
7952         ms_windows_dup2.  Don't protect the Haiku-related fix with
7953         "#if !defined __linux__", as the same code also works around
7954         a Linux kernel bug, and it doesn't add any system calls on any
7955         platform.  Add comment about FreeBSD 6.1.
7956
7957         sigprocmask: move #include directive
7958         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7959         Windows-specific section, so that the Emacs source need not
7960         contain msvc-inval.h.
7961
7962 2011-09-23  Bruno Haible  <bruno@clisp.org>
7963
7964         read: Support for MSVC 9.
7965         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7966         is not 1.
7967         * lib/read.c (read_nothrow): New function.
7968         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7969         read_nothrow.
7970         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7971         invalid parameter handler.
7972         (gl_PREREQ_READ): New macro.
7973         * modules/read (Depends-on): Add msvc-inval.
7974         (configure.ac): Invoke gl_PREREQ_READ.
7975         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7976
7977 2011-09-23  Bruno Haible  <bruno@clisp.org>
7978
7979         close: Support for MSVC 9.
7980         * lib/close.c: Include <errno.h>, msvc-inval.h.
7981         (close_nothrow): New function.
7982         (rpl_close): Use it.
7983         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7984         invalid parameter handler.
7985         * modules/close (Depends-on): Add msvc-inval.
7986         * modules/dup2-tests (Depends-on): Add close.
7987         * modules/dup3-tests (Depends-on): Likewise.
7988         * modules/fcntl-tests (Depends-on): Likewise.
7989         * modules/spawn-pipe-tests (Depends-on): Likewise.
7990         * modules/unistd-safer-tests (Depends-on): Likewise.
7991         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7992
7993 2011-09-23  Bruno Haible  <bruno@clisp.org>
7994
7995         New module 'dup'.
7996         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7997         Allow replacement.
7998         * lib/dup.c: New file.
7999         * lib/fchdir.c (rpl_dup): Remove function.
8000         * m4/dup.m4: New file.
8001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8002         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8003         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8004         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8005         * modules/dup: New file.
8006         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8007         'dup' module is in use.
8008         * modules/fdopendir (Depends-on): Add dup.
8009         * modules/fdutimensat-tests (Depends-on): Likewise.
8010         * modules/fts (Depends-on): Likewise.
8011         * modules/futimens-tests (Depends-on): Likewise.
8012         * modules/posix_spawnp-tests (Depends-on): Likewise.
8013         * modules/unistd-safer-tests (Depends-on): Likewise.
8014         * modules/utimens-tests (Depends-on): Likewise.
8015         * doc/posix-functions/dup.texi: Mention the new module and the problem
8016         on MSVC.
8017
8018 2011-09-23  Bruno Haible  <bruno@clisp.org>
8019
8020         getdtablesize: Support for MSVC 9.
8021         * lib/getdtablesize.c: Include msvc-inval.h.
8022         (_setmaxstdio_nothrow): New function.
8023         (_setmaxstdio): Redefine it.
8024         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8025         * modules/getdtablesize (Depends-on): Add msvc-inval.
8026         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8027
8028 2011-09-23  Bruno Haible  <bruno@clisp.org>
8029
8030         signal-h: Rename from signal.
8031         * modules/signal-h: Renamed from modules/signal.
8032         * modules/pthread_sigmask (Depends-on): Update.
8033         * modules/raise (Depends-on): Likewise.
8034         * modules/sigaction (Depends-on): Likewise.
8035         * modules/sigpipe (Depends-on): Likewise.
8036         * modules/sigprocmask (Depends-on): Likewise.
8037         * modules/sys_select (Depends-on): Likewise.
8038         * modules/signal-h-tests: Renamed from modules/signal-tests.
8039         (Files, Depends-on, Makefile.am): Update.
8040         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8041         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8042         (Files, Makefile.am): Update.
8043         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8044         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8045         * modules/signal: New placeholder file.
8046         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8047         * doc/posix-headers/signal.texi: Update.
8048         * NEWS: Mention the change.
8049
8050 2011-09-23  Bruno Haible  <bruno@clisp.org>
8051
8052         sigprocmask: Avoid crashes through signal() on MSVC 9.
8053         * lib/sigprocmask.c: Include msvc-inval.h.
8054         (signal_nothrow): New function.
8055         (signal): Redefine it.
8056         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8057         * modules/sigprocmask (Depends-on): Add msvc-inval.
8058         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8059
8060 2011-09-23  Bruno Haible  <bruno@clisp.org>
8061
8062         Tests for module 'raise'.
8063         * modules/raise-tests: New file.
8064         * tests/test-raise.c: New file.
8065
8066         raise: Support for MSVC.
8067         * lib/signal.in.h (raise): New declaration.
8068         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8069         for native Windows platforms.
8070         * m4/raise.m4: New file.
8071         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8072         HAVE_RAISE, REPLACE_RAISE.
8073         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8074         REPLACE_RAISE.
8075         * modules/raise (Status, Notice): Remove fields.
8076         (Files): Add m4/raise.m4.
8077         (Depends-on): Add signal, msvc-inval.
8078         (configure.ac): Use the common idioms.
8079         (Maintainer): Add me.
8080         * tests/test-signal-c++.cc: Check the signature of raise.
8081         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8082
8083 2011-09-23  Bruno Haible  <bruno@clisp.org>
8084
8085         pipe2: Fix compilation on pre-C99 compilers.
8086         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8087
8088 2011-09-23  Bruno Haible  <bruno@clisp.org>
8089
8090         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8091         * lib/msvc-nothrow.h: New file.
8092         * lib/msvc-nothrow.c: New file.
8093         * m4/msvc-nothrow.m4: New file.
8094         * modules/msvc-nothrow: New file.
8095         * lib/dup2.c: Include msvc-nothrow.h.
8096         (rpl_dup2): No need to protect _get_osfhandle call here.
8097         * lib/accept4.c: Include msvc-nothrow.h.
8098         * lib/error.c: Likewise.
8099         * lib/fcntl.c: Likewise.
8100         * lib/lseek.c: Likewise.
8101         * lib/nonblocking.c: Likewise.
8102         * lib/poll.c: Likewise.
8103         * lib/read.c: Likewise.
8104         * lib/select.c: Likewise.
8105         * lib/sockets.h: Likewise.
8106         * lib/sockets.c: Likewise.
8107         * lib/stdio-read.c: Likewise.
8108         * lib/stdio-write.c: Likewise.
8109         * lib/write.c: Likewise.
8110         * lib/w32sock.h: Likewise.
8111         * lib/w32spawn.h: Likewise.
8112         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8113         * lib/fsync.c: Likewise.
8114         * lib/isapipe.c: Likewise.
8115         * modules/dup2 (Depends-on): Add msvc-nothrow.
8116         * modules/accept4 (Depends-on): Likewise.
8117         * modules/error (Depends-on): Likewise.
8118         * modules/fcntl (Depends-on): Likewise.
8119         * modules/lseek (Depends-on): Likewise.
8120         * modules/nonblocking (Depends-on): Likewise.
8121         * modules/poll (Depends-on): Likewise.
8122         * modules/read (Depends-on): Likewise.
8123         * modules/select (Depends-on): Likewise.
8124         * modules/sockets (Depends-on): Likewise.
8125         * modules/sigpipe (Depends-on): Likewise.
8126         * modules/write (Depends-on): Likewise.
8127         * modules/accept (Depends-on): Likewise.
8128         * modules/bind (Depends-on): Likewise.
8129         * modules/connect (Depends-on): Likewise.
8130         * modules/gethostname (Depends-on): Likewise.
8131         * modules/getpeername (Depends-on): Likewise.
8132         * modules/getsockname (Depends-on): Likewise.
8133         * modules/getsockopt (Depends-on): Likewise.
8134         * modules/ioctl (Depends-on): Likewise.
8135         * modules/listen (Depends-on): Likewise.
8136         * modules/recv (Depends-on): Likewise.
8137         * modules/recvfrom (Depends-on): Likewise.
8138         * modules/send (Depends-on): Likewise.
8139         * modules/sendto (Depends-on): Likewise.
8140         * modules/setsockopt (Depends-on): Likewise.
8141         * modules/shutdown (Depends-on): Likewise.
8142         * modules/socket (Depends-on): Likewise.
8143         * modules/execute (Depends-on): Likewise.
8144         * modules/spawn-pipe (Depends-on): Likewise.
8145         * modules/flock (Depends-on): Likewise.
8146         * modules/fsync (Depends-on): Likewise.
8147         * modules/isapipe (Depends-on): Likewise.
8148         * tests/test-cloexec.c: Include msvc-nothrow.h.
8149         * tests/test-dup-safer.c: Likewise.
8150         * tests/test-dup2.c: Likewise.
8151         * tests/test-dup3.c: Likewise.
8152         * tests/test-fcntl.c: Likewise.
8153         * tests/test-pipe.c: Likewise.
8154         * tests/test-pipe2.c: Likewise.
8155         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8156         * modules/unistd-safer-tests (Depends-on): Likewise.
8157         * modules/dup2-tests (Depends-on): Likewise.
8158         * modules/dup3-tests (Depends-on): Likewise.
8159         * modules/fcntl-tests (Depends-on): Likewise.
8160         * modules/pipe-posix-tests (Depends-on): Likewise.
8161         * modules/pipe2-tests (Depends-on): Likewise.
8162
8163 2011-09-23  Bruno Haible  <bruno@clisp.org>
8164
8165         dup2: Make code more maintainable.
8166         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8167         (rpl_dup2): Use it.
8168         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8169         * modules/dup2 (configure.ac): Invoke it.
8170         Reported by Paul Eggert.
8171
8172 2011-09-23  Bruno Haible  <bruno@clisp.org>
8173
8174         msvc-inval: Fix compilation error.
8175         * lib/msvc-inval.h: Include <excpt.h>.
8176
8177 2011-09-23  Bruno Haible  <bruno@clisp.org>
8178
8179         mkdir: Tweak for MSVC 9.
8180         * lib/sys_stat.in.h: Update comments.
8181         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8182
8183         Tests for module 'chdir'.
8184         * modules/chdir-tests: New file.
8185         * tests/test-chdir.c: New file.
8186
8187         New module 'chdir'.
8188         * modules/chdir: New file.
8189         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8190         (chdir): New declaration.
8191         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8192         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8193         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8194         * tests/test-unistd-c++.cc: Check signature of chdir.
8195         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8196         * modules/chdir-long (Depends-on): Add chdir.
8197         * modules/fchdir (Depends-on): Likewise.
8198         * modules/rename (Depends-on): Likewise.
8199         * modules/savewd (Depends-on): Likewise.
8200
8201         rmdir: Support for mingw, MSVC 9.
8202         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8203         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8204
8205         getcwd: Tweak for MSVC 9.
8206         * lib/unistd.in.h: Update comments.
8207         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8208
8209 2011-09-22  Bruno Haible  <bruno@clisp.org>
8210
8211         strerror_r-posix: Avoid a link error on MSVC.
8212         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8213         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8214
8215 2011-09-22  Bruno Haible  <bruno@clisp.org>
8216
8217         select: Avoid link errors on MSVC.
8218         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8219         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8220         * modules/pselect (Link): Likewise.
8221         * NEWS: Mention the change.
8222         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8223         test-select-stdin against $(LIB_SELECT).
8224         * modules/pselect-tests (Makefile.am): Link test-pselect against
8225         $(LIB_SELECT).
8226
8227 2011-09-22  Bruno Haible  <bruno@clisp.org>
8228
8229         select: Avoid compilation error on MSVC.
8230         * lib/select.c: Don't include <stdbool.h>.
8231
8232 2011-09-21  Bruno Haible  <bruno@clisp.org>
8233
8234         Consolidate all uses of PATH_MAX in *.m4 files.
8235         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8236         macros.
8237         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8238         and gl_PATHMAX_SNIPPET.
8239         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8240         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8241         * modules/chdir-long (Files): Add m4/pathmax.m4.
8242         * modules/getcwd (Files): Likewise.
8243
8244 2011-09-21  Bruno Haible  <bruno@clisp.org>
8245
8246         ftruncate: Un-deprecate, concentrate on Win32 support.
8247         * modules/ftruncate (Status, Notice): Remove sections.
8248         (Depends-on): Add largefile.
8249         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8250         non-mingw platforms.
8251         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8252         include <io.h>.
8253         * modules/perror-tests (Depends-on): Add ftruncate.
8254         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8255         'ftruncate' module.
8256
8257 2011-09-21  Bruno Haible  <bruno@clisp.org>
8258
8259         Add dependencies to new dirent related modules.
8260         * modules/opendir (Depends-on): Add closedir.
8261         * modules/getcwd (Depends-on): Add opendir, closedir.
8262         * modules/dirent-safer-tests (Depends-on): Likewise.
8263         * modules/fdopendir-tests (Depends-on): Likewise.
8264         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8265         * modules/renameat-tests (Depends-on): Likewise.
8266
8267 2011-09-21  Bruno Haible  <bruno@clisp.org>
8268
8269         opendir: Avoid compilation error on mingw.
8270         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8271         * modules/opendir (Depends-on): Add unistd.
8272
8273 2011-09-21  Bruno Haible  <bruno@clisp.org>
8274
8275         ftruncate tests: Avoid a test failure on mingw.
8276         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8277
8278 2011-09-21  Bruno Haible  <bruno@clisp.org>
8279
8280         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8281         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8282         native Windows.
8283
8284 2011-09-21  Bruno Haible  <bruno@clisp.org>
8285
8286         New module 'fdopen'.
8287         * lib/stdio.in.h (fdopen): New declaration.
8288         * lib/fdopen.c: New file.
8289         * m4/fdopen.m4: New file.
8290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8291         REPLACE_FDOPEN.
8292         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8293         REPLACE_FDOPEN.
8294         * modules/fdopen: New file.
8295         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8296         * tests/test-stdio-c++.cc: Check signature of fdopen.
8297         * doc/posix-functions/fdopen.texi: Mention the new module.
8298
8299 2011-09-21  Bruno Haible  <bruno@clisp.org>
8300
8301         unlockpt tests: Avoid test failure on NetBSD 5.1.
8302         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8303         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8304
8305 2011-09-21  Bruno Haible  <bruno@clisp.org>
8306
8307         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8308         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8309         * tests/test-getlogin_r.c (main): Likewise.
8310
8311 2011-09-20  Bruno Haible  <bruno@clisp.org>
8312
8313         time tests: Don't require pid_t.
8314         * doc/posix-headers/time.texi: Revert last change.
8315         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8316         * tests/test-time.c: Comment out the check for pid_t.
8317
8318 2011-09-20  Bruno Haible  <bruno@clisp.org>
8319
8320         fsync tests: Avoid a test failure on mingw.
8321         * tests/test-fsync.c (main): Allow a failure with EIO.
8322
8323 2011-09-20  Bruno Haible  <bruno@clisp.org>
8324
8325         euidaccess: Update comments.
8326         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8327
8328 2011-09-20  Bruno Haible  <bruno@clisp.org>
8329
8330         Ensure EBADF returns for socket functions on mingw.
8331         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8332         descriptor is invalid.
8333         * lib/bind.c (rpl_bind): Likewise.
8334         * lib/connect.c (rpl_connect): Likewise.
8335         * lib/getpeername.c (rpl_getpeername): Likewise.
8336         * lib/getsockname.c (rpl_getsockname): Likewise.
8337         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8338         * lib/listen.c (rpl_listen): Likewise.
8339         * lib/recv.c (rpl_recv): Likewise.
8340         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8341         * lib/send.c (rpl_send): Likewise.
8342         * lib/sendto.c (rpl_sendto): Likewise.
8343         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8344         * lib/shutdown.c (rpl_shutdown): Likewise.
8345
8346 2011-09-20  Bruno Haible  <bruno@clisp.org>
8347
8348         select tests: EBADF tests.
8349         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8350         test_bad_fd): New functions.
8351         (test_function): Invoke also test_bad_fd.
8352
8353 2011-09-20  Bruno Haible  <bruno@clisp.org>
8354
8355         Tests for module 'posix_spawn_file_actions_addopen.
8356         * modules/posix_spawn_file_actions_addopen-tests: New file.
8357         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8358
8359         Tests for module 'posix_spawn_file_actions_adddup2'.
8360         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8361         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8362
8363         Tests for module 'posix_spawn_file_actions_addclose'.
8364         * modules/posix_spawn_file_actions_addclose-tests: New file.
8365         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8366
8367 2011-09-20  Bruno Haible  <bruno@clisp.org>
8368
8369         Tests for module 'unlockpt'.
8370         * modules/unlockpt-tests: New file.
8371         * tests/test-unlockpt.c: New file.
8372         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8373
8374         Tests for module 'grantpt'.
8375         * modules/grantpt-tests: New file.
8376         * tests/test-grantpt.c: New file.
8377         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8378
8379 2011-09-20  Bruno Haible  <bruno@clisp.org>
8380
8381         freopen tests: EBADF tests.
8382         * tests/test-freopen.c: Include errno.h, unistd.h.
8383         (main): Add tests for EBADF, commented out for the moment.
8384
8385         fclose tests: EBADF tests.
8386         * tests/test-fclose.c (main): Add tests for EBADF.
8387
8388         fflush tests: EBADF tests.
8389         * tests/test-fflush.c: Include errno.h, macros.h.
8390         (main): Add tests for EBADF.
8391
8392         ftello tests: EBADF tests.
8393         * tests/test-ftello4.sh: New file.
8394         * tests/test-ftello4.c: New file.
8395         * modules/ftello-tests (Files): Add them.
8396         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8397
8398         fseeko tests: EBADF tests.
8399         * tests/test-fseeko4.sh: New file.
8400         * tests/test-fseeko4.c: New file.
8401         * modules/fseeko-tests (Files): Add them.
8402         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8403
8404         Tests for function fputc().
8405         * modules/fputc-tests: New file.
8406         * tests/test-fputc.c: New file.
8407         * modules/stdio-tests (Depends-on): Add fputc-tests.
8408
8409         Tests for function fgetc().
8410         * modules/fgetc-tests: New file.
8411         * tests/test-fgetc.c: New file.
8412         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8413
8414         Tests for function fdopen().
8415         * modules/fdopen-tests: New file.
8416         * tests/test-fdopen.c: New file.
8417         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8418
8419         Tests for module 'vdprintf'.
8420         * modules/vdprintf-tests: New file.
8421         * tests/test-vdprintf.c: New file.
8422
8423         Tests for module 'dprintf'.
8424         * modules/dprintf-tests: New file.
8425         * tests/test-dprintf.c: New file.
8426
8427 2011-09-20  Bruno Haible  <bruno@clisp.org>
8428
8429         Tests for module 'ioctl'.
8430         * modules/ioctl-tests: New file.
8431         * tests/test-ioctl.c: New file.
8432
8433 2011-09-20  Bruno Haible  <bruno@clisp.org>
8434
8435         fcntl tests: EBADF tests.
8436         * tests/test-fcntl.c (main): Add more tests for EBADF.
8437
8438 2011-09-20  Bruno Haible  <bruno@clisp.org>
8439
8440         utimensat tests: EBADF tests.
8441         * tests/test-utimensat.c (main): Add tests for EBADF.
8442
8443         renameat tests: EBADF tests.
8444         * tests/test-renameat.c (main): Add tests for EBADF.
8445
8446         mkfifoat tests: EBADF tests.
8447         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8448
8449         readlinkat tests: EBADF tests.
8450         * tests/test-readlinkat.c (main): Add tests for EBADF.
8451
8452         symlinkat tests: EBADF tests.
8453         * tests/test-symlinkat.c (main): Add tests for EBADF.
8454
8455         linkat tests: EBADF tests.
8456         * tests/test-linkat.c (main): Add tests for EBADF.
8457
8458         Tests for module 'faccessat'.
8459         * modules/faccessat-tests: New file.
8460         * tests/test-faccessat.c: New file.
8461
8462         fdopendir tests: EBADF tests.
8463         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8464
8465         openat tests: EBADF tests.
8466         * tests/test-fchownat.c (main): Add tests for EBADF.
8467         * tests/test-fstatat.c (main): Likewise.
8468         * tests/test-mkdirat.c (main): Likewise.
8469         * tests/test-openat.c (main): Likewise.
8470         * tests/test-unlinkat.c (main): Likewise.
8471         * tests/test-fchmodat.c: New file.
8472         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8473         (Makefile.am): Also run 'test-fchmodat'.
8474
8475 2011-09-20  Bruno Haible  <bruno@clisp.org>
8476
8477         utimens, futimens, fdutimensat tests: EBADF tests.
8478         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8479
8480         Tests for function fstat().
8481         * modules/fstat-tests: New file.
8482         * tests/test-fstat.c: New file.
8483         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8484
8485 2011-09-20  Bruno Haible  <bruno@clisp.org>
8486
8487         test-ttyname_r tests: EBADF tests.
8488         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8489
8490         Tests for module 'isatty'.
8491         * modules/isatty-tests: New file.
8492         * tests/test-isatty.c: New file.
8493
8494         Tests for module 'write'.
8495         * modules/write-tests: New file.
8496         * tests/test-write.c: New file.
8497
8498         Tests for module 'read'.
8499         * modules/read-tests: New file.
8500         * tests/test-read.c: New file.
8501
8502         pwrite tests: EBADF tests.
8503         * tests/test-pwrite.c (main): Add tests for EBADF.
8504
8505         pread tests: EBADF tests.
8506         * tests/test-pread.c (main): Add tests for EBADF.
8507
8508         lseek tests: EBADF tests.
8509         * tests/test-lseek.c (main): Add more tests for EBADF.
8510
8511         Tests for module 'ftruncate'.
8512         * modules/ftruncate-tests: New file.
8513         * tests/test-ftruncate.sh: New file.
8514         * tests/test-ftruncate.c: New file.
8515
8516         fsync tests: EBADF tests.
8517         * tests/test-fsync.c (main): Add more tests for EBADF.
8518
8519         fdatasync tests: EBADF tests.
8520         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8521
8522         Tests for module 'fchown'.
8523         * modules/fchown-tests: New file.
8524         * tests/test-fchown.c: New file.
8525
8526         Tests for module 'fchmod'.
8527         * modules/fchmod-tests: New file.
8528         * tests/test-fchmod.c: New file.
8529
8530         fchdir tests: EBADF tests.
8531         * tests/test-fchdir.c (main): Add more tests for EBADF.
8532
8533         dup2 tests: EBADF tests.
8534         * tests/test-dup2.c (main): Add more tests for EBADF.
8535
8536         Tests for module 'dup'.
8537         * modules/dup-tests: New file.
8538         * tests/test-dup.c: New file.
8539
8540         Tests for module 'close'.
8541         * modules/close-tests: New file.
8542         * tests/test-close.c: New file.
8543
8544 2011-09-20  Bruno Haible  <bruno@clisp.org>
8545
8546         Tests for module 'shutdown'.
8547         * modules/shutdown-tests: New file.
8548         * tests/test-shutdown.c: New file.
8549
8550         Tests for module 'setsockopt'.
8551         * modules/setsockopt-tests: New file.
8552         * tests/test-setsockopt.c: New file.
8553
8554         Tests for module 'sendto'.
8555         * modules/sendto-tests: New file.
8556         * tests/test-sendto.c: New file.
8557
8558         Tests for module 'send'.
8559         * modules/send-tests: New file.
8560         * tests/test-send.c: New file.
8561
8562         Tests for module 'recvfrom'.
8563         * modules/recvfrom-tests: New file.
8564         * tests/test-recvfrom.c: New file.
8565
8566         Tests for module 'recv'.
8567         * modules/recv-tests: New file.
8568         * tests/test-recv.c: New file.
8569
8570         Tests for module 'listen'.
8571         * modules/listen-tests: New file.
8572         * tests/test-listen.c: New file.
8573
8574         Tests for module 'getsockopt'.
8575         * modules/getsockopt-tests: New file.
8576         * tests/test-getsockopt.c: New file.
8577
8578         Tests for module 'getsockname'.
8579         * modules/getsockname-tests: New file.
8580         * tests/test-getsockname.c: New file.
8581
8582         Tests for module 'getpeername'.
8583         * modules/getpeername-tests: New file.
8584         * tests/test-getpeername.c: New file.
8585
8586         Tests for module 'connect'.
8587         * modules/connect-tests: New file.
8588         * tests/test-connect.c: New file.
8589
8590         Tests for module 'bind'.
8591         * modules/bind-tests: New file.
8592         * tests/test-bind.c: New file.
8593
8594         accept4 tests: Fix for native Windows.
8595         * tests/test-accept4.c: Include sockets.h.
8596         (main): Invoke gl_sockets_startup.
8597         * modules/accept4-tests (Depends-on): Add sockets.
8598
8599         accept tests: Fix for native Windows.
8600         * tests/test-accept.c: Include sockets.h.
8601         (main): Invoke gl_sockets_startup.
8602         * modules/accept-tests (Depends-on): Add sockets.
8603
8604 2011-09-19  Bruno Haible  <bruno@clisp.org>
8605
8606         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8607         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8608         do...while(0).
8609         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8610         Suggested by Paul Eggert.
8611
8612 2011-09-19  Bruno Haible  <bruno@clisp.org>
8613
8614         sched: Ensure pid_t is defined.
8615         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8616         not define pid_t.
8617         * lib/sched.in.h: Include <sys/types.h>.
8618         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8620
8621 2011-09-19  Bruno Haible  <bruno@clisp.org>
8622
8623         msvc-inval: Ensure the entire expansion is a single statement.
8624         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8625         of braces.
8626
8627 2011-09-19  Jim Meyering  <meyering@redhat.com>
8628
8629         tests: use printf, not echo in init.sh's warn_ function
8630         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8631         misbehave when given strings containing a backslash or starting
8632         with e.g., -n.  James Youngman suggested setting IFS.
8633
8634 2011-09-19  Eric Blake  <eblake@redhat.com>
8635
8636         futimens: enhance test
8637         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8638         closed non-negative fd.
8639
8640         date: accept 'hence' as opposite of 'ago'
8641         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8642         * tests/test-parse-datetime.c (main): Enhance test.
8643         Suggested by Jesse Wilson.
8644
8645 2011-09-19  Jim Meyering  <meyering@redhat.com>
8646
8647         getcwd: don't fail in a deep directory on a system without openat
8648         Before this change, getcwd would fail when called from a directory
8649         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8650         the non-openat implementation used "..", "../..", "../../..", etc.
8651         to access ancestor directories.  With too many, that string would
8652         be longer than PATH_MAX.
8653         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8654         using gnulib's openat replacement.
8655         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8656         we're using the replacement function.
8657
8658 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8659
8660         maint.mk: avoid warnings from perl about missing files
8661         * top/maint.mk (def_sym_regex): Ignore files listed in
8662         $(gl_other_headers_) that do not exist, say because a project
8663         does not use a corresponding module.
8664
8665 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8666
8667         stat: use pathmax.h only if needed
8668         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8669         This is better for Emacs, which does not have a mingw port and
8670         therefore can avoid the pathmax module.
8671
8672         utimens: remove dependency on dup2
8673         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8674         to work around the Linux kernel bug.
8675         * modules/utimens (Depends-on): Remove dup2.
8676
8677 2011-09-18  Bruno Haible  <bruno@clisp.org>
8678
8679         inet_ntop, inet_pton: Look for it also in libresolv.
8680         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8681         libnsl, search for it in libresolv.
8682         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8683         Needed on Solaris 7.
8684
8685 2011-09-18  Bruno Haible  <bruno@clisp.org>
8686
8687         accept, accept4 tests: Avoid link error on Solaris.
8688         * modules/accept-tests (Makefile.am): Link test-accept against
8689         $(LIBSOCKET).
8690         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8691         $(LIBSOCKET).
8692
8693         accept4: Avoid link error on Solaris.
8694         * modules/accept4 (Link): New section.
8695
8696         socket functions: Avoid link errors on Solaris.
8697         * modules/accept (Depends-on): Add socketlib.
8698         (Link): New section.
8699         * modules/bind (Depends-on): Add socketlib.
8700         (Link): New section.
8701         * modules/connect (Depends-on): Add socketlib.
8702         (Link): New section.
8703         * modules/getpeername (Depends-on): Add socketlib.
8704         (Link): New section.
8705         * modules/getsockname (Depends-on): Add socketlib.
8706         (Link): New section.
8707         * modules/getsockopt (Depends-on): Add socketlib.
8708         (Link): New section.
8709         * modules/listen (Depends-on): Add socketlib.
8710         (Link): New section.
8711         * modules/recv (Depends-on): Add socketlib.
8712         (Link): New section.
8713         * modules/recvfrom (Depends-on): Add socketlib.
8714         (Link): New section.
8715         * modules/send (Depends-on): Add socketlib.
8716         (Link): New section.
8717         * modules/sendto (Depends-on): Add socketlib.
8718         (Link): New section.
8719         * modules/setsockopt (Depends-on): Add socketlib.
8720         (Link): New section.
8721         * modules/shutdown (Depends-on): Add socketlib.
8722         (Link): New section.
8723         * modules/socket (Depends-on): Add socketlib.
8724         (Link): New section.
8725
8726 2011-09-18  Bruno Haible  <bruno@clisp.org>
8727
8728         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8729         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8730         than 5 seconds.
8731         * modules/ptsname-tests (configure.ac): Test for alarm.
8732
8733 2011-09-18  Bruno Haible  <bruno@clisp.org>
8734
8735         posix_spawn_file_actions_add*: Fix module dependencies.
8736         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8737         posix_spawn_file_actions_init.
8738         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8739         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8740
8741 2011-09-18  Bruno Haible  <bruno@clisp.org>
8742
8743         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8744         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8745         * tests/test-renameat.c (main): Likewise.
8746
8747 2011-09-18  Bruno Haible  <bruno@clisp.org>
8748
8749         Tests for module 'accept4'.
8750         * modules/accept4-tests: New file.
8751         * tests/test-accept4.c: New file.
8752
8753 2011-09-18  Bruno Haible  <bruno@clisp.org>
8754
8755         Tests for module 'accept'.
8756         * modules/accept-tests: New file.
8757         * tests/test-accept.c: New file.
8758
8759 2011-09-18  Bruno Haible  <bruno@clisp.org>
8760
8761         dup2: Support for MSVC.
8762         * lib/dup2.c: Include msvc-inval.h.
8763         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8764         _get_osfhandle calls.
8765         * modules/dup2 (Depends-on): Add msvc-inval.
8766         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8767
8768         New module 'msvc-inval'.
8769         * lib/msvc-inval.h: New file.
8770         * lib/msvc-inval.c: New file.
8771         * m4/msvc-inval.m4: New file.
8772         * modules/msvc-inval: New file.
8773
8774 2011-09-17  Bruno Haible  <bruno@clisp.org>
8775
8776         Tests for module 'pclose'.
8777         * modules/pclose-tests: New file.
8778
8779         New module 'pclose'.
8780         * lib/stdio.in.h (pclose): New declaration.
8781         * lib/pclose.c: New file.
8782         * m4/pclose.m4: New file.
8783         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8784         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8785         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8786         * modules/pclose: New file.
8787         * modules/popen-tests (Depends-on): Add pclose.
8788         * modules/popen-safer-tests (Depends-on): Likewise.
8789         * doc/posix-functions/pclose.texi: Mention the new module.
8790
8791 2011-09-17  Bruno Haible  <bruno@clisp.org>
8792
8793         popen: Support for MSVC.
8794         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8795         * lib/popen.c (popen): Provide alternate definition for native Windows.
8796         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8798         * modules/popen (Depends-on, configure.ac): Update condition.
8799         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8800         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8801         fixed.
8802
8803 2011-09-17  Bruno Haible  <bruno@clisp.org>
8804
8805         isnanl, isnand, isnanf: Work around MSVC bug.
8806         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8807
8808 2011-09-17  Bruno Haible  <bruno@clisp.org>
8809
8810         sys_socket tests: Fix recent mistake.
8811         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8812
8813 2011-09-17  Bruno Haible  <bruno@clisp.org>
8814
8815         putenv: Support for MSVC.
8816         * modules/putenv (Depends-on): Add environ.
8817         * lib/putenv.c (environ): Disable declaration.
8818         * lib/unistd.in.h: Update comment.
8819
8820 2011-09-17  Bruno Haible  <bruno@clisp.org>
8821
8822         math: Avoid macro redefinition warnings on MSVC.
8823         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8824         Undefine before redefining.
8825
8826 2011-09-17  Bruno Haible  <bruno@clisp.org>
8827
8828         doc: Mention functions which are declared as macros.
8829         * doc/posix-functions/*[fl].texi: Mention that some functions are
8830         defined as macros with arguments only.
8831
8832 2011-09-17  Bruno Haible  <bruno@clisp.org>
8833
8834         Add dependencies to new dirent related modules.
8835         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8836         * modules/fts (Depends-on): Likewise.
8837         * modules/glob (Depends-on): Likewise.
8838         * modules/savedir (Depends-on): Likewise.
8839         * modules/scandir (Depends-on): Likewise.
8840         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8841         * modules/fdopendir (Depends-on): Add opendir.
8842
8843 2011-09-17  Bruno Haible  <bruno@clisp.org>
8844
8845         inet_pton: Support for MSVC on Windows Vista or newer.
8846         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8847         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8848         HAVE_DECL_INET_PTON is defined.
8849         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8850         On platforms with <winsock2.h>, test whether inet_pton is declared in
8851         <ws2tcpip.h>. If so, arrange to replace it.
8852         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8853         REPLACE_INET_PTON.
8854         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8855         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8856         (Depends-on, configure.ac): Update condition.
8857         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8858
8859 2011-09-17  Bruno Haible  <bruno@clisp.org>
8860
8861         inet_ntop: Support for MSVC on Windows Vista or newer.
8862         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8863         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8864         HAVE_DECL_INET_NTOP is defined.
8865         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8866         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8867         <ws2tcpip.h>. If so, arrange to replace it.
8868         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8869         REPLACE_INET_NTOP.
8870         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8871         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8872         (Depends-on, configure.ac): Update condition.
8873         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8874
8875 2011-09-16  Eric Blake  <eblake@redhat.com>
8876
8877         test-fsync: yet another enhancement
8878         * tests/test-fsync.c (main): Also test behavior on read-only text
8879         file.
8880
8881 2011-09-16  Bruno Haible  <bruno@clisp.org>
8882
8883         Enhance fsync, fdatasync tests.
8884         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8885         * tests/test-fdatasync.c (main): Likewise.
8886
8887 2011-09-16  Bruno Haible  <bruno@clisp.org>
8888
8889         Support for MSVC compiler: Ensure mode_t gets defined.
8890         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8891         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8892         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8893         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8894         * tests/test-fcntl-h.c: Check that mode_t is defined.
8895         * tests/test-sys_stat.c: Likewise.
8896         * tests/test-sys_types.c: Likewise.
8897         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8898         * doc/posix-headers/sys_stat.texi: Likewise.
8899         * doc/posix-headers/sys_types.texi: Likewise.
8900
8901 2011-09-16  Bruno Haible  <bruno@clisp.org>
8902
8903         sys_stat: Support for MSVC.
8904         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8905         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8906         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8907         MSVC.
8908
8909 2011-09-16  Bruno Haible  <bruno@clisp.org>
8910
8911         Support for MSVC compiler: Ensure off_t gets defined.
8912         * lib/unistd.in.h: Include <sys/types.h>.
8913         * tests/test-fcntl-h.c: Check that off_t is defined.
8914         * tests/test-sys_stat.c: Likewise.
8915         * tests/test-sys_types.c: Likewise.
8916
8917 2011-09-16  Eric Blake  <eblake@redhat.com>
8918
8919         fdatasync: port to Solaris
8920         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8921         * modules/fdatasync (Link): Document it.
8922         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8923
8924         fdatasync: port to MacOS X 10.7
8925         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8926         declared.
8927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8928         * modules/unistd (Makefile.am): Substitute it.
8929         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8930         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8931
8932         fdatasync: minor improvements
8933         * modules/fdatasync (Depends-on): Add condition for fsync.
8934         * lib/fdatasync.c (fdatasync): Add comment.
8935         * tests/test-unistd-c++.cc: Test fdatasync.
8936
8937         unistd: update refs to newer POSIX
8938         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8939         Suggested by Bruno Haible.
8940
8941         fdatasync: new module
8942         * modules/fsync (Description): Document difference to fdatasync.
8943         * modules/fdatasync: New module.
8944         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8945         * lib/fdatasync.c (fdatasync): Likewise.
8946         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8947         defaults.
8948         * modules/unistd (Makefile.am): Set witnesses.
8949         * lib/unistd.in.h (fdatasync): Declare.
8950         * MODULES.html.sh: Document it.
8951         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8952         * modules/fdatasync-tests: New test.
8953         * tests/test-fdatasync.c: Likewise.
8954
8955 2011-09-16  Eric Blake  <eblake@redhat.com>
8956
8957         test-fsync: enhance tests
8958         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8959         * tests/test-fsync.c (main): Enhance test.
8960
8961 2011-09-15  Bruno Haible  <bruno@clisp.org>
8962
8963         Support for MSVC compiler: Ensure ssize_t gets defined.
8964         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8965         * doc/posix-headers/stdio.texi: Likewise.
8966         * modules/stdio (Depends-on): Add ssize_t.
8967         * modules/sys_socket (Depends-on): Likewise.
8968         * modules/sys_types (Depends-on): Likewise.
8969         * modules/sys_uio (Depends-on): Likewise.
8970         * modules/unistd (Depends-on): Likewise.
8971         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8972         * tests/test-sys_types.c: Check that ssize_t is defined.
8973
8974 2011-09-14  Bruno Haible  <bruno@clisp.org>
8975
8976         Avoid using #, the m4 comment starter character, near brackets.
8977         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8978         delimiter character in sed expressions.
8979         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8980         Suggested by Eric Blake.
8981
8982         Properly quote AC_CHECK_DECLS' 4th argument.
8983         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8984         argument.
8985         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8986         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8987         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8988         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8989         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8990         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8991         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8992         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8993         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8994         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8995         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8996         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8997         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8998         * m4/isinf.m4 (gl_ISINF): Likewise.
8999         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9000         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9001         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9002         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9003         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9004         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9005         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9006         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9007         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9008         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9009         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9010         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9012         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9014         Reported by Eric Blake.
9015
9016         Properly quote AC_CHECK_DECL's 4th argument.
9017         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9018         argument.
9019         * m4/argp.m4 (gl_ARGP): Likewise.
9020         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9021         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9022         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9023         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9024         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9025         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9026         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9027         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9028         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9029         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9030         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9031         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9032         Reported by Eric Blake.
9033
9034 2011-09-14  Eric Blake  <eblake@redhat.com>
9035
9036         opendir: avoid compile warning
9037         * lib/opendir.c (includes): Always include errno.h.
9038         Reported by Tatsuro MATSUOKA.
9039
9040 2011-09-14  Jim Meyering  <meyering@redhat.com>
9041
9042         maint.mk: sc_tight_scope: propagate failure from sub-make
9043         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9044         Reported by Martin von Gagern.
9045
9046 2011-09-13  Bruno Haible  <bruno@clisp.org>
9047
9048         tempname: Support for MSVC.
9049         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9050         MSVC.
9051         * modules/tempname (Depends-on): Add fcntl-h.
9052
9053 2011-09-13  Bruno Haible  <bruno@clisp.org>
9054
9055         sys_time: Support for MSVC.
9056         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9057         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9058         include <winsock2.h>.
9059         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9060         function declarations that collide with POSIX.
9061         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9062         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9063
9064 2011-09-13  Bruno Haible  <bruno@clisp.org>
9065
9066         stat: Support for MSVC.
9067         * lib/stat.c: Include pathmax.h.
9068         * modules/stat (Depends-on): Add pathmax.
9069
9070         pathmax: Support for native Windows.
9071         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9072
9073 2011-09-12  Bruno Haible  <bruno@clisp.org>
9074
9075         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9076         * lib/dirent.in.h (struct dirent): New type.
9077         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9078         DT_WHT): New macros.
9079         (DIR): New type.
9080         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9081         (readdir, rewinddir): New declarations.
9082         * lib/dirent-private.h: New file.
9083         * lib/opendir.c: New file.
9084         * lib/readdir.c: New file.
9085         * lib/rewinddir.c: New file.
9086         * lib/closedir.c: New file.
9087         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9088         * m4/opendir.m4: New file.
9089         * m4/readdir.m4: New file.
9090         * m4/rewinddir.m4: New file.
9091         * m4/closedir.m4: New file.
9092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9093         REPLACE_CLOSEDIR here.
9094         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9095         readdir, rewinddir are declared.
9096         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9097         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9098         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9099         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9100         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9101         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9102         * modules/opendir: New file.
9103         * modules/readdir: New file.
9104         * modules/rewinddir: New file.
9105         * modules/closedir: New file.
9106         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9107         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9108         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9109         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9110         * NEWS: Mention the 'fchdir' change.
9111
9112 2011-09-11  Bruno Haible  <bruno@clisp.org>
9113
9114         asm-underscore.m4: Support for MSVC.
9115         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9116         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9117
9118 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9119
9120         Doc about crypt functions.
9121         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9122         needing for _GNU_SOURCE to get crypt.
9123         * doc/posix-functions/encrypt.texi: Likewise.
9124         * doc/posix-functions/setkey.texi: Likewise.
9125
9126 2011-09-11  Bruno Haible  <bruno@clisp.org>
9127
9128         doc: Update regarding MSVC 9.
9129         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9130         tested".
9131         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9132         * doc/posix-headers/*.texi: Likewise.
9133         * doc/pastposix-functions/*.texi: Likewise.
9134         * doc/glibc-functions/*.texi: Likewise.
9135         * doc/glibc-headers/*.texi: Likewise.
9136
9137 2011-09-11  Bruno Haible  <bruno@clisp.org>
9138
9139         unistd et al.: Don't assume <unistd.h> exists.
9140         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9141         does not exist.
9142         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9143         exist. But include <stdlib.h>.
9144         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9145         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9146         symlink() does not exist.
9147         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9148         include <io.h> instead.
9149         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9150         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9151         include <direct.h> instead.
9152         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9153         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9154         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9155         <io.h> instead.
9156         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9157         correctly if the system does not have hard links.
9158         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9159         <direct.h> instead.
9160         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9161         it when looking for function declarations.
9162         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9163         <direct.h> and <io.h> instead.
9164         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9165
9166 2011-09-11  Bruno Haible  <bruno@clisp.org>
9167
9168         strcase: Support for MSVC.
9169         * modules/strcase (Status, Notice): Remove obsoletion mark.
9170         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9171         * doc/posix-functions/strncasecmp.texi: Likewise.
9172
9173         strings: Don't assume <strings.h> exists.
9174         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9175         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9176         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9177         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9178
9179 2011-09-11  Bruno Haible  <bruno@clisp.org>
9180
9181         dirent: Don't assume <dirent.h> exists.
9182         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9183         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9184         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9185         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9186
9187 2011-09-11  Bruno Haible  <bruno@clisp.org>
9188
9189         Fix wint_t on MSVC.
9190         * lib/wchar.in.h (wint_t): On MSVC, override it.
9191         * lib/wctype.in.h (wint_t): Likewise.
9192         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9193         MSVC.
9194         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9195         * doc/posix-headers/wctype.texi: Likewise.
9196
9197 2011-09-11  Bruno Haible  <bruno@clisp.org>
9198
9199         sys_types: Fix typo.
9200         * lib/sys_types.in.h: Fix typo in comment.
9201         Reported by Paul Eggert.
9202
9203         Support for MSVC compiler: Ensure size_t gets defined.
9204         * modules/strings (Depends-on): Add 'sys_types'.
9205         * modules/sys_uio (Depends-on): Likewise.
9206         * lib/sys_uio.in.h: Update comment.
9207
9208         C++ tests for module 'sys_types'.
9209         * modules/sys_types-c++-tests: New file.
9210         * tests/test-sys_types-c++.cc: New file.
9211
9212         Tests for module 'sys_types'.
9213         * modules/sys_types-tests: New file.
9214         * tests/test-sys_types.c: New file.
9215
9216         New module 'sys_types'.
9217         * lib/sys_types.in.h: New file.
9218         * m4/sys_types_h.m4: New file.
9219         * modules/sys_types: New file.
9220         * doc/posix-headers/sys_types.texi: Mention the new module and the
9221         size_t problem on MSVC 9.
9222
9223 2011-09-11  Bruno Haible  <bruno@clisp.org>
9224
9225         Support for MSVC compiler: Avoid division by a literal 0.
9226         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9227         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9228         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9229         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9230         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9231         * tests/infinity.h: New file.
9232         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9233         on MSVC.
9234         * tests/test-ceilf1.c: Include infinity.h.
9235         (main): Use Infinityf.
9236         * tests/test-ceil1.c: Include infinity.h.
9237         (main): Use Infinityd.
9238         * tests/test-ceill.c: Include infinity.h.
9239         (main): Use Infinityl.
9240         * tests/test-dprintf-posix.c: Include infinity.h.
9241         (test_function): Use Infinityd.
9242         * tests/test-floorf1.c: Include infinity.h.
9243         (main): Use Infinityf.
9244         * tests/test-floor1.c: Include infinity.h.
9245         (main): Use Infinityd.
9246         * tests/test-floorl.c: Include infinity.h.
9247         (main): Use Infinityl.
9248         * tests/test-fprintf-posix.c: Include infinity.h.
9249         (test_function): Use Infinityd.
9250         * tests/test-frexp.c: Include infinity.h.
9251         (main): Use Infinityd.
9252         * tests/test-frexpl.c: Include infinity.h.
9253         (main): Use Infinityl.
9254         * tests/test-isfinite.c: Include infinity.h.
9255         (test_isfinitef): Use Infinityf.
9256         (test_isfinited): Use Infinityd.
9257         (test_isfinitel): Use Infinityl.
9258         * tests/test-isinf.c: Include infinity.h.
9259         (test_isinff): Use Infinityf.
9260         (test_isinfd): Use Infinityd.
9261         (test_isinfl): Use Infinityl.
9262         * tests/test-isnan.c: Include infinity.h.
9263         (test_float): Use Infinityf.
9264         (test_double): Use Infinityd.
9265         (test_long_double): Use Infinityl.
9266         * tests/test-isnanf.h: Include infinity.h.
9267         (main): Use Infinityf.
9268         * tests/test-isnand.h: Include infinity.h.
9269         (main): Use Infinityd.
9270         * tests/test-isnanl.h: Include infinity.h.
9271         (main): Use Infinityl.
9272         * tests/test-ldexpl.c: Include infinity.h.
9273         (main): Use Infinityl.
9274         * tests/test-printf-posix.h: Include infinity.h.
9275         (test_function): Use Infinityd.
9276         * tests/test-roundf1.c: Include infinity.h.
9277         (main): Use Infinityf.
9278         * tests/test-round1.c: Include infinity.h.
9279         (main): Use Infinityd.
9280         * tests/test-roundl.c: Include infinity.h.
9281         (main): Use Infinityl.
9282         * tests/test-signbit.c: Include infinity.h.
9283         (test_signbitf): Use Infinityf.
9284         (test_signbitd): Use Infinityd.
9285         (test_signbitl): Use Infinityl.
9286         * tests/test-snprintf-posix.h: Include infinity.h.
9287         (test_function): Use Infinityd, Infinityl.
9288         * tests/test-sprintf-posix.h: Include infinity.h.
9289         (test_function): Use Infinityd, Infinityl.
9290         * tests/test-truncf1.c: Include infinity.h.
9291         (main): Use Infinityf.
9292         * tests/test-trunc1.c: Include infinity.h.
9293         (main): Use Infinityd.
9294         * tests/test-truncl.c: Include infinity.h.
9295         (main): Use Infinityl.
9296         * tests/test-vasnprintf-posix.c: Include infinity.h.
9297         (test_function): Use Infinityd, Infinityl.
9298         * tests/test-vasprintf-posix.c: Include infinity.h.
9299         (test_function): Use Infinityd, Infinityl.
9300         * modules/ceilf-tests (Files): Add tests/infinity.h.
9301         * modules/ceil-tests (Files): Likewise.
9302         * modules/ceill-tests (Files): Likewise.
9303         * modules/dprintf-posix-tests (Files): Likewise.
9304         * modules/floorf-tests (Files): Likewise.
9305         * modules/floor-tests (Files): Likewise.
9306         * modules/floorl-tests (Files): Likewise.
9307         * modules/fprintf-posix-tests (Files): Likewise.
9308         * modules/frexp-tests (Files): Likewise.
9309         * modules/frexp-nolibm-tests (Files): Likewise.
9310         * modules/frexpl-tests (Files): Likewise.
9311         * modules/frexpl-nolibm-tests (Files): Likewise.
9312         * modules/isfinite-tests (Files): Likewise.
9313         * modules/isinf-tests (Files): Likewise.
9314         * modules/isnan-tests (Files): Likewise.
9315         * modules/isnanf-tests (Files): Likewise.
9316         * modules/isnanf-nolibm-tests (Files): Likewise.
9317         * modules/isnand-tests (Files): Likewise.
9318         * modules/isnand-nolibm-tests (Files): Likewise.
9319         * modules/isnanl-tests (Files): Likewise.
9320         * modules/isnanl-nolibm-tests (Files): Likewise.
9321         * modules/ldexpl-tests (Files): Likewise.
9322         * modules/printf-posix-tests (Files): Likewise.
9323         * modules/roundf-tests (Files): Likewise.
9324         * modules/round-tests (Files): Likewise.
9325         * modules/roundl-tests (Files): Likewise.
9326         * modules/signbit-tests (Files): Likewise.
9327         * modules/snprintf-posix-tests (Files): Likewise.
9328         * modules/sprintf-posix-tests (Files): Likewise.
9329         * modules/truncf-tests (Files): Likewise.
9330         * modules/trunc-tests (Files): Likewise.
9331         * modules/truncl-tests (Files): Likewise.
9332         * modules/vasnprintf-posix-tests (Files): Likewise.
9333         * modules/vasprintf-posix-tests (Files): Likewise.
9334         * modules/vdprintf-posix-tests (Files): Likewise.
9335         * modules/vfprintf-posix-tests (Files): Likewise.
9336         * modules/vprintf-posix-tests (Files): Likewise.
9337         * modules/vsnprintf-posix-tests (Files): Likewise.
9338         * modules/vsprintf-posix-tests (Files): Likewise.
9339         * modules/xprintf-posix-tests (Files): Likewise.
9340
9341 2011-09-11  Bruno Haible  <bruno@clisp.org>
9342
9343         Ensure pid_t gets defined.
9344         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9345         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9346         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9347         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9348         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9349         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9350         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9351         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9352         * tests/test-fcntl-h.c: Check that pid_t is defined.
9353         * tests/test-sched.c: Likewise.
9354         * tests/test-termios.c: Likewise.
9355         * tests/test-time.c: Likewise.
9356         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9357         * doc/posix-headers/signal.texi: Likewise.
9358         * doc/posix-headers/sys_types.texi: Likewise.
9359         * doc/posix-headers/time.texi: Likewise.
9360
9361 2011-09-11  Bruno Haible  <bruno@clisp.org>
9362
9363         acl: Fix compilation on Solaris 10 (older version).
9364         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9365         of ACE_EVERYONE.
9366         * lib/set-mode-acl.c (qset_acl): Likewise.
9367         Reported by Christian Jullien <eligis@orange.fr>.
9368
9369 2011-09-10  Bruno Haible  <bruno@clisp.org>
9370
9371         iconv, unsetenv: Add support for MSVC compiler.
9372         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9373         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9374
9375 2011-09-10  Bruno Haible  <bruno@clisp.org>
9376
9377         *printf: Add support for MSVC compiler.
9378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9379         handles the exception caused by the %n directive. When cross-compiling,
9380         guess no on native Windows.
9381         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9382         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9383         emulate it through vsnprintf.
9384         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9385         * doc/posix-functions/dprintf.texi: Update documentation regarding
9386         MSVC 9.
9387         * doc/posix-functions/fprintf.texi: Likewise.
9388         * doc/posix-functions/printf.texi: Likewise.
9389         * doc/posix-functions/snprintf.texi: Likewise.
9390         * doc/posix-functions/sprintf.texi: Likewise.
9391         * doc/posix-functions/swprintf.texi: Likewise.
9392         * doc/posix-functions/vdprintf.texi: Likewise.
9393         * doc/posix-functions/vfprintf.texi: Likewise.
9394         * doc/posix-functions/vprintf.texi: Likewise.
9395         * doc/posix-functions/vsnprintf.texi: Likewise.
9396         * doc/posix-functions/vsprintf.texi: Likewise.
9397         * doc/glibc-functions/asprintf.texi: Likewise.
9398         * doc/glibc-functions/obstack_printf.texi: Likewise.
9399         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9400         * doc/glibc-functions/vasprintf.texi: Likewise.
9401
9402 2011-09-10  Bruno Haible  <bruno@clisp.org>
9403
9404         nocrash: Add support for native Windows.
9405         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9406
9407 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9408             Bruno Haible  <bruno@clisp.org>
9409
9410         absolute-header, include-next: Add support for MSVC compiler.
9411         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9412         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9413         directory separator in #line directives.
9414         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9415         recognize also backslash as directory separator in #line directives.
9416
9417 2011-09-08  Jim Meyering  <meyering@redhat.com>
9418
9419         maint.mk: mark the post-release commit log with "maint: " prefix
9420         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9421         one-line commit-log summary.
9422
9423 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9424             Bruno Haible  <bruno@clisp.org>
9425
9426         Doc about crypt functions.
9427         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9428         systems.
9429         * doc/posix-functions/encrypt.texi: Likewise.
9430         * doc/posix-functions/setkey.texi: Likewise.
9431
9432 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9433
9434         * lib/gc.h: Fix copyright header.
9435
9436 2011-09-07  Bruno Haible  <bruno@clisp.org>
9437
9438         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9439         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9440         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9441
9442 2011-09-07  Bruno Haible  <bruno@clisp.org>
9443
9444         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9445         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9446         * lib/freopen.c: Likewise.
9447         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9448         * lib/lstat.c: Likewise.
9449         * lib/stat.c: Likewise.
9450         * lib/open.c: Use different syntax for include of <fcntl.h>.
9451         * lib/openat.c: Include fcntl.h again, explicitly.
9452
9453 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9454
9455         parse-datetime: document the newly accepted format
9456         * doc/parse-datetime.texi (Combined date and time of day items):
9457         New section.
9458
9459 2011-09-06  Bruno Haible  <bruno@clisp.org>
9460
9461         acl: Fix a test failure on newer Solaris 10 with ZFS.
9462         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9463         ENOSYS as no ACL.
9464         Reported by Jim Meyering.
9465
9466 2011-09-06  Bruno Haible  <bruno@clisp.org>
9467
9468         acl: Update for AIX >= 5.3 with NFS.
9469         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9470         ENOSYS as no ACL.
9471
9472         acl: Fix a test failure on AIX >= 5.3 with NFS.
9473         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9474         as no ACL.
9475
9476 2011-09-06  Bruno Haible  <bruno@clisp.org>
9477
9478         acl: Fix a test failure on IRIX 6.5 with NFS.
9479         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9480         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9481         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9482         * lib/copy-acl.c (qcopy_acl): Likewise.
9483
9484 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9485
9486         openat: port to AIX 7.1 with large files
9487         AIX 7.1 does a "#define openat open64at" if large files are in use,
9488         so we can't simply #undef openat.  Use the orig_openat trick (similar
9489         to orig_open in lib/open.c) to work around the problem.  Problem
9490         reported by Kevin Brott for GNU tar, in the thread containing
9491         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9492         * lib/openat.c (__need_system_fcntl_h): Define first.
9493         Include <fcntl.h> and <sys/types.h> before undefining.
9494         (orig_openat) [HAVE_OPENAT]: New inline function.
9495         (openat) [HAVE_OPENAT]: Do not undef.
9496         (rpl_openat): Use orig_openat, not openat.
9497
9498 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9499             Bruno Haible  <bruno@clisp.org>
9500
9501         acl: Avoid errors on NonStop Kernel.
9502         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9503         ENOTSUP errors.
9504
9505 2011-09-05  Bruno Haible  <bruno@clisp.org>
9506
9507         acl: Clean up Solaris code.
9508         * lib/acl-internal.h: Remove no-op #if.
9509         * lib/file-has-acl.c: Likewise.
9510         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9511         * lib/copy-acl.c (qcopy_acl): Likewise.
9512
9513 2011-09-05  Bruno Haible  <bruno@clisp.org>
9514
9515         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9516         binaries built on the original Solaris 10.
9517         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9518         trivial.
9519
9520 2011-09-05  Bruno Haible  <bruno@clisp.org>
9521
9522         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9523         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9524         10.
9525         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9526         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9527         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9528         instead of acl_get, facl_get, acl_set, facl_set.
9529
9530 2011-09-05  Bruno Haible  <bruno@clisp.org>
9531
9532         copy-file: Try unit tests on more file systems.
9533         * tests/test-copy-file-1.sh: New file.
9534         * tests/test-copy-file-2.sh: New file.
9535         * modules/copy-file-tests (Files): Add them.
9536         (Makefile.am): Add them to TESTS.
9537
9538         acl: Try unit tests on more file systems.
9539         * tests/test-file-has-acl-1.sh: New file.
9540         * tests/test-file-has-acl-2.sh: New file.
9541         * tests/test-set-mode-acl-1.sh: New file.
9542         * tests/test-set-mode-acl-2.sh: New file.
9543         * tests/test-copy-acl-1.sh: New file.
9544         * tests/test-copy-acl-2.sh: New file.
9545         * modules/acl-tests (Files): Add them.
9546         (Makefile.am): Add them to TESTS.
9547
9548 2011-09-04  Bruno Haible  <bruno@clisp.org>
9549
9550         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9551         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9552         10.
9553         (OLD_ALLOW, OLD_DENY): New macros.
9554         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9555         ACE_ACCESS_ALLOWED_ACE_TYPE.
9556         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9557         ACE_ACCESS_DENIED_ACE_TYPE.
9558         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9559         (NEW_ACE_EXECUTE): Fix value.
9560         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9561         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9562         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9563         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9564         NEW_ACE_SYNCHRONIZE): New macros.
9565         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9566         instead of acl_fromtext, acl_set, facl_set.
9567         Fixes a coreutils/tests/cp/perm failure.
9568
9569 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9570
9571         openat: test for fstatat (..., 0) bug
9572         Further testing with tar suggests that fstatat (..., 0)
9573         does not work in general, on AIX 7.1; see
9574         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9575         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9576         replacement fstatat (which is what older AIX releases were using
9577         anyway).
9578         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9579         use is now changed to orig_fstatat.  This was probably the right
9580         thing to do anyway.
9581         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9582         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9583         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9584         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9585         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9586         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9587         if the bug is found.
9588
9589         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9590         This tests for another fstatat bug on AIX 7.1:
9591         fstatat (AT_FDCWD, ..., 0) does not work.  See
9592         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9593         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9594         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9595         (rpl_fstatat): Adjust so that it works around either (or both)
9596         bugs if present.
9597         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9598
9599 2011-09-03  Karl Berry  <karl@gnu.org>
9600
9601         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9602         in index entries.
9603
9604 2011-09-02  Bruno Haible  <bruno@clisp.org>
9605
9606         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9607         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9608         values of AR, ARFLAGS, RANLIB.
9609         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9610
9611 2011-09-02  Bruno Haible  <bruno@clisp.org>
9612
9613         Find 'ar' program that fits with --host argument.
9614         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9615
9616 2011-09-02  Bruno Haible  <bruno@clisp.org>
9617
9618         tests: init.sh: Support any non-GNU diff.
9619         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9620         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9621         Solaris 8.
9622
9623 2011-09-02  Bruno Haible  <bruno@clisp.org>
9624
9625         tests: init.sh: work also with any non-GNU diff that supports -u
9626         * tests/init.sh: Relax check for diff -u support.
9627         Rather than checking for GNU diff via --version, simply check
9628         for support for -u itself.  Useful at least on OpenBSD 4.9,
9629         AIX 7.1, IRIX 6.5, and Solaris 10.
9630
9631 2011-09-01  Bruno Haible  <bruno@clisp.org>
9632
9633         strtoimax, strtoumax: Document problem on HP-UX 11.
9634         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9635         * doc/posix-functions/strtoumax.texi: Likewise.
9636
9637 2011-09-01  Bruno Haible  <bruno@clisp.org>
9638
9639         strtoumax: Avoid link error on OSF/1 with DTK cc.
9640         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9641         defined as a function.
9642         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9643         strtoumax is defined, not whether it is declared.
9644
9645 2011-09-01  Bruno Haible  <bruno@clisp.org>
9646
9647         strtoimax: Avoid link error on OSF/1 with DTK cc.
9648         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9649         defined as a function.
9650         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9651         strtoimax is defined, not whether it is declared.
9652
9653 2011-09-01  Bruno Haible  <bruno@clisp.org>
9654
9655         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9656         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9657         as a function.
9658         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9659         whether it is declared.
9660
9661 2011-09-01  Bruno Haible  <bruno@clisp.org>
9662
9663         imaxabs: Avoid link error on OSF/1 with DTK cc.
9664         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9665         as a function.
9666         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9667         whether it is declared.
9668
9669 2011-09-01  Bruno Haible  <bruno@clisp.org>
9670
9671         Tests for module 'strtoumax'.
9672         * modules/strtoumax-tests: New file.
9673         * tests/test-strtoumax.c: New file.
9674
9675         Tests for module 'strtoimax'.
9676         * modules/strtoimax-tests: New file.
9677         * tests/test-strtoimax.c: New file.
9678
9679         Tests for module 'imaxdiv'.
9680         * modules/imaxdiv-tests: New file.
9681         * tests/test-imaxdiv.c: New file.
9682
9683         Tests for module 'imaxabs'.
9684         * modules/imaxabs-tests: New file.
9685         * tests/test-imaxabs.c: New file.
9686
9687 2011-09-01  Bruno Haible  <bruno@clisp.org>
9688
9689         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9690         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9691         pthread_create.
9692
9693 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9694
9695         openat: work around AIX 7.1 fstatat issue
9696         This should fix the problem that was not properly fixed
9697         in the previous change, dated 2011-08-30.
9698         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9699         __need_system_stat_h defined.
9700         (orig_fstatat) [HAVE_FSTATAT]: New function.
9701         (rpl_fstatat): Go back to the old way of doing things,
9702         except call orig_fstatat instead of fstatat.
9703         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9704         Remove unnecessary check whether fstatat fills in st_size etc.
9705
9706 2011-09-01  Bruno Haible  <bruno@clisp.org>
9707
9708         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9709         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9710         just include the system's header.
9711
9712 2011-08-31  Jim Meyering  <meyering@redhat.com>
9713
9714         tests: avoid spurious assertion failure in test-float.c on ppc64
9715         * tests/test-float.c (test_long_double): Comment out an assertion,
9716         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9717         with gcc-4.4.4.
9718
9719         maint: indent with spaces, not TABs
9720         I need to get in the habit of running gnulib's "make check".
9721         Both of these would have been caught.
9722         * m4/largefile.m4: Indent with spaces, not TABs.
9723         * lib/parse-datetime.y (iso_8601_time): Likewise.
9724         Spotted by Pádraig Brady.
9725
9726         test-parse-datetime.c: accommodate a relatively strict gcc warning
9727         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9728         to avoid a warning from gcc's -Werror=missing-declarations.
9729         Insert a few spaces-before-funcall-parenthesis.
9730
9731 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9732
9733         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9734         The parser now accepts ISO 8601 date-time strings with "T" as the
9735         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9736         with a space between the date and time strings.  Now it also parses
9737         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9738         variants like "2004-02-29T16:21:42.333-07:00"
9739         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9740         of day representation using the 'T' separator character.
9741         * doc/parse-datetime.texi (General date syntax): replace use of
9742         deprecated --iso-8601 option with --rfc-3339 in example of date
9743         command output formats that can be parsed.
9744         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9745         lib/parse-datetime.y.
9746         (gmt_offset): New function.
9747         (main): Add additional test cases to validate ISO8601 extended
9748         date and time of day parsing.
9749
9750 2011-08-31  Bruno Haible  <bruno@clisp.org>
9751
9752         freopen: Documentation.
9753         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9754         name.
9755         Reported by Claudio Bley <claudio.bley@gmail.com>.
9756
9757 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9758
9759         freopen: Don't crash if the filename argument is NULL.
9760         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9761         NULL.
9762
9763 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9764
9765         openat: work around AIX 7.1 fstatat bug
9766         Problem reported by Kevin Brott for GNU tar, in the thread containing
9767         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9768         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9769         FSTATAT_ST_SIZE_ETC_BROKEN.
9770         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9771         rpl_fstatat.
9772         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9773         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9774         AC_CHECK_FUNCS_ONCE for fstatat.
9775         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9776         fchmodat, mkdirat, openat and unlinkat.
9777
9778 2011-08-30  Bruno Haible  <bruno@clisp.org>
9779
9780         Avoid endless recursions if config.h includes some header files.
9781         * lib/fopen.c (__need_FILE): Define already before including config.h.
9782         * lib/freopen.c (__need_FILE): Likewise.
9783         * lib/open.c (__need_system_fcntl_h): Likewise.
9784         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9785         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9786         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9787
9788 2011-08-25  Karl Berry  <karl@gnu.org>
9789
9790         * config/srclist.txt (ylwrap): new try.
9791         * build-aux/ylwrap: new file.
9792
9793 2011-08-23  Bruno Haible  <bruno@clisp.org>
9794
9795         tmpdir: Use a good default directory on native Windows.
9796         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9797         (P_tmpdir): Default to _P_tmpdir on native Windows.
9798         (path_search): On native Windows, try the value returned by GetTempPath
9799         before trying P_tmpdir.
9800         * modules/tmpdir (Depends-on): Add pathmax.
9801         Suggested by John Darrington <john@darrington.wattle.id.au>.
9802
9803 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9804
9805         doc: fix typo in README-release
9806         * top/README-release: Capitalize first word of a sentence.
9807
9808 2011-08-19  Jim Meyering  <meyering@redhat.com>
9809
9810         fts: do not exhaust memory when processing million-entry directories
9811         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9812         directory would require about 256*N bytes of memory.  Thus, it was
9813         easy to construct a directory too large to be processed by any of
9814         those tools.  With this change, fts' maximum memory utilization is
9815         now limited to around 30MB.
9816         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9817         (fts_read): When we've processed the final entry (i.e., when
9818         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9819         using the parent entry to read any remaining entries.  Dispatch
9820         depending on what fts_build returns:
9821         - NULL+stop, aka failure: stop
9822         - NULL otherwise: move up in the dir hierarchy
9823         - non-NULL: handle this new entry
9824         (fts_build): Declare and use new local, continue_readdir.
9825         Prepare to be called from fts_read, when the entries
9826         from a partially-read directory have just been exhausted.
9827         In that case, we'll skip the opendir and instead use the parent's
9828         fts_dirp and derive dir_fd from that.
9829         Finally, in the readdir loop, if we read max_entries entries,
9830         exit the loop ensuring *not* to call closedir.  This is required
9831         so that fts_dirp can be reused on a subsequent call.
9832         Prompted by Ben England's report of memory exhaustion in find
9833         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9834
9835         maint: fts: move decl of `dp' down into while loop; split a long line
9836         * lib/fts.c (fts_build): No semantic change.
9837
9838         fts: add/use new struct member, fts_dirp
9839         We are about to use this to manage any directory with
9840         too many entries to read all of them into memory at once.
9841         To do that, we'll need to save the DIR* pointer in each
9842         affected FTSENT struct.
9843         * lib/fts_.h: Include <dirent.h>.
9844         (struct FTSENT) [fts_dirp]: New member.
9845         * lib/fts.c (closedir_and_clear): Define.
9846         Use it in place of closedir so that we are sure to
9847         clear the new fts_dirp member when done with it.
9848         (fts_alloc): Initialize the new member.
9849         (fts_lfree): Free, if needed.
9850
9851         maint: fts: give __opendir2 a new parameter and rename
9852         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9853         than surreptitiously using sole caller's "dir_fd".
9854         (fts_opendir): Rename from __opendir2.
9855
9856         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9857         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9858
9859         maint: fts.c: correct off-by-one indentation
9860         * lib/fts.c (fts_build): Correct indentation, change style
9861         of a couple of block comments, and bracing style.
9862
9863         maint: fts.c: move __opendir2 #define "up" out of function body
9864         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9865
9866         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9867         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9868         out for a long time and besides was useful only on BSD systems.
9869
9870 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9871
9872         regex: port to Stratus OpenVOS
9873         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9874         define to empty, rather than attempting nonportable optimizations.
9875         Problem reported by Paul Green in:
9876         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9877         and fix suggested by Eric Blake in:
9878         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9879
9880 2011-08-17  Eric Blake  <eblake@redhat.com>
9881
9882         getcwd: fix test failures on mingw
9883         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9884         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9885         test if long directory cannot be created, and allow mingw errno.
9886
9887         getcwd-lgpl: fix m4 to match relaxed test for BSD
9888         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9889         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9890         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9891         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9892         signature problem.
9893
9894         getcwd: fix compilation on mingw64
9895         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9896         getcwd.
9897         Reported by Marc-André Lureau.
9898
9899         pipe2: silence compiler warning
9900         * lib/pipe2.c (pipe2): Hide label if it is not used.
9901
9902 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9903
9904         relocatable-prog: fix link error
9905         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9906         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9907         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9908         into modules/relocatable-lib without noticing that
9909         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9910         also needs to build relocatable.c.
9911
9912 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9913
9914         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9915         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9916         shell code: it contained a 'break' that was not in a loop.
9917         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9918         via a shell-language loop; this may have been true in old Autoconf
9919         versions, but it's not true in Autoconf 2.68.  I found this bug
9920         when testing coreutils git on Solaris 8, whose shell complains
9921         about the syntax error.
9922
9923 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9924
9925         * lib/base64.c: Fix comment to reference RFC 4648.
9926         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9927         <gvtulder@gmail.com>.
9928
9929 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9930
9931         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9932
9933         po/Makefile.in.in: fix make -q problem
9934         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9935         rule, since there's no file named 'check-macro-version' and its
9936         use as a file breaks make -q.
9937         (all): Don't depend on check-macro-version.
9938         (CHECK_MACRO_VERSION): New macro.
9939         (stamp-po): Use it.
9940
9941         configmake: fix make -q problem
9942         * modules/configmake (configmake.h): Update configmake.h's time stamp
9943         even if the file does not change.  Otherwise, 'make -q' fails.
9944         Problem reported by Simon Josefsson in
9945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9946
9947 2011-08-11  Jim Meyering  <meyering@redhat.com>
9948
9949         git-version-gen: correct the advice in a comment
9950         * build-aux/git-version-gen: Correct comment.
9951         Don't recommend to list .tarball-version in .gitignore.
9952
9953 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9954
9955         base64: fix off-by-one buffer size bug
9956         Problem and (trivial) fix reported by Gijs van Tulder in
9957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9958         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9959         * tests/test-base64.c (main): Catch the bug.
9960
9961 2011-08-10  Eric Blake  <eblake@redhat.com>
9962
9963         closein: correct comments
9964         * lib/closein.c (close_stdin): Improve comments.
9965
9966 2011-08-09  Bruno Haible  <bruno@clisp.org>
9967
9968         More tests for 'fseeko'.
9969         * tests/test-fseeko3.c: New file, from Eric Blake.
9970         * tests/test-fseeko3.sh: New file.
9971         * modules/fseeko-tests (Files): Add them.
9972         (TESTS): Add test-fseeko3.sh.
9973         (check_PROGRAMS): Add test-fseeko3.
9974
9975 2011-08-09  Eric Blake  <eblake@redhat.com>
9976
9977         fseeko: remove unneeded hack
9978         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9979
9980         fseeko: fix bug on glibc
9981         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9982         Reported by John W. Eaton.
9983
9984 2011-08-08  Bruno Haible  <bruno@clisp.org>
9985
9986         unictype/base: Fix interoperability with preinstalled libunistring.
9987         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9988         Reported by Simon Josefsson.
9989
9990 2011-08-08  Bruno Haible  <bruno@clisp.org>
9991
9992         iswblank: Detect declaration correctly.
9993         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9994         AC_CHECK_DECLS invocation.
9995
9996 2011-08-08  Bruno Haible  <bruno@clisp.org>
9997
9998         tcgetsid: Detect declaration correctly.
9999         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10000         AC_CHECK_DECLS invocation.
10001         Reported by Simon Josefsson.
10002
10003 2011-08-08  Eric Blake  <eblake@redhat.com>
10004
10005         largefile: fix typo that regressed large file support
10006         * modules/largefile (configure.ac-early): Fix section name.
10007
10008 2011-08-06  Karl Berry  <karl@gnu.org>
10009
10010         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10011         a separate module.
10012
10013 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10014
10015         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10016         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10017         get prototype for free.
10018
10019 2011-08-04  Bruno Haible  <bruno@clisp.org>
10020
10021         Tests for module 'pathmax'.
10022         * modules/pathmax-tests: New file.
10023         * tests/test-pathmax.c: New file.
10024
10025         canonicalize-lgpl: Support larger filenames on the Hurd.
10026         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10027         Reported by Paul Eggert.
10028
10029         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10030         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10031         * lib/chdir-long.h: Include pathmax.h.
10032         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10033         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10034         (PATH_MAX): Remove code that is done by pathmax.h.
10035         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10036         * lib/tmpfile.c: Add a comment.
10037         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10038         * modules/chdir-long (Depends-on): Add pathmax.
10039         * modules/getcwd (Depends-on): Add pathmax.
10040         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10041         is not defined.
10042         * doc/posix-headers/limits.texi: Mention the pathmax module.
10043         * NEWS: Mention the change.
10044
10045 2011-08-02  Bruno Haible  <bruno@clisp.org>
10046
10047         pthread_sigmask: Actually use results of gl_THREADLIB.
10048         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10049         gl_THREADLIB, not gl_[]THREADLIB.
10050         Reported by Eric Blake.
10051
10052 2011-08-02  Jim Meyering  <meyering@redhat.com>
10053
10054         maint.mk: relax the default _gl_TS_function_match regexp
10055         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10056         space between function name and "(" in an "extern" declaration.
10057         That would fail to match a decl with no space there: extern void foo();
10058
10059 2011-07-31  Iain Nicol  <iain@thenicols.net>
10060
10061         git-version-gen: document that EXTRA_DIST must include .version
10062         * build-aux/git-version-gen: In the how-to-use comment, document
10063         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10064         will fail when run from an unpacked distribution tarball.
10065
10066 2011-08-01  Bruno Haible  <bruno@clisp.org>
10067
10068         wctype-h: Fix last change.
10069         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10070         REPLACE_TOWLOWER to 0.
10071         Reported by Sam Steingold <sds@gnu.org>.
10072
10073 2011-07-31  Bruno Haible  <bruno@clisp.org>
10074
10075         frexpl: Update autoconf test.
10076         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10077         according to changes of 2011-06-20.
10078
10079 2011-07-31  Bruno Haible  <bruno@clisp.org>
10080
10081         sys_utsname: Add support for Minix.
10082         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10083         <sys/utsname.h>.
10084         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10085         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10086
10087 2011-07-31  Bruno Haible  <bruno@clisp.org>
10088
10089         strings: Add support for Minix.
10090         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10091         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10092         * doc/posix-headers/strings.texi: Document the Minix problem.
10093
10094 2011-07-31  Bruno Haible  <bruno@clisp.org>
10095
10096         wctype-h: Add support for Minix.
10097         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10098         REPLACE_TOWLOWER.
10099         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10100         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10101         REPLACE_ISWCNTRL.
10102
10103 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10104
10105         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10106         This is a performance improvement for 64-bit hosts: it causes the
10107         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10108
10109 2011-07-31  Bruno Haible  <bruno@clisp.org>
10110
10111         stdioext: Add support for Minix.
10112         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10113         * lib/fpurge.c (fpurge): Likewise.
10114         * lib/freadahead.c (freadahead): Likewise.
10115         * lib/freadable.c (freadable): Likewise.
10116         * lib/freading.c (freading): Likewise.
10117         * lib/freadptr.c (freadptr): Likewise.
10118         * lib/freadseek.c (freadptrinc): Likewise.
10119         * lib/fseeko.c (rpl_fseeko): Likewise.
10120         * lib/fseterr.c (fseterr): Likewise.
10121         * lib/fwritable.c (fwritable): Likewise.
10122         * lib/fwriting.c (fwriting): Likewise.
10123         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10124         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10125
10126 2011-07-31  Bruno Haible  <bruno@clisp.org>
10127
10128         errno: Port to Minix.
10129         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10130         ECONNABORTED are defined.
10131         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10132         GNULIB_defined_ECONNABORTED): New macros.
10133         * lib/strerror-override.h (strerror_override): Test also
10134         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10135         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10136         ECONNABORTED.
10137         * doc/posix-headers/errno.texi: Mention the Minix problem.
10138
10139 2011-07-31  Bruno Haible  <bruno@clisp.org>
10140
10141         Work around declaration collisions on Minix.
10142         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10143         defined, set REPLACE_MBSINIT.
10144         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10145         defined, set REPLACE_MBRTOWC.
10146         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10147         set REPLACE_MBRLEN.
10148         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10149         defined, set REPLACE_MBSRTOWCS.
10150         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10151         defined, set REPLACE_WCRTOMB.
10152         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10153         defined, set REPLACE_WCSRTOMBS.
10154
10155 2011-07-31  Bruno Haible  <bruno@clisp.org>
10156
10157         Add support for Minix with ACK compiler.
10158         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10159         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10160         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10161
10162 2011-07-31  Bruno Haible  <bruno@clisp.org>
10163
10164         Documentation about Minix.
10165         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10166         * doc/glibc-headers/*.texi: Likewise.
10167         * doc/posix-functions/*.texi: Likewise.
10168         * doc/glibc-functions/*.texi: Likewise.
10169
10170 2011-07-31  Bruno Haible  <bruno@clisp.org>
10171
10172         snippet/warn-on-use: Fix indentation.
10173         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10174
10175 2011-07-25  Jim Meyering  <meyering@redhat.com>
10176
10177         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10178         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10179         commands.
10180
10181 2011-07-27  Jim Meyering  <meyering@redhat.com>
10182
10183         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10184         * top/maint.mk (gl_extract_significant_defines_): Now that
10185         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10186         gnulib/lib/signal.in.h, and now that we recommend to
10187         define-if-undefined those two symbols in application code,
10188         we must filter them out of the "significant" list.
10189         This avoids a "make syntax-check" failure in coreutils.
10190
10191 2011-07-26  Eric Blake  <eblake@redhat.com>
10192
10193         warnings: add comments about previous patch
10194         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10195         * m4/include_next.m4: Likewise.
10196         * m4/warn-on-use.m4: Likewise.
10197         * m4/warnings.m4: Likewise, and simplify use.
10198         Suggested by Stefano Lattarini.
10199
10200         include-next, warnings: support older autoconf
10201         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10202         AS_VAR_PUSHDEF in a way that works with older autoconf.
10203         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10204         Reported by Daniel P. Berrange.
10205
10206 2011-07-25  Bruno Haible  <bruno@clisp.org>
10207
10208         fseek, ftell: Fix doc.
10209         * doc/posix-functions/fseek.texi: Reword statement about
10210         AC_SYS_LARGEFILE.
10211         * doc/posix-functions/ftell.texi: Likewise.
10212
10213 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10214             Bruno Haible  <bruno@clisp.org>
10215
10216         Add dependencies to the 'largefile' module.
10217         * modules/fopen (Depends-on): Add 'largefile'.
10218         * modules/freopen (Depends-on): Likewise.
10219         * modules/fseeko (Depends-on): Likewise.
10220         * modules/ftello (Depends-on): Likewise.
10221         * modules/glob (Depends-on): Likewise.
10222         * modules/lseek (Depends-on): Likewise.
10223         * modules/lstat (Depends-on): Likewise.
10224         * modules/mkostemp (Depends-on): Likewise.
10225         * modules/mkostemps (Depends-on): Likewise.
10226         * modules/mkstemp (Depends-on): Likewise.
10227         * modules/mkstemps (Depends-on): Likewise.
10228         * modules/open (Depends-on): Likewise.
10229         * modules/openat (Depends-on): Likewise.
10230         * modules/pread (Depends-on): Likewise.
10231         * modules/pwrite (Depends-on): Likewise.
10232         * modules/scandir (Depends-on): Likewise.
10233         * modules/stat (Depends-on): Likewise.
10234         * modules/tmpfile (Depends-on): Likewise.
10235         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10236         since the containing module now depends on the largefile module.
10237         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10238         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10239         off_t is fixed by gnulib.
10240         * doc/posix-functions/freopen.texi: Likewise.
10241         * doc/posix-functions/fseeko.texi: Likewise.
10242         * doc/posix-functions/fstatat.texi: Likewise.
10243         * doc/posix-functions/ftello.texi: Likewise.
10244         * doc/posix-functions/glob.texi: Likewise.
10245         * doc/posix-functions/lseek.texi: Likewise.
10246         * doc/posix-functions/lstat.texi: Likewise.
10247         * doc/posix-functions/mkstemp.texi: Likewise.
10248         * doc/posix-functions/open.texi: Likewise.
10249         * doc/posix-functions/openat.texi: Likewise.
10250         * doc/posix-functions/pread.texi: Likewise.
10251         * doc/posix-functions/pwrite.texi: Likewise.
10252         * doc/posix-functions/scandir.texi: Likewise.
10253         * doc/posix-functions/stat.texi: Likewise.
10254         * doc/posix-functions/tmpfile.texi: Likewise.
10255         * doc/glibc-functions/mkostemp.texi: Likewise.
10256         * doc/glibc-functions/mkostemps.texi: Likewise.
10257         * doc/glibc-functions/mkstemps.texi: Likewise.
10258
10259 2011-07-25  Bruno Haible  <bruno@clisp.org>
10260
10261         fcntl: Move AC_LIBOBJ invocation to module description.
10262         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10263         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10264
10265         fcntl: Remove call-in from fchdir.m4.
10266         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10267         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10268
10269         dup3: Remove potential call-in from fchdir.m4.
10270         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10272
10273         dup2: Move AC_LIBOBJ invocation to module description.
10274         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10275         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10276         Don't invoke AC_LIBOBJ.
10277         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10278
10279         dup2: Remove call-in from fchdir.m4.
10280         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10281         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10282
10283         fclose: Move AC_LIBOBJ invocation to module description.
10284         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10285         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10286         to 1.
10287         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10288
10289         fclose: Remove call-in from close.m4.
10290         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10291         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10292
10293         close: Move AC_LIBOBJ invocation to module description.
10294         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10295         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10296         1.
10297         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10298
10299         close: Remove call-in from fchdir.m4.
10300         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10301         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10302
10303         open: Move AC_LIBOBJ invocation to module description.
10304         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10305         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10306         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10307
10308         open: Remove call-in from fchdir.m4.
10309         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10310         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10311
10312         fchdir: Start to remove gl_REPLACE_* idiom.
10313         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10314         (gl_FUNC_FCHDIR): Invoke it.
10315
10316 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10317
10318         * lib/ftell.c (ftell): Comment out cast.
10319
10320         close: use gl_REPLACE_FCLOSE only if defined
10321         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10322         is defined.  The close module doesn't depend on the fclose module
10323         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10325         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10326
10327 2011-07-24  Jim Meyering  <meyering@redhat.com>
10328
10329         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10330         * tests/test-select.h (test_function): Declare as "static".
10331
10332 2011-07-24  Bruno Haible  <bruno@clisp.org>
10333
10334         doc: Mention the effects of AC_SYS_LARGEFILE.
10335         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10336         on this function.
10337         * doc/posix-functions/aio_error.texi: Likewise.
10338         * doc/posix-functions/aio_fsync.texi: Likewise.
10339         * doc/posix-functions/aio_read.texi: Likewise.
10340         * doc/posix-functions/aio_return.texi: Likewise.
10341         * doc/posix-functions/aio_suspend.texi: Likewise.
10342         * doc/posix-functions/aio_write.texi: Likewise.
10343         * doc/posix-functions/fgetpos.texi: Likewise.
10344         * doc/posix-functions/fopen.texi: Likewise.
10345         * doc/posix-functions/freopen.texi: Likewise.
10346         * doc/posix-functions/fsetpos.texi: Likewise.
10347         * doc/posix-functions/fstatvfs.texi: Likewise.
10348         * doc/posix-functions/ftruncate.texi: Likewise.
10349         * doc/posix-functions/ftw.texi: Likewise.
10350         * doc/posix-functions/getrlimit.texi: Likewise.
10351         * doc/posix-functions/glob.texi: Likewise.
10352         * doc/posix-functions/lio_listio.texi: Likewise.
10353         * doc/posix-functions/lockf.texi: Likewise.
10354         * doc/posix-functions/mkstemp.texi: Likewise.
10355         * doc/posix-functions/mmap.texi: Likewise.
10356         * doc/posix-functions/nftw.texi: Likewise.
10357         * doc/posix-functions/openat.texi: Likewise.
10358         * doc/posix-functions/opendir.texi: Likewise.
10359         * doc/posix-functions/posix_fadvise.texi: Likewise.
10360         * doc/posix-functions/posix_fallocate.texi: Likewise.
10361         * doc/posix-functions/pread.texi: Likewise.
10362         * doc/posix-functions/pwrite.texi: Likewise.
10363         * doc/posix-functions/readdir.texi: Likewise.
10364         * doc/posix-functions/readdir_r.texi: Likewise.
10365         * doc/posix-functions/rewinddir.texi: Likewise.
10366         * doc/posix-functions/scandir.texi: Likewise.
10367         * doc/posix-functions/seekdir.texi: Likewise.
10368         * doc/posix-functions/setrlimit.texi: Likewise.
10369         * doc/posix-functions/statvfs.texi: Likewise.
10370         * doc/posix-functions/telldir.texi: Likewise.
10371         * doc/posix-functions/tmpfile.texi: Likewise.
10372         * doc/posix-functions/truncate.texi: Likewise.
10373         * doc/glibc-functions/fallocate.texi: Likewise.
10374         * doc/glibc-functions/fstatfs.texi: Likewise.
10375         * doc/glibc-functions/fts_children.texi: Likewise.
10376         * doc/glibc-functions/fts_read.texi: Likewise.
10377         * doc/glibc-functions/getdirentries.texi: Likewise.
10378         * doc/glibc-functions/mkostemp.texi: Likewise.
10379         * doc/glibc-functions/mkostemps.texi: Likewise.
10380         * doc/glibc-functions/mkstemps.texi: Likewise.
10381         * doc/glibc-functions/preadv.texi: Likewise.
10382         * doc/glibc-functions/pwritev.texi: Likewise.
10383         * doc/glibc-functions/sendfile.texi: Likewise.
10384         * doc/glibc-functions/statfs.texi: Likewise.
10385
10386 2011-07-24  Bruno Haible  <bruno@clisp.org>
10387
10388         doc: Fix typo.
10389         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10390
10391 2011-07-24  Bruno Haible  <bruno@clisp.org>
10392
10393         doc: Mention fsusage.
10394         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10395
10396 2011-07-24  Bruno Haible  <bruno@clisp.org>
10397
10398         doc: Mention new glibc headers and functions.
10399         * doc/glibc-headers/gshadow.texi: New file.
10400         * doc/glibc-functions/endsgent.texi: New file.
10401         * doc/glibc-functions/fgetsgent.texi: New file.
10402         * doc/glibc-functions/fgetsgent_r.texi: New file.
10403         * doc/glibc-functions/getsgent.texi: New file.
10404         * doc/glibc-functions/getsgent_r.texi: New file.
10405         * doc/glibc-functions/getsgnam.texi: New file.
10406         * doc/glibc-functions/getsgnam_r.texi: New file.
10407         * doc/glibc-functions/putsgent.texi: New file.
10408         * doc/glibc-functions/setsgent.texi: New file.
10409         * doc/glibc-functions/sgetsgent.texi: New file.
10410         * doc/glibc-functions/sgetsgent_r.texi: New file.
10411         * doc/glibc-functions/malloc_info.texi: New file.
10412         * doc/glibc-functions/preadv.texi: New file.
10413         * doc/glibc-functions/pwritev.texi: New file.
10414         * doc/glibc-functions/register_printf_modifier.texi: New file.
10415         * doc/glibc-functions/register_printf_specifier.texi: New file.
10416         * doc/glibc-functions/register_printf_type.texi: New file.
10417         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10418         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10419         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10420         * doc/glibc-functions/pthread_getname_np.texi: New file.
10421         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10422         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10423         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10424         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10425         * doc/glibc-functions/pthread_setname_np.texi: New file.
10426         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10427         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10428         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10429         * doc/glibc-functions/qsort_r.texi: New file.
10430         * doc/glibc-functions/quick_exit.texi: New file.
10431         * doc/glibc-functions/syncfs.texi: New file.
10432         * doc/gnulib.texi: Include them.
10433         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10434         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10435         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10436         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10437         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10438         * doc/glibc-functions/execvpe.texi: Likewise.
10439
10440 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10441
10442         ftell: don't include <unistd.h>
10443         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10444         guaranteed to define off_t, and the ftell module depends on the
10445         stdio module.
10446
10447         ftell: do not assume wraparound signed arithmetic
10448         * lib/ftell.c: Include <limits.h>.
10449         (ftell): Don't assume wraparound signed arithmetic.
10450
10451 2011-07-24  Bruno Haible  <bruno@clisp.org>
10452
10453         close: No longer depend on module 'fclose'.
10454         * modules/close (Depends-on): Remove fclose.
10455         * NEWS: Mention the change.
10456         Suggested by Sam Steingold <sds@gnu.org>.
10457
10458 2011-07-24  Bruno Haible  <bruno@clisp.org>
10459
10460         fsusage: Enable large volume support on AIX >= 5.2.
10461         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10462         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10463         instead of STAT_STATVFS.
10464         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10465
10466         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10467         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10468         f_blocks field only on MacOS X.
10469
10470         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10471         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10472         * modules/fsusage (Depends-on): Add largefile.
10473
10474 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10475
10476         * README: Modernize discussion of signed integers.
10477         Assuming overflow wraparound is no longer safe.
10478         Mention ones' complement and signed magnitude.
10479
10480 2011-07-22  Bruno Haible  <bruno@clisp.org>
10481
10482         select tests, pselect tests: Refactor.
10483         * tests/test-select.h: New file, extracted from tests/test-select.c.
10484         (select_fn): New type.
10485         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10486         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10487         test_pipe): Add my_select argument.
10488         (test_function): Renamed from main. Add my_select argument.
10489         * tests/test-select.c: Move most code to tests/test-select.h. Include
10490         test-select.h.
10491         * modules/select-tests (Files): Add tests/test-select.h.
10492         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10493         (my_select, main): New functions.
10494         * modules/pselect-tests (Files): Add tests/test-select.h,
10495         tests/macros.h, tests/signature.h.
10496         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10497         (configure.ac): Check for <sys/wait.h>.
10498
10499 2011-07-22  Bruno Haible  <bruno@clisp.org>
10500
10501         sys_select tests: Check the signature of FD_*.
10502         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10503         signature tests from here...
10504         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10505         here.
10506         * modules/sys_select-tests (Files): Add tests/signature.h.
10507
10508 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10509
10510         largefile: new module, replacing large-inode
10511         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10512         * MODULES.html.sh: Add largefile, remove large-inode.
10513         * modules/largefile, m4/largefile.m4: New files.
10514         * modules/large-inode, m4/large-inode.m4: Remove.
10515
10516         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10517         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10518         implementations that use only 32 bits to count blocks.
10519         On typical hosts with 1024-byte blocks, this fails with file
10520         systems as small as 4 TiB.  Problem reported by Herb Wartens
10521         <http://debbugs.gnu.org/9140> and this should also fix a similar
10522         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10523
10524         large-inode: New module
10525         * MODULES.html.sh: Add it.
10526         * modules/large-inode, m4/large-inode.m4: New files.
10527
10528         extensions: Enable extensions on MacOS X 10.5 and later.
10529         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10530
10531 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10532
10533         file-has-acl: use acl_extended_file_nofollow if available
10534         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10535         (acl_extended_file): New macro.
10536         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10537         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10538
10539 2011-07-21  Bruno Haible  <bruno@clisp.org>
10540
10541         Declare system functions in a way that works with C++.
10542         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10543         declare fdopendir as extern "C".
10544         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10545         declare frexpl as extern "C".
10546         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10547         declare gai_strerror as extern "C".
10548         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10549         programs, declare gai_strerror as extern "C".
10550         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10551         declare getlogin_r as extern "C".
10552         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10553         as extern "C".
10554         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10555         declare ldexpl as extern "C".
10556         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10557         as extern "C".
10558         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10559         program, declare getmntinfo as extern "C".
10560         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10561         stpncpy as extern "C".
10562         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10563         program, declare __xpg_strerror_r as extern "C".
10564         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10565         strndup as extern "C".
10566         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10567         declare memset and bzero as extern "C".
10568         Reported by Sam Steingold <sds@gnu.org>.
10569
10570 2011-07-12  Jim Meyering  <meyering@redhat.com>
10571
10572         maint.mk: prohibit inclusion of "verify.h" without use
10573         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10574
10575 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10576
10577         timer-time: A new module to check for timer_settime()
10578         * m4/timer_time.m4: Check for the posix function.
10579         * modules/timer-time: Add the new module.
10580         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10581         Mention it.
10582
10583 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10584             Bruno Haible  <bruno@clisp.org>
10585
10586         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10587         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10588         not defined, assume POSIX threads and look for pthread_sigmask in
10589         $LIBS, without changing $CPPFLAGS.
10590
10591 2011-07-19  Bruno Haible  <bruno@clisp.org>
10592
10593         strstr: Update cross-compilation guess.
10594         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10595         CPUs, guess no, in view of glibc
10596         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10597         Suggested by Eric Blake. Reported by Reuben Thomas.
10598
10599 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10600
10601         getopt-gnu: suppress core dumps from detection code
10602         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10603         to suppress core dumps that may well occur on glibc systems.
10604         * modules/getopt-gnu: Depend on nocrash.
10605
10606 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10607
10608         pthread_sigmask: ensure usleep is declared
10609         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10610         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10611
10612 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10613
10614         doc: Document NonStop portability issues.
10615         * doc/posix-functions/sigaction.texi (sigaction):
10616         * doc/posix-headers/signal.texi (signal.h):
10617         Document NonStop.  See Joachim Schmitz in
10618         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10619
10620 2011-07-15  Bruno Haible  <bruno@clisp.org>
10621
10622         ffsl, ffsll: Avoid unportable behaviour.
10623         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10624
10625 2011-07-15  Bruno Haible  <bruno@clisp.org>
10626
10627         ffs: More tests.
10628         * tests/test-ffs.c (NBITS): New macro.
10629         (main): Add more tests.
10630         * tests/test-ffsl.c (NBITS): New macro.
10631         (main): Add more tests.
10632         * tests/test-ffsll.c (NBITS): New macro.
10633         (main): Add more tests.
10634
10635 2011-07-15  Eric Blake  <eblake@redhat.com>
10636
10637         ffsl, ffsll: new modules
10638         * modules/ffsl: New file.
10639         * modules/ffsll: Likewise.
10640         * m4/ffsl.m4: Likewise.
10641         * m4/ffsll.m4: Likewise.
10642         * lib/ffsl.c: Likewise.
10643         * lib/ffsl.h: Likewise.
10644         * lib/ffsll.c: Likewise.
10645         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10646         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10647         * modules/string (Makefile.am): Substitute witnesses.
10648         * lib/strings.in.h (ffsl, ffsll): Declare.
10649         * modules/ffsl-tests: New test file.
10650         * modules/ffsll-tests: Likewise.
10651         * tests/test-ffsl.c: Likewise.
10652         * tests/test-ffsll.c: Likewise.
10653         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10654         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10655         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10656
10657         ffs: fix m4 prerequisite
10658         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10659
10660         ffs: avoid undefined behavior
10661         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10662         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10663         Reported by Bruno Haible.
10664
10665 2011-07-12  Bruno Haible  <bruno@clisp.org>
10666
10667         pthread_sigmask: Rely on module 'threadlib'.
10668         * modules/pthread_sigmask (Depends-on): Add threadlib.
10669         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10670         is defined.
10671
10672 2011-07-12  Bruno Haible  <bruno@clisp.org>
10673
10674         regex: Depend on module 'strcase'.
10675         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10676
10677 2011-07-12  Jim Meyering  <meyering@redhat.com>
10678
10679         warn-on-use: fix typo in file name
10680         * modules/snippet/warn-on-use (Files): Correct file name:
10681         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10682
10683 2011-07-12  Bruno Haible  <bruno@clisp.org>
10684
10685         strings: Document module.
10686         * doc/posix-headers/strings.texi: Mention module 'strings'.
10687
10688 2011-07-12  Bruno Haible  <bruno@clisp.org>
10689
10690         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10691         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10692         (Files, Makefile.am): Update.
10693         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10694         * modules/stdlib (Depends-on): Update.
10695
10696 2011-07-12  Bruno Haible  <bruno@clisp.org>
10697
10698         * NEWS: Mention the changes.
10699
10700         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10701         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10702         (Files, Makefile.am): Update.
10703         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10704         * modules/arpa_inet (Depends-on): Update.
10705         * modules/ctype (Depends-on): Update.
10706         * modules/dirent (Depends-on): Update.
10707         * modules/fcntl-h (Depends-on): Update.
10708         * modules/glob (Depends-on): Update.
10709         * modules/iconv-h (Depends-on): Update.
10710         * modules/inttypes-incomplete (Depends-on): Update.
10711         * modules/langinfo (Depends-on): Update.
10712         * modules/locale (Depends-on): Update.
10713         * modules/math (Depends-on): Update.
10714         * modules/netdb (Depends-on): Update.
10715         * modules/poll-h (Depends-on): Update.
10716         * modules/pty (Depends-on): Update.
10717         * modules/search (Depends-on): Update.
10718         * modules/signal (Depends-on): Update.
10719         * modules/spawn (Depends-on): Update.
10720         * modules/stdio (Depends-on): Update.
10721         * modules/stdlib (Depends-on): Update.
10722         * modules/string (Depends-on): Update.
10723         * modules/strings (Depends-on): Update.
10724         * modules/sys_file (Depends-on): Update.
10725         * modules/sys_ioctl (Depends-on): Update.
10726         * modules/sys_select (Depends-on): Update.
10727         * modules/sys_socket (Depends-on): Update.
10728         * modules/sys_stat (Depends-on): Update.
10729         * modules/sys_time (Depends-on): Update.
10730         * modules/sys_times (Depends-on): Update.
10731         * modules/sys_utsname (Depends-on): Update.
10732         * modules/sys_wait (Depends-on): Update.
10733         * modules/termios (Depends-on): Update.
10734         * modules/time (Depends-on): Update.
10735         * modules/unistd (Depends-on): Update.
10736         * modules/wchar (Depends-on): Update.
10737         * modules/wctype-h (Depends-on): Update.
10738         * MODULES.html.sh (Support for building libraries and executables):
10739         Update.
10740
10741         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10742         * modules/snippet/unused-parameter: Renamed from
10743         modules/unused-parameter.
10744         (Files, Makefile.am): Update.
10745         * build-aux/snippet/unused-parameter.h: Renamed from
10746         build-aux/unused-parameter.h.
10747         * modules/selinux-h (Depends-on): Update.
10748         * modules/unistr/base (Depends-on): Update.
10749         * MODULES.html.sh (Core language properties): Update.
10750
10751         Rename module 'link-warning' to 'snippet/link-warning'.
10752         * modules/snippet/link-warning: Renamed from modules/link-warning.
10753         (Files, Makefile.am): Update.
10754         * build-aux/snippet/link-warning.h: Renamed from
10755         build-aux/link-warning.h.
10756         * MODULES.html.sh (Support for building libraries and executables):
10757         Update.
10758
10759         Rename module 'c++defs' to 'snippet/c++defs'.
10760         * modules/snippet/c++defs: Renamed from modules/c++defs.
10761         (Files, Makefile.am): Update.
10762         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10763         * modules/arpa_inet (Depends-on): Update.
10764         * modules/ctype (Depends-on): Update.
10765         * modules/dirent (Depends-on): Update.
10766         * modules/fcntl-h (Depends-on): Update.
10767         * modules/glob (Depends-on): Update.
10768         * modules/iconv-h (Depends-on): Update.
10769         * modules/langinfo (Depends-on): Update.
10770         * modules/locale (Depends-on): Update.
10771         * modules/math (Depends-on): Update.
10772         * modules/netdb (Depends-on): Update.
10773         * modules/poll-h (Depends-on): Update.
10774         * modules/pty (Depends-on): Update.
10775         * modules/search (Depends-on): Update.
10776         * modules/signal (Depends-on): Update.
10777         * modules/spawn (Depends-on): Update.
10778         * modules/stdio (Depends-on): Update.
10779         * modules/stdlib (Depends-on): Update.
10780         * modules/string (Depends-on): Update.
10781         * modules/strings (Depends-on): Update.
10782         * modules/sys_ioctl (Depends-on): Update.
10783         * modules/sys_select (Depends-on): Update.
10784         * modules/sys_socket (Depends-on): Update.
10785         * modules/sys_stat (Depends-on): Update.
10786         * modules/sys_time (Depends-on): Update.
10787         * modules/sys_wait (Depends-on): Update.
10788         * modules/termios (Depends-on): Update.
10789         * modules/time (Depends-on): Update.
10790         * modules/unistd (Depends-on): Update.
10791         * modules/wchar (Depends-on): Update.
10792         * modules/wctype-h (Depends-on): Update.
10793
10794         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10795         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10796         (Files, Makefile.am): Update.
10797         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10798         * modules/argv-iter (Depends-on): Update.
10799         * modules/arpa_inet (Depends-on): Update.
10800         * modules/dirent (Depends-on): Update.
10801         * modules/fcntl-h (Depends-on): Update.
10802         * modules/fnmatch (Depends-on): Update.
10803         * modules/getopt-posix (Depends-on): Update.
10804         * modules/glob (Depends-on): Update.
10805         * modules/iconv-h (Depends-on): Update.
10806         * modules/inttypes-incomplete (Depends-on): Update.
10807         * modules/locale (Depends-on): Update.
10808         * modules/math (Depends-on): Update.
10809         * modules/netdb (Depends-on): Update.
10810         * modules/search (Depends-on): Update.
10811         * modules/signal (Depends-on): Update.
10812         * modules/spawn (Depends-on): Update.
10813         * modules/stdio (Depends-on): Update.
10814         * modules/stdlib (Depends-on): Update.
10815         * modules/string (Depends-on): Update.
10816         * modules/strings (Depends-on): Update.
10817         * modules/sys_socket (Depends-on): Update.
10818         * modules/sys_stat (Depends-on): Update.
10819         * modules/sys_time (Depends-on): Update.
10820         * modules/sys_times (Depends-on): Update.
10821         * modules/sys_utsname (Depends-on): Update.
10822         * modules/time (Depends-on): Update.
10823         * modules/unistd (Depends-on): Update.
10824         * modules/wchar (Depends-on): Update.
10825         * MODULES.html.sh (Support for building libraries and executables):
10826         Update.
10827
10828 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10829
10830         Improvements on _Noreturn and related modules.
10831
10832         modules/_Exit-tests: test _Noreturn too
10833         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10834         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10835         (main): Use them.
10836
10837         stdnoreturn, stdnoreturn-tests: remove modules
10838         They're not needed here and a bit premature for use elsewhere.  See
10839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10840         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10841         * tests/test-stdnoreturn.c: Remove files.
10842         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10843         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10844         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10845         and using noreturn.
10846         * modules/openat, modules/sigpipe-die, modules/xalloc:
10847         * modules/xmemdup0, modules/xstrtol:
10848         Remove dependency on stdnoreturn.
10849
10850         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10851         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10852         Reparenthesize to avoid GCC warning.
10853         Support Microsoft's syntax.
10854         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10855
10856         _Noreturn-tests: remove module
10857         * modules/_Noreturn-tests: Remove.
10858         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10859         * tests/test-_Noreturn.c: Remove.
10860         * tests/test-stdnoreturn.c: Merge from the old
10861         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10862
10863 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10864
10865         _Noreturn, stdnoreturn, and related modules.
10866
10867         * top/maint.mk: Adjust to new noreturn support.
10868         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10869         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10870
10871         xalloc: use stdnoreturn.h
10872         * lib/xalloc.h: Include <stdnoreturn.h>.
10873         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10874         * modules/xalloc (Depends-on): Add stdnoreturn.
10875
10876         xstrtol: use stdnoreturn.h
10877         * lib/xstrtol.h: Include <stdnoreturn.h>.
10878         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10879         * modules/xstrtol (Depends-on): Add stdnoreturn.
10880
10881         xmemdup0: use stdnoreturn.h
10882         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10883         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10884         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10885
10886         sigpipe-die: use stdnoreturn.h
10887         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10888         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10889         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10890
10891         openat: use stdnoreturn.h
10892         * lib/openat.h: Include <stdnoreturn.h>.
10893         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10894         * modules/openat (Depends-on): Add stdnoreturn.
10895
10896         * lib/openat-die.c (openat_save_fail): Modernize comment.
10897
10898         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10899
10900         * lib/glthread/thread.h: Modernize comment.
10901
10902         obstack: use _Noreturn
10903         * lib/obstack.c (__attribute__): Remove macro.
10904         (print_and_abort): Use _Noreturn.
10905
10906         c-stack: use _Noreturn
10907         * lib/c-stack.c (die, overflow_handler, segv_handler):
10908         Use _Noreturn rather than __attribute__((noreturn)).
10909
10910         argmatch-tests, exclude_tests: use _Noreturn
10911         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10912         Remove.
10913         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10914
10915         stdlib: use _Noreturn
10916         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10917         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10918         * modules/stdlib (Depends-on): Add _Noreturn.
10919         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10920
10921         stdnoreturn-tests: new module
10922         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10923
10924         stdnoreturn: new module
10925         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10926         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10927
10928         _Noreturn-tests: new module
10929         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10930
10931         _Noreturn: new module
10932         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10933         New section, mentioning it.
10934         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10935
10936         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10937
10938 2011-07-11  Eric Blake  <eblake@redhat.com>
10939
10940         ffs: new module
10941         * modules/ffs: New file.
10942         * m4/ffs.m4: Likewise.
10943         * lib/ffs.c: Likewise.
10944         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10945         * modules/strings (Makefile.am): Substitute witness.
10946         (Depends-on): Add c++defs.
10947         * lib/strings.in.h (ffs): Declare.
10948         * modules/ffs-tests: New test file.
10949         * tests/test-ffs.c: Test new module.
10950         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10951         * doc/posix-functions/ffs.texi (ffs): Likewise.
10952
10953         regex: avoid compiler warning
10954         * lib/regex.c (includes): Include <strings.h>, for use of
10955         strcasecmp in regcomp.c.
10956         Reported by Joachim Schmitz.
10957
10958 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10959
10960         stdint: respect system's intmax_t if INTMAX_MAX
10961         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10962         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10963         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10964         long but int64_t is long long, and where we will clash with the
10965         system intmax_t if we override it.  See
10966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10967         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10968         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10969         similarly for UINTMAX_C.
10970
10971 2011-07-08  Bruno Haible  <bruno@clisp.org>
10972
10973         pthread_sigmask tests: Avoid a compiler warning.
10974         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10975         non-zero.
10976
10977         sigprocmask tests: A better way to avoid a compiler warning.
10978         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10979         (main): Complain if system() returns non-zero.
10980         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10981
10982 2011-07-08  Bruno Haible  <bruno@clisp.org>
10983
10984         pthread_sigmask: Work around IRIX bug.
10985         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10986         bug.
10987         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10988         there may be unblocked pending signals.
10989         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10990
10991 2011-07-08  Bruno Haible  <bruno@clisp.org>
10992
10993         pthread_sigmask: Work around Cygwin bug.
10994         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10995         bug.
10996         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10997         the system's pthread_sigmask function.
10998         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10999
11000 2011-07-08  Bruno Haible  <bruno@clisp.org>
11001
11002         pthread_sigmask: Work around bug in single-threaded implementation.
11003         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11004         FreeBSD, HP-UX, Solaris bug.
11005         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11006         * lib/pthread_sigmask.c: Include <stddef.h>.
11007         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11008         the system's pthread_sigmask function.
11009         * modules/pthread_sigmask (configure.ac): Invoke
11010         gl_PREREQ_PTHREAD_SIGMASK.
11011         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11012         HP-UX, Solaris.
11013
11014 2011-07-08  Eric Blake  <eblake@redhat.com>
11015
11016         test-sigprocmask: avoid compiler warning
11017         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11018         * tests/test-sigprocmask.c (main): Use it to silence warning.
11019         Reported by Jim Meyering.
11020
11021         test-snprintf: avoid compiler warning
11022         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11023         * tests/test-vsnprintf.c (main): Likewise.
11024         Reported by Jim Meyering.
11025
11026 2011-07-08  Bruno Haible  <bruno@clisp.org>
11027
11028         Tests for module 'pthread_sigmask'.
11029         * modules/pthread_sigmask-tests: New file.
11030         * tests/test-pthread_sigmask1.c: New file, based on
11031         tests/test-sigprocmask.c.
11032         * tests/test-pthread_sigmask2.c: New file.
11033
11034 2011-07-08  Jim Meyering  <meyering@redhat.com>
11035
11036         test-getopt.h: avoid warning about an unused variable
11037         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11038
11039 2011-07-07  Jim Meyering  <meyering@redhat.com>
11040
11041         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11042         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11043         now that it no longer contains leading TABs.
11044         Remove unused "url=FIXME" statement.
11045
11046 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11047
11048         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11049         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11050         When gl_THREADLIB is not in use, assume that the POSIX sematics
11051         are desired.  This is better for Emacs, which uses POSIX semantics
11052         on GNUish and/or POSIXish platforms, and does not use threads at
11053         all otherwise.
11054
11055         pthread_sigmask: fix typo when testing for libraries
11056         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11057         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11058
11059 2011-07-08  Eric Blake  <eblake@redhat.com>
11060
11061         fts: introduce FTS_NOATIME
11062         * lib/fts_.h (FTS_NOATIME): New bit flag.
11063         (FTS_OPTIONMASK): Adjust.
11064         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11065         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11066
11067 2011-07-08  Bruno Haible  <bruno@clisp.org>
11068
11069         Tests for module 'thread'.
11070         * modules/thread-tests: New file.
11071         * tests/test-thread_self.c: New file.
11072         * tests/test-thread_create.cc: New file.
11073
11074 2011-07-08  Bruno Haible  <bruno@clisp.org>
11075
11076         thread: Avoid gcc warnings when using gl_thread_self().
11077         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11078         'void *'.
11079         (gl_thread_self_pointer): Update.
11080
11081 2011-07-07  Bruno Haible  <bruno@clisp.org>
11082
11083         signal-c++-tests: Check declaration of pthread_sigmask.
11084         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11085         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11086         $(LIB_PTHREAD_SIGMASK).
11087
11088 2011-07-07  Bruno Haible  <bruno@clisp.org>
11089
11090         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11091         * lib/signal.in.h (pthread_sigmask): Override if
11092         REPLACE_PTHREAD_SIGMASK is 1.
11093         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11094         REPLACE_PTHREAD_SIGMASK.
11095         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11096         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11097         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11098         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11099         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11100
11101 2011-07-07  Bruno Haible  <bruno@clisp.org>
11102
11103         pthread_sigmask: Ensure declaration in <signal.h>.
11104         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11105         include <pthread.h>.
11106         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11107         problem.
11108
11109 2011-07-07  Bruno Haible  <bruno@clisp.org>
11110
11111         pthread_sigmask: Document the module.
11112         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11113
11114 2011-07-07  Bruno Haible  <bruno@clisp.org>
11115
11116         pthread_sigmask: Follow gnulib conventions.
11117         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11118         gl_PTHREAD_SIGMASK.
11119         * modules/pthread_sigmask (configure.ac): Update.
11120
11121 2011-07-07  Bruno Haible  <bruno@clisp.org>
11122
11123         pthread_sigmask: Make declaration C++ safe.
11124         * lib/signal.in.h: In two special conditions, just do an #include_next.
11125         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11126         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11127         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11128         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11129         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11130         not REPLACE_PTHREAD_MASK.
11131         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11132         not REPLACE_PTHREAD_MASK.
11133         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11134
11135 2011-07-07  Bruno Haible  <bruno@clisp.org>
11136
11137         pthread_sigmask: Fix return value.
11138         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11139         * lib/pthread_sigmask.c: New file.
11140         * modules/pthread_sigmask (Files): Add it.
11141         (configure.ac): Invoke AC_LIBOBJ.
11142
11143 2011-07-07  Eric Blake  <eblake@redhat.com>
11144
11145         getopt: more portable argv creation
11146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11147         const, use char arrays rather than strings.
11148         Suggested by Paul Eggert.
11149
11150 2011-07-07  Bruno Haible  <bruno@clisp.org>
11151
11152         Tests for module 'sigprocmask'.
11153         * modules/sigprocmask-tests: New file.
11154         * tests/test-sigprocmask.c: New file.
11155
11156 2011-07-07  Bruno Haible  <bruno@clisp.org>
11157
11158         float tests: Tweak.
11159         * tests/test-float.c (main): Tweak skip message.
11160
11161 2011-07-07  Eric Blake  <eblake@redhat.com>
11162
11163         getopt: avoid compiler warning during configure
11164         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11165         assigning string literals to non-const pointer.
11166
11167         getopt-gnu: avoid crash in glibc getopt
11168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11169         * tests/test-getopt.h (test_getopt): Enhance test.
11170         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11171         * doc/posix-functions/getopt.texi (getopt): Document it.
11172         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11173         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11174         Likewise.
11175
11176 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11177
11178         getopt: handle W; without long options in getopt [BZ #12922]
11179         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11180         but no long options are defined, just return 'W'.
11181
11182 2011-07-07  Bruno Haible  <bruno@clisp.org>
11183
11184         Avoid literal tabs.
11185         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11186         variable containing a tab instead of a literal tab.
11187         Reported by Jim Meyering.
11188
11189 2011-07-07  Bruno Haible  <bruno@clisp.org>
11190
11191         Comments.
11192         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11193
11194 2011-07-06  Bruno Haible  <bruno@clisp.org>
11195
11196         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11197         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11198         <winsock2.h>.
11199         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11200         lib/sys_socket.in.h.
11201         (close, gethostname): Hide declarations from <winsock2.h>.
11202         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11203         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11204         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11205         (select): Don't override if gnulib's <sys/select.h> was already
11206         included.
11207         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11208         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11209         setsockopt, shutdown, select): Tweak indentation.
11210
11211 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11212
11213         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11214         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11215         in an application that does not use the sys_select module.
11216
11217 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11218
11219         poll: do not return 0 on timeout=-1
11220         * lib/poll.c: Loop with yield if no events occured
11221
11222 2011-07-06  Eric Blake  <eblake@redhat.com>
11223
11224         pthread_sigmask: always replace when not using pthread
11225         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11226         replacement when using some threading other than pthread.  Fix
11227         logic bug.
11228
11229 2011-07-06  Bruno Haible  <bruno@clisp.org>
11230
11231         Comments.
11232         * m4/printf.m4: Update comments about mingw.
11233
11234 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11235
11236         sys_select: define sigset_t more portably
11237         * lib/sys_select.in.h: Always include <sys/types.h>, since
11238         we now need sigset_t and mingw defines it there.
11239         Include <signal.h> before split inclusion guard, to avoid
11240         mishaps on Solaris, whose <signal.h> eventually includes us.
11241         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11242         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11243         which come from ...
11244         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11245         gl_CHECK_TYPE_SIGSET_T.
11246         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11247         does the real work.
11248         * modules/sys_select (Depends-on): Add 'signal'.
11249
11250         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11251         Suggested by Bruno Haible.
11252
11253         pselect: Use pthread_sigmask, not sigprocmask.
11254         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11255         multithreaded apps better than sigprocmask does.
11256         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11257         sigprocmask directly.
11258
11259 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11260
11261         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11262         Don't #undef,  since we don't need any underlying pselect.
11263         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11264         (Depends-on): Add select.
11265         (Link): Add $(LIBSOCKET).
11266         These changes suggested by Bruno Haible.
11267
11268         pselect: document better
11269         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11270         * doc/posix-functions/pselect.texi (pselect): Document new module.
11271
11272         pthread_sigmask: new module
11273         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11274         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11275         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11276         This is done only as a macro; I don't know how well that'll
11277         work for C++.  Move <sys/types.h> include before the include_next,
11278         to avoid mishap on Solaris.
11279         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11280         * modules/signal (Makefile.am): Substitute the check's results.
11281         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11282
11283         test-pselect: new module
11284         * modules/pselect-tests, tests/test-pselect.c: New files.
11285         * tests/test-select.c, tests/test-sys_select-c++.cc:
11286         If TEST_PSELECT is defined, test pselect instead of testing select.
11287
11288         * tests/test-sys_select.c (sigset_t): Test for it, too.
11289         Suggested by Bruno Haible.
11290
11291 2011-07-05  Eric Blake  <eblake@redhat.com>
11292
11293         snprintf: guarantee %1$d, for libintl
11294         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11295         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11296         * doc/posix-functions/snprintf.texi (snprintf): Update.
11297         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11298         * tests/test-snprintf.c (main): Enhance test.
11299         * tests/test-vsnprintf.c (main): Likewise.
11300
11301 2011-07-05  Jim Meyering  <meyering@redhat.com>
11302
11303         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11304         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11305         per Bruno's request, to accommodate this idiom (no space after "#")
11306         even when the function is inside an #if block:
11307         char *
11308         gets (char *s)
11309         #undef gets
11310         {
11311           ...
11312         }
11313
11314 2011-07-04  Jim Meyering  <meyering@redhat.com>
11315
11316         maint: indent with spaces, not TABs, and add a rule to check this
11317         * tests/test-userspec.c: Indent with spaces, not TABs.
11318         * tests/test-argp.c: Likewise.
11319         * tests/test-c-stack2.sh: Likewise.
11320         * tests/test-parse-duration.sh: Likewise
11321         * m4/strtod.m4: Likewise.
11322         * m4/alloca.m4: Likewise.
11323         * m4/pselect.m4: Likewise.
11324         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11325
11326 2011-07-03  Jim Meyering  <meyering@redhat.com>
11327
11328         maint.mk: correct omissions in prohibit_argmatch_without_use check
11329         This rule would mistakenly report that argmatch.h is included without
11330         use even when both the argmatch and invalid_arg macro were used.
11331         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11332         of argmatch and invalid_arg.
11333
11334 2011-07-03  Bruno Haible  <bruno@clisp.org>
11335
11336         Comments about EINTR.
11337         * lib/safe-read.h: Explain the purpose of this module.
11338         * lib/safe-write.h: Likewise.
11339         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11340         module.
11341         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11342         module.
11343         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11344
11345 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11346
11347         xnanosleep: Rewrite to use new dtotimespec module.
11348         It has the conversion code that used to be in xnanosleep.
11349         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11350         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11351         (TIME_T_MAX): Remove.
11352         (xnanosleep): Rewrite in terms of dtotimespec.
11353         * modules/xnanosleep (Depends-on): Add dtotimespec.
11354         Remove intprops, stdbool.
11355
11356         timespec-add, timespec-sub: new modules
11357         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11358         * lib/timespec-add.c, lib/timespec-sub.c:
11359         * modules/timespec-add, modules/timespec-sub: New files.
11360
11361         dtotimespec: new module
11362         * lib/timespec.h (dtotimespec): New decl.
11363         * lib/dtotimespec.c, modules/dtotimespec: New files.
11364
11365         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11366
11367         pselect: new module
11368         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11369         (pselect): New decls.
11370         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11371         since the standard pselect decl uses 'restrict'.
11372         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11373         HAVE_PSELECT, REPLACE_PSELECT.
11374         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11375         HAVE_PSELECT, REPLACE_PSELECT.
11376         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11377
11378         sys_select: don't depend on sys_socket
11379         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11381         This fix works on GNU and GNU-like platforms, but has not been tested
11382         on native Windows.
11383         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11385         gl_HEADER_SYS_SOCKET.
11386         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11387         gl_PREREQ_SYS_H_WINSOCK2.
11388
11389 2011-06-29  Eric Blake  <eblake@redhat.com>
11390
11391         pipe2: fix C89 compile problem
11392         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11393         Reported by Bruno Haible.
11394
11395         pipe, pipe2: don't corrupt fd on error
11396         * lib/pipe.c (pipe): Leave fd unchanged on error.
11397         * lib/pipe2.c (pipe2): Likewise.
11398         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11399         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11400
11401 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11402
11403         mmap-anon: do not use regular expressions inadvertently
11404         * m4/mmap-anon.m4: Remove trailing period from strings sought
11405         in the output.
11406
11407 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11408
11409         nanosleep: fix integer overflow problem
11410         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11411         arithmetic wraps around on overflow.
11412
11413         nanosleep: simplify carrying
11414         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11415         first call to the underyling nanosleep, not for the last one.
11416         This doesn't fix any bugs, but it simplifies the computation of
11417         the remaining delay.  Found while auditing integer overflow issues.
11418
11419         dup2: remove test for existence of fcntl
11420         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11421         "#if HAVE_FCNTL", in the configure-time test program.
11422         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11423         and therefore speeds up "configure" a bit.  Found while
11424         adding the dup2 module to Emacs.
11425
11426 2011-06-24  Eric Blake  <eblake@redhat.com>
11427
11428         maint.mk: enhance useless header checks
11429         * top/maint.mk (_sc_header_without_use): Check both include
11430         styles.
11431         (sc_prohibit_assert_without_use)
11432         (sc_prohibit_close_stream_without_use)
11433         (sc_prohibit_getopt_without_use)
11434         (sc_prohibit_quotearg_without_use)
11435         (sc_prohibit_quote_without_use)
11436         (sc_prohibit_long_options_without_use)
11437         (sc_prohibit_inttostr_without_use)
11438         (sc_prohibit_ignore_value_without_use)
11439         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11440         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11441         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11442         (sc_prohibit_hash_pjw_without_use)
11443         (sc_prohibit_safe_read_without_use)
11444         (sc_prohibit_argmatch_without_use)
11445         (sc_prohibit_canonicalize_without_use)
11446         (sc_prohibit_root_dev_ino_without_use)
11447         (sc_prohibit_openat_without_use)
11448         (sc_prohibit_c_ctype_without_use)
11449         (sc_prohibit_signal_without_use)
11450         (sc_prohibit_stdio--_without_use)
11451         (sc_prohibit_stdio-safer_without_use)
11452         (sc_prohibit_strings_without_use)
11453         (sc_prohibit_intprops_without_use)
11454         (sc_prohibit_stddef_without_use)
11455         (sc_prohibit_xfreopen_without_use): Update clients.
11456
11457 2011-06-24  Jim Meyering  <meyering@redhat.com>
11458
11459         syntax-check: keep one maint.mk rule in sync with its header
11460         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11461         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11462         I prefer to avoid temporary files here, so use <(...), but that
11463         is not supported by /bin/sh, so...
11464         (SHELL): Define to /bin/bash.
11465
11466 2011-06-24  Eric Blake  <eblake@redhat.com>
11467
11468         maint.mk: update sc_prohibit_intprops_without_use
11469         * top/maint.mk (_intprops_names): Match recent changes.
11470
11471 2011-06-24  Bruno Haible  <bruno@clisp.org>
11472
11473         strerror-override: No-op tweak.
11474         * lib/strerror-override.h (strerror_override): Reorder conditions,
11475         for consistency with lib/strerror-override.c.
11476
11477 2011-06-23  Eric Blake  <eblake@redhat.com>
11478
11479         maint.mk: test further PATH_MAX issues
11480         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11481         (sc_prohibit_path_max_allocation): ...and also test alloca.
11482         Suggested by Jim Meyering.
11483
11484 2011-06-22  Eric Blake  <eblake@redhat.com>
11485
11486         maint.mk: add syntax-check to avoid char[PATH_MAX]
11487         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11488
11489         stat: be robust to PATH_MAX definition
11490         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11491         * modules/stat (Depends-on): Add verify.
11492
11493         link: work around IRIX bug
11494         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11495         * lib/link.c (rpl_link): Work around it.
11496         * tests/test-link.h (test_link): Enhance test.
11497         * doc/posix-functions/link.texi (link): Document the bug.
11498
11499         getopt: silence clang warning
11500         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11501         dereference.
11502         Reported by Gustavo Martin Domato.
11503
11504 2011-06-22  Jim Meyering  <meyering@redhat.com>
11505
11506         bootstrap: do not insert a blank line into each .gitignore file
11507         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11508
11509 2011-06-21  Eric Blake  <eblake@redhat.com>
11510
11511         perror: test for output mismatch
11512         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11513         perror on IRIX.
11514
11515         strerror_r: fix OpenBSD behavior on out-of-range
11516         * lib/strerror_r.c (strerror_r): Always use maximal string.
11517         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11518
11519         strerror_r: fix OpenBSD behavior on 0
11520         * lib/strerror-override.c (strerror_override): Also override 0
11521         when needed.
11522         * lib/strerror-override.h (strerror_override): Likewise.
11523         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11524         earlier.
11525         * lib/strerror_r.c (strerror_r): Likewise.
11526         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11527         behavior...
11528         (gl_FUNC_STRERROR_0): ...into new macro.
11529         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11530         is overridden.
11531         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11532         * modules/strerror-override (Files): Add strerror.m4.
11533         (configure.ac): Also provide override for 0 when needed.
11534         * doc/posix-functions/strerror.texi (strerror): Document this.
11535         * doc/posix-functions/perror.texi (perror): Likewise.
11536
11537         perror: adjust array size
11538         * modules/perror (Depends-on): Add strerror-override.
11539         * lib/perror.c (perror): Use it to avoid magic number.
11540
11541         strerror-override: reduce size
11542         * lib/strerror-override.c (strerror_override): Use fewer lines.
11543
11544 2011-06-20  Bruno Haible  <bruno@clisp.org>
11545
11546         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11547         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11548
11549 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11550
11551         alloca: port to compilers that can optimize like GCC 4.6.0
11552         * lib/alloca.c (find_stack_direction): New signature, taken from
11553         Autoconf git.  This works with GCC 4.6.0.  This code should never
11554         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11555         be used with other compilers that optimize as well as GCC 4.6.0 does.
11556         (alloca): Adjust to new signature.
11557         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11558         New macro, which patches Autoconf in a similar way.
11559
11560         c-stack: stop worrying about stack direction
11561         * lib/c-stack.c (find_stack_direction): Remove.
11562         (segv_handler): Don't worry about stack direction growth, as it's
11563         too much of a pain to configure this correctly, given how compilers
11564         are optimizing-away our stack-growth detection code.  Instead, assume
11565         that any access to just before or just after the stack is OK.
11566         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11567         Don't require AC_FUNC_ALLOCA; no longer needed.
11568
11569 2011-06-20  Eric Blake  <eblake@redhat.com>
11570
11571         test-stat: don't allocate PATH_MAX bytes
11572         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11573         PATH_MAX-sized buffer.
11574         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11575         * modules/stat-tests (Depends-on): Likewise.
11576         * tests/test-fstatat.c (includes): Drop pathmax.h.
11577         * tests/test-stat.c (includes): Likewise.
11578         Reported by Bruno Haible.
11579
11580 2011-06-20  Bruno Haible  <bruno@clisp.org>
11581
11582         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11583         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11584         * lib/float.c: New file.
11585         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11586         REPLACE_FLOAT_LDBL.
11587         * modules/float (Files): Add lib/float.c.
11588         (configure.ac): Invoke AC_LIBOBJ.
11589         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11590
11591 2011-06-20  Bruno Haible  <bruno@clisp.org>
11592
11593         Tests for module 'float'.
11594         * modules/float-tests: New file.
11595         * tests/test-float.c: New file.
11596
11597 2011-06-19  Bruno Haible  <bruno@clisp.org>
11598
11599         isinf: Coding style.
11600         * lib/isinf.c: Use GNU coding style.
11601
11602 2011-06-19  Bruno Haible  <bruno@clisp.org>
11603
11604         linkat test: Avoid test failure on AIX 7.1.
11605         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11606         * tests/test-link.h (test_link): Likewise.
11607
11608 2011-06-19  Bruno Haible  <bruno@clisp.org>
11609
11610         pread test: Avoid test failure on OpenBSD 4.9.
11611         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11612
11613 2011-06-19  Bruno Haible  <bruno@clisp.org>
11614
11615         sprintf-posix: Fix test failure on AIX 7.1.
11616         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11617         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11618         on AIX.
11619         * doc/posix-functions/fprintf.texi: Likewise.
11620         * doc/posix-functions/printf.texi: Likewise.
11621         * doc/posix-functions/snprintf.texi: Likewise.
11622         * doc/posix-functions/sprintf.texi: Likewise.
11623         * doc/posix-functions/vdprintf.texi: Likewise.
11624         * doc/posix-functions/vfprintf.texi: Likewise.
11625         * doc/posix-functions/vprintf.texi: Likewise.
11626         * doc/posix-functions/vsnprintf.texi: Likewise.
11627         * doc/posix-functions/vsprintf.texi: Likewise.
11628
11629 2011-06-19  Bruno Haible  <bruno@clisp.org>
11630
11631         roundl-ieee: Fix test failure on AIX 7.1.
11632         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11633         * doc/posix-functions/roundl.texi: Mention problem with negative
11634         arguments.
11635
11636 2011-06-19  Bruno Haible  <bruno@clisp.org>
11637
11638         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11639         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11640         * doc/posix-functions/round.texi: Mention problem with negative
11641         arguments.
11642         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11643
11644 2011-06-19  Bruno Haible  <bruno@clisp.org>
11645
11646         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11647         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11648         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11649         * doc/posix-functions/roundf.texi: Mention problem with negative
11650         arguments.
11651         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11652
11653 2011-06-19  Bruno Haible  <bruno@clisp.org>
11654
11655         ceilf-ieee: Work around bug on MacOS X 10.5.
11656         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11657
11658         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11659         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11660         IEEE compliant, avoid compiler optimizations.
11661         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11662         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11663         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11664         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11665         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11666         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11667         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11668         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11669         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11670         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11671
11672 2011-06-19  Bruno Haible  <bruno@clisp.org>
11673
11674         ceilf-ieee: Work around bug on AIX 7.1.
11675         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11676         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11677
11678 2011-06-19  Bruno Haible  <bruno@clisp.org>
11679
11680         ceil-ieee: Work around bug on AIX 7.1.
11681         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11682         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11683
11684 2011-06-18  Bruno Haible  <bruno@clisp.org>
11685
11686         fsync test: Avoid test failure on MacOS X and AIX.
11687         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11688         EINVAL.
11689
11690 2011-06-18  Bruno Haible  <bruno@clisp.org>
11691
11692         openat, fdopendir tests: Fix link errors.
11693         * modules/openat-tests (Depends-on): Add progname.
11694         * modules/fdopendir-tests (Depends-on): Likewise.
11695         * tests/test-fchownat.c: Include progname.h.
11696         (main): Call set_program_name.
11697         * tests/test-fstatat.c: Include progname.h.
11698         (main): Call set_program_name.
11699         * tests/test-mkdirat.c: Include progname.h.
11700         (main): Call set_program_name.
11701         * tests/test-openat.c: Include progname.h.
11702         (main): Call set_program_name.
11703         * tests/test-unlinkat.c: Include progname.h.
11704         (main): Call set_program_name.
11705         * tests/test-fdopendir.c: Include progname.h.
11706         (main): Call set_program_name.
11707
11708 2011-06-18  Bruno Haible  <bruno@clisp.org>
11709
11710         Doc update.
11711         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11712         HP-UX.
11713         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11714
11715 2011-06-18  Bruno Haible  <bruno@clisp.org>
11716
11717         getcwd tests: Avoid compilation error on HP-UX 11.31.
11718         * modules/getcwd-tests (Depends-on): Add pathmax.
11719         * tests/test-getcwd.c: Include pathmax.h.
11720
11721 2011-06-18  Bruno Haible  <bruno@clisp.org>
11722
11723         isfinite, isinf: Fix link error on AIX 6 and 7.
11724         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11725         needed, also test the macro with a 'float' argument.
11726         * m4/isinf.m4 (gl_ISINF): Likewise.
11727
11728 2011-06-18  Bruno Haible  <bruno@clisp.org>
11729
11730         getloadavg: Don't clobber LIBS. Regression from previous commit.
11731         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11732         AC_CHECK_LIB from here...
11733         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11734         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11735         gl_func_getloadavg_done.
11736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11737
11738 2011-06-18  Bruno Haible  <bruno@clisp.org>
11739
11740         clean-temp: Improve documentation.
11741         * lib/clean-temp.h: Explain better how to use this module.
11742         Reported by John Darrington <john@darrington.wattle.id.au>.
11743
11744 2011-06-17  Bruno Haible  <bruno@clisp.org>
11745
11746         pread, pwrite: Avoid cc warning on AIX.
11747         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11748         (pwrite): Likewise.
11749
11750 2011-06-17  Bruno Haible  <bruno@clisp.org>
11751
11752         spawn-pipe tests: Fix link error.
11753         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11755
11756 2011-06-17  Bruno Haible  <bruno@clisp.org>
11757
11758         Tests: Remove unnecessary dependency.
11759         * modules/canonicalize-tests (Depends-on): Remove progname.
11760         * modules/chown-tests (Depends-on): Likewise.
11761         * modules/dirname-tests (Depends-on): Likewise.
11762         * modules/fdopendir-tests (Depends-on): Likewise.
11763         * modules/fdutimensat-tests (Depends-on): Likewise.
11764         * modules/hash-tests (Depends-on): Likewise.
11765         * modules/lchown-tests (Depends-on): Likewise.
11766         * modules/linkat-tests (Depends-on): Likewise.
11767         * modules/renameat-tests (Depends-on): Likewise.
11768         * modules/spawn-pipe-tests (Depends-on): Likewise.
11769         * modules/utimensat-tests (Depends-on): Likewise.
11770
11771 2011-06-17  Bruno Haible  <bruno@clisp.org>
11772
11773         spawn-pipe tests: Fix link error.
11774         * tests/test-spawn-pipe-child.c: Undefine fflush.
11775
11776 2011-06-17  Bruno Haible  <bruno@clisp.org>
11777
11778         Fix tests link errors.
11779         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11780         * modules/chown-tests (Makefile.am): Don't link test-chown with
11781         LIBINTL.
11782         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11783         LIBINTL.
11784         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11785         LIBINTL.
11786         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11787         LIBINTL.
11788
11789 2011-06-16  Bruno Haible  <bruno@clisp.org>
11790
11791         crypto/gc-sha1: Fix recent regression.
11792         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11793         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11794
11795         crypto/gc-md5: Fix recent regression.
11796         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11797
11798         crypto/gc-md4: Fix recent regression.
11799         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11800         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11801
11802         crypto/gc-arctwo: Fix recent regression.
11803         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11804         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11805
11806         crypto/gc-rijndael: Fix recent regression.
11807         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11808         (configure.ac): Invoke AC_LIBOBJ here.
11809         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11811
11812         crypto/gc-hmac-sha1: Fix recent regression.
11813         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11814         (configure.ac): Invoke AC_LIBOBJ here.
11815         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11817
11818         crypto/gc-hmac-md5: Fix recent regression.
11819         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11820         (configure.ac): Invoke AC_LIBOBJ here.
11821         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11822         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11823
11824         crypto/gc-des: Fix recent regression.
11825         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11826         (configure.ac): Invoke AC_LIBOBJ here.
11827         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11828         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11829
11830         crypto/gc-arcfour: Fix recent regression.
11831         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11832         (configure.ac): Invoke AC_LIBOBJ here.
11833         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11835
11836 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11837
11838         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11839         After the 2011-05-21 change, this macro requires
11840         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11841         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11842
11843 2011-06-16  Bruno Haible  <bruno@clisp.org>
11844
11845         fprintftime: Move AC_LIBOBJ invocations to module description.
11846         * m4/fprintftime.m4: Remove file.
11847         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11848         (configure.ac): Remove gl_FPRINTFTIME call.
11849         (Makefile.am): Augment lib_SOURCES.
11850         Reported by Jim Meyering.
11851
11852 2011-06-16  Bruno Haible  <bruno@clisp.org>
11853
11854         tmpfile-safer: Finish 2011-05-23 commit.
11855         * m4/stdio-safer.m4: Really remove file.
11856         Reported by Jim Meyering.
11857
11858 2011-06-16  Bruno Haible  <bruno@clisp.org>
11859
11860         syntax-check: Fix typo.
11861         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11862         printf-posix.m4.
11863         Reported by Jim Meyering.
11864
11865 2011-06-13  Jim Meyering  <meyering@redhat.com>
11866
11867         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11868         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11869
11870 2011-05-23  Bruno Haible  <bruno@clisp.org>
11871
11872         yesno: Move AC_LIBOBJ invocations to module description.
11873         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11874         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11875
11876 2011-05-23  Bruno Haible  <bruno@clisp.org>
11877
11878         xstrtol: Move AC_LIBOBJ invocations to module description.
11879         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11880         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11881
11882 2011-05-23  Bruno Haible  <bruno@clisp.org>
11883
11884         xstrtold: Move AC_LIBOBJ invocations to module description.
11885         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11886         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11887
11888 2011-05-23  Bruno Haible  <bruno@clisp.org>
11889
11890         xstrtod: Move AC_LIBOBJ invocations to module description.
11891         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11892         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11893
11894 2011-05-23  Bruno Haible  <bruno@clisp.org>
11895
11896         xnanosleep: Move AC_LIBOBJ invocations to module description.
11897         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11898         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11899
11900 2011-05-23  Bruno Haible  <bruno@clisp.org>
11901
11902         xgetcwd: Move AC_LIBOBJ invocations to module description.
11903         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11904         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11905
11906 2011-05-23  Bruno Haible  <bruno@clisp.org>
11907
11908         xalloc: Move AC_LIBOBJ invocations to module description.
11909         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11910         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11911
11912 2011-05-23  Bruno Haible  <bruno@clisp.org>
11913
11914         write-any-file: Move AC_LIBOBJ invocations to module description.
11915         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11916         invocation.
11917         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11918
11919 2011-05-23  Bruno Haible  <bruno@clisp.org>
11920
11921         utimens: Move AC_LIBOBJ invocations to module description.
11922         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11923         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11924
11925 2011-05-23  Bruno Haible  <bruno@clisp.org>
11926
11927         utimecmp: Move AC_LIBOBJ invocations to module description.
11928         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11929         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11930
11931 2011-05-23  Bruno Haible  <bruno@clisp.org>
11932
11933         userspec: Move AC_LIBOBJ invocations to module description.
11934         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11935         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11936
11937 2011-05-23  Bruno Haible  <bruno@clisp.org>
11938
11939         unlinkdir: Move AC_LIBOBJ invocations to module description.
11940         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11941         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11942
11943 2011-05-23  Bruno Haible  <bruno@clisp.org>
11944
11945         unistd-safer: Move AC_LIBOBJ invocations to module description.
11946         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11947         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11948
11949 2011-05-23  Bruno Haible  <bruno@clisp.org>
11950
11951         tempname: Move AC_LIBOBJ invocations to module description.
11952         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11953         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11954
11955 2011-05-23  Bruno Haible  <bruno@clisp.org>
11956
11957         strftime: Move AC_LIBOBJ invocations to module description.
11958         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11959         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11960
11961 2011-05-23  Bruno Haible  <bruno@clisp.org>
11962
11963         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11964         * m4/stdlib-safer.m4: Remove file.
11965         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11966         (configure.ac): Remove gl_STDLIB_SAFER call.
11967         (Makefile.am): Augment lib_SOURCES.
11968
11969 2011-05-23  Bruno Haible  <bruno@clisp.org>
11970
11971         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11972         * m4/stdio-safer.m4: Remove file.
11973         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11974         (configure.ac): Remove gl_TMPFILE_SAFER call.
11975         (Makefile.am): Augment lib_SOURCES.
11976
11977 2011-05-23  Bruno Haible  <bruno@clisp.org>
11978
11979         popen-safer: Move AC_LIBOBJ invocations to module description.
11980         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11981         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11982         (configure.ac): Remove gl_POPEN_SAFER call.
11983         (Makefile.am): Augment lib_SOURCES.
11984
11985 2011-05-23  Bruno Haible  <bruno@clisp.org>
11986
11987         freopen-safer: Move AC_LIBOBJ invocations to module description.
11988         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11989         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11990         (configure.ac): Remove gl_FREOPEN_SAFER call.
11991         (Makefile.am): Augment lib_SOURCES.
11992
11993 2011-05-23  Bruno Haible  <bruno@clisp.org>
11994
11995         fopen-safer: Move AC_LIBOBJ invocations to module description.
11996         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11997         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11998         (configure.ac): Remove gl_FOPEN_SAFER call.
11999         (Makefile.am): Augment lib_SOURCES.
12000
12001 2011-05-23  Bruno Haible  <bruno@clisp.org>
12002
12003         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12004         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12005         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12006
12007 2011-05-23  Bruno Haible  <bruno@clisp.org>
12008
12009         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12010         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12011         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12012
12013 2011-05-23  Bruno Haible  <bruno@clisp.org>
12014
12015         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12016         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12017         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12018
12019 2011-05-23  Bruno Haible  <bruno@clisp.org>
12020
12021         settime: Move AC_LIBOBJ invocations to module description.
12022         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12023         * modules/settime (Makefile.am): Augment lib_SOURCES.
12024
12025 2011-05-23  Bruno Haible  <bruno@clisp.org>
12026
12027         savedir: Move AC_LIBOBJ invocations to module description.
12028         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12029         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12030
12031 2011-05-23  Bruno Haible  <bruno@clisp.org>
12032
12033         save-cwd: Move AC_LIBOBJ invocations to module description.
12034         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12035         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12036
12037 2011-05-23  Bruno Haible  <bruno@clisp.org>
12038
12039         same: Move AC_LIBOBJ invocations to module description.
12040         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12041         * modules/same (Makefile.am): Augment lib_SOURCES.
12042
12043 2011-05-23  Bruno Haible  <bruno@clisp.org>
12044
12045         safe-write: Move AC_LIBOBJ invocations to module description.
12046         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12047         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12048         instead of gl_SAFE_WRITE.
12049         (Makefile.am): Augment lib_SOURCES.
12050
12051 2011-05-23  Bruno Haible  <bruno@clisp.org>
12052
12053         safe-read: Move AC_LIBOBJ invocations to module description.
12054         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12055         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12056         of gl_SAFE_READ.
12057         (Makefile.am): Augment lib_SOURCES.
12058
12059 2011-05-23  Bruno Haible  <bruno@clisp.org>
12060
12061         safe-alloc: Move AC_LIBOBJ invocations to module description.
12062         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12063         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12064
12065 2011-05-23  Bruno Haible  <bruno@clisp.org>
12066
12067         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12068         * m4/rijndael.m4: Remove file.
12069         * modules/crypto/rijndael (Files): Remove it.
12070         (configure.ac): Remove gl_RIJNDAEL call.
12071         (Makefile.am): Augment lib_SOURCES.
12072
12073 2011-05-23  Bruno Haible  <bruno@clisp.org>
12074
12075         readtokens: Move AC_LIBOBJ invocations to module description.
12076         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12077         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12078
12079 2011-05-23  Bruno Haible  <bruno@clisp.org>
12080
12081         read-file: Move AC_LIBOBJ invocations to module description.
12082         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12083         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12084         of gl_FUNC_READ_FILE.
12085         (Makefile.am): Augment lib_SOURCES.
12086
12087 2011-05-23  Bruno Haible  <bruno@clisp.org>
12088
12089         quotearg: Move AC_LIBOBJ invocations to module description.
12090         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12091         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12092
12093 2011-05-23  Bruno Haible  <bruno@clisp.org>
12094
12095         quote: Move AC_LIBOBJ invocations to module description.
12096         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12097         * modules/quote (Makefile.am): Augment lib_SOURCES.
12098
12099 2011-05-23  Bruno Haible  <bruno@clisp.org>
12100
12101         posixver: Move AC_LIBOBJ invocations to module description.
12102         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12103         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12104
12105 2011-05-23  Bruno Haible  <bruno@clisp.org>
12106
12107         posixtm: Move AC_LIBOBJ invocations to module description.
12108         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12109         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12110
12111 2011-05-23  Bruno Haible  <bruno@clisp.org>
12112
12113         physmem: Move AC_LIBOBJ invocations to module description.
12114         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12115         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12116
12117 2011-05-23  Bruno Haible  <bruno@clisp.org>
12118
12119         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12120         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12121         invocation.
12122         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12123
12124 2011-05-23  Bruno Haible  <bruno@clisp.org>
12125
12126         mpsort: Move AC_LIBOBJ invocations to module description.
12127         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12128         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12129
12130 2011-05-23  Bruno Haible  <bruno@clisp.org>
12131
12132         modechange: Move AC_LIBOBJ invocations to module description.
12133         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12134         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12135
12136 2011-05-23  Bruno Haible  <bruno@clisp.org>
12137
12138         mkdir-p: Move AC_LIBOBJ invocations to module description.
12139         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12140         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12141
12142 2011-05-23  Bruno Haible  <bruno@clisp.org>
12143
12144         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12145         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12146         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12147
12148 2011-05-23  Bruno Haible  <bruno@clisp.org>
12149
12150         mgetgroups: Move AC_LIBOBJ invocations to module description.
12151         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12152         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12153
12154 2011-05-23  Bruno Haible  <bruno@clisp.org>
12155
12156         memxor: Move AC_LIBOBJ invocations to module description.
12157         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12158         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12159
12160 2011-05-23  Bruno Haible  <bruno@clisp.org>
12161
12162         memcoll: Move AC_LIBOBJ invocations to module description.
12163         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12164         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12165
12166 2011-05-23  Bruno Haible  <bruno@clisp.org>
12167
12168         memcasecmp: Move AC_LIBOBJ invocations to module description.
12169         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12170         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12171
12172 2011-05-23  Bruno Haible  <bruno@clisp.org>
12173
12174         crypto/md5: Move AC_LIBOBJ invocations to module description.
12175         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12176         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12177
12178 2011-05-23  Bruno Haible  <bruno@clisp.org>
12179
12180         crypto/md4: Move AC_LIBOBJ invocations to module description.
12181         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12182         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12183
12184 2011-05-23  Bruno Haible  <bruno@clisp.org>
12185
12186         crypto/md2: Move AC_LIBOBJ invocations to module description.
12187         * m4/md2.m4: Remove file.
12188         * modules/crypto/md2 (Files): Remove it.
12189         (configure.ac): Remove gl_MD2 call.
12190         (Makefile.am): Augment lib_SOURCES.
12191
12192 2011-05-23  Bruno Haible  <bruno@clisp.org>
12193
12194         long-options: Move AC_LIBOBJ invocations to module description.
12195         * m4/long-options.m4: Remove file.
12196         * modules/long-options (Files): Remove it.
12197         (configure.ac): Remove gl_LONG_OPTIONS call.
12198         (Makefile.am): Augment lib_SOURCES.
12199
12200 2011-05-23  Bruno Haible  <bruno@clisp.org>
12201
12202         i-ring: Move AC_LIBOBJ invocations to module description.
12203         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12204         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12205
12206 2011-05-23  Bruno Haible  <bruno@clisp.org>
12207
12208         idcache: Move AC_LIBOBJ invocations to module description.
12209         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12210         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12211
12212 2011-05-23  Bruno Haible  <bruno@clisp.org>
12213
12214         human: Move AC_LIBOBJ invocations to module description.
12215         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12216         * modules/human (Makefile.am): Augment lib_SOURCES.
12217
12218 2011-05-23  Bruno Haible  <bruno@clisp.org>
12219
12220         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12221         * m4/hmac-sha1.m4: Remove file.
12222         * modules/crypto/hmac-sha1 (Files): Remove it.
12223         (configure.ac): Remove gl_HMAC_SHA1 call.
12224         (Makefile.am): Augment lib_SOURCES.
12225
12226 2011-05-23  Bruno Haible  <bruno@clisp.org>
12227
12228         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12229         * m4/hmac-md5.m4: Remove file.
12230         * modules/crypto/hmac-md5 (Files): Remove it.
12231         (configure.ac): Remove gl_HMAC_MD5 call.
12232         (Makefile.am): Augment lib_SOURCES.
12233
12234 2011-05-23  Bruno Haible  <bruno@clisp.org>
12235
12236         hash: Move AC_LIBOBJ invocations to module description.
12237         * m4/hash.m4: Remove file.
12238         * modules/hash (Files): Remove it.
12239         (configure.ac): Remove gl_HASH call.
12240         (Makefile.am): Augment lib_SOURCES.
12241
12242 2011-05-23  Bruno Haible  <bruno@clisp.org>
12243
12244         hard-locale: Move AC_LIBOBJ invocations to module description.
12245         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12246         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12247
12248 2011-05-23  Bruno Haible  <bruno@clisp.org>
12249
12250         getugroups: Move AC_LIBOBJ invocations to module description.
12251         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12252         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12253
12254 2011-05-23  Bruno Haible  <bruno@clisp.org>
12255
12256         gettime: Move AC_LIBOBJ invocations to module description.
12257         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12258         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12259
12260 2011-05-23  Bruno Haible  <bruno@clisp.org>
12261
12262         getndelim2: Move AC_LIBOBJ invocations to module description.
12263         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12264         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12265
12266 2011-05-23  Bruno Haible  <bruno@clisp.org>
12267
12268         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12269         * m4/gc-pbkdf2-sha1.m4: Remove file.
12270         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12271         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12272         (Makefile.am): Augment lib_SOURCES.
12273
12274 2011-05-23  Bruno Haible  <bruno@clisp.org>
12275
12276         fts: Move AC_LIBOBJ invocations to module description.
12277         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12278         * modules/fts (configure.ac): ... to here.
12279
12280 2011-05-23  Bruno Haible  <bruno@clisp.org>
12281
12282         file-type: Move AC_LIBOBJ invocations to module description.
12283         * m4/file-type.m4: Remove file.
12284         * modules/file-type (Files): Remove it.
12285         (configure.ac): Remove gl_FILE_TYPE call.
12286         (Makefile.am): Augment lib_SOURCES.
12287
12288 2011-05-23  Bruno Haible  <bruno@clisp.org>
12289
12290         filenamecat*: Respect rules for use of AC_LIBOBJ.
12291         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12292         Remove AC_LIBOBJ invocation.
12293         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12294         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12295
12296 2011-05-23  Bruno Haible  <bruno@clisp.org>
12297
12298         filemode: Move AC_LIBOBJ invocations to module description.
12299         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12300         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12301
12302 2011-05-23  Bruno Haible  <bruno@clisp.org>
12303
12304         openat-safer: Move AC_LIBOBJ invocations to module description.
12305         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12306         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12307
12308 2011-05-23  Bruno Haible  <bruno@clisp.org>
12309
12310         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12311         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12312         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12313
12314 2011-05-23  Bruno Haible  <bruno@clisp.org>
12315
12316         exclude: Move AC_LIBOBJ invocations to module description.
12317         * m4/exclude.m4: Remove file.
12318         * modules/exclude (Files): Remove it.
12319         (configure.ac): Remove gl_EXCLUDE call.
12320         (Makefile.am): Augment lib_SOURCES.
12321
12322 2011-05-23  Bruno Haible  <bruno@clisp.org>
12323
12324         dirname*: Respect rules for use of AC_LIBOBJ.
12325         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12326         invocations.
12327         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12328         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12329
12330 2011-05-23  Bruno Haible  <bruno@clisp.org>
12331
12332         dirent-safer: Move AC_LIBOBJ invocations to module description.
12333         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12334         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12335
12336 2011-05-23  Bruno Haible  <bruno@clisp.org>
12337
12338         crypto/des: Move AC_LIBOBJ invocations to module description.
12339         * m4/des.m4: Remove file.
12340         * modules/crypto/des (Files): Remove it.
12341         (configure.ac): Remove gl_DES call.
12342         (Makefile.am): Augment lib_SOURCES.
12343
12344 2011-05-23  Bruno Haible  <bruno@clisp.org>
12345
12346         cycle-check: Move AC_LIBOBJ invocations to module description.
12347         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12348         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12349
12350 2011-05-23  Bruno Haible  <bruno@clisp.org>
12351
12352         c-strtold: Move AC_LIBOBJ invocations to module description.
12353         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12354         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12355
12356 2011-05-23  Bruno Haible  <bruno@clisp.org>
12357
12358         c-strtod: Move AC_LIBOBJ invocations to module description.
12359         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12360         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12361
12362 2011-05-23  Bruno Haible  <bruno@clisp.org>
12363
12364         crc: Move AC_LIBOBJ invocations to module description.
12365         * m4/crc.m4: Remove file.
12366         * modules/crc (Files): Remove it.
12367         (configure.ac): Remove gl_CRC call.
12368         (Makefile.am): Augment lib_SOURCES.
12369
12370 2011-05-23  Bruno Haible  <bruno@clisp.org>
12371
12372         close-stream: Move AC_LIBOBJ invocations to module description.
12373         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12374         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12375
12376 2011-05-23  Bruno Haible  <bruno@clisp.org>
12377
12378         closeout: Move AC_LIBOBJ invocations to module description.
12379         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12380         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12381
12382 2011-05-23  Bruno Haible  <bruno@clisp.org>
12383
12384         closein: Move AC_LIBOBJ invocations to module description.
12385         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12386         * modules/closein (Makefile.am): Augment lib_SOURCES.
12387
12388 2011-05-23  Bruno Haible  <bruno@clisp.org>
12389
12390         cloexec: Move AC_LIBOBJ invocations to module description.
12391         * m4/cloexec.m4: Remove file.
12392         * modules/cloexec (Files): Remove it.
12393         (configure.ac): Remove gl_CLOEXEC call.
12394         (Makefile.am): Augment lib_SOURCES.
12395
12396 2011-05-23  Bruno Haible  <bruno@clisp.org>
12397
12398         check-version: Move AC_LIBOBJ invocations to module description.
12399         * m4/check-version.m4: Remove file.
12400         * modules/check-version (Files): Remove it.
12401         (configure.ac): Remove gl_CHECK_VERSION call.
12402         (Makefile.am): Augment lib_SOURCES.
12403
12404 2011-05-23  Bruno Haible  <bruno@clisp.org>
12405
12406         chdir-safer: Move AC_LIBOBJ invocations to module description.
12407         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12408         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12409
12410 2011-05-23  Bruno Haible  <bruno@clisp.org>
12411
12412         canonicalize: Move AC_LIBOBJ invocations to module description.
12413         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12414         AC_LIBOBJ invocation.
12415         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12416
12417 2011-05-23  Bruno Haible  <bruno@clisp.org>
12418
12419         canon-host: Move AC_LIBOBJ invocations to module description.
12420         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12421         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12422         instead of gl_CANON_HOST.
12423         (Makefile.am): Augment lib_SOURCES.
12424
12425 2011-05-23  Bruno Haible  <bruno@clisp.org>
12426
12427         backupfile: Move AC_LIBOBJ invocations to module description.
12428         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12429         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12430
12431 2011-05-23  Bruno Haible  <bruno@clisp.org>
12432
12433         argmatch: Move AC_LIBOBJ invocations to module description.
12434         * m4/argmatch.m4: Remove file.
12435         * modules/argmatch (Files): Remove it.
12436         (configure.ac): Remove gl_ARGMATCH call.
12437         (Makefile.am): Augment lib_SOURCES.
12438
12439 2011-05-23  Bruno Haible  <bruno@clisp.org>
12440
12441         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12442         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12443         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12444
12445 2011-05-23  Bruno Haible  <bruno@clisp.org>
12446
12447         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12448         * m4/arcfour.m4: Remove file.
12449         * modules/crypto/arcfour (Files): Remove it.
12450         (configure.ac): Remove gl_ARCFOUR call.
12451         (Makefile.am): Augment lib_SOURCES.
12452
12453 2011-05-22  Bruno Haible  <bruno@clisp.org>
12454
12455         write: Move AC_LIBOBJ invocations to module description.
12456         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12457         * modules/write (configure.ac): ... to here.
12458
12459 2011-05-22  Bruno Haible  <bruno@clisp.org>
12460
12461         wmemset: Move AC_LIBOBJ invocations to module description.
12462         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12463         here...
12464         * modules/wmemset (configure.ac): ... to here.
12465
12466 2011-05-22  Bruno Haible  <bruno@clisp.org>
12467
12468         wmemmove: Move AC_LIBOBJ invocations to module description.
12469         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12470         here...
12471         * modules/wmemmove (configure.ac): ... to here.
12472
12473 2011-05-22  Bruno Haible  <bruno@clisp.org>
12474
12475         wmemcpy: Move AC_LIBOBJ invocations to module description.
12476         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12477         here...
12478         * modules/wmemcpy (configure.ac): ... to here.
12479
12480 2011-05-22  Bruno Haible  <bruno@clisp.org>
12481
12482         wmemcmp: Move AC_LIBOBJ invocations to module description.
12483         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12484         here...
12485         * modules/wmemcmp (configure.ac): ... to here.
12486
12487 2011-05-22  Bruno Haible  <bruno@clisp.org>
12488
12489         wmemchr: Move AC_LIBOBJ invocations to module description.
12490         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12491         here...
12492         * modules/wmemchr (configure.ac): ... to here.
12493
12494 2011-05-22  Bruno Haible  <bruno@clisp.org>
12495
12496         wcswidth: Move AC_LIBOBJ invocations to module description.
12497         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12498         here...
12499         * modules/wcswidth (configure.ac): ... to here.
12500
12501 2011-05-22  Bruno Haible  <bruno@clisp.org>
12502
12503         wcwidth: Respect rules for use of AC_LIBOBJ.
12504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12505         invocation from here...
12506         * modules/wcwidth (configure.ac): ... to here.
12507         (Depends-on): Update conditions.
12508
12509 2011-05-22  Bruno Haible  <bruno@clisp.org>
12510
12511         wctype: Move AC_LIBOBJ invocations to module description.
12512         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12513         invocation from here...
12514         * modules/wctype (configure.ac): ... to here.
12515         (Depends-on): Update conditions.
12516
12517 2011-05-22  Bruno Haible  <bruno@clisp.org>
12518
12519         wctrans: Move AC_LIBOBJ invocations to module description.
12520         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12521         invocation from here...
12522         * modules/wctrans (configure.ac): ... to here.
12523
12524 2011-05-22  Bruno Haible  <bruno@clisp.org>
12525
12526         wctomb: Move AC_LIBOBJ invocations to module description.
12527         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12528         invocations from here...
12529         * modules/wctomb (configure.ac): ... to here.
12530
12531 2011-05-22  Bruno Haible  <bruno@clisp.org>
12532
12533         wctob: Move AC_LIBOBJ invocations to module description.
12534         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12535         gl_PREREQ_WCTOB invocations from here...
12536         * modules/wctob (configure.ac): ... to here.
12537         (Depends-on): Update conditions.
12538
12539 2011-05-22  Bruno Haible  <bruno@clisp.org>
12540
12541         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12542         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12543         here...
12544         * modules/wcsxfrm (configure.ac): ... to here.
12545
12546 2011-05-22  Bruno Haible  <bruno@clisp.org>
12547
12548         wcstok: Move AC_LIBOBJ invocations to module description.
12549         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12550         * modules/wcstok (configure.ac): ... to here.
12551
12552 2011-05-22  Bruno Haible  <bruno@clisp.org>
12553
12554         wcsstr: Move AC_LIBOBJ invocations to module description.
12555         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12556         * modules/wcsstr (configure.ac): ... to here.
12557
12558 2011-05-22  Bruno Haible  <bruno@clisp.org>
12559
12560         wcsspn: Move AC_LIBOBJ invocations to module description.
12561         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12562         * modules/wcsspn (configure.ac): ... to here.
12563
12564 2011-05-22  Bruno Haible  <bruno@clisp.org>
12565
12566         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12567         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12568         gl_PREREQ_WCSRTOMBS invocations from here...
12569         * modules/wcsrtombs (configure.ac): ... to here.
12570
12571 2011-05-22  Bruno Haible  <bruno@clisp.org>
12572
12573         wcsrchr: Move AC_LIBOBJ invocations to module description.
12574         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12575         here...
12576         * modules/wcsrchr (configure.ac): ... to here.
12577
12578 2011-05-22  Bruno Haible  <bruno@clisp.org>
12579
12580         wcspbrk: Move AC_LIBOBJ invocations to module description.
12581         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12582         here...
12583         * modules/wcspbrk (configure.ac): ... to here.
12584
12585 2011-05-22  Bruno Haible  <bruno@clisp.org>
12586
12587         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12588         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12589         gl_PREREQ_WCSNRTOMBS invocations from here...
12590         * modules/wcsnrtombs (configure.ac): ... to here.
12591
12592 2011-05-22  Bruno Haible  <bruno@clisp.org>
12593
12594         wcsnlen: Move AC_LIBOBJ invocations to module description.
12595         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12596         here...
12597         * modules/wcsnlen (configure.ac): ... to here.
12598
12599 2011-05-22  Bruno Haible  <bruno@clisp.org>
12600
12601         wcsncpy: Move AC_LIBOBJ invocations to module description.
12602         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12603         here...
12604         * modules/wcsncpy (configure.ac): ... to here.
12605
12606 2011-05-22  Bruno Haible  <bruno@clisp.org>
12607
12608         wcsncmp: Move AC_LIBOBJ invocations to module description.
12609         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12610         here...
12611         * modules/wcsncmp (configure.ac): ... to here.
12612
12613 2011-05-22  Bruno Haible  <bruno@clisp.org>
12614
12615         wcsncat: Move AC_LIBOBJ invocations to module description.
12616         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12617         here...
12618         * modules/wcsncat (configure.ac): ... to here.
12619
12620 2011-05-22  Bruno Haible  <bruno@clisp.org>
12621
12622         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12623         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12624         from here...
12625         * modules/wcsncasecmp (configure.ac): ... to here.
12626
12627 2011-05-22  Bruno Haible  <bruno@clisp.org>
12628
12629         wcslen: Move AC_LIBOBJ invocations to module description.
12630         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12631         * modules/wcslen (configure.ac): ... to here.
12632
12633 2011-05-22  Bruno Haible  <bruno@clisp.org>
12634
12635         wcsdup: Move AC_LIBOBJ invocations to module description.
12636         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12637         * modules/wcsdup (configure.ac): ... to here.
12638
12639 2011-05-22  Bruno Haible  <bruno@clisp.org>
12640
12641         wcscspn: Move AC_LIBOBJ invocations to module description.
12642         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12643         here...
12644         * modules/wcscspn (configure.ac): ... to here.
12645
12646 2011-05-22  Bruno Haible  <bruno@clisp.org>
12647
12648         wcscpy: Move AC_LIBOBJ invocations to module description.
12649         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12650         * modules/wcscpy (configure.ac): ... to here.
12651
12652 2011-05-22  Bruno Haible  <bruno@clisp.org>
12653
12654         wcscoll: Move AC_LIBOBJ invocations to module description.
12655         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12656         here...
12657         * modules/wcscoll (configure.ac): ... to here.
12658
12659 2011-05-22  Bruno Haible  <bruno@clisp.org>
12660
12661         wcscmp: Move AC_LIBOBJ invocations to module description.
12662         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12663         * modules/wcscmp (configure.ac): ... to here.
12664
12665 2011-05-22  Bruno Haible  <bruno@clisp.org>
12666
12667         wcschr: Move AC_LIBOBJ invocations to module description.
12668         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12669         * modules/wcschr (configure.ac): ... to here.
12670
12671 2011-05-22  Bruno Haible  <bruno@clisp.org>
12672
12673         wcscat: Move AC_LIBOBJ invocations to module description.
12674         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12675         * modules/wcscat (configure.ac): ... to here.
12676
12677 2011-05-22  Bruno Haible  <bruno@clisp.org>
12678
12679         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12680         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12681         here...
12682         * modules/wcscasecmp (configure.ac): ... to here.
12683
12684 2011-05-22  Bruno Haible  <bruno@clisp.org>
12685
12686         wcrtomb: Move AC_LIBOBJ invocations to module description.
12687         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12688         invocations from here...
12689         * modules/wcrtomb (configure.ac): ... to here.
12690
12691 2011-05-22  Bruno Haible  <bruno@clisp.org>
12692
12693         wcpncpy: Move AC_LIBOBJ invocations to module description.
12694         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12695         here...
12696         * modules/wcpncpy (configure.ac): ... to here.
12697
12698 2011-05-22  Bruno Haible  <bruno@clisp.org>
12699
12700         wcpcpy: Move AC_LIBOBJ invocations to module description.
12701         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12702         * modules/wcpcpy (configure.ac): ... to here.
12703
12704 2011-05-22  Bruno Haible  <bruno@clisp.org>
12705
12706         waitpid: Move AC_LIBOBJ invocations to module description.
12707         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12708         invocation from here...
12709         * modules/waitpid (configure.ac): ... to here.
12710
12711 2011-05-22  Bruno Haible  <bruno@clisp.org>
12712
12713         utimensat: Move AC_LIBOBJ invocations to module description.
12714         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12715         here...
12716         * modules/utimensat (configure.ac): ... to here.
12717
12718 2011-05-22  Bruno Haible  <bruno@clisp.org>
12719
12720         usleep: Move AC_LIBOBJ invocations to module description.
12721         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12722         here...
12723         * modules/usleep (configure.ac): ... to here.
12724
12725 2011-05-22  Bruno Haible  <bruno@clisp.org>
12726
12727         unlockpt: Move AC_LIBOBJ invocations to module description.
12728         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12729         gl_PREREQ_UNLOCKPT invocations from here...
12730         * modules/unlockpt (configure.ac): ... to here.
12731
12732 2011-05-22  Bruno Haible  <bruno@clisp.org>
12733
12734         unlink: Respect rules for use of AC_LIBOBJ.
12735         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12736         * modules/unlink (configure.ac): ... to here.
12737
12738 2011-05-22  Bruno Haible  <bruno@clisp.org>
12739
12740         uname: Move AC_LIBOBJ invocations to module description.
12741         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12743         here...
12744         * modules/uname (configure.ac): ... to here.
12745
12746 2011-05-22  Bruno Haible  <bruno@clisp.org>
12747
12748         ttyname_r: Move AC_LIBOBJ invocations to module description.
12749         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12750         gl_PREREQ_TTYNAME_R invocations from here...
12751         * modules/ttyname_r (configure.ac): ... to here.
12752
12753 2011-05-22  Bruno Haible  <bruno@clisp.org>
12754
12755         tsearch: Move AC_LIBOBJ invocations to module description.
12756         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12757         invocations from here...
12758         * modules/tsearch (configure.ac): ... to here.
12759
12760 2011-05-22  Bruno Haible  <bruno@clisp.org>
12761
12762         towctrans: Move AC_LIBOBJ invocations to module description.
12763         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12764         AC_LIBOBJ invocation from here...
12765         * modules/towctrans (configure.ac): ... to here.
12766
12767 2011-05-22  Bruno Haible  <bruno@clisp.org>
12768
12769         tmpfile: Move AC_LIBOBJ invocations to module description.
12770         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12771         invocations from here...
12772         * modules/tmpfile (configure.ac): ... to here.
12773
12774 2011-05-22  Bruno Haible  <bruno@clisp.org>
12775
12776         times: Move AC_LIBOBJ invocations to module description.
12777         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12778         * modules/times (configure.ac): ... to here.
12779
12780 2011-05-22  Bruno Haible  <bruno@clisp.org>
12781
12782         time_r: Move AC_LIBOBJ invocations to module description.
12783         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12784         invocations from here...
12785         * modules/time_r (configure.ac): ... to here.
12786
12787 2011-05-22  Bruno Haible  <bruno@clisp.org>
12788
12789         timegm: Move AC_LIBOBJ invocations to module description.
12790         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12791         invocations from here...
12792         * modules/timegm (configure.ac): ... to here.
12793
12794 2011-05-22  Bruno Haible  <bruno@clisp.org>
12795
12796         tcgetsid: Move AC_LIBOBJ invocations to module description.
12797         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12798         and gl_PREREQ_TCGETSID invocations from here...
12799         * modules/tcgetsid (configure.ac): ... to here.
12800         (Depends-on): Update conditions.
12801
12802 2011-05-22  Bruno Haible  <bruno@clisp.org>
12803
12804         symlinkat: Move AC_LIBOBJ invocations to module description.
12805         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12806         here...
12807         * modules/symlinkat (configure.ac): ... to here.
12808
12809 2011-05-22  Bruno Haible  <bruno@clisp.org>
12810
12811         symlink: Move AC_LIBOBJ invocations to module description.
12812         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12813         here...
12814         * modules/symlink (configure.ac): ... to here.
12815
12816 2011-05-22  Bruno Haible  <bruno@clisp.org>
12817
12818         strverscmp: Move AC_LIBOBJ invocations to module description.
12819         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12820         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12821         from here...
12822         * modules/strverscmp (configure.ac): ... to here.
12823
12824 2011-05-22  Bruno Haible  <bruno@clisp.org>
12825
12826         strtok_r: Move AC_LIBOBJ invocations to module description.
12827         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12828         and gl_PREREQ_STRTOK_R invocations from here...
12829         * modules/strtok_r (configure.ac): ... to here.
12830         (Depends-on): Update conditions.
12831
12832 2011-05-22  Bruno Haible  <bruno@clisp.org>
12833
12834         strtoumax: Move AC_LIBOBJ invocations to module description.
12835         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12836         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12837         from here...
12838         * modules/strtoumax (configure.ac): ... to here.
12839
12840 2011-05-22  Bruno Haible  <bruno@clisp.org>
12841
12842         strtoimax: Move AC_LIBOBJ invocations to module description.
12843         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12844         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12845         from here...
12846         * modules/strtoimax (configure.ac): ... to here.
12847
12848 2011-05-22  Bruno Haible  <bruno@clisp.org>
12849
12850         strtoull: Move AC_LIBOBJ invocations to module description.
12851         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12852         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12853         from here...
12854         * modules/strtoull (configure.ac): ... to here.
12855
12856 2011-05-22  Bruno Haible  <bruno@clisp.org>
12857
12858         strtoll: Move AC_LIBOBJ invocations to module description.
12859         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12861         here...
12862         * modules/strtoll (configure.ac): ... to here.
12863
12864 2011-05-22  Bruno Haible  <bruno@clisp.org>
12865
12866         strtoul: Move AC_LIBOBJ invocations to module description.
12867         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12868         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12869         * modules/strtoul (configure.ac): ... to here.
12870
12871 2011-05-22  Bruno Haible  <bruno@clisp.org>
12872
12873         strtol: Move AC_LIBOBJ invocations to module description.
12874         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12875         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12876         * modules/strtol (configure.ac): ... to here.
12877
12878 2011-05-22  Bruno Haible  <bruno@clisp.org>
12879
12880         strtod: Move AC_LIBOBJ invocations to module description.
12881         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12882         invocations from here...
12883         * modules/strtod (configure.ac): ... to here.
12884
12885 2011-05-22  Bruno Haible  <bruno@clisp.org>
12886
12887         strstr*: Move AC_LIBOBJ invocations to module description.
12888         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12889         invocations from here...
12890         * modules/strstr-simple (configure.ac): ... to here.
12891         * modules/strstr (configure.ac): ... and here.
12892
12893 2011-05-22  Bruno Haible  <bruno@clisp.org>
12894
12895         strsignal: Move AC_LIBOBJ invocations to module description.
12896         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12897         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12898         * modules/strsignal (configure.ac): ... to here.
12899         (Depends-on): Update conditions.
12900
12901 2011-05-22  Bruno Haible  <bruno@clisp.org>
12902
12903         strsep: Move AC_LIBOBJ invocations to module description.
12904         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12905         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12906         here...
12907         * modules/strsep (configure.ac): ... to here.
12908
12909 2011-05-22  Bruno Haible  <bruno@clisp.org>
12910
12911         strptime: Move AC_LIBOBJ invocations to module description.
12912         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12913         gl_PREREQ_STRPTIME invocations from here...
12914         * modules/strptime (configure.ac): ... to here.
12915
12916 2011-05-22  Bruno Haible  <bruno@clisp.org>
12917
12918         strpbrk: Move AC_LIBOBJ invocations to module description.
12919         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12920         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12921         here...
12922         * modules/strpbrk (configure.ac): ... to here.
12923
12924 2011-05-22  Bruno Haible  <bruno@clisp.org>
12925
12926         strnlen: Move AC_LIBOBJ invocations to module description.
12927         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12928         invocations from here...
12929         * modules/strnlen (configure.ac): ... to here.
12930
12931 2011-05-22  Bruno Haible  <bruno@clisp.org>
12932
12933         strndup: Move AC_LIBOBJ invocations to module description.
12934         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12935         invocations from here...
12936         * modules/strndup (configure.ac): ... to here.
12937         (Depends-on): Update conditions.
12938
12939 2011-05-22  Bruno Haible  <bruno@clisp.org>
12940
12941         strncat: Move AC_LIBOBJ invocations to module description.
12942         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12943         invocations from here...
12944         * modules/strncat (configure.ac): ... to here.
12945
12946 2011-05-22  Bruno Haible  <bruno@clisp.org>
12947
12948         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12949         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12950         invocations from here...
12951         * modules/strdup (configure.ac): ... to here.
12952         * modules/strdup-posix (configure.ac): ... and here.
12953
12954 2011-05-22  Bruno Haible  <bruno@clisp.org>
12955
12956         strcspn: Move AC_LIBOBJ invocations to module description.
12957         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12958         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12959         here...
12960         * modules/strcspn (configure.ac): ... to here.
12961
12962 2011-05-22  Bruno Haible  <bruno@clisp.org>
12963
12964         strchrnul: Move AC_LIBOBJ invocations to module description.
12965         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12966         gl_PREREQ_STRCHRNUL invocations from here...
12967         * modules/strchrnul (configure.ac): ... to here.
12968
12969 2011-05-22  Bruno Haible  <bruno@clisp.org>
12970
12971         strcasestr*: Move AC_LIBOBJ invocations to module description.
12972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12973         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12974         * modules/strcasestr-simple (configure.ac): ... to here.
12975         * modules/strcasestr (configure.ac): ... and here.
12976
12977 2011-05-22  Bruno Haible  <bruno@clisp.org>
12978
12979         strcase: Move AC_LIBOBJ invocations to module description.
12980         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12981         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12982         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12983         gl_PREREQ_STRNCASECMP invocations from here...
12984         * modules/strcase (configure.ac): ... to here.
12985
12986 2011-05-22  Bruno Haible  <bruno@clisp.org>
12987
12988         stpncpy: Move AC_LIBOBJ invocations to module description.
12989         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12990         here...
12991         * modules/stpncpy (configure.ac): ... to here.
12992
12993 2011-05-22  Bruno Haible  <bruno@clisp.org>
12994
12995         stpcpy: Move AC_LIBOBJ invocations to module description.
12996         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12997         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12998         here...
12999         * modules/stpcpy (configure.ac): ... to here.
13000
13001 2011-05-21  Bruno Haible  <bruno@clisp.org>
13002
13003         stat: Move AC_LIBOBJ invocations to module description.
13004         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13005         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13006         here...
13007         * modules/stat (configure.ac): ... to here.
13008
13009 2011-05-21  Bruno Haible  <bruno@clisp.org>
13010
13011         sleep: Move AC_LIBOBJ invocations to module description.
13012         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13013         * modules/sleep (configure.ac): ... to here.
13014
13015 2011-05-21  Bruno Haible  <bruno@clisp.org>
13016
13017         signbit: Move AC_LIBOBJ invocations to module description.
13018         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13019         * modules/signbit (configure.ac): ... to here.
13020
13021 2011-05-21  Bruno Haible  <bruno@clisp.org>
13022
13023         sigprocmask: Move AC_LIBOBJ invocations to module description.
13024         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13025         gl_PREREQ_SIGPROMASK invocations from here...
13026         * modules/sigprocmask (configure.ac): ... to here.
13027
13028 2011-05-21  Bruno Haible  <bruno@clisp.org>
13029
13030         sigaction: Move AC_LIBOBJ invocations to module description.
13031         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13032         gl_PREREQ_SIGACTION invocations from here...
13033         * modules/sigaction (configure.ac): ... to here.
13034
13035 2011-05-21  Bruno Haible  <bruno@clisp.org>
13036
13037         sig2str: Move AC_LIBOBJ invocations to module description.
13038         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13039         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13040         here...
13041         * modules/sig2str (configure.ac): ... to here.
13042
13043 2011-05-21  Bruno Haible  <bruno@clisp.org>
13044
13045         setlocale: Move AC_LIBOBJ invocations to module description.
13046         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13047         gl_PREREQ_SETLOCALE invocations from here...
13048         * modules/setlocale (configure.ac): ... to here.
13049
13050 2011-05-21  Bruno Haible  <bruno@clisp.org>
13051
13052         unsetenv: Move AC_LIBOBJ invocations to module description.
13053         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13054         and gl_PREREQ_UNSETENV invocations from here...
13055         * modules/unsetenv (configure.ac): ... to here.
13056         (Depends-on): Update.
13057
13058 2011-05-21  Bruno Haible  <bruno@clisp.org>
13059
13060         setenv: Move AC_LIBOBJ invocations to module description.
13061         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13062         here...
13063         * modules/setenv (configure.ac): ... to here.
13064
13065 2011-05-21  Bruno Haible  <bruno@clisp.org>
13066
13067         selinux-h: Move AC_LIBOBJ invocations to module description.
13068         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13069         AC_LIBOBJ invocation from here...
13070         * modules/selinux-h (configure.ac): ... to here.
13071
13072 2011-05-21  Bruno Haible  <bruno@clisp.org>
13073
13074         select: Respect rules for use of AC_LIBOBJ.
13075         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13076         here...
13077         * modules/select (configure.ac): ... to here.
13078
13079 2011-05-21  Bruno Haible  <bruno@clisp.org>
13080
13081         scandir: Move AC_LIBOBJ invocations to module description.
13082         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13083         invocations from here...
13084         * modules/scandir (configure.ac): ... to here.
13085
13086 2011-05-21  Bruno Haible  <bruno@clisp.org>
13087
13088         rpmatch: Move AC_LIBOBJ invocations to module description.
13089         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13090         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13091         here...
13092         * modules/rpmatch (configure.ac): ... to here.
13093
13094 2011-05-21  Bruno Haible  <bruno@clisp.org>
13095
13096         rmdir: Respect rules for use of AC_LIBOBJ.
13097         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13098         * modules/rmdir (configure.ac): ... to here.
13099
13100 2011-05-21  Bruno Haible  <bruno@clisp.org>
13101
13102         renameat: Move AC_LIBOBJ invocations to module description.
13103         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13104         here...
13105         * modules/renameat (configure.ac): ... to here.
13106
13107 2011-05-21  Bruno Haible  <bruno@clisp.org>
13108
13109         rename: Respect rules for use of AC_LIBOBJ.
13110         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13111         here...
13112         * modules/rename (configure.ac): ... to here.
13113
13114 2011-05-21  Bruno Haible  <bruno@clisp.org>
13115
13116         remove: Move AC_LIBOBJ invocations to module description.
13117         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13118         here...
13119         * modules/remove (configure.ac): ... to here.
13120
13121 2011-05-21  Bruno Haible  <bruno@clisp.org>
13122
13123         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13124         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13125         macro.
13126         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13127         * modules/relocatable-lib (configure.ac): ... to here.
13128         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13129         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13130
13131 2011-05-21  Bruno Haible  <bruno@clisp.org>
13132
13133         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13134         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13135         here...
13136         * modules/relocatable-prog (configure.ac): ... to here.
13137
13138 2011-05-21  Bruno Haible  <bruno@clisp.org>
13139
13140         regex: Move AC_LIBOBJ invocations to module description.
13141         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13142         invocations from here...
13143         * modules/regex (configure.ac): ... to here.
13144
13145 2011-05-21  Bruno Haible  <bruno@clisp.org>
13146
13147         realloc-*: Move AC_LIBOBJ invocations to module description.
13148         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13149         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13150         AC_LIBOBJ invocations from here...
13151         * modules/realloc-gnu (configure.ac): ... to here.
13152         * modules/realloc-posix (configure.ac): ... and here.
13153
13154 2011-05-21  Bruno Haible  <bruno@clisp.org>
13155
13156         readutmp: Move AC_LIBOBJ invocations to module description.
13157         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13158         * modules/readutmp (configure.ac): ... to here.
13159
13160 2011-05-21  Bruno Haible  <bruno@clisp.org>
13161
13162         readlinkat: Move AC_LIBOBJ invocations to module description.
13163         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13164         here...
13165         * modules/readlinkat (configure.ac): ... to here.
13166
13167 2011-05-21  Bruno Haible  <bruno@clisp.org>
13168
13169         readlink: Move AC_LIBOBJ invocations to module description.
13170         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13171         gl_PREREQ_READLINK invocations from here...
13172         * modules/readlink (configure.ac): ... to here.
13173
13174 2011-05-21  Bruno Haible  <bruno@clisp.org>
13175
13176         readline: Move AC_LIBOBJ invocations to module description.
13177         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13178         gl_PREREQ_READLINE invocations from here...
13179         * modules/readline (configure.ac): ... to here.
13180
13181 2011-05-21  Bruno Haible  <bruno@clisp.org>
13182
13183         read: Move AC_LIBOBJ invocations to module description.
13184         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13185         * modules/read (configure.ac): ... to here.
13186
13187 2011-05-21  Bruno Haible  <bruno@clisp.org>
13188
13189         rawmemchr: Move AC_LIBOBJ invocations to module description.
13190         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13191         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13192         from here...
13193         * modules/rawmemchr (configure.ac): ... to here.
13194
13195 2011-05-21  Bruno Haible  <bruno@clisp.org>
13196
13197         random_r: Move AC_LIBOBJ invocations to module description.
13198         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13199         gl_PREREQ_RANDOM_R invocations from here...
13200         * modules/random_r (configure.ac): ... to here.
13201
13202 2011-05-21  Bruno Haible  <bruno@clisp.org>
13203
13204         pwrite: Move AC_LIBOBJ invocations to module description.
13205         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13206         * modules/pwrite (configure.ac): ... to here.
13207
13208 2011-05-21  Bruno Haible  <bruno@clisp.org>
13209
13210         putenv: Move AC_LIBOBJ invocations to module description.
13211         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13212         * modules/putenv (configure.ac): ... to here.
13213
13214 2011-05-21  Bruno Haible  <bruno@clisp.org>
13215
13216         login_tty: Move AC_LIBOBJ invocations to module description.
13217         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13218         * modules/login_tty (configure.ac): ... to here.
13219
13220 2011-05-21  Bruno Haible  <bruno@clisp.org>
13221
13222         openpty: Move AC_LIBOBJ invocations to module description.
13223         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13224         * modules/openpty (configure.ac): ... to here.
13225
13226 2011-05-21  Bruno Haible  <bruno@clisp.org>
13227
13228         forkpty: Move AC_LIBOBJ invocations to module description.
13229         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13230         * modules/forkpty (configure.ac): ... to here.
13231
13232 2011-05-21  Bruno Haible  <bruno@clisp.org>
13233
13234         ptsname: Move AC_LIBOBJ invocations to module description.
13235         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13236         invocations from here...
13237         * modules/ptsname (configure.ac): ... to here.
13238
13239 2011-05-21  Bruno Haible  <bruno@clisp.org>
13240
13241         pread: Move AC_LIBOBJ invocations to module description.
13242         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13243         * modules/pread (configure.ac): ... to here.
13244
13245 2011-05-21  Bruno Haible  <bruno@clisp.org>
13246
13247         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13248         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13249         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13250         * modules/posix_spawn (configure.ac): ... to here.
13251         * modules/posix_spawnp (configure.ac): ... and here.
13252
13253 2011-05-21  Bruno Haible  <bruno@clisp.org>
13254
13255         popen: Move AC_LIBOBJ invocations to module description.
13256         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13257         invocations from here...
13258         * modules/popen (configure.ac): ... to here.
13259
13260 2011-05-21  Bruno Haible  <bruno@clisp.org>
13261
13262         poll: Move AC_LIBOBJ invocations to module description.
13263         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13264         invocations from here...
13265         * modules/poll (configure.ac): ... to here.
13266
13267 2011-05-21  Bruno Haible  <bruno@clisp.org>
13268
13269         pipe-posix: Move AC_LIBOBJ invocations to module description.
13270         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13271         * modules/pipe-posix (configure.ac): ... to here.
13272
13273 2011-05-21  Bruno Haible  <bruno@clisp.org>
13274
13275         openat: Respect rules for use of AC_LIBOBJ.
13276         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13277         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13278         * modules/openat (configure.ac): ... to here.
13279
13280 2011-05-21  Bruno Haible  <bruno@clisp.org>
13281
13282         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13283         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13284         invocation from here...
13285         * modules/obstack-printf (configure.ac): ... to here.
13286         * modules/obstack-printf-posix (configure.ac): ... and here.
13287
13288 2011-05-21  Bruno Haible  <bruno@clisp.org>
13289
13290         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13291         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13292         from here...
13293         * modules/nl_langinfo (configure.ac): ... to here.
13294
13295 2011-05-21  Bruno Haible  <bruno@clisp.org>
13296
13297         nanosleep: Move AC_LIBOBJ invocations to module description.
13298         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13299         gl_PREREQ_NANOSLEEP invocations from here...
13300         * modules/nanosleep (configure.ac): ... to here.
13301
13302 2011-05-21  Bruno Haible  <bruno@clisp.org>
13303
13304         mountlist: Move AC_LIBOBJ invocations to module description.
13305         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13306         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13307         * modules/mountlist (configure.ac): ... to here.
13308
13309 2011-05-21  Bruno Haible  <bruno@clisp.org>
13310
13311         mktime: Respect rules for use of AC_LIBOBJ.
13312         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13313         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13314         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13315         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13316         * modules/mktime (configure.ac): ... to here.
13317         * modules/mktime-internal (configure.ac): ... and here.
13318         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13319
13320 2011-05-21  Bruno Haible  <bruno@clisp.org>
13321
13322         mkstemps: Move AC_LIBOBJ invocations to module description.
13323         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13324         here...
13325         * modules/mkstemps (configure.ac): ... to here.
13326
13327 2011-05-21  Bruno Haible  <bruno@clisp.org>
13328
13329         mkstemp: Move AC_LIBOBJ invocations to module description.
13330         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13331         gl_PREREQ_MKSTEMP invocations from here...
13332         * modules/mkstemp (configure.ac): ... to here.
13333
13334 2011-05-21  Bruno Haible  <bruno@clisp.org>
13335
13336         mkostemps: Move AC_LIBOBJ invocations to module description.
13337         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13338         here...
13339         * modules/mkostemps (configure.ac): ... to here.
13340
13341 2011-05-21  Bruno Haible  <bruno@clisp.org>
13342
13343         mkostemp: Move AC_LIBOBJ invocations to module description.
13344         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13345         gl_PREREQ_MKOSTEMP invocations from here...
13346         * modules/mkostemp (configure.ac): ... to here.
13347
13348 2011-05-21  Bruno Haible  <bruno@clisp.org>
13349
13350         mknod: Move AC_LIBOBJ invocations to module description.
13351         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13352         * modules/mknod (configure.ac): ... to here.
13353
13354 2011-05-21  Bruno Haible  <bruno@clisp.org>
13355
13356         mkfifoat: Move AC_LIBOBJ invocations to module description.
13357         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13358         here...
13359         * modules/mkfifoat (configure.ac): ... to here.
13360
13361 2011-05-21  Bruno Haible  <bruno@clisp.org>
13362
13363         mkfifo: Respect rules for use of AC_LIBOBJ.
13364         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13365         here...
13366         * modules/mkfifo (configure.ac): ... to here.
13367
13368 2011-05-21  Bruno Haible  <bruno@clisp.org>
13369
13370         mkdtemp: Move AC_LIBOBJ invocations to module description.
13371         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13372         invocations from here...
13373         * modules/mkdtemp (configure.ac): ... to here.
13374
13375 2011-05-21  Bruno Haible  <bruno@clisp.org>
13376
13377         mkdir: Move AC_LIBOBJ invocations to module description.
13378         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13379         * modules/mkdir (configure.ac): ... to here.
13380
13381 2011-05-21  Bruno Haible  <bruno@clisp.org>
13382
13383         memset: Move AC_LIBOBJ invocations to module description.
13384         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13386         here...
13387         * modules/memset (configure.ac): ... to here.
13388
13389 2011-05-21  Bruno Haible  <bruno@clisp.org>
13390
13391         memrchr: Move AC_LIBOBJ invocations to module description.
13392         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13394         here...
13395         * modules/memrchr (configure.ac): ... to here.
13396
13397 2011-05-21  Bruno Haible  <bruno@clisp.org>
13398
13399         mempcpy: Move AC_LIBOBJ invocations to module description.
13400         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13401         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13402         here...
13403         * modules/mempcpy (configure.ac): ... to here.
13404
13405 2011-05-21  Bruno Haible  <bruno@clisp.org>
13406
13407         memmove: Move AC_LIBOBJ invocations to module description.
13408         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13409         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13410         here...
13411         * modules/memmove (configure.ac): ... to here.
13412
13413 2011-05-21  Bruno Haible  <bruno@clisp.org>
13414
13415         memmem*: Move AC_LIBOBJ invocations to module description.
13416         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13417         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13418         here...
13419         (gl_FUNC_MEMMEM): ... and here...
13420         * modules/memmem-simple (configure.ac): ... to here.
13421         * modules/memmem (configure.ac): ... and here.
13422
13423 2011-05-21  Bruno Haible  <bruno@clisp.org>
13424
13425         memcpy: Move AC_LIBOBJ invocations to module description.
13426         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13427         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13428         here...
13429         * modules/memcpy (configure.ac): ... to here.
13430
13431 2011-05-21  Bruno Haible  <bruno@clisp.org>
13432
13433         memcmp: Simplify autoconf macro.
13434         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13435         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13436         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13437
13438 2011-05-21  Bruno Haible  <bruno@clisp.org>
13439
13440         memcmp: Move AC_LIBOBJ invocations to module description.
13441         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13442         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13443         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13444         * modules/memcmp (configure.ac): ... to here.
13445         (Depends-on): Update conditions.
13446
13447 2011-05-21  Bruno Haible  <bruno@clisp.org>
13448
13449         memchr: Respect rules for use of AC_LIBOBJ.
13450         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13451         invocations from here...
13452         * modules/memchr (configure.ac): ... to here.
13453
13454 2011-05-21  Bruno Haible  <bruno@clisp.org>
13455
13456         mbtowc: Move AC_LIBOBJ invocations to module description.
13457         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13458         invocations from here...
13459         * modules/mbtowc (configure.ac): ... to here.
13460
13461 2011-05-21  Bruno Haible  <bruno@clisp.org>
13462
13463         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13464         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13465         gl_PREREQ_MBSRTOWCS invocations from here...
13466         * modules/mbsrtowcs (configure.ac): ... to here.
13467
13468 2011-05-21  Bruno Haible  <bruno@clisp.org>
13469
13470         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13471         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13472         gl_PREREQ_MBSNRTOWCS invocations from here...
13473         * modules/mbsnrtowcs (configure.ac): ... to here.
13474
13475 2011-05-21  Bruno Haible  <bruno@clisp.org>
13476
13477         mbsinit: Move AC_LIBOBJ invocations to module description.
13478         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13479         invocations from here...
13480         * modules/mbsinit (configure.ac): ... to here.
13481
13482 2011-05-21  Bruno Haible  <bruno@clisp.org>
13483
13484         mbrlen: Move AC_LIBOBJ invocations to module description.
13485         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13486         invocations from here...
13487         * modules/mbrlen (configure.ac): ... to here.
13488
13489 2011-05-21  Bruno Haible  <bruno@clisp.org>
13490
13491         mbrtowc: Respect rules for use of AC_LIBOBJ.
13492         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13493         invocations from here...
13494         * modules/mbrtowc (configure.ac): ... to here.
13495
13496 2011-05-21  Bruno Haible  <bruno@clisp.org>
13497
13498         malloc-*: Move AC_LIBOBJ invocations to module description.
13499         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13500         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13501         AC_LIBOBJ invocations from here...
13502         * modules/malloc-gnu (configure.ac): ... to here.
13503         * modules/malloc-posix (configure.ac): ... and here.
13504
13505 2011-05-21  Bruno Haible  <bruno@clisp.org>
13506
13507         lstat, openat: Respect rules for use of AC_LIBOBJ.
13508         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13509         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13510         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13511         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13512         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13513         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13514         here.
13515         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13516
13517 2011-05-21  Bruno Haible  <bruno@clisp.org>
13518
13519         lseek: Move AC_LIBOBJ invocations to module description.
13520         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13521         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13522         * modules/lseek (configure.ac): ... to here.
13523
13524 2011-05-21  Bruno Haible  <bruno@clisp.org>
13525
13526         linkat: Move AC_LIBOBJ invocations to module description.
13527         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13528         here...
13529         * modules/linkat (configure.ac): ... to here.
13530
13531 2011-05-21  Bruno Haible  <bruno@clisp.org>
13532
13533         link: Respect rules for use of AC_LIBOBJ.
13534         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13535         * modules/link (configure.ac): ... to here.
13536
13537 2011-05-21  Bruno Haible  <bruno@clisp.org>
13538
13539         lchown: Move AC_LIBOBJ invocations to module description.
13540         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13541         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13542         * modules/lchown (configure.ac): ... to here.
13543
13544 2011-05-21  Bruno Haible  <bruno@clisp.org>
13545
13546         iswctype: Move AC_LIBOBJ invocations to module description.
13547         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13548         here...
13549         * modules/iswctype (configure.ac): ... to here.
13550
13551 2011-05-21  Bruno Haible  <bruno@clisp.org>
13552
13553         iswblank: Move AC_LIBOBJ invocations to module description.
13554         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13555         here...
13556         * modules/iswblank (configure.ac): ... to here.
13557
13558 2011-05-21  Bruno Haible  <bruno@clisp.org>
13559
13560         atanl: Move AC_LIBOBJ invocations to module description.
13561         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13562         * modules/atanl (configure.ac): ... to here.
13563
13564 2011-05-21  Bruno Haible  <bruno@clisp.org>
13565
13566         acosl: Move AC_LIBOBJ invocations to module description.
13567         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13568         * modules/acosl (configure.ac): ... to here.
13569
13570 2011-05-21  Bruno Haible  <bruno@clisp.org>
13571
13572         asinl: Respect rules for use of AC_LIBOBJ.
13573         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13574         * modules/asinl (configure.ac): ... to here.
13575
13576 2011-05-21  Bruno Haible  <bruno@clisp.org>
13577
13578         tanl: Move AC_LIBOBJ invocations to module description.
13579         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13580         * modules/tanl (configure.ac): ... to here.
13581
13582 2011-05-21  Bruno Haible  <bruno@clisp.org>
13583
13584         cosl: Move AC_LIBOBJ invocations to module description.
13585         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13586         * modules/cosl (configure.ac): ... to here.
13587
13588 2011-05-21  Bruno Haible  <bruno@clisp.org>
13589
13590         sinl: Move AC_LIBOBJ invocations to module description.
13591         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13592         * modules/sinl (configure.ac): ... to here.
13593
13594 2011-05-21  Bruno Haible  <bruno@clisp.org>
13595
13596         logl: Move AC_LIBOBJ invocations to module description.
13597         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13598         * modules/logl (configure.ac): ... to here.
13599
13600 2011-05-21  Bruno Haible  <bruno@clisp.org>
13601
13602         expl: Move AC_LIBOBJ invocations to module description.
13603         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13604         * modules/expl (configure.ac): ... to here.
13605
13606 2011-05-21  Bruno Haible  <bruno@clisp.org>
13607
13608         roundl: Move AC_LIBOBJ invocations to module description.
13609         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13610         * modules/roundl (configure.ac): ... to here.
13611
13612 2011-05-21  Bruno Haible  <bruno@clisp.org>
13613
13614         round: Move AC_LIBOBJ invocations to module description.
13615         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13616         * modules/round (configure.ac): ... to here.
13617
13618 2011-05-21  Bruno Haible  <bruno@clisp.org>
13619
13620         roundf: Move AC_LIBOBJ invocations to module description.
13621         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13622         * modules/roundf (configure.ac): ... to here.
13623
13624 2011-05-21  Bruno Haible  <bruno@clisp.org>
13625
13626         truncl: Move AC_LIBOBJ invocations to module description.
13627         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13628         * modules/truncl (configure.ac): ... to here.
13629
13630 2011-05-21  Bruno Haible  <bruno@clisp.org>
13631
13632         trunc: Move AC_LIBOBJ invocations to module description.
13633         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13634         * modules/trunc (configure.ac): ... to here.
13635
13636 2011-05-21  Bruno Haible  <bruno@clisp.org>
13637
13638         truncf: Move AC_LIBOBJ invocations to module description.
13639         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13640         * modules/truncf (configure.ac): ... to here.
13641
13642 2011-05-21  Bruno Haible  <bruno@clisp.org>
13643
13644         ceill: Move AC_LIBOBJ invocations to module description.
13645         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13646         * modules/ceill (configure.ac): ... to here.
13647
13648 2011-05-21  Bruno Haible  <bruno@clisp.org>
13649
13650         ceil: Move AC_LIBOBJ invocations to module description.
13651         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13652         * modules/ceil (configure.ac): ... to here.
13653
13654 2011-05-21  Bruno Haible  <bruno@clisp.org>
13655
13656         ceilf: Move AC_LIBOBJ invocations to module description.
13657         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13658         * modules/ceilf (configure.ac): ... to here.
13659
13660 2011-05-21  Bruno Haible  <bruno@clisp.org>
13661
13662         floorl: Respect rules for use of AC_LIBOBJ.
13663         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13664         * modules/floorl (configure.ac): ... to here.
13665
13666 2011-05-21  Bruno Haible  <bruno@clisp.org>
13667
13668         floor: Respect rules for use of AC_LIBOBJ.
13669         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13670         * modules/floor (configure.ac): ... to here.
13671
13672 2011-05-21  Bruno Haible  <bruno@clisp.org>
13673
13674         floorf: Move AC_LIBOBJ invocations to module description.
13675         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13676         * modules/floorf (configure.ac): ... to here.
13677
13678 2011-05-20  Bruno Haible  <bruno@clisp.org>
13679
13680         sqrtl: Respect rules for use of AC_LIBOBJ.
13681         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13682         * modules/sqrtl (configure.ac): ... to here.
13683
13684 2011-05-20  Bruno Haible  <bruno@clisp.org>
13685
13686         ldexpl: Respect rules for use of AC_LIBOBJ.
13687         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13688         * modules/ldexpl (configure.ac): ... to here.
13689
13690 2011-05-20  Bruno Haible  <bruno@clisp.org>
13691
13692         frexpl*: Respect rules for use of AC_LIBOBJ.
13693         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13694         invocation from here...
13695         * modules/frexpl (configure.ac): ... to here.
13696         * modules/frexpl-nolibm (configure.ac): ... and here.
13697
13698 2011-05-20  Bruno Haible  <bruno@clisp.org>
13699
13700         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13701         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13702         invocation from here...
13703         * modules/frexp (configure.ac): ... to here.
13704         * modules/frexp-nolibm (configure.ac): ... and here.
13705
13706 2011-05-20  Bruno Haible  <bruno@clisp.org>
13707
13708         isnan: Respect rules for use of AC_LIBOBJ.
13709         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13710         invocations here.
13711         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13712         REPLACE_ISNAN.
13713         * modules/isnand (configure.ac): Likewise.
13714         * modules/isnanl (configure.ac): Likewise.
13715
13716 2011-05-20  Bruno Haible  <bruno@clisp.org>
13717
13718         isnanl*: Respect rules for use of AC_LIBOBJ.
13719         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13720         invocation from here...
13721         * modules/isnanl (configure.ac): ... to here.
13722         * modules/isnanl-nolibm (configure.ac): ... and here.
13723
13724 2011-05-20  Bruno Haible  <bruno@clisp.org>
13725
13726         isnand*: Move AC_LIBOBJ invocations to module description.
13727         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13728         invocation from here...
13729         * modules/isnand (configure.ac): ... to here.
13730         * modules/isnand-nolibm (configure.ac): ... and here.
13731
13732 2011-05-20  Bruno Haible  <bruno@clisp.org>
13733
13734         isnanf*: Move AC_LIBOBJ invocations to module description.
13735         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13736         invocation from here...
13737         * modules/isnanf (configure.ac): ... to here.
13738         * modules/isnanf-nolibm (configure.ac): ... and here.
13739
13740 2011-05-20  Bruno Haible  <bruno@clisp.org>
13741
13742         isnan*: Separate the AC_LIBOBJ invocations.
13743         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13744         AC_LIBOBJ invocation.
13745         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13746         here.
13747         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13748         AC_LIBOBJ invocation.
13749         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13750         here.
13751         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13752         AC_LIBOBJ invocation.
13753         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13754         here.
13755         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13756
13757 2011-05-08  Bruno Haible  <bruno@clisp.org>
13758
13759         isinf: Move AC_LIBOBJ invocations to module description.
13760         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13761         * modules/isinf (configure.ac): ... to here.
13762
13763 2011-05-08  Bruno Haible  <bruno@clisp.org>
13764
13765         isfinite: Move AC_LIBOBJ invocations to module description.
13766         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13767         * modules/isfinite (configure.ac): ... to here.
13768
13769 2011-05-08  Bruno Haible  <bruno@clisp.org>
13770
13771         isblank: Move AC_LIBOBJ invocations to module description.
13772         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13773         here...
13774         * modules/isblank (configure.ac): ... to here.
13775
13776 2011-05-08  Bruno Haible  <bruno@clisp.org>
13777
13778         isapipe: Move AC_LIBOBJ invocations to module description.
13779         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13780         gl_PREREQ_ISAPIPE invocations from here...
13781         * modules/isapipe (configure.ac): ... to here.
13782         (Depends-on): Update condition.
13783
13784 2011-05-08  Bruno Haible  <bruno@clisp.org>
13785
13786         ioctl: Move AC_LIBOBJ invocations to module description.
13787         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13788         invocations from here...
13789         * modules/ioctl (configure.ac): ... to here.
13790         (Depends-on): Update condition.
13791
13792 2011-05-08  Bruno Haible  <bruno@clisp.org>
13793
13794         imaxdiv: Move AC_LIBOBJ invocations to module description.
13795         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13796         invocations from here...
13797         * modules/imaxdiv (configure.ac): ... to here.
13798
13799 2011-05-08  Bruno Haible  <bruno@clisp.org>
13800
13801         imaxabs: Move AC_LIBOBJ invocations to module description.
13802         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13803         invocations from here...
13804         * modules/imaxabs (configure.ac): ... to here.
13805
13806 2011-05-08  Bruno Haible  <bruno@clisp.org>
13807
13808         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13809         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13810         AC_LIBOBJ invocations from here...
13811         * modules/getaddrinfo (configure.ac): ... to here.
13812         (Depends-on): Add conditions.
13813
13814 2011-05-08  Bruno Haible  <bruno@clisp.org>
13815
13816         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13817         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13818         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13819         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13820         (gl_PREREQ_INET_PTON): ... from here.
13821         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13822         gl_PREREQ_INET_PTON here.
13823         (Depends-on): Update condition.
13824
13825 2011-05-08  Bruno Haible  <bruno@clisp.org>
13826
13827         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13828         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13829         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13830         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13831         (gl_PREREQ_INET_NTOP): ... from here.
13832         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13833         gl_PREREQ_INET_NTOP here.
13834         (Depends-on): Update condition.
13835
13836 2011-05-08  Bruno Haible  <bruno@clisp.org>
13837
13838         iconv_open: Move AC_LIBOBJ invocations to module description.
13839         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13840         AC_LIBOBJ invocations from here...
13841         * modules/iconv_open (configure.ac): ... to here.
13842
13843 2011-05-08  Bruno Haible  <bruno@clisp.org>
13844
13845         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13846         If module 'iconv_open' is among the main modules and module
13847         'iconv_open-utf' is among the tests dependencies, then
13848         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13849         return the special iconv_t values. Therefore iconv() and iconv_close()
13850         must support these special iconv_t values, already in lib, not only in
13851         tests.
13852         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13853         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13854         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13855         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13856         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13857         (Depends-on): Add the dependencies of iconv_open-utf.
13858         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13859         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13860         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13861
13862 2011-05-08  Bruno Haible  <bruno@clisp.org>
13863
13864         group-member: Move AC_LIBOBJ invocations to module description.
13865         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13866         gl_PREREQ_GROUP_MEMBER invocations from here...
13867         * modules/group-member (configure.ac): ... to here.
13868
13869 2011-05-08  Bruno Haible  <bruno@clisp.org>
13870
13871         grantpt: Move AC_LIBOBJ invocations to module description.
13872         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13873         invocations from here...
13874         * modules/grantpt (configure.ac): ... to here.
13875
13876 2011-05-08  Bruno Haible  <bruno@clisp.org>
13877
13878         glob: Move AC_LIBOBJ invocations to module description.
13879         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13880         from here...
13881         * modules/glob (configure.ac): ... to here.
13882
13883 2011-05-08  Bruno Haible  <bruno@clisp.org>
13884
13885         getusershell: Move AC_LIBOBJ invocations to module description.
13886         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13887         Move AC_LIBOBJ invocation from here...
13888         * modules/getusershell (configure.ac): ... to here.
13889         (Depends-on): Update condition.
13890
13891 2011-05-08  Bruno Haible  <bruno@clisp.org>
13892
13893         gettimeofday: Move AC_LIBOBJ invocations to module description.
13894         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13895         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13896         gl_PREREQ_GETTIMEOFDAY invocations from here...
13897         * modules/gettimeofday (configure.ac): ... to here.
13898
13899 2011-05-08  Bruno Haible  <bruno@clisp.org>
13900
13901         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13902         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13903         just gl_FUNC_TZSET.
13904         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13905         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13906         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13907         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13908
13909 2011-05-08  Bruno Haible  <bruno@clisp.org>
13910
13911         getsubopt: Move AC_LIBOBJ invocations to module description.
13912         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13913         gl_PREREQ_GETSUBOPT invocations from here...
13914         * modules/getsubopt (configure.ac): ... to here.
13915
13916 2011-05-08  Bruno Haible  <bruno@clisp.org>
13917
13918         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13919         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13920         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13921         * modules/getpass-gnu (configure.ac): ... to here.
13922
13923 2011-05-08  Bruno Haible  <bruno@clisp.org>
13924
13925         getpass: Move AC_LIBOBJ invocations to module description.
13926         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13927         gl_PREREQ_GETPASS invocations from here...
13928         * modules/getpass (configure.ac): ... to here.
13929
13930 2011-05-08  Bruno Haible  <bruno@clisp.org>
13931
13932         getpagesize: Move AC_LIBOBJ invocations to module description.
13933         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13934         from here...
13935         * modules/getpagesize (configure.ac): ... to here.
13936
13937 2011-05-08  Bruno Haible  <bruno@clisp.org>
13938
13939         getopt: Move AC_LIBOBJ invocations to module description.
13940         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13941         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13942         invocations from here...
13943         * modules/getopt-gnu (configure.ac): ... to here.
13944         * modules/getopt-posix (configure.ac): ... and here.
13945         (Depends-on): Update condition.
13946
13947 2011-05-08  Bruno Haible  <bruno@clisp.org>
13948
13949         getopt, argp: Respect rules for use of AC_LIBOBJ.
13950         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13951         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13952         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13953         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13954
13955 2011-05-08  Bruno Haible  <bruno@clisp.org>
13956
13957         getlogin_r: Move AC_LIBOBJ invocations to module description.
13958         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13959         gl_PREREQ_GETLOGIN_R invocations from here...
13960         * modules/getlogin_r (configure.ac): ... to here.
13961
13962 2011-05-08  Bruno Haible  <bruno@clisp.org>
13963
13964         getlogin: Move AC_LIBOBJ invocations to module description.
13965         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13966         here...
13967         * modules/getlogin (configure.ac): ... to here.
13968
13969 2011-05-08  Bruno Haible  <bruno@clisp.org>
13970
13971         getloadavg: Move AC_LIBOBJ invocations to module description.
13972         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13973         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13974         * modules/getloadavg (configure.ac): ... to here.
13975
13976 2011-05-08  Bruno Haible  <bruno@clisp.org>
13977
13978         gethrxtime: Move AC_LIBOBJ invocations to module description.
13979         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13980         LIB_GETHRXTIME from here...
13981         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13982         invocations from here...
13983         * modules/gethrxtime (configure.ac): ... to here.
13984
13985 2011-05-08  Bruno Haible  <bruno@clisp.org>
13986
13987         gethostname: Move AC_LIBOBJ invocations to module description.
13988         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13989         gl_PREREQ_GETHOSTNAME invocations from here...
13990         * modules/gethostname (configure.ac): ... to here.
13991
13992 2011-05-08  Bruno Haible  <bruno@clisp.org>
13993
13994         getgroups: Move AC_LIBOBJ invocations to module description.
13995         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13996         here...
13997         * modules/getgroups (configure.ac): ... to here.
13998
13999 2011-05-08  Bruno Haible  <bruno@clisp.org>
14000
14001         getdtablesize: Move AC_LIBOBJ invocations to module description.
14002         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14003         invocation from here...
14004         * modules/getdtablesize (configure.ac): ... to here.
14005
14006 2011-05-08  Bruno Haible  <bruno@clisp.org>
14007
14008         getdomainname: Move AC_LIBOBJ invocations to module description.
14009         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14010         gl_PREREQ_GETDOMAINNAME invocations from here...
14011         * modules/getdomainname (configure.ac): ... to here.
14012
14013 2011-05-08  Bruno Haible  <bruno@clisp.org>
14014
14015         getline: Move AC_LIBOBJ invocations to module description.
14016         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14017         invocations from here...
14018         * modules/getline (configure.ac): ... to here.
14019
14020 2011-05-08  Bruno Haible  <bruno@clisp.org>
14021
14022         getline: Simplify.
14023         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14024         It's already handled through the module dependency.
14025
14026 2011-05-08  Bruno Haible  <bruno@clisp.org>
14027
14028         getdelim: Move AC_LIBOBJ invocations to module description.
14029         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14030         and gl_PREREQ_GETDELIM invocations from here...
14031         * modules/getdelim (configure.ac): ... to here.
14032         (Depends-on): Fix condition.
14033
14034 2011-05-08  Bruno Haible  <bruno@clisp.org>
14035
14036         getcwd: Move AC_LIBOBJ invocations to module description.
14037         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14038         invocations from here...
14039         * modules/getcwd (configure.ac): ... to here.
14040
14041 2011-05-08  Bruno Haible  <bruno@clisp.org>
14042
14043         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14044         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14045         here...
14046         * modules/getcwd-lgpl (configure.ac): ... to here.
14047
14048 2011-05-07  Bruno Haible  <bruno@clisp.org>
14049
14050         crypto/gc: Move AC_LIBOBJ invocations to module description.
14051         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14052         * modules/crypto/gc (configure.ac): ... to here.
14053
14054 2011-05-07  Bruno Haible  <bruno@clisp.org>
14055
14056         fwriting: Move AC_LIBOBJ invocations to module description.
14057         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14058         here...
14059         * modules/fwriting (configure.ac): ... to here.
14060
14061 2011-05-07  Bruno Haible  <bruno@clisp.org>
14062
14063         fwritable: Move AC_LIBOBJ invocations to module description.
14064         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14065         here...
14066         * modules/fwritable (configure.ac): ... to here.
14067
14068 2011-05-07  Bruno Haible  <bruno@clisp.org>
14069
14070         futimens: Move AC_LIBOBJ invocations to module description.
14071         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14072         here...
14073         * modules/futimens (configure.ac): ... to here.
14074
14075 2011-05-07  Bruno Haible  <bruno@clisp.org>
14076
14077         ftruncate: Move AC_LIBOBJ invocations to module description.
14078         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14079         gl_PREREQ_FTRUNCATE invocations from here...
14080         * modules/ftruncate (configure.ac): ... to here.
14081
14082 2011-05-07  Bruno Haible  <bruno@clisp.org>
14083
14084         fsync: Move AC_LIBOBJ invocations to module description.
14085         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14086         invocations from here...
14087         * modules/fsync (configure.ac): ... to here.
14088
14089 2011-05-07  Bruno Haible  <bruno@clisp.org>
14090
14091         fsusage: Move AC_LIBOBJ invocations to module description.
14092         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14093         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14094         * modules/fsusage (configure.ac): ... to here.
14095
14096 2011-05-07  Bruno Haible  <bruno@clisp.org>
14097
14098         freopen: Move AC_LIBOBJ invocations to module description.
14099         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14100         invocations from here...
14101         * modules/freopen (configure.ac): ... to here.
14102
14103 2011-05-07  Bruno Haible  <bruno@clisp.org>
14104
14105         free: Move AC_LIBOBJ invocations to module description.
14106         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14107         invocations from here...
14108         * modules/free (configure.ac): ... to here.
14109
14110 2011-05-07  Bruno Haible  <bruno@clisp.org>
14111
14112         freadable: Move AC_LIBOBJ invocations to module description.
14113         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14114         here...
14115         * modules/freadable (configure.ac): ... to here.
14116
14117 2011-05-07  Bruno Haible  <bruno@clisp.org>
14118
14119         fpurge: Move AC_LIBOBJ invocations to module description.
14120         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14121         invocations from here...
14122         * modules/fpurge (configure.ac): ... to here.
14123
14124 2011-05-07  Bruno Haible  <bruno@clisp.org>
14125
14126         fpending: Move AC_LIBOBJ invocations to module description.
14127         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14128         gl_FUNC_FPENDING.
14129         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14130         invocations from here...
14131         * modules/fpending (configure.ac): ... to here.
14132
14133 2011-05-07  Bruno Haible  <bruno@clisp.org>
14134
14135         fopen: Move AC_LIBOBJ invocations to module description.
14136         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14137         invocations from here...
14138         * modules/fopen (configure.ac): ... to here.
14139
14140 2011-05-07  Bruno Haible  <bruno@clisp.org>
14141
14142         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14143         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14144         gl_FUNC_FNMATCH_POSIX.
14145         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14146         invocations from here...
14147         * modules/fnmatch (configure.ac): ... to here.
14148         * modules/fnmatch-gnu (configure.ac): ... and here.
14149
14150 2011-05-07  Bruno Haible  <bruno@clisp.org>
14151
14152         flock: Move AC_LIBOBJ invocations to module description.
14153         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14154         invocations from here...
14155         * modules/flock (configure.ac): ... to here.
14156
14157 2011-05-07  Bruno Haible  <bruno@clisp.org>
14158
14159         fileblocks: Move AC_LIBOBJ invocations to module description.
14160         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14161         gl_PREREQ_FILEBLOCKS invocations from here...
14162         * modules/fileblocks (configure.ac): ... to here.
14163
14164 2011-05-06  Bruno Haible  <bruno@clisp.org>
14165
14166         fflush: Move AC_LIBOBJ invocations to module description.
14167         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14168         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14169         invocations from here...
14170         * modules/fflush (configure.ac): ... to here.
14171
14172 2011-05-06  Bruno Haible  <bruno@clisp.org>
14173
14174         fdopendir: Move AC_LIBOBJ invocations to module description.
14175         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14176         here...
14177         * modules/fdopendir (configure.ac): ... to here.
14178         (Depends-on): Improve conditions.
14179
14180 2011-05-06  Bruno Haible  <bruno@clisp.org>
14181
14182         _Exit: Move AC_LIBOBJ invocations to module description.
14183         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14184         invocations from here...
14185         * modules/_Exit (configure.ac): ... to here.
14186
14187 2011-05-21  Bruno Haible  <bruno@clisp.org>
14188
14189         euidaccess: Respect rules for use of AC_LIBOBJ.
14190         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14191         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14192         from here...
14193         * modules/euidaccess (configure.ac): ... to here.
14194
14195 2011-05-06  Bruno Haible  <bruno@clisp.org>
14196
14197         error: Move AC_LIBOBJ invocations to module description.
14198         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14199         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14200         invocations from here...
14201         * modules/error (configure.ac): ... to here.
14202
14203 2011-05-06  Bruno Haible  <bruno@clisp.org>
14204
14205         duplocale: Move AC_LIBOBJ invocations to module description.
14206         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14207         gl_PREREQ_DUPLOCALE invocations from here...
14208         * modules/duplocale (configure.ac): ... to here.
14209
14210 2011-05-05  Bruno Haible  <bruno@clisp.org>
14211
14212         dirfd: Move AC_LIBOBJ invocations to module description.
14213         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14214         gl_FUNC_DIRFD.
14215         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14216         here...
14217         * modules/dirfd (configure.ac): ... to here.
14218         (Depends-on): Fix condition.
14219
14220 2011-05-05  Bruno Haible  <bruno@clisp.org>
14221
14222         chown: Respect rules for use of AC_LIBOBJ.
14223         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14224         * modules/chown (configure.ac): ... to here.
14225
14226 2011-05-05  Bruno Haible  <bruno@clisp.org>
14227
14228         chdir-long: Move AC_LIBOBJ invocations to module description.
14229         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14230         gl_PREREQ_CHDIR_LONG invocations from here...
14231         * modules/chdir-long (configure.ac): ... to here.
14232
14233 2011-05-05  Bruno Haible  <bruno@clisp.org>
14234
14235         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14236         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14237         from here...
14238         * modules/canonicalize-lgpl (configure.ac): ... to here.
14239
14240 2011-05-05  Bruno Haible  <bruno@clisp.org>
14241
14242         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14243         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14244         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14245         REPLACE_CALLOC.
14246         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14247         * modules/calloc-gnu (configure.ac): Likewise.
14248
14249 2011-05-05  Bruno Haible  <bruno@clisp.org>
14250
14251         btowc: Move AC_LIBOBJ invocations to module description.
14252         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14253         invocations from here...
14254         * modules/btowc (configure.ac): ... to here.
14255
14256 2011-05-21  Bruno Haible  <bruno@clisp.org>
14257
14258         atexit: Move AC_LIBOBJ invocations to module description.
14259         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14260         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14261         here...
14262         * modules/atexit (configure.ac): ... to here.
14263
14264 2011-05-05  Bruno Haible  <bruno@clisp.org>
14265
14266         atoll: Move AC_LIBOBJ invocations to module description.
14267         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14268         invocations from here...
14269         * modules/atoll (configure.ac): ... to here.
14270
14271 2011-05-05  Bruno Haible  <bruno@clisp.org>
14272
14273         argz: Move AC_LIBOBJ invocations to module description.
14274         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14275         * modules/argz (configure.ac): ... to here.
14276
14277 2011-05-05  Bruno Haible  <bruno@clisp.org>
14278
14279         alphasort: Move AC_LIBOBJ invocations to module description.
14280         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14281         gl_PREREQ_ALPHASORT invocations from here...
14282         * modules/alphasort (configure.ac): ... to here.
14283
14284 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14285
14286         verify: new macro verify_expr; verify_true deprecated
14287         * NEWS: Mention this.
14288         * doc/verify.texi (Compile-time Assertions): Document this.
14289         * lib/verify.h (verify_true): Deprecate.
14290         (verify_expr): New macro.
14291         * tests/test-verify.c (function): Test verify_expr.
14292
14293 2011-06-14  Jim Meyering  <meyering@redhat.com>
14294
14295         init.sh: give more portable redirection-related advice in a comment
14296         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14297         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14298         for lots of discussion.  Stefano Lattarini suggested the solution
14299         of putting "9>&2" after the command.  Reported by Bruno Haible.
14300
14301 2011-06-13  Bruno Haible  <bruno@clisp.org>
14302
14303         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14304         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14305         'none'.
14306
14307 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14308
14309         ftoastr: use strtof only if HAVE_STRTOF
14310         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14312         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14313         * modules/ftoastr (configure.ac): Check for strtof.
14314
14315 2011-06-13  Bruno Haible  <bruno@clisp.org>
14316
14317         gnulib-tool: Addendum to 2011-06-08 commit.
14318         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14319         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14320
14321 2011-06-13  Bruno Haible  <bruno@clisp.org>
14322
14323         fseeko: Provide a non-inline replacement of fseek().
14324         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14325         * modules/fseeko (Depends-on): Add fseek.
14326         * modules/fseek (License): Change to LGPLv2+.
14327
14328 2011-06-13  Bruno Haible  <bruno@clisp.org>
14329
14330         ftello: Provide a non-inline replacement of ftell().
14331         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14332         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14333         not have ftello() (such as on mingw).
14334         * modules/ftello (Depends-on): Add ftell.
14335         * modules/ftell (License): Change to LGPLv2+.
14336
14337 2011-05-07  Bruno Haible  <bruno@clisp.org>
14338
14339         ftell: Move AC_LIBOBJ invocations to module description.
14340         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14341         * modules/ftell (configure.ac): ... to here.
14342
14343 2011-05-07  Bruno Haible  <bruno@clisp.org>
14344
14345         ftello: Respect rules for use of AC_LIBOBJ.
14346         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14347         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14348         here...
14349         * modules/ftello (configure.ac): ... to here.
14350
14351 2011-05-07  Bruno Haible  <bruno@clisp.org>
14352
14353         fseeko: Simplify.
14354         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14355         (gl_FUNC_FSEEKO): Inline it here.
14356
14357 2011-05-07  Bruno Haible  <bruno@clisp.org>
14358
14359         fseek: Move AC_LIBOBJ invocations to module description.
14360         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14361         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14362         * modules/fseek (configure.ac): ... to here.
14363
14364 2011-05-07  Bruno Haible  <bruno@clisp.org>
14365
14366         fseek: Respect rules for use of AC_LIBOBJ.
14367         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14368         here...
14369         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14370
14371 2011-05-07  Bruno Haible  <bruno@clisp.org>
14372
14373         fseeko: Respect rules for use of AC_LIBOBJ.
14374         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14375         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14376         here...
14377         * modules/fseeko (configure.ac): ... to here.
14378
14379 2011-06-13  Bruno Haible  <bruno@clisp.org>
14380
14381         gnulib-tool: Allow comments in the 'Depends-on' section.
14382         * doc/gnulib.texi (Module description): Mention comment syntax in the
14383         Depends-on section.
14384         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14385
14386 2011-06-13  Bruno Haible  <bruno@clisp.org>
14387
14388         file-set.h: guard __attibute__ use, now that it's not always defined
14389         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14390         versions that support it.  This fixes a coreutils build failure with
14391         the vendor cc on HP-UX 11.31.
14392
14393 2011-06-12  Bruno Haible  <bruno@clisp.org>
14394
14395         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14396         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14397         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14398         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14399         (acl, aclsort): New declarations.
14400         (aclv_nontrivial): New declaration.
14401         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14402         (file_has_acl): Read also the second kind of HP-UX ACLs.
14403         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14404         kind of HP-UX ACLs if the first kind fails.
14405         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14406         second kind of HP-UX ACLs.
14407         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14408         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14409         agree.
14410         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14411         hpuxjfs.
14412         Handle hpuxjfs.
14413         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14414         hpuxjfs.
14415         Handle hpuxjfs.
14416         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14417         (func_test_same_acls): Use both lsacl and getacl.
14418         Handle hpuxjfs.
14419         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14420         (func_test_same_acls): Use both lsacl and getacl.
14421         Handle hpuxjfs.
14422
14423 2011-06-12  Bruno Haible  <bruno@clisp.org>
14424
14425         acl: Complete the 2010-08-10 fix.
14426         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14427         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14428         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14429         explicitly.
14430         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14431         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14432
14433 2011-06-12  Bruno Haible  <bruno@clisp.org>
14434
14435         spawn-pipe tests: Comments.
14436         * tests/test-spawn-pipe-child.c (main): Update comment.
14437         Reported by James Youngman <jay@gnu.org>.
14438
14439 2011-06-11  James Youngman  <jay@gnu.org>
14440
14441         New module 'stat-size'.
14442         * modules/stat-size: New module.  Provides macros for accessing
14443         file size information in instances of struct stat.  Depends on the
14444         fileblocks module because it calls st_blocks.
14445         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14446         * doc/gnulib.texi: Include stat-size.texi.
14447         * doc/stat-size.texi: Documentation for this module.
14448         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14449         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14450         AC_STRUCT_ST_BLOCKS.
14451
14452 2011-06-09  Bruno Haible  <bruno@clisp.org>
14453
14454         thread: Support pthreads-win32.
14455         * lib/glthread/thread.h (gl_thread_self): Define differently on
14456         pthreads-win32.
14457         (gl_null_thread): New declaration.
14458         (gl_thread_self_pointer): New macro.
14459         * lib/glthread/thread.c (gl_null_thread): New constant.
14460         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14461         gl_thread_self.
14462         * tests/test-tls.c: Likewise.
14463         Suggested by Paul Eggert. Reported by Eric Blake.
14464
14465 2011-06-09  Bruno Haible  <bruno@clisp.org>
14466
14467         thread: Fix confusion between NULL and 0.
14468         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14469         Reported by Paul Eggert.
14470
14471 2011-06-09  Bruno Haible  <bruno@clisp.org>
14472
14473         spawn-pipe tests: Avoid test failure on HP-UX 11.
14474         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14475         is closed.
14476
14477 2011-06-09  Bruno Haible  <bruno@clisp.org>
14478
14479         acl tests: Fix compilation error on HP-UX 11.
14480         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14481
14482 2011-06-09  Bruno Haible  <bruno@clisp.org>
14483
14484         rmdir: Avoid test failure on HP-UX 10.20.
14485         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14486         EEXIST.
14487
14488 2011-06-08  Eric Blake  <eblake@redhat.com>
14489
14490         perror: fix test on mingw
14491         * modules/perror-tests (Depends-on): Add dup2.
14492
14493         strerror_r-posix: fix on MacOS
14494         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14495         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14496         logic bug.
14497         * lib/strerror_r.c (strerror_r): Fix the bug.
14498         * lib/strerror.c (strerror): Likewise.
14499         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14500         problem.
14501         * doc/posix-functions/strerror.texi (strerror): Likewise.
14502         * doc/posix-functions/perror.texi (perror): Likewise.
14503         * tests/test-strerror.c (main): Enhance test.
14504         * tests/test-strerror_r.c (main): Likewise.
14505
14506 2011-06-08  Bruno Haible  <bruno@clisp.org>
14507
14508         gnulib-tool: Better isolation between different gnulib-tool invocations.
14509         * gnulib-tool: New option --witness-c-macro.
14510         (witness_c_macro): New variable.
14511         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14512         AM_CPPFLAGS define it as a C macro.
14513         (func_emit_tests_Makefile_am): Likewise.
14514         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14515         read it from there.
14516         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14517         m4_define, not AC_DEFUN.
14518         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14519         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14520         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14521         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14522         s|...|...|, to substitute the values of the GNULIB_* module indicator
14523         variables.
14524         * modules/dirent (Makefile.am): Likewise.
14525         * modules/fcntl-h (Makefile.am): Likewise.
14526         * modules/iconv-h (Makefile.am): Likewise.
14527         * modules/langinfo (Makefile.am): Likewise.
14528         * modules/locale (Makefile.am): Likewise.
14529         * modules/math (Makefile.am): Likewise.
14530         * modules/netdb (Makefile.am): Likewise.
14531         * modules/poll-h (Makefile.am): Likewise.
14532         * modules/pty (Makefile.am): Likewise.
14533         * modules/search (Makefile.am): Likewise.
14534         * modules/signal (Makefile.am): Likewise.
14535         * modules/spawn (Makefile.am): Likewise.
14536         * modules/stdio (Makefile.am): Likewise.
14537         * modules/stdlib (Makefile.am): Likewise.
14538         * modules/string (Makefile.am): Likewise.
14539         * modules/sys_ioctl (Makefile.am): Likewise.
14540         * modules/sys_select (Makefile.am): Likewise.
14541         * modules/sys_socket (Makefile.am): Likewise.
14542         * modules/sys_stat (Makefile.am): Likewise.
14543         * modules/sys_times (Makefile.am): Likewise.
14544         * modules/sys_utsname (Makefile.am): Likewise.
14545         * modules/sys_wait (Makefile.am): Likewise.
14546         * modules/termios (Makefile.am): Likewise.
14547         * modules/time (Makefile.am): Likewise.
14548         * modules/unistd (Makefile.am): Likewise.
14549         * modules/wchar (Makefile.am): Likewise.
14550
14551 2011-06-08  Eric Blake  <eblake@redhat.com>
14552
14553         strerror: simplify replacement
14554         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14555         * modules/strerror (configure.ac): No prereqs needed here...
14556         * modules/strerror-override (configure.ac): ...but this needs it.
14557         (Files): Add file for needed prereq macro.
14558
14559 2011-06-08  Bruno Haible  <bruno@clisp.org>
14560
14561         strerror_r-posix: Tweaks.
14562         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14563         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14564         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14565         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14566         (gl_FUNC_STRERROR_R): ... to here.
14567         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14568
14569 2011-06-07  Eric Blake  <eblake@redhat.com>
14570
14571         perror: document fixed bugs
14572         * doc/posix-functions/perror.texi (perror): Document recent
14573         patches.
14574
14575 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14576
14577         stat-time: get_stat_birthtime failure is better-defined
14578         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14579         return a timestamp whose tv_sec and tv_nsec values are both -1.
14580         Previously, the spec said only that the tv_nsec value was negative.
14581         This upward-compatible change simplifies GNU tar a bit.
14582
14583 2011-06-07  Eric Blake  <eblake@redhat.com>
14584
14585         strerror_r-posix: work around cygwin 1.7.9
14586         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14587         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14588         bug without replacing strerror_r.
14589         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14590         strerror_r is buggy, but without requiring strerror_r compilation.
14591         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14592
14593         test-perror: relax test to ignore cygwin bug
14594         * tests/test-perror2.c (main): Relax test on requiring detection
14595         of stream errors, and use unbuffered stream.
14596         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14597         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14598         * doc/posix-functions/fputc.texi (fputc): Likewise.
14599         * doc/posix-functions/fputs.texi (fputs): Likewise.
14600         * doc/posix-functions/fputws.texi (fputws): Likewise.
14601         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14602         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14603         * doc/posix-functions/getopt.texi (getopt): Likewise.
14604         * doc/posix-functions/perror.texi (perror): Likewise.
14605         * doc/posix-functions/printf.texi (printf): Likewise.
14606         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14607         * doc/posix-functions/psignal.texi (psignal): Likewise.
14608         * doc/posix-functions/putc.texi (putc): Likewise.
14609         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14610         Likewise.
14611         * doc/posix-functions/putchar.texi (putchar): Likewise.
14612         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14613         Likewise.
14614         * doc/posix-functions/puts.texi (puts): Likewise.
14615         * doc/posix-functions/putwc.texi (putwc): Likewise.
14616         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14617         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14618         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14619         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14620         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14621         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14622         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14623         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14624
14625 2011-05-22  Bruno Haible  <bruno@clisp.org>
14626
14627         strerror: Move AC_LIBOBJ invocations to module description.
14628         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14629         gl_PREREQ_STRERROR invocations from here...
14630         * modules/strerror (configure.ac): ... to here.
14631
14632 2011-05-21  Bruno Haible  <bruno@clisp.org>
14633
14634         perror: Use common idiom.
14635         * modules/perror (configure.ac): Reorder statements.
14636
14637 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14638
14639         tests: fix usage message in 'mktempd_'
14640         * tests/init.sh (mktempd_): In the usage message, use literal
14641         'mktempd_', not '$ME' (which is even undefined), as the name of
14642         the subroutine.
14643
14644 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14645
14646         tests init: new function 'fatal_', for hard errors
14647         Before this patch, the only way offered by tests/init.sh to
14648         properly signal a hard error was the `framework_failure_'
14649         function.  But the error message issued by that function,
14650         as its name would suggest, refers to a set-up failure in the
14651         testsuite, while hard errors can obviously also be due to
14652         other reasons.  The best way to fix this inconsistency is to
14653         introduce a new function with a more general error message.
14654         * tests/init.sh (fatal_): New function.
14655
14656 2011-06-06  Eric Blake  <eblake@redhat.com>
14657
14658         canonicalize-lgpl: use common idiom
14659         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14660         over newer POSIX -Rf.
14661         Reported by Bruno Haible.
14662
14663         canonicalize-lgpl: work around AIX realpath bug
14664         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14665         * doc/posix-functions/realpath.texi (realpath): Document it.
14666         Reported by Bruno Haible.
14667
14668         strerror: work around FreeBSD bug
14669         * lib/strerror.c (strerror): Special case 0.
14670         Reported by Bruno Haible.
14671
14672         strerror-override: avoid bloating errno module
14673         * modules/errno (Files, configure.ac): Move replacement strings...
14674         * modules/strerror-override: ...to new module.
14675         * modules/strerror (Depends-on): Add strerror-override.
14676         * modules/strerror_r-posix (Depends-on): Likewise.
14677         * MODULES.html.sh: Document new module.
14678         Reported by Bruno Haible.
14679
14680 2011-06-06  Bruno Haible  <bruno@clisp.org>
14681
14682         spawn-pipe tests: Rename program.
14683         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14684         * tests/test-spawn-pipe-child.c: Update comment.
14685         * tests/test-spawn-pipe.sh: Update.
14686         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14687
14688         spawn-pipe tests: Link the child program only against libc.
14689         * tests/test-spawn-pipe-child.c: New file, extracted from
14690         tests/test-spawn-pipe.c.
14691         (main): Expect only one argument.
14692         (is_open): New function, copied from tests/test-pipe.c.
14693         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14694         (child_main): Remove function.
14695         (test_pipe): Pass only one argument to the child program.
14696         (main): Remove child process code. Expect the child program's name as
14697         first argument.
14698         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14699         argument.
14700         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14701         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14702         test-spawn-pipe-child against no libraries.
14703
14704 2011-06-06  Bruno Haible  <bruno@clisp.org>
14705
14706         careadlinkat: Avoid mismatch between ssize_t and int.
14707         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14708         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14709
14710 2011-06-06  Jim Meyering  <meyering@redhat.com>
14711
14712         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14713         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14714         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14715
14716 2011-06-05  Bruno Haible  <bruno@clisp.org>
14717
14718         ansi-c++-opt: Interoperability with libtool.
14719         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14720         set the variable to "no", not to ":".
14721         * NEWS: Mention the change.
14722
14723 2011-06-05  Bruno Haible  <bruno@clisp.org>
14724
14725         acl: Fix test failure on AIX 7.
14726         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14727         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14728
14729 2011-06-05  Bruno Haible  <bruno@clisp.org>
14730
14731         pipe-filter-ii: Fix test failure on AIX and IRIX.
14732         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14733         with EAGAIN, retry with a smaller buffer size.
14734
14735 2011-06-05  Bruno Haible  <bruno@clisp.org>
14736
14737         localename: Fix link dependencies.
14738         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14739         * modules/localename-tests (Makefile.am): Link test-localename with
14740         $(LIBTHREAD).
14741
14742 2011-06-05  Bruno Haible  <bruno@clisp.org>
14743
14744         error: Avoid gcc warning.
14745         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14746
14747 2011-06-05  Bruno Haible  <bruno@clisp.org>
14748
14749         unsetenv: Avoid gcc warning.
14750         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14751
14752 2011-06-05  Bruno Haible  <bruno@clisp.org>
14753
14754         setenv: Avoid gcc warning.
14755         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14756
14757 2011-06-05  Bruno Haible  <bruno@clisp.org>
14758
14759         sys_select: Ensure memset is declared also on AIX 7.
14760         * lib/sys_select.in.h: Include <string.h> also on AIX.
14761         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14762         self-contained also on AIX 7.1.
14763
14764 2011-06-04  Jim Meyering  <meyering@redhat.com>
14765
14766         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14767         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14768         function name, "error".
14769         (_gl_translatable_diag_func_re): New configurable variable.
14770
14771 2011-06-04  Bruno Haible  <bruno@clisp.org>
14772
14773         getopt: Avoid gcc warning.
14774         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14775
14776 2011-06-04  Bruno Haible  <bruno@clisp.org>
14777
14778         strerror_r: Fix comments.
14779         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14780         commit.
14781
14782 2011-06-04  Bruno Haible  <bruno@clisp.org>
14783
14784         perror: Fix compilation error.
14785         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14786         Undefine fprintf, not sprintf.
14787         * modules/perror (Depends-on): Remove intprops, verify.
14788
14789 2011-06-04  Bruno Haible  <bruno@clisp.org>
14790
14791         setlocale: Enable replacement on Cygwin 1.5.
14792         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14793         Cygwin 1.5.x.
14794         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14795         LC_CTYPE category also exists on Cygwin 1.5.x.
14796
14797 2011-06-04  Bruno Haible  <bruno@clisp.org>
14798
14799         strerror-override: Don't disable symbol renamings.
14800         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14801         * lib/strerror-override.c: Include config.h.
14802         (strerror_override): Don't undefine.
14803
14804 2011-06-03  Bruno Haible  <bruno@clisp.org>
14805
14806         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14807         * lib/localename.h: Update copyright header.
14808         * lib/localename.c: Likewise.
14809         * lib/relocatable.h: Likewise.
14810         * lib/relocatable.c: Likewise.
14811
14812 2011-06-02  Bruno Haible  <bruno@clisp.org>
14813
14814         doc: Fix a module name.
14815         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14816
14817 2011-06-02  Bruno Haible  <bruno@clisp.org>
14818
14819         pipe2: Remove dependency on 'nonblocking' module.
14820         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14821         O_NONBLOCK is defined by gnulib.
14822         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14823         is zero.
14824         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14825         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14826         defined by gnulib.
14827         (get_nonblocking_flag): New function.
14828         (main): Test O_NONBLOCK flag only if it is nonzero.
14829         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14830
14831 2011-06-03  Jim Meyering  <meyering@redhat.com>
14832
14833         maint: three new prohibit-header-without-use rules
14834         Prohibit use of cloexec.h, posixver.h, same.h without use.
14835         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14836         (sc_prohibit_posixver_without_use): Likewise.
14837         (sc_prohibit_same_without_use): Likewise.
14838
14839 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14840
14841         allocator: 'die' routine is now given requested size
14842         * lib/allocator.h (struct allocator.die): New size arg.
14843         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14844         If the actual problem is an ssize_t limitation, not a size_t or
14845         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14846
14847 2011-06-01  Eric Blake  <eblake@redhat.com>
14848
14849         strerror: drop strerror_r dependency
14850         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14851         * lib/strerror-override.c (strerror_override): ...to new file.
14852         * lib/strerror-override.h: Add prototype.
14853         * lib/strerror-impl.h: Delete.
14854         * lib/strerror.c (strerror): New implementation.
14855         * modules/errno (Files): Add new files.
14856         (configure.ac): Compile new file as appropriate.
14857         * modules/strerror (Files): Drop unused file.
14858         (Depends-on): Drop strerror_r-posix.
14859         * MODULES.html.sh: Document strerror_r-posix.
14860         Requested by Sam Steingold.
14861
14862         perror: call strerror_r directly
14863         * modules/perror (Files): Drop strerror-impl.h.
14864         * lib/perror.c (perror): Use our own stack buffer, rather than
14865         calling a wrapper that uses static storage.
14866         * doc/posix-functions/perror.texi (perror): Document a limitation
14867         of our replacement.
14868
14869         strerror_r: fix includes for FreeBSD
14870         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14871         since we use abort on some platforms.
14872         Reported by Matthias Bolte.
14873
14874 2011-05-31  Bruno Haible  <bruno@clisp.org>
14875
14876         Fix link errors in tests: openat-die uses gettext-h.
14877         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14878         against $(LIBINTL).
14879         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14880         against $(LIBINTL).
14881         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14882         $(LIBINTL).
14883         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14884         against $(LIBINTL).
14885         * modules/linkat-tests (Makefile.am): Link test-linkat against
14886         $(LIBINTL).
14887         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14888         $(LIBINTL).
14889         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14890         against $(LIBINTL).
14891         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14892         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14893         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14894         $(LIBINTL).
14895         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14896         $(LIBINTL).
14897         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14898         $(LIBINTL).
14899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14900
14901 2011-05-31  Bruno Haible  <bruno@clisp.org>
14902
14903         Fix link errors in tests: wait-process uses gettext-h.
14904         * modules/nonblocking-pipe-tests (Makefile.am): Set
14905         test_nonblocking_pipe_main_LDADD.
14906         * modules/nonblocking-socket-tests (Makefile.am): Link
14907         test-nonblocking-socket-main against $(LIBINTL).
14908         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14909
14910 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14911
14912         assert-h: work around 'verify' incompatibility
14913         * lib/verify.h: Use @...@ directives, not ifdef.
14914         * modules/assert-h (assert.h): Implement the directives.
14915         (assert.h): Substitute the symbol-prefix more consistently.
14916
14917 2011-05-29  Jim Meyering  <meyering@redhat.com>
14918
14919         trim: remove three superfluous assignments
14920         * lib/trim.c (trim2): Remove three superfluous assignments
14921         and correct brace positioning.
14922
14923 2011-05-29  Bruno Haible  <bruno@clisp.org>
14924
14925         wctype-h: Avoid namespace pollution on Solaris 2.6.
14926         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14927         identifiers.
14928         * doc/posix-headers/wctype.texi: Mention the problem.
14929         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14930
14931 2011-05-28  Jim Meyering  <meyering@redhat.com>
14932
14933         parse-datetime.y: accommodate -Wstrict-overflow
14934         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14935         placate -Wstrict-overflow.
14936
14937         trim: avoid a warning from -O2 -Wstrict-overflow
14938         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14939
14940 2011-05-29  Bruno Haible  <bruno@clisp.org>
14941
14942         gnulib-tool: Fix bug in yesterday's commit.
14943         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14944         twice.
14945
14946 2011-05-29  Bruno Haible  <bruno@clisp.org>
14947
14948         Allow multiple gnulib generated include files to be combined.
14949         * gnulib-tool (func_compute_include_guard_prefix): New function.
14950         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14951         ${gl_include_guard_prefix} references.
14952         (func_import, func_create_testdir): Invoke
14953         func_compute_include_guard_prefix.
14954         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14955         * lib/ctype.in.h: Likewise.
14956         * lib/dirent.in.h: Likewise.
14957         * lib/errno.in.h: Likewise.
14958         * lib/fcntl.in.h: Likewise.
14959         * lib/float.in.h: Likewise.
14960         * lib/getopt.in.h: Likewise.
14961         * lib/iconv.in.h: Likewise.
14962         * lib/langinfo.in.h: Likewise.
14963         * lib/locale.in.h: Likewise.
14964         * lib/math.in.h: Likewise.
14965         * lib/netdb.in.h: Likewise.
14966         * lib/netinet_in.in.h: Likewise.
14967         * lib/poll.in.h: Likewise.
14968         * lib/pthread.in.h: Likewise.
14969         * lib/pty.in.h: Likewise.
14970         * lib/sched.in.h: Likewise.
14971         * lib/se-selinux.in.h: Likewise.
14972         * lib/search.in.h: Likewise.
14973         * lib/signal.in.h: Likewise.
14974         * lib/spawn.in.h: Likewise.
14975         * lib/stdarg.in.h: Likewise.
14976         * lib/stddef.in.h: Likewise.
14977         * lib/stdint.in.h: Likewise.
14978         * lib/stdio.in.h: Likewise.
14979         * lib/stdlib.in.h: Likewise.
14980         * lib/string.in.h: Likewise.
14981         * lib/strings.in.h: Likewise.
14982         * lib/sys_file.in.h: Likewise.
14983         * lib/sys_ioctl.in.h: Likewise.
14984         * lib/sys_select.in.h: Likewise.
14985         * lib/sys_socket.in.h: Likewise.
14986         * lib/sys_stat.in.h: Likewise.
14987         * lib/sys_time.in.h: Likewise.
14988         * lib/sys_times.in.h: Likewise.
14989         * lib/sys_uio.in.h: Likewise.
14990         * lib/sys_utsname.in.h: Likewise.
14991         * lib/sys_wait.in.h: Likewise.
14992         * lib/sysexits.in.h: Likewise.
14993         * lib/termios.in.h: Likewise.
14994         * lib/time.in.h: Likewise.
14995         * lib/unistd.in.h: Likewise.
14996         * lib/wchar.in.h: Likewise.
14997         * lib/wctype.in.h: Likewise.
14998         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14999         * modules/ctype (Makefile.am): Likewise.
15000         * modules/dirent (Makefile.am): Likewise.
15001         * modules/errno (Makefile.am): Likewise.
15002         * modules/fcntl-h (Makefile.am): Likewise.
15003         * modules/float (Makefile.am): Likewise.
15004         * modules/getopt-posix (Makefile.am): Likewise.
15005         * modules/iconv-h (Makefile.am): Likewise.
15006         * modules/langinfo (Makefile.am): Likewise.
15007         * modules/locale (Makefile.am): Likewise.
15008         * modules/math (Makefile.am): Likewise.
15009         * modules/netdb (Makefile.am): Likewise.
15010         * modules/netinet_in (Makefile.am): Likewise.
15011         * modules/poll-h (Makefile.am): Likewise.
15012         * modules/pthread (Makefile.am): Likewise.
15013         * modules/pty (Makefile.am): Likewise.
15014         * modules/sched (Makefile.am): Likewise.
15015         * modules/search (Makefile.am): Likewise.
15016         * modules/selinux-h (Makefile.am): Likewise.
15017         * modules/signal (Makefile.am): Likewise.
15018         * modules/spawn (Makefile.am): Likewise.
15019         * modules/stdarg (Makefile.am): Likewise.
15020         * modules/stddef (Makefile.am): Likewise.
15021         * modules/stdint (Makefile.am): Likewise.
15022         * modules/stdio (Makefile.am): Likewise.
15023         * modules/stdlib (Makefile.am): Likewise.
15024         * modules/string (Makefile.am): Likewise.
15025         * modules/strings (Makefile.am): Likewise.
15026         * modules/sys_file (Makefile.am): Likewise.
15027         * modules/sys_ioctl (Makefile.am): Likewise.
15028         * modules/sys_select (Makefile.am): Likewise.
15029         * modules/sys_socket (Makefile.am): Likewise.
15030         * modules/sys_stat (Makefile.am): Likewise.
15031         * modules/sys_time (Makefile.am): Likewise.
15032         * modules/sys_times (Makefile.am): Likewise.
15033         * modules/sys_uio (Makefile.am): Likewise.
15034         * modules/sys_utsname (Makefile.am): Likewise.
15035         * modules/sys_wait (Makefile.am): Likewise.
15036         * modules/sysexits (Makefile.am): Likewise.
15037         * modules/termios (Makefile.am): Likewise.
15038         * modules/time (Makefile.am): Likewise.
15039         * modules/unistd (Makefile.am): Likewise.
15040         * modules/wchar (Makefile.am): Likewise.
15041         * modules/wctype-h (Makefile.am): Likewise.
15042         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15043
15044 2011-05-29  Bruno Haible  <bruno@clisp.org>
15045
15046         assert-h: Allow multiple gnulib generated replacements to coexist.
15047         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15048
15049 2011-05-29  Bruno Haible  <bruno@clisp.org>
15050
15051         argp: Allow coexistence with strerror_r-posix module.
15052         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15053         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15054         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15055         not the glibc signature.
15056
15057 2011-05-28  Bruno Haible  <bruno@clisp.org>
15058
15059         gnulib-tool: Alternative structure of testdirs, similar to --import.
15060         * gnulib-tool: New option --single-configure.
15061         (func_usage): Document it.
15062         (single_configure): New variable.
15063         (func_modules_transitive_closure_separately,
15064         func_modules_transitive_closure_separately,
15065         func_determine_use_libtests, func_modules_add_dummy_separately,
15066         func_modules_to_filelist_separately): New functions, extracted from
15067         func_import.
15068         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15069         (func_import): Use the new functions.
15070         (func_create_testdir): Set final_modules. Handle $single_configure =
15071         true case.
15072
15073 2011-05-28  Bruno Haible  <bruno@clisp.org>
15074
15075         getloadavg: Remove an unreliable safety check.
15076         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15077         getloadavg.c is in place.
15078         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15079         Reported by Sam Steingold <sds@gnu.org>.
15080
15081 2011-05-28  Bruno Haible  <bruno@clisp.org>
15082
15083         doc: Cleanup yet another file produced by texinfo.tex.
15084         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15085
15086 2011-05-28  Bruno Haible  <bruno@clisp.org>
15087
15088         Finish the conditional dependencies mechanism.
15089         * gnulib-tool: New option --no-conditional-dependencies.
15090         (func_usage): Document it. Don't mark --conditional-dependencies as
15091         experimental.
15092         (cond_dependencies): The possible values can now be true, false, empty.
15093         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15094         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15095         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15096
15097 2011-05-28  Bruno Haible  <bruno@clisp.org>
15098
15099         doc: Use a recent texinfo.tex.
15100         * doc/Makefile (tex_opts): New variable.
15101         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15102
15103 2011-05-28  Jim Meyering  <meyering@redhat.com>
15104
15105         intprops.h: adjust comment to match code change
15106         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15107         only once, it *may* have side effects.  Also fix an unrelated typo.
15108         (_GL_INT_SIGNED): Likewise.
15109
15110 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15111
15112         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15113
15114 2011-05-26  Bruno Haible  <bruno@clisp.org>
15115
15116         mbsrchr: Avoid collision with system function on Interix.
15117         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15118         Reported by Markus Duft <mduft@gentoo.org>.
15119
15120 2011-05-15  James Youngman  <jay@gnu.org>
15121
15122         getopt: for ambiguous options, enumerate the possibilities.
15123         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15124         the ambiguous options when an ambiguous prefix is given. This was
15125         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15126         glibc change was
15127         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15128
15129 2011-05-25  Eric Blake  <eblake@redhat.com>
15130
15131         getcwd: work around mingw bug
15132         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15133         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15134         Reported by Matthias Bolte.
15135
15136 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15137
15138         test-intprops: disable -Wtype-limits diagnostics
15139         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15140         diagnostics.  Otherwise, the integer overflow macros generate many
15141         diagnostics.  Reported by Jim Meyering in
15142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15143
15144         intprops: shorten, to pacify gcc -Woverlength-strings
15145         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15146         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15147         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15148         likely to run afoul of C compiler limits for string constant lengths.
15149         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15150
15151 2011-05-24  Eric Blake  <eblake@redhat.com>
15152
15153         docs: document recently fixed glibc printf bug
15154         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15155         * doc/posix-functions/printf.texi (printf): Likewise.
15156         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15157         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15158
15159         closein-tests: convert to init.sh
15160         * modules/closein-tests (Files): Add init.sh
15161         * tests/test-closein.sh Use it.
15162
15163         yesno-tests: convert to init.sh
15164         * modules/yesno-tests (Files): Add init.sh.
15165         * tests/test-yesno.sh: Use it.
15166
15167         atexit-tests: ensure reliable exit status
15168         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15169         Reported by Bruno Haible.
15170
15171 2011-05-24  Bruno Haible  <bruno@clisp.org>
15172
15173         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15174         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15175         gl_PREREQ_STRERROR_R invocations from here...
15176         * modules/strerror_r-posix (configure.ac): ... to here.
15177
15178 2011-05-24  Eric Blake  <eblake@redhat.com>
15179
15180         strerror_r: fix missing header
15181         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15182
15183         strerror_r: fix AIX test failures
15184         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15185         ERANGE failure.
15186
15187         strerror_r: fix Solaris test failures
15188         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15189         failures.
15190         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15191
15192         strerror_r: enforce POSIX recommendations
15193         * lib/strerror_r.c (safe_copy): New helper method.
15194         (strerror_r): Guarantee a non-empty string.
15195         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15196         recent POSIX rulings and to match our strerror guarantees.
15197         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15198
15199 2011-05-24  Jim Meyering  <meyering@redhat.com>
15200
15201         test-perror2.c: avoid warning about unused variable
15202         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15203
15204 2011-05-24  Eric Blake  <eblake@redhat.com>
15205
15206         perror: avoid spurious test failure on HP-UX
15207         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15208
15209         tests: fix logic bug in init.sh
15210         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15211         shell.
15212
15213 2011-05-24  Jim Meyering  <meyering@redhat.com>
15214
15215         utimensat: do not reference an out-of-scope buffer
15216         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15217         declared in an inner scope, yet "times" would be dereferenced outside
15218         the scope in which "ts" was valid.
15219         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15220         of ts[2] "out/up", so that the use of aliased "times" (via
15221         "times = ts;") does not end up referencing an out-of-scope "ts"
15222
15223         opendir-safer.c: don't clobber errno; don't close negative FD
15224         * lib/opendir-safer.c (opendir_safer):
15225         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15226         file descriptor, and more importantly, don't clobber the
15227         offending errno value with EINVAL.  Before, upon failure
15228         of dup_safer, we would pass the negative file descriptor to
15229         fdopendir, which would clobber errno.
15230
15231 2011-05-23  Bruno Haible  <bruno@clisp.org>
15232
15233         idcache: Fix module description.
15234         * modules/idcache (Include): Set to "idcache.h".
15235
15236 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15237
15238         gnulib-tool: fix portability problem with MacOS sed
15239         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15240         before the "}".  Problem reported by Leo in
15241         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15242         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15243         sed_extract_condition1, sed_extract_condition2.
15244
15245 2011-05-23  Bruno Haible  <bruno@clisp.org>
15246
15247         hash: Simplify autoconf macro.
15248         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15249
15250 2011-05-23  Bruno Haible  <bruno@clisp.org>
15251
15252         getugroups: Fix module description.
15253         * modules/getugroups (Include): Set to "getugroups.h".
15254
15255 2011-05-23  Bruno Haible  <bruno@clisp.org>
15256
15257         linkat: Simplify autoconf macro.
15258         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15259
15260 2011-05-23  Bruno Haible  <bruno@clisp.org>
15261             Eric Blake  <eblake@redhat.com>
15262
15263         linkat, renameat: Update dependencies.
15264         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15265         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15266         symlinkat.
15267
15268 2011-05-23  Jim Meyering  <meyering@redhat.com>
15269
15270         maint.mk: more tight_scope improvements
15271         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15272         (_gl_TS_headers): Define only in if-0'd block.
15273         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15274         sometimes we must *not* use it.  Adjust uses accordingly.
15275         (sc_tight_scope): Use much simpler grep-based test to determine
15276         whether we skip this rule.
15277
15278         maint.mk: generalize/improve the tight-scope rule
15279         * top/maint.mk: Emit a warning when the test is skipped.
15280         (_gl_TS_dir): Add $(srcdir)/ prefix.
15281         (_gl_TS_function_match): Simplify, rather than trying
15282         to enumerate common types.  Otherwise, it would fail to match an
15283         "extern unsigned char const *" declaration in idutils.
15284         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15285         a way to support use of that type of macro.
15286         (_gl_TS_var_match): Simplify regexp.
15287         (_gl_TS_obj_files): New configurable variable.
15288         (_gl_TS_headers): Likewise.
15289
15290 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15291
15292         verify: fix bug when gnulib <assert.h> is also included
15293         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15294         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15295         Perhaps there's a better way, but this fixes the immediate problem.
15296         Problem reported by Bruno Haible in
15297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15298
15299 2011-05-22  Bruno Haible  <bruno@clisp.org>
15300
15301         xgetcwd: Simplify autoconf macro.
15302         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15303
15304 2011-05-22  Bruno Haible  <bruno@clisp.org>
15305
15306         New module 'mktime-internal'.
15307         * modules/mktime-internal: New file.
15308         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15309         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15310         mktime_internal as a C macro if libc has __mktime_internal.
15311         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15312         conditions.
15313         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15314
15315 2011-05-22  Bruno Haible  <bruno@clisp.org>
15316
15317         timegm: Correct mktime replacement statements.
15318         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15319         defining mktime as a C macro. This completes a 2009-07-28 commit.
15320
15321 2011-05-22  Bruno Haible  <bruno@clisp.org>
15322
15323         timegm: Simplify autoconf macro.
15324         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15325
15326 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15327
15328         clock-time: change to LGPLv2+.
15329         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15330         BSD-like but we have no mark for that; this is good enough for now.
15331
15332 2011-05-21  Bruno Haible  <bruno@clisp.org>
15333
15334         strerror_r: Fix comments.
15335         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15336
15337 2011-05-21  Bruno Haible  <bruno@clisp.org>
15338
15339         relocatable-prog-wrapper: Fix possible link error.
15340         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15341         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15342         (gl_FUNC_SETENV): ... to here.
15343         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15344         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15345
15346 2011-05-21  Bruno Haible  <bruno@clisp.org>
15347
15348         relocatable-prog-wrapper: Assume strerror() exists.
15349         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15350         m4/strerror.m4.
15351         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15352         * lib/relocwrapper.c: Remove mention of strerror module.
15353         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15354         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15355         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15356         C macro.
15357
15358 2011-05-21  Bruno Haible  <bruno@clisp.org>
15359
15360         select: Simplify replacement idiom.
15361         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15362         Win32 platforms.
15363         * lib/sys_select.in.h (select): Simplify accordingly.
15364         * modules/select (Depends-on): Likewise.
15365
15366 2011-05-21  Bruno Haible  <bruno@clisp.org>
15367
15368         mkdir-p: Simplify autoconf macro.
15369         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15370         gl_FUNC_LCHOWN.
15371
15372 2011-05-21  Eric Blake  <eblake@redhat.com>
15373
15374         strerror_r: avoid clobbering strerror on cygwin
15375         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15376         fall back instead to sys_errlist.
15377         * modules/strerror (configure.ac): Add witness.
15378         * tests/test-strerror_r.c (main): Enhance test.
15379         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15380         * tests/test-perror2.c (main): Free memory before exit.
15381
15382 2011-05-21  Bruno Haible  <bruno@clisp.org>
15383
15384         mkdtemp: Use gnulib naming conventions.
15385         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15386         * modules/mkdtemp (configure.ac): Update.
15387
15388 2011-05-20  Eric Blake  <eblake@redhat.com>
15389
15390         strerror_r: avoid corrupting errno on Solaris
15391         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15392         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15393
15394         strerror_r: avoid compiler warning
15395         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15396
15397         strerror_r: simplify AIX code
15398         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15399
15400         test-perror: avoid spurious failure on FreeBSD
15401         * modules/perror-tests (Depends-on): Add strerror, now that
15402         strerror_r no longer pulls it in.
15403
15404 2011-05-20  Bruno Haible  <bruno@clisp.org>
15405
15406         strerror_r-posix: Remove unused dependencies.
15407         * modules/strerror_r-posix (Depends-on): Remove strerror.
15408         Reported by Eric Blake.
15409
15410 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15411
15412         intprops: remove assumption about A|B representation
15413         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15414         is a valid integer if both A and B are.  Although this is true for
15415         all known practical hosts, the C standard doesn't guarantee it,
15416         and the code need not assume it.  Also, this change may work around
15417         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15419
15420 2011-05-20  Eric Blake  <eblake@redhat.com>
15421
15422         perror: work around FreeBSD bug
15423         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15424         is broken.  Move AC_LIBOBJ...
15425         * modules/perror (configure.ac): Here.
15426         * doc/posix-functions/perror.texi (perror): Document this.
15427         * tests/test-perror2.c (main): Enhance test.
15428
15429         test-perror: check for strerror interactions
15430         * tests/macros.h (STREQ): Add macro.
15431         * modules/perror-tests (Files): Add second test.
15432         * tests/test-perror2.c (main): New file.
15433         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15434
15435         test-perror: rewrite to use init script
15436         * modules/perror-tests (Files): Add init.sh.
15437         * tests/test-perror.sh: Use temporary directory.
15438
15439 2011-05-20  Jim Meyering  <meyering@redhat.com>
15440
15441         maint: replace misused "a" with "an"
15442         * doc/intprops.texi: "a integer"
15443         * doc/regex.texi: "a explanation"
15444         * lib/alignof.h: "a object"
15445         * lib/argmatch.h: "a explanation"
15446         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15447         * lib/stdint.in.h: "a integer"
15448         * lib/userspec.c: "a owner"
15449         * doc/gnulib.texi: Fix "a idea", and reword.
15450
15451 2011-05-19  Jim Meyering  <meyering@redhat.com>
15452
15453         maint: correct misuse of "a" and "an"
15454         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15455         * lib/argp-help.c: "an docum...": s/an/a/
15456         * lib/argp-parse.c: "An vector": s/An/A/
15457         * lib/execute.c: "an native": s/an/a/
15458         * lib/spawn-pipe.c: Likewise.
15459         * lib/gc.h: "an Gc_rc": s/an/a/
15460         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15461         * lib/fts.c: "an stat.st_dev": s/an/a/
15462
15463 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15464
15465         intprops-tests: work around HP-UX 11.23 cc bug with constants
15466         * tests/test-intprops.c (VERIFY): New macro.
15467         (main): Use it, instead of verify, to work around the compiler bug; see
15468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15469
15470         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15471         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15472         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15473         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15474         (_GL_REMAINDER_OVERFLOW): Use it.
15475
15476         intprops-tests: revert unsigned part of previous change
15477         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15478         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15479         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15481
15482 2011-05-19  Bruno Haible  <bruno@clisp.org>
15483
15484         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15485         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15486         strerror_r() returned without filling the buffer.
15487         Reported by Eric Blake.
15488
15489 2011-05-19  Eric Blake  <eblake@redhat.com>
15490
15491         strerror_r: guarantee unchanged errno
15492         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15493         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15494         failure.
15495         * tests/test-strerror_r.c (main): Enhance test.
15496
15497 2011-05-19  Bruno Haible  <bruno@clisp.org>
15498
15499         strerror_r: Reorder #if blocks.
15500         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15501         for consistency with the previous commit.
15502
15503 2011-05-19  Bruno Haible  <bruno@clisp.org>
15504
15505         perror: Avoid clobbering the strerror buffer when possible.
15506         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15507         * lib/strerror.c: Include it.
15508         * modules/strerror (Files): Add lib/strerror-impl.h.
15509         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15510         (my_strerror): New function, defined through lib/strerror-impl.h.
15511         (perror): Use it instead of strerror.
15512         * modules/perror (Files): Add lib/strerror-impl.h.
15513         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15514
15515 2011-05-19  Eric Blake  <eblake@redhat.com>
15516
15517         strerror_r: fix on newer cygwin
15518         * lib/strerror_r.c (strerror_r): Cygwin now has
15519         __xpg_strerror_r, use it.
15520
15521 2011-05-19  Bruno Haible  <bruno@clisp.org>
15522
15523         strerror_r: Avoid clobbering the strerror buffer when possible.
15524         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15525         (sys_nerr, sys_errlist): New declarations.
15526         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15527         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15528         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15529
15530 2011-05-19  Bruno Haible  <bruno@clisp.org>
15531
15532         strerror_r: Fix test failure on mingw.
15533         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15534         EXTEND_STRERROR_R.
15535         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15536         macros from errno.in.h instead.
15537
15538 2011-05-19  Eric Blake  <eblake@redhat.com>
15539
15540         strerror: relax test for Solaris
15541         * tests/test-strerror.c (main): Permit Solaris behavior.
15542         * tests/test-strerror_r.c (main): Likewise.
15543
15544         strerror: enforce POSIX ruling on strerror(0)
15545         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15546         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15547         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15548         * doc/posix-functions/strerror.texi (strerror): Document it.
15549         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15550         * tests/test-strerror.c (main): Strengthen test.
15551         * tests/test-strerror_r.c (main): Likewise.
15552
15553 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15554
15555         intprop-tests: port to older and more-pedantic compilers
15556         * modules/intprops-tests (Files): Add tests/macros.h.
15557         * tests/test-intprops.c: Include macros.h.
15558         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15559         it's no longer documented to expand to an integer constant expression.
15560         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15561         argument is floating point, as it's no longer documented to expand
15562         to an integer constant expression in that case.
15563         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15564         compiler bugs reported by Bruno Haible.  See
15565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15566         (U0, U1): New constants, to work around the same bugs.  Also,
15567         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15568
15569         intprops: work around C compiler bugs
15570         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15571         bug in Sun C 5.11 2010/08/13 and other compilers; see
15572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15573
15574         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15575         * doc/intprops.texi (Integer Type Determination): Fix
15576         documentation for TYPE_IS_INTEGER: it returns an constant
15577         expression, not an integer constant expression.  Fix doc for
15578         TYPE_SIGNED: it returns an integer constant expression only if its
15579         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15580         hardly worth documented that way....)
15581
15582 2011-05-18  Bruno Haible  <bruno@clisp.org>
15583
15584         strerror_r: Avoid clobbering the strerror buffer when possible.
15585         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15586         Handle gnulib defined errno values here. When strerror() returns NULL
15587         or an empty string, return EINVAL.
15588         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15589         gnulib defined errno values here.
15590         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15591
15592 2011-05-18  Eric Blake  <eblake@redhat.com>
15593
15594         fnmatch: avoid compiler warning
15595         * lib/fnmatch_loop.c (FCT): Use correct type.
15596         Reported by Matthias Bolte.
15597
15598 2011-05-13  Jim Meyering  <meyering@redhat.com>
15599
15600         maint.mk: three new prohibit_<HDR>_without_use rules
15601         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15602         (sc_prohibit_stdio-safer_without_use): Likewise.
15603         (sc_prohibit_xfreopen_without_use): Likewise.
15604
15605 2011-05-17  Jim Meyering  <meyering@redhat.com>
15606
15607         announce-gen: fail if the NEWS delta is empty
15608         If there's nothing noteworthy in NEWS, then either you forgot
15609         or you shouldn't be releasing.
15610         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15611
15612 2011-05-17  Pádraig Brady <P@draigBrady.com>
15613
15614         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15615         reserved symbols starting with double underscore from the check.
15616
15617 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15618
15619         intprops: add doc
15620         * doc/intprops.texi: New file, documenting intprops.
15621         * doc/gnulib.texi (Particular Modules): Include it.
15622
15623         verify: add doc to gnulib manual and fix example
15624         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15625         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15626         (Compile-time Assertions): Fix example so it can't overflow.
15627
15628 2011-05-17  Jim Meyering  <meyering@redhat.com>
15629
15630         warnings.m4: don't usurp save_CPPFLAGS variable name
15631         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15632
15633         doc: fix typo
15634         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15635
15636 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15637             Bruno Haible  <bruno@clisp.org>
15638
15639         doc: Tweak recent change.
15640         * README (Portability guidelines): Tweak new text.
15641         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15642         Interix 6.1.
15643
15644 2011-05-16  Eric Blake  <eblake@redhat.com>
15645
15646         inttypes: avoid autoconf warning
15647         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15648         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15649
15650 2011-05-16  Sam Steingold <sds@gnu.org>
15651         and Eric Blake  <eblake@redhat.com>
15652
15653         vc-list-files: accept multiple directory operands
15654         * build-aux/vc-list-files: Iterate over all remaining operands.
15655
15656 2011-05-16  Bruno Haible  <bruno@clisp.org>
15657
15658         Fix confusion regarding deprecated modules.
15659         * modules/calloc (Status, Notice): Mark module as deprecated, not
15660         obsolete.
15661         * modules/fnmatch-posix (Status, Notice): Likewise.
15662         * modules/getdate (Status, Notice): Likewise.
15663         * modules/getopt (Status, Notice): Likewise.
15664         * modules/malloc (Status, Notice): Likewise.
15665         * modules/pipe (Status, Notice): Likewise.
15666         * modules/realloc (Status, Notice): Likewise.
15667         * modules/rename-dest-slash (Status, Notice): Likewise.
15668         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15669         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15670         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15671         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15672         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15673
15674 2011-05-16  Bruno Haible  <bruno@clisp.org>
15675
15676         doc: List the target platforms.
15677         * doc/gnulib-intro.texi (Target Platforms): New section.
15678         * doc/gnulib.texi (Introduction): Update menu.
15679         * README (Portability guidelines): Refer to the new section. Update
15680         statement about oldest supported environment. Remove rationale why
15681         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15682         unportable C89 function.
15683         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15684         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15685
15686 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15687
15688         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15689
15690 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15691
15692         intprops-tests: new module
15693         * modules/intprops-tests, tests/test-intprops.c: New files.
15694
15695         intprops: add safe, portable integer overflow checking
15696         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15697         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15698         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15699         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15700         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15701         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15702         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15703         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15704         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15705         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15706         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15707
15708 2011-05-12  James Youngman  <jay@gnu.org>
15709
15710         Add a test for glibc's Bugzilla bug #12378.
15711         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15712         doesn't allow the literal matching of a lone "[" (which is
15713         required by POSIX).
15714         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15715
15716 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15717
15718         Sync glibc change fixing Bugzilla bug #12378.
15719         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15720         beginning and fall back to matching as normal character if the
15721         string ends before the matching ']' is found.  This is what POSIX
15722         requires.
15723
15724 2011-05-13  Eric Blake  <eblake@redhat.com>
15725
15726         getcwd-lgpl: relax test for FreeBSD
15727         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15728         issue.
15729         * tests/test-getcwd-lgpl.c (main): Relax test.
15730         Reported by Matthias Bolte.
15731
15732 2011-05-11  Eric Blake  <eblake@redhat.com>
15733
15734         test-fflush: silence compiler warning
15735         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15736
15737 2011-05-11  Bruno Haible  <bruno@clisp.org>
15738
15739         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15740         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15741         * modules/canonicalize (Depends-on): Add 'nocrash'.
15742         * modules/canonicalize-lgpl (Depends-on): Likewise.
15743         * doc/posix-functions/realpath.texi: Update platforms list.
15744         Reported by Ryan Schmidt <ryandesign@macports.org>.
15745
15746 2011-05-11  Bruno Haible  <bruno@clisp.org>
15747
15748         group-member: Declare function in <unistd.h>.
15749         * lib/unistd.in.h (group_member): New declaration.
15750         * lib/group-member.h: Remove file.
15751         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15752         * tests/test-unistd-c++.cc: Check signature of group_member.
15753         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15754         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15755         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15756         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15757         HAVE_GROUP_MEMBER.
15758         * modules/group-member (Files): Remove lib/group-member.h.
15759         (Depends-on): Add unistd. Specify conditions.
15760         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15761         (Include): Change to <unistd.h>.
15762         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15763         HAVE_GROUP_MEMBER.
15764         * NEWS: Mention the change.
15765         * lib/euidaccess.c: Don't include group-member.h.
15766
15767 2011-05-11  Bruno Haible  <bruno@clisp.org>
15768
15769         group-member: Document module.
15770         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15771         module.
15772
15773 2011-05-11  Bruno Haible  <bruno@clisp.org>
15774
15775         fclose: Fix mistake earlier today.
15776         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15777
15778 2011-05-11  Eric Blake  <eblake@redhat.com>
15779
15780         fclose: preserve fflush errors
15781         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15782         Reported by Jim Meyering.
15783
15784         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15785         * build-aux/bootstrap (check_versions): When no specific version
15786         is required, merely check that the app produces an exit status
15787         that indicates its existence.
15788
15789         maint.mk: drop redundant check
15790         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15791         the same but better.
15792
15793 2011-05-11  Bruno Haible  <bruno@clisp.org>
15794
15795         fclose: Fix possible link error.
15796         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15797         unregister_shadow_fd. Improve comments.
15798         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15799         Eric Blake.
15800
15801 2011-05-11  Jim Meyering  <meyering@redhat.com>
15802
15803         maint.mk: improve "can not" detection and generalize rule name
15804         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15805         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15806         Use the same technique as in sc_prohibit_doubled_word, so that
15807         we recognize "can not" also when the words are separated by a newline.
15808         Suggested by Eric Blake.
15809         (perl_filename_lineno_text_): Define.  Factored out of...
15810         (prohibit_doubled_word_): ...here.  Use the new definition.
15811         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15812         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15813         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15814
15815 2011-05-10  Eric Blake  <eblake@redhat.com>
15816
15817         fclose: avoid double close race when possible
15818         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15819         all but WINDOWS_SOCKETS.
15820
15821 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15822
15823         openat: correct new comment
15824         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15825
15826 2011-05-10  Jim Meyering  <meyering@redhat.com>
15827
15828         openat: add comments
15829         * lib/openat-proc.c (openat_proc_name): Add comments,
15830         mostly from Eric Blake.
15831
15832 2011-05-09  Eric Blake  <eblake@redhat.com>
15833
15834         openat: reduce syscalls in first probe of /proc
15835         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15836         be a directory.  Simplify the probe for .. bugs.
15837         * modules/openat (Depends-on): Drop same-inode.
15838         Reported by Bastien ROUCARIES.
15839
15840 2011-05-09  Jim Meyering  <meyering@redhat.com>
15841
15842         maint.mk: change semantics/name of tight_scope variables
15843         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15844         Rename variables to align with semantics that make them more useful.
15845
15846         maint.mk: tweak new rule's name not to impinge
15847         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15848         (sc_tight_scope): Use new rule name rather than $@-0.
15849
15850         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15851         * top/maint.mk (sc_tight_scope): New rule.
15852         (sc_tight_scope-0): New rule, ifdef'd out.
15853         (_gl_TS_dir): Default.
15854         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15855         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15856
15857 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15858
15859         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15860         Haible <bruno@clisp.org>.
15861
15862 2011-05-08  Bruno Haible  <bruno@clisp.org>
15863
15864         Comments.
15865         * m4/isnanf.m4: Add comment.
15866         * m4/isnanl.m4: Likewise.
15867
15868 2011-05-08  Bruno Haible  <bruno@clisp.org>
15869
15870         glob: Remove obsolete macro.
15871         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15872
15873 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15874
15875         intprops: Sun C 5.11 supports __typeof__
15876         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15877         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15878         which is new.
15879         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15880
15881         intprops: switch to usual gnulib indenting and naming
15882         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15883         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15884
15885         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15886
15887 2011-05-08  Jim Meyering  <meyering@redhat.com>
15888
15889         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15890         * top/maint.mk (release-prep): Use make's --no-print-directory
15891         option when generating the announcement.  This eliminates the
15892         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15893         generated announcement template.
15894
15895 2011-05-08  Bruno Haible  <bruno@clisp.org>
15896
15897         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15898         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15899         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15900
15901 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15902
15903         ignore-value, verify: Omit include files from lib_SOURCES.
15904         * modules/ignore-value, modules/verify (Makefile.am):
15905         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15906         that leads Automake to duplicate use of am__objects_... variables
15907         in Makefile.in.  See
15908         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15909
15910 2011-05-07  Bruno Haible  <bruno@clisp.org>
15911
15912         fclose: Simplify autoconf macro.
15913         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15914         defined.
15915
15916 2011-05-07  Bruno Haible  <bruno@clisp.org>
15917
15918         canonicalize-lgpl: Fix autoconf macro ordering bug.
15919         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15920         gl_STDLIB_H_DEFAULTS.
15921
15922 2011-05-06  Eric Blake  <eblake@redhat.com>
15923
15924         maintainer-makefile: make sc_po_check easier to tune
15925         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15926         to probe for strings, such as an alternate location for gnulib.
15927
15928         fclose: guarantee behavior on seekable stdin
15929         * modules/fclose (Depends-on): Add fflush.
15930         * doc/posix-functions/fclose.texi (fclose): Document this.
15931         * tests/test-fclose.c (main): Make test for this unconditional.
15932
15933 2011-05-06  Bruno Haible  <bruno@clisp.org>
15934
15935         fflush, fpurge: Relicense under LGPLv2+.
15936         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15937         * modules/fpurge (License): Likewise.
15938         With permission from Eric Blake and Jim Meyering.
15939         Suggested by Eric Blake.
15940
15941 2011-05-06  Karl Berry  <karl@gnu.org>
15942
15943         * MODULES.html.sh (func_all_modules): remove exit.
15944
15945 2011-05-06  Jim Meyering  <meyering@redhat.com>
15946
15947         maint.mk: use info-gnu@ as the default only for a stable release
15948         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15949         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15950         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15951         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15952
15953 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15954
15955         assert-h: new module, which supports C1X-style static_assert
15956         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15957         * lib/verify.h: Revamp so that this can be copied into assert.h,
15958         while retaining the ability to use it standalone as before.
15959         Rename private identifiers so as not to encroach on the
15960         standard C namespace, since this is now used by assert.h.
15961         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15962         the old verify_true.
15963         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15964         the old verify_true.  Use _GL_VERIFY_TYPE.
15965         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15966         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15967         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15968         defined when this file is copied into the replacement assert.h.
15969         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15970         and _Static_assert is not built in.
15971         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15972         defined, and use the new macros mentioned above.
15973         * doc/posix-headers/assert.texi: Document this.
15974
15975 2011-05-05  Bruno Haible  <bruno@clisp.org>
15976
15977         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15978         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15979         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15980         gl_REPLACE_FCLOSE here.
15981         * modules/fflush (Depends-on): Remove fclose.
15982         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15983         combination with module 'fclose'.
15984
15985 2011-05-05  Bruno Haible  <bruno@clisp.org>
15986
15987         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15988         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15989         gl_FUNC_FFLUSH.
15990         (gl_FUNC_FFLUSH): Use it.
15991         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15992         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15993         gl_REPLACE_FSEEKO here.
15994
15995 2011-05-05  Bruno Haible  <bruno@clisp.org>
15996
15997         tzset: Relicense under LGPL.
15998         * modules/tzset (License): Change to LGPL.
15999         No agreement needed; it's a no-op.
16000
16001         strtoimax, strtoumax: Relicense under LGPL.
16002         * modules/strtoimax (License): Change to LGPL.
16003         * modules/strtoumax (License): Likewise.
16004         With permission from Jim Meyering, Paul Eggert:
16005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16007
16008         getgroups: Relicense under LGPL.
16009         * modules/getgroups (License): Change to LGPL.
16010         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16014
16015         nanosleep: Relicense under LGPL.
16016         * modules/nanosleep (License): Change to LGPL.
16017         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16018         Haible:
16019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16023
16024         futimens: Relicense under LGPL.
16025         * modules/futimens (License): Change to LGPL.
16026         With permission from Eric Blake:
16027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16028
16029         fflush: Relicense under LGPL.
16030         * modules/fflush (License): Change to LGPL.
16031         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16035
16036         tmpfile: Relicense under LGPL.
16037         * modules/tmpfile (License): Change to LGPL.
16038         With permission from Ben Pfaff:
16039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16040
16041         isfinite: Relicense under LGPL.
16042         * modules/isfinite (License): Change to LGPL.
16043         With permission from Ben Pfaff, Bruno Haible:
16044         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16046
16047         acosl..tanl: Relicense under LGPL.
16048         * modules/acosl (License): Change to LGPL.
16049         * modules/asinl (License): Likewise.
16050         * modules/atanl (License): Likewise.
16051         * modules/cosl (License): Likewise.
16052         * modules/expl (License): Likewise.
16053         * modules/logl (License): Likewise.
16054         * modules/sinl (License): Likewise.
16055         * modules/sqrtl (License): Likewise.
16056         * modules/tanl (License): Likewise.
16057         Source code originally from glibc and Paolo Bonzini. Agreements:
16058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16060
16061 2011-05-05  Bruno Haible  <bruno@clisp.org>
16062
16063         signal: Define sighandler_t.
16064         * lib/signal.in.h (sighandler_t): New type.
16065         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16066         whether sighandler_t is defined.
16067         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16068         * modules/signal (Depends-on): Add extensions.
16069         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16070         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16071         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16072
16073 2011-05-05  Eric Blake  <eblake@redhat.com>
16074
16075         maint: remove useless REPLACE_*_H macros
16076         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16077         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16078         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16079         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16080         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16081         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16082         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16083         * m4/btowc.m4: Update callers.
16084         * m4/dirfd.m4: Likewise.
16085         * m4/duplocale.m4: Likewise.
16086         * m4/fchdir.m4: Likewise.
16087         * m4/fdopendir.m4: Likewise.
16088         * m4/inet_ntop.m4: Likewise.
16089         * m4/inet_pton.m4: Likewise.
16090         * m4/ioctl.m4: Likewise.
16091         * m4/mbrlen.m4: Likewise.
16092         * m4/mbrtowc.m4: Likewise.
16093         * m4/mbsinit.m4: Likewise.
16094         * m4/mbsnrtowcs.m4: Likewise.
16095         * m4/mbsrtowcs.m4: Likewise.
16096         * m4/poll.m4: Likewise.
16097         * m4/setlocale.m4: Likewise.
16098         * m4/wcrtomb.m4: Likewise.
16099         * m4/wcsnrtombs.m4: Likewise.
16100         * m4/wcsrtombs.m4: Likewise.
16101         * m4/wctob.m4: Likewise.
16102         * m4/wcwidth.m4: Likewise.
16103         * modules/posix_spawn: Likewise.
16104         * modules/posix_spawn_file_actions_addclose: Likewise.
16105         * modules/posix_spawn_file_actions_adddup2: Likewise.
16106         * modules/posix_spawn_file_actions_addopen: Likewise.
16107         * modules/posix_spawn_file_actions_destroy: Likewise.
16108         * modules/posix_spawn_file_actions_init: Likewise.
16109         * modules/posix_spawnattr_destroy: Likewise.
16110         * modules/posix_spawnattr_getflags: Likewise.
16111         * modules/posix_spawnattr_getpgroup: Likewise.
16112         * modules/posix_spawnattr_getschedparam: Likewise.
16113         * modules/posix_spawnattr_getschedpolicy: Likewise.
16114         * modules/posix_spawnattr_getsigdefault: Likewise.
16115         * modules/posix_spawnattr_getsigmask: Likewise.
16116         * modules/posix_spawnattr_init: Likewise.
16117         * modules/posix_spawnattr_setflags: Likewise.
16118         * modules/posix_spawnattr_setpgroup: Likewise.
16119         * modules/posix_spawnattr_setschedparam: Likewise.
16120         * modules/posix_spawnattr_setschedpolicy: Likewise.
16121         * modules/posix_spawnattr_setsigdefault: Likewise.
16122         * modules/posix_spawnattr_setsigmask: Likewise.
16123         * modules/posix_spawnp: Likewise.
16124
16125 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16126
16127         Add option to do-release-commit-and-tag to specify branch.
16128         * build-aux/do-release-commit-and-tag: Add --branch.
16129
16130 2011-05-03  Bruno Haible  <bruno@clisp.org>
16131
16132         Avoid unnecessary compilation units, through conditional dependencies.
16133         * modules/accept (Depends-on): Add conditions to the dependencies.
16134         * modules/acosl (Depends-on): Likewise.
16135         * modules/argz (Depends-on): Likewise.
16136         * modules/asinl (Depends-on): Likewise.
16137         * modules/atanl (Depends-on): Likewise.
16138         * modules/atoll (Depends-on): Likewise.
16139         * modules/bind (Depends-on): Likewise.
16140         * modules/btowc (Depends-on): Likewise.
16141         * modules/canonicalize-lgpl (Depends-on): Likewise.
16142         * modules/ceil (Depends-on): Likewise.
16143         * modules/ceilf (Depends-on): Likewise.
16144         * modules/ceill (Depends-on): Likewise.
16145         * modules/chdir-long (Depends-on): Likewise.
16146         * modules/chown (Depends-on): Likewise.
16147         * modules/close (Depends-on): Likewise.
16148         * modules/connect (Depends-on): Likewise.
16149         * modules/cosl (Depends-on): Likewise.
16150         * modules/dirfd (Depends-on): Likewise.
16151         * modules/dprintf (Depends-on): Likewise.
16152         * modules/dprintf-posix (Depends-on): Likewise.
16153         * modules/error (Depends-on): Likewise.
16154         * modules/euidaccess (Depends-on): Likewise.
16155         * modules/expl (Depends-on): Likewise.
16156         * modules/faccessat (Depends-on): Likewise.
16157         * modules/fchdir (Depends-on): Likewise.
16158         * modules/fclose (Depends-on): Likewise.
16159         * modules/fcntl (Depends-on): Likewise.
16160         * modules/fdopendir (Depends-on): Likewise.
16161         * modules/fflush (Depends-on): Likewise.
16162         * modules/floor (Depends-on): Likewise.
16163         * modules/floorf (Depends-on): Likewise.
16164         * modules/floorl (Depends-on): Likewise.
16165         * modules/fnmatch (Depends-on): Likewise.
16166         * modules/fopen (Depends-on): Likewise.
16167         * modules/fprintf-posix (Depends-on): Likewise.
16168         * modules/frexp (Depends-on): Likewise.
16169         * modules/frexp-nolibm (Depends-on): Likewise.
16170         * modules/frexpl (Depends-on): Likewise.
16171         * modules/frexpl-nolibm (Depends-on): Likewise.
16172         * modules/fseek (Depends-on): Likewise.
16173         * modules/fsusage (Depends-on): Likewise.
16174         * modules/ftell (Depends-on): Likewise.
16175         * modules/ftello (Depends-on): Likewise.
16176         * modules/futimens (Depends-on): Likewise.
16177         * modules/getcwd (Depends-on): Likewise.
16178         * modules/getcwd-lgpl (Depends-on): Likewise.
16179         * modules/getdelim (Depends-on): Likewise.
16180         * modules/getdomainname (Depends-on): Likewise.
16181         * modules/getgroups (Depends-on): Likewise.
16182         * modules/gethostname (Depends-on): Likewise.
16183         * modules/getline (Depends-on): Likewise.
16184         * modules/getlogin_r (Depends-on): Likewise.
16185         * modules/getopt-posix (Depends-on): Likewise.
16186         * modules/getpeername (Depends-on): Likewise.
16187         * modules/getsockname (Depends-on): Likewise.
16188         * modules/getsockopt (Depends-on): Likewise.
16189         * modules/getsubopt (Depends-on): Likewise.
16190         * modules/getusershell (Depends-on): Likewise.
16191         * modules/glob (Depends-on): Likewise.
16192         * modules/grantpt (Depends-on): Likewise.
16193         * modules/iconv_open (Depends-on): Likewise.
16194         * modules/iconv_open-utf (Depends-on): Likewise.
16195         * modules/inet_ntop (Depends-on): Likewise.
16196         * modules/inet_pton (Depends-on): Likewise.
16197         * modules/ioctl (Depends-on): Likewise.
16198         * modules/isapipe (Depends-on): Likewise.
16199         * modules/isfinite (Depends-on): Likewise.
16200         * modules/isinf (Depends-on): Likewise.
16201         * modules/lchown (Depends-on): Likewise.
16202         * modules/ldexpl (Depends-on): Likewise.
16203         * modules/link (Depends-on): Likewise.
16204         * modules/linkat (Depends-on): Likewise.
16205         * modules/listen (Depends-on): Likewise.
16206         * modules/logl (Depends-on): Likewise.
16207         * modules/lstat (Depends-on): Likewise.
16208         * modules/mbrlen (Depends-on): Likewise.
16209         * modules/mbrtowc (Depends-on): Likewise.
16210         * modules/mbsinit (Depends-on): Likewise.
16211         * modules/mbsnrtowcs (Depends-on): Likewise.
16212         * modules/mbsrtowcs (Depends-on): Likewise.
16213         * modules/mbtowc (Depends-on): Likewise.
16214         * modules/memcmp (Depends-on): Likewise.
16215         * modules/mkdir (Depends-on): Likewise.
16216         * modules/mkdtemp (Depends-on): Likewise.
16217         * modules/mkfifo (Depends-on): Likewise.
16218         * modules/mkfifoat (Depends-on): Likewise.
16219         * modules/mknod (Depends-on): Likewise.
16220         * modules/mkostemp (Depends-on): Likewise.
16221         * modules/mkostemps (Depends-on): Likewise.
16222         * modules/mkstemp (Depends-on): Likewise.
16223         * modules/mkstemps (Depends-on): Likewise.
16224         * modules/mktime (Depends-on): Likewise.
16225         * modules/nanosleep (Depends-on): Likewise.
16226         * modules/open (Depends-on): Likewise.
16227         * modules/openat (Depends-on): Likewise.
16228         * modules/perror (Depends-on): Likewise.
16229         * modules/poll (Depends-on): Likewise.
16230         * modules/popen (Depends-on): Likewise.
16231         * modules/posix_spawn (Depends-on): Likewise.
16232         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16233         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16234         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16235         * modules/posix_spawnp (Depends-on): Likewise.
16236         * modules/pread (Depends-on): Likewise.
16237         * modules/printf-posix (Depends-on): Likewise.
16238         * modules/ptsname (Depends-on): Likewise.
16239         * modules/putenv (Depends-on): Likewise.
16240         * modules/pwrite (Depends-on): Likewise.
16241         * modules/readline (Depends-on): Likewise.
16242         * modules/readlink (Depends-on): Likewise.
16243         * modules/readlinkat (Depends-on): Likewise.
16244         * modules/recv (Depends-on): Likewise.
16245         * modules/recvfrom (Depends-on): Likewise.
16246         * modules/regex (Depends-on): Likewise.
16247         * modules/remove (Depends-on): Likewise.
16248         * modules/rename (Depends-on): Likewise.
16249         * modules/renameat (Depends-on): Likewise.
16250         * modules/rmdir (Depends-on): Likewise.
16251         * modules/round (Depends-on): Likewise.
16252         * modules/roundf (Depends-on): Likewise.
16253         * modules/roundl (Depends-on): Likewise.
16254         * modules/rpmatch (Depends-on): Likewise.
16255         * modules/select (Depends-on): Likewise.
16256         * modules/send (Depends-on): Likewise.
16257         * modules/sendto (Depends-on): Likewise.
16258         * modules/setenv (Depends-on): Likewise.
16259         * modules/setlocale (Depends-on): Likewise.
16260         * modules/setsockopt (Depends-on): Likewise.
16261         * modules/shutdown (Depends-on): Likewise.
16262         * modules/sigaction (Depends-on): Likewise.
16263         * modules/signbit (Depends-on): Likewise.
16264         * modules/sigprocmask (Depends-on): Likewise.
16265         * modules/sinl (Depends-on): Likewise.
16266         * modules/sleep (Depends-on): Likewise.
16267         * modules/snprintf (Depends-on): Likewise.
16268         * modules/snprintf-posix (Depends-on): Likewise.
16269         * modules/socket (Depends-on): Likewise.
16270         * modules/sprintf-posix (Depends-on): Likewise.
16271         * modules/sqrtl (Depends-on): Likewise.
16272         * modules/stat (Depends-on): Likewise.
16273         * modules/strchrnul (Depends-on): Likewise.
16274         * modules/strdup-posix (Depends-on): Likewise.
16275         * modules/strerror (Depends-on): Likewise.
16276         * modules/strerror_r-posix (Depends-on): Likewise.
16277         * modules/strndup (Depends-on): Likewise.
16278         * modules/strnlen (Depends-on): Likewise.
16279         * modules/strptime (Depends-on): Likewise.
16280         * modules/strsep (Depends-on): Likewise.
16281         * modules/strsignal (Depends-on): Likewise.
16282         * modules/strstr-simple (Depends-on): Likewise.
16283         * modules/strtod (Depends-on): Likewise.
16284         * modules/strtoimax (Depends-on): Likewise.
16285         * modules/strtok_r (Depends-on): Likewise.
16286         * modules/strtoumax (Depends-on): Likewise.
16287         * modules/symlink (Depends-on): Likewise.
16288         * modules/symlinkat (Depends-on): Likewise.
16289         * modules/tanl (Depends-on): Likewise.
16290         * modules/tcgetsid (Depends-on): Likewise.
16291         * modules/tmpfile (Depends-on): Likewise.
16292         * modules/trunc (Depends-on): Likewise.
16293         * modules/truncf (Depends-on): Likewise.
16294         * modules/truncl (Depends-on): Likewise.
16295         * modules/uname (Depends-on): Likewise.
16296         * modules/unlink (Depends-on): Likewise.
16297         * modules/unlockpt (Depends-on): Likewise.
16298         * modules/unsetenv (Depends-on): Likewise.
16299         * modules/usleep (Depends-on): Likewise.
16300         * modules/utimensat (Depends-on): Likewise.
16301         * modules/vasprintf (Depends-on): Likewise.
16302         * modules/vdprintf (Depends-on): Likewise.
16303         * modules/vdprintf-posix (Depends-on): Likewise.
16304         * modules/vfprintf-posix (Depends-on): Likewise.
16305         * modules/vprintf-posix (Depends-on): Likewise.
16306         * modules/vsnprintf (Depends-on): Likewise.
16307         * modules/vsnprintf-posix (Depends-on): Likewise.
16308         * modules/vsprintf-posix (Depends-on): Likewise.
16309         * modules/wcrtomb (Depends-on): Likewise.
16310         * modules/wcscasecmp (Depends-on): Likewise.
16311         * modules/wcscspn (Depends-on): Likewise.
16312         * modules/wcsdup (Depends-on): Likewise.
16313         * modules/wcsncasecmp (Depends-on): Likewise.
16314         * modules/wcsnrtombs (Depends-on): Likewise.
16315         * modules/wcspbrk (Depends-on): Likewise.
16316         * modules/wcsrtombs (Depends-on): Likewise.
16317         * modules/wcsspn (Depends-on): Likewise.
16318         * modules/wcsstr (Depends-on): Likewise.
16319         * modules/wcstok (Depends-on): Likewise.
16320         * modules/wcswidth (Depends-on): Likewise.
16321         * modules/wctob (Depends-on): Likewise.
16322         * modules/wctomb (Depends-on): Likewise.
16323         * modules/wctype (Depends-on): Likewise.
16324         * modules/wcwidth (Depends-on): Likewise.
16325         * modules/write (Depends-on): Likewise.
16326
16327 2011-05-03  Bruno Haible  <bruno@clisp.org>
16328
16329         Support for conditional dependencies.
16330         * doc/gnulib.texi (Module description): Document the syntax of
16331         conditional dependencies.
16332         * gnulib-tool: New option --conditional-dependencies.
16333         (func_usage): Document it.
16334         (cond_dependencies): New variable.
16335         (func_get_automake_snippet_conditional,
16336         func_get_automake_snippet_unconditional): New functions, extracted from
16337         func_get_automake_snippet.
16338         (func_get_automake_snippet): Use them.
16339         (sed_first_32_chars): New variable.
16340         (func_module_shellfunc_name): New function.
16341         (func_module_shellvar_name): New function.
16342         (func_module_conditional_name): New function.
16343         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16344         func_cond_module_condition): New functions.
16345         (func_modules_transitive_closure): Add support for conditional
16346         dependencies.
16347         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16348         conditional automake snippet in an automake conditional.
16349         (func_emit_autoconf_snippets): Emit shell functions that contain the
16350         code for conditional modules.
16351         (func_import, func_create_testdir): Update specification.
16352
16353 2011-05-03  Eric Blake  <eblake@redhat.com>
16354
16355         test-getaddrinfo: report error information
16356         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16357
16358 2011-05-03  Jim Meyering  <meyering@redhat.com>
16359
16360         bootstrap: avoid build failure when $GZIP is set
16361         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16362         program name.  If defined at all, it is supposed to list gzip options.
16363         Reported by Alan Curry in http://debbugs.gnu.org/8609
16364
16365 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16366
16367         readme-release: new module with release instructions
16368         * modules/readme-release: New module.
16369         * top/README-release: New file, from coreutils, grep, diffutils.
16370         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16371
16372 2011-05-02  Eric Blake  <eblake@redhat.com>
16373
16374         fflush: also replace fclose when fixing fflush
16375         * modules/fflush (Depends-on): Add fclose.
16376         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16377         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16378         memstreams with no backing fd.
16379         * doc/posix-functions/fclose.texi (fclose): Document the use of
16380         fflush module to fix the bug.
16381         * tests/test-fclose.c (main): Relax test when fclose is used in
16382         isolation.
16383
16384         fclose: add some tests
16385         * modules/fclose-tests: New test module.
16386         * tests/test-fclose.c: New file.
16387         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16388
16389         fclose: reduced dependencies
16390         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16391         simpler lseek.
16392         * lib/fclose.c (rpl_fclose): Likewise.
16393         Reported by Simon Josefsson.
16394
16395         exit: drop remaining clients
16396         * modules/argmatch (Depends-on): Replace exit with stdlib.
16397         * modules/copy-file (Depends-on): Likewise.
16398         * modules/execute (Depends-on): Likewise.
16399         * modules/exitfail (Depends-on): Likewise.
16400         * modules/obstack (Depends-on): Likewise.
16401         * modules/pagealign_alloc (Depends-on): Likewise.
16402         * modules/pipe-filter-gi (Depends-on): Likewise.
16403         * modules/pipe-filter-ii (Depends-on): Likewise.
16404         * modules/savewd (Depends-on): Likewise.
16405         * modules/spawn-pipe (Depends-on): Likewise.
16406         * modules/wait-process (Depends-on): Likewise.
16407         * modules/xsetenv (Depends-on): Likewise.
16408         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16409         * modules/git-merge-changelog (Depends-on): Likewise.
16410         * modules/long-options (Depends-on): Likewise.
16411         * modules/pt_chown (Depends-on): Likewise.
16412         * modules/sysexits (Depends-on): Likewise.
16413
16414         freading: relax license from LGPLv3+ to LGPLv2+
16415         * modules/freading (License): Relax LGPL version.
16416
16417 2011-05-02  Bruno Haible  <bruno@clisp.org>
16418
16419         fchdir: Remove unused dependencies.
16420         * modules/fchdir (Depends-on): Remove include_next.
16421
16422 2011-05-02  Bruno Haible  <bruno@clisp.org>
16423
16424         gnulib-tool: Refactor.
16425         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16426         from func_emit_autoconf_snippets.
16427         (func_emit_autoconf_snippets): Use it.
16428
16429 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16430
16431         * NEWS: Document removal of 'exit'.
16432         * modules/exit: Remove file.
16433
16434 2011-05-01  Bruno Haible  <bruno@clisp.org>
16435
16436         Update DEPENDENCIES.
16437         * DEPENDENCIES (gettext): Recommend the newest release.
16438         Reported by Simon Josefsson.
16439
16440 2011-05-01  Bruno Haible  <bruno@clisp.org>
16441
16442         gnulib-tool: Reduce code duplication.
16443         * gnulib-tool (func_emit_autoconf_snippets): New function.
16444         (func_import, func_create_testdir): Use it.
16445
16446 2011-04-30  Eric Blake  <eblake@redhat.com>
16447
16448         fclose: don't fail on non-seekable input stream
16449         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16450         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16451         since fflush is allowed to fail in that case.
16452
16453 2011-04-30  Bruno Haible  <bruno@clisp.org>
16454
16455         dup3: cleanup
16456         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16457
16458 2011-04-30  Bruno Haible  <bruno@clisp.org>
16459
16460         netdb: Make it work in C++ mode.
16461         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16462         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16463         module.
16464         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16465         gl_MODULE_INDICATOR_FOR_TESTS.
16466         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16467         * modules/netdb-c++-tests: New file.
16468         * tests/test-netdb-c++.cc: New file.
16469
16470 2011-04-30  Bruno Haible  <bruno@clisp.org>
16471
16472         New modules 'vfscanf', 'vscanf'.
16473         * modules/vfscanf: New file.
16474         * modules/vscanf: New file.
16475         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16476         here.
16477         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16478         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16479
16480 2011-04-30  Bruno Haible  <bruno@clisp.org>
16481
16482         passfd: Add comments.
16483         * lib/passfd.c: Add comments about platforms.
16484
16485 2011-04-30  Bruno Haible  <bruno@clisp.org>
16486
16487         sys_uio: Make <sys/uio.h> self-contained.
16488         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16489         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16490
16491 2011-04-30  Bruno Haible  <bruno@clisp.org>
16492
16493         sys_socket: Ensure 'struct iovec' definition.
16494         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16495         <sys/socket.h>.
16496         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16497
16498 2011-04-30  Bruno Haible  <bruno@clisp.org>
16499
16500         sys_uio: Protect definition of 'struct iovec'.
16501         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16502         it as a C struct.
16503
16504 2011-04-30  Bruno Haible  <bruno@clisp.org>
16505
16506         manywarnings: fix indentation
16507         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16508
16509 2011-04-30  Pádraig Brady <P@draigBrady.com>
16510
16511         manywarnings: add -Wno-missing-field-initializers if needed.
16512         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16513         option if it's needed to allow initialization with { 0, }
16514
16515 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16516
16517         announce-gen: cosmetic improvement
16518         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16519
16520 2011-04-29  Jim Meyering  <meyering@redhat.com>
16521
16522         vc-list-files: indent with spaces, not TABs
16523         * build-aux/vc-list-files: Convert leading TABs to spaces,
16524         to match the style of most other files in gnulib.
16525
16526         announce-gen: indent with spaces, not TABs
16527         * build-aux/announce-gen: Convert all TABs to spaces, to match
16528         the style of most other files in gnulib.
16529
16530 2011-04-29  Eric Blake  <eblake@redhat.com>
16531
16532         quotearg: avoid uninitialized variable use
16533         * lib/quotearg.c (quoting_options_from_style): Initialize
16534         remaining fields, and ensure that custom styles are only used via
16535         quoting_options rather than quoting_style.
16536
16537 2011-04-29  Jim Meyering  <meyering@redhat.com>
16538
16539         maint.mk: remove unused VC-tag variable
16540         * top/maint.mk (VC-tag): Remove unused variable.
16541
16542 2011-04-29  Bruno Haible  <bruno@clisp.org>
16543
16544         netdb: fix gai_strerror replacements
16545         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16546         * modules/netdb: Substitute it.
16547
16548 2011-04-29  Jim Meyering  <meyering@redhat.com>
16549
16550         test-getcwd.c: avoid new set-but-not-used warning
16551         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16552         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16553         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16554         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16555
16556         test-hash.c: avoid a new shadowing warning
16557         * tests/test-hash.c (main): Don't shadow "dup".
16558
16559 2011-04-28  Eric Blake  <eblake@redhat.com>
16560
16561         getaddrinfo: fix gai_strerror signature
16562         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16563         and work around mingw with UNICODE defined.
16564         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16565         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16566         * modules/netdb (Makefile.am): Substitute it.
16567         * lib/netdb.in.h (gai_strerror): Declare replacement.
16568         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16569         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16570         the fix.
16571
16572         getsockopt: avoid compiler warning
16573         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16574         Reported by Matthias Bolte.
16575
16576         tests: drop unused link dependency
16577         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16578         * modules/dirent-safer-tests (Makefile.am): Likewise.
16579         * modules/fdopendir-tests (Makefile.am): Likewise.
16580         * modules/mkfifoat-tests (Makefile.am): Likewise.
16581         * modules/openat-safer-tests (Makefile.am): Likewise.
16582         * modules/openat-tests (Makefile.am): Likewise.
16583         * modules/readlinkat-tests (Makefile.am): Likewise.
16584         * modules/symlinkat-tests (Makefile.am): Likewise.
16585         * modules/linkat-tests (Makefile.am): Likewise.
16586         (Depends-on): Switch to filenamecat-lgpl.
16587         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16588         LIBINTL.
16589         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16590         * tests/test-linkat.c (main): Don't require xalloc.
16591
16592         hash, mgetgroups: drop xalloc dependency
16593         * lib/hash.c (includes): Adjust includes.
16594         * lib/mgetgroups.c (includes): Likewise.
16595         (xgetgroups): Move...
16596         * lib/xgetgroups.c: ...to new file.
16597         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16598         * modules/xgetgroups: New file, split from...
16599         * modules/mgetgroups: ...here.
16600         (Depends-on): Add xalloc-oversized.
16601         * modules/hash (Depends-on): Likewise.
16602         * modules/hash-tests (Depends-on): Drop xalloc.
16603         (test_hash_LDADD): Drop unused library.
16604         * tests/test-hash.c (main): Break xalloc dependency.
16605         (includes): Drop unused include.
16606
16607         xalloc-oversized: new module
16608         * modules/xalloc-oversized: New module.
16609         * modules/xalloc (Depends-on): Add it.
16610         * lib/xalloc.h (xalloc_oversized): Move...
16611         * lib/xalloc-oversized.h: ...into new file.
16612
16613         utimecmp: drop dependency on xmalloc
16614         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16615         due to memory pressure.
16616         * modules/utimecmp (Depends-on): Drop xalloc.
16617
16618 2011-04-27  Eric Blake  <eblake@redhat.com>
16619
16620         getcwd: fix mingw bugs
16621         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16622         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16623         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16624
16625 2011-04-27  Bruno Haible  <bruno@clisp.org>
16626
16627         mkstemps: Ensure declaration on MacOS X 10.5.
16628         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16629         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16630         MacOS X.
16631
16632 2011-04-27  Bruno Haible  <bruno@clisp.org>
16633
16634         mkstemp: More documentation.
16635         * doc/posix-functions/mkstemp.texi: Document header file problem on
16636         MacOS X.
16637
16638 2011-04-27  Bruno Haible  <bruno@clisp.org>
16639
16640         mkstemp: Tweak configure message when cross-compiling.
16641         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16642         result as a guess.
16643
16644 2011-04-27  Bruno Haible  <bruno@clisp.org>
16645
16646         clean-temp: Clarify what it does.
16647         * lib/clean-temp.h: Add more comments.
16648         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16649         module.
16650         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16651         * doc/glibc-functions/mkstemps.texi: Likewise.
16652         * doc/glibc-functions/mkostemps.texi: Likewise.
16653
16654 2011-04-27  Eric Blake  <eblake@redhat.com>
16655
16656         fchdir: avoid extra chdir and fix test
16657         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16658         getcwd-lgpl.
16659         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16660         have to be canonical.
16661         (canonicalize_file_name): Drop unused macro.
16662         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16663
16664         filenamecat-lgpl: fix licence
16665         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16666         when it was first created.
16667
16668         linkat, renameat: add missing dependency
16669         * modules/linkat (Depends-on): Require getcwd-lgpl.
16670         * modules/renameat (Depends-on): Likewise.
16671
16672         tests: reduce dependencies
16673         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16674         * tests/test-renameat.c (main): Likewise.
16675         * modules/linkat-tests (Depends-on): Relax dependency.
16676         * modules/renameat-tests (Depends-on): Likewise.
16677         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16678         dependency explicit.
16679
16680         save-cwd: reduce default dependency
16681         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16682         * lib/save-cwd.c: Update comments.
16683         * NEWS: Document the semantic change.
16684
16685         getcwd: enhance tests
16686         * tests/test-getcwd-lgpl.c: New file, taken from...
16687         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16688         repeat long path stress tests from m4 probe.
16689         * modules/getcwd-lgpl-tests: New module.
16690         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16691         * m4/getcwd-abort-bug.m4: Update comment.
16692         * m4/getcwd-path-max.m4: Likewise.
16693
16694         getcwd-lgpl: new module
16695         * modules/getcwd-lgpl: New module.
16696         * lib/getcwd-lgpl.c: New file.
16697         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16698         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16699         * modules/getcwd (configure.ac): Set C witness.
16700         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16701
16702         getcwd: tweak comments
16703         * m4/getcwd-abort-bug.m4: Fix comments.
16704         * m4/getcwd-path-max.m4: Likewise.
16705         * m4/getcwd.m4: Likewise.
16706
16707 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16708         and Eric Blake  <eblake@redhat.com>
16709
16710         mkstemp: replace if system version uses wrong permissions
16711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16712         read/write mode bits set in file created by mkstemp.
16713         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16714
16715 2011-04-27  Eric Blake  <eblake@redhat.com>
16716
16717         passfd: avoid compiler warning
16718         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16719         Reported by Laine Stump.
16720
16721 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16722
16723         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16724         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16725
16726 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16727         and Eric Blake  <eblake@redhat.com>
16728
16729         mkstemp: mention clean-temp module
16730         * lib/mkstemp.c: Add comment.
16731         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16732
16733 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16734
16735         inttypes: also provide default values for 32-bit tests
16736         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16737         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16738
16739 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16740
16741         strtoumax: remove dependency on strtoimax
16742         This is like the strtoull change of yesterday.
16743         * modules/strtoumax (Files): Add lib/strtoimax.c.
16744         (Depends-on): Remove strtoimax and add verify.
16745
16746         inttypes-incomplete: new module
16747         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16748         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16749         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16750         of gl_INTTYPES_H.
16751         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16752         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16753         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16754         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16755         * modules/strtoumax, modules/xstrtol (Depends-on):
16756         Depend on inttypes-incomplete, not inttypes.
16757         * modules/inttypes-incomplete: New module, containing the contents
16758         of the old modules/inttypes module, except that the Files: section
16759         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16760         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16761         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16762         (Depends-on): Depend only on inttypes-incomplete.
16763         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16764
16765         inttypes: omit now-redundant strtoimax and strtoumax work
16766         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16767         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16768
16769         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16770         This supports apps that need pointers to strtoimax and strtoumax,
16771         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16772         nonexistent functions.  See
16773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16774         et seq.
16775         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16776         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16777         a macro.
16778         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16779
16780 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16781
16782         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16783
16784 2011-04-25  Bruno Haible  <bruno@clisp.org>
16785
16786         strtol, strtoul: Mark modules as obsolete.
16787         * modules/strtol (Status, Notice): New sections.
16788         * modules/strtoul (Status, Notice): New sections.
16789
16790 2011-04-25  Bruno Haible  <bruno@clisp.org>
16791
16792         strtod: Remove check for strtod, unless supporting old platforms.
16793         * modules/strtod-obsolete: New file.
16794         * m4/strtod-obsolete.m4: New file.
16795         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16796         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16797         * modules/strtod (Depends-on): Add strtod-obsolete.
16798         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16799
16800 2011-04-25  Bruno Haible  <bruno@clisp.org>
16801
16802         strcase: Make module obsolete.
16803         * modules/strcase (Status, Notice): New sections.
16804
16805 2011-04-25  Bruno Haible  <bruno@clisp.org>
16806
16807         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16808         * modules/dup2-obsolete: New file.
16809         * m4/dup2-obsolete.m4: New file.
16810         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16811         gl_FUNC_DUP2_OBSOLETE is not also defined.
16812         * modules/dup2 (Depends-on): Add dup2-obsolete.
16813         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16814
16815 2011-04-25  Bruno Haible  <bruno@clisp.org>
16816
16817         strnlen: Avoid memchr related link error on old obsolete platforms.
16818         * modules/memchr-obsolete: New file.
16819         * m4/memchr-obsolete.m4: New file.
16820         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16821         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16822         * modules/memchr (Depends-on): Add memchr-obsolete.
16823         * modules/strnlen (Depends-on): Likewise.
16824         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16825
16826 2011-04-25  Jim Meyering  <meyering@redhat.com>
16827
16828         maint.mk: makefile_at_at_check extend and clean up
16829         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16830         in addition to */Makefile.am.
16831         Exempt legitimate uses of @VAR@ notation, e.g.,
16832         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16833         Remove obsolete coreutils-specific comment.
16834         Prompted by discussion here:
16835         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16836
16837 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16838
16839         strtoul: remove dependency on strtol
16840         This is so that 'configure' need not check for strtol merely because
16841         the application needs strtoul.
16842         * modules/strtoul (Files): Add lib/strtol.c.
16843         (Depends-on): Remove strtol.
16844
16845         strtoull: remove dependency on strtoul
16846         This is like the strtoll change.
16847         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16848         (Depends-on): Remove strtoul.
16849
16850         strtoll: remove dependency on strtol
16851         This is so that 'configure' need not check for strtol merely because
16852         the application needs strtoll.
16853         * modules/strtoll (Files): Add lib/strtol.c.
16854         (Depends-on): Remove strtol.
16855
16856 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16857
16858         inttypes: Move some configure check to module 'imaxdiv'.
16859         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16860         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16861         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16862
16863 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16864
16865         inttypes: Move some configure check to module 'imaxabs'.
16866         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16867         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16868         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16869
16870 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16871
16872         inttypes: Remove configure tests that are not needed since 2009-12-31.
16873         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16874         gl_cv_header_working_inttypes_h.
16875
16876 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16877
16878         * modules/strnlen (Depends-on): Remove memchr.
16879         The strnlen implementation doesn't need the memchr module's fixes; see
16880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16881
16882         strtol: remove dependency on wchar
16883         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16884         * modules/strtol (Depends-on): Remove wchar.
16885
16886 2011-04-21  Eric Blake  <eblake@redhat.com>
16887
16888         passfd: fix test regression on Linux
16889         * modules/passfd-tests (configure.ac): Correct socketpair check.
16890
16891         passfd: speed up configure and drop unused code
16892         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16893         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16894         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16895         Instead of probing at configure for unix_scm_rights_bsd44_way,
16896         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16897         check to a struct member probe.
16898         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16899         (sendfd, recvfd): Update preprocessor checks.
16900         * modules/passfd (Files): Reflect rename, and drop unused file.
16901         (Depends-on): Drop unused dependency.
16902
16903         passfd: allow compilation on mingw
16904         * modules/sys_socket (Depends-on): Add sys_uio.
16905         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16906         iovec and a minimal struct msghdr.
16907         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16908         * tests/test-sys_socket.c (main): Enhance test.
16909         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16910         guaranteed to provide what we need.
16911         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16912         * modules/passfd-tests (Depends-on): Add sys_wait.
16913         * tests/test-passfd.c (main): Skip test on mingw, for now.
16914         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16915         partial 'struct msghdr' implementation.
16916
16917         sys_uio: new module
16918         * modules/sys_uio: New module.
16919         * modules/sys_uio-tests: Likewise.
16920         * lib/sys_uio.in.h: New file.
16921         * m4/sys_uio_h.m4: Likewise.
16922         * tests/test-sys_uio.c: Likewise.
16923         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16924         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16925
16926 2011-04-20  Jim Meyering  <meyering@redhat.com>
16927
16928         useless-if-before-free: avoid false-positive
16929         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16930         disjunct so that it too requires a terminating ";".  Without that,
16931         this script would identify as useless one statement from gcc that
16932         was not:
16933           if (aligned_ptr)
16934             free (((void **) aligned_ptr) [-1]);
16935
16936 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16937
16938         doc: update users.txt.
16939         * users.txt: Add barcode.
16940
16941 2011-04-19  Bruno Haible  <bruno@clisp.org>
16942
16943         ioctl: Remove link dependency on native Windows.
16944         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16945         (gl_close_fn, gl_ioctl_fn): New types.
16946         (struct fd_hook): Renamed from struct close_hook. Change type of
16947         private_close_fn field. Add private_ioctl_fn field.
16948         (close_hook_fn): Add parameter for primary close method.
16949         (execute_close_hooks, execute_all_close_hooks): Likewise.
16950         (ioctl_hook_fn): New type.
16951         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16952         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16953         argument.
16954         (unregister_fd_hook): Renamed from unregister_close_hook.
16955         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16956         Don't include <unistd.h>.
16957         (close): Remove undef.
16958         (anchor): Update.
16959         (execute_close_hooks): Add argument for primary close method.
16960         (execute_all_close_hooks): Likewise.
16961         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16962         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16963         argument. Allow each argument to be NULL.
16964         (unregister_fd_hook): Renamed from unregister_close_hook.
16965         * lib/close.c (rpl_close): Pass 'close' function pointer to
16966         execute_all_close_hooks.
16967         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16968         (primary_ioctl): New function.
16969         (ioctl): Don't call ioctlsocket here. Instead, call
16970         execute_all_ioctl_hooks.
16971         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16972         close method.
16973         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16974         (fd_sockets_hook): Renamed from close_sockets_hook.
16975         (gl_sockets_startup, gl_sockets_cleanup): Update.
16976         * modules/fd-hook: Renamed from modules/close-hook. Update.
16977         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16978         * modules/sockets (Depends-on): Likewise.
16979         * modules/ioctl (Depends-on): Add fd-hook.
16980         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16981         GNULIB_SOCKET.
16982
16983 2011-04-19  Bruno Haible  <bruno@clisp.org>
16984
16985         Move the support of O_NONBLOCK in open() to the 'open' module.
16986         * modules/nonblocking (Depends-on): Remove 'open'.
16987         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16988         gl_cv_have_open_O_NONBLOCK.
16989         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16990         O_NONBLOCK support.
16991         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16992
16993 2011-04-17  Bruno Haible  <bruno@clisp.org>
16994
16995         pipe2: Simplify code.
16996         * lib/pipe2.c (pipe2): Reduce code duplication.
16997
16998 2011-04-17  Bruno Haible  <bruno@clisp.org>
16999
17000         nonblocking: Add comment.
17001         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17002
17003 2011-04-17  Bruno Haible  <bruno@clisp.org>
17004
17005         nonblocking: Add tests for sockets.
17006         * tests/test-nonblocking-socket.sh: New file.
17007         * tests/test-nonblocking-socket-main.c: New file.
17008         * tests/test-nonblocking-socket-child.c: New file.
17009         * tests/test-nonblocking-socket.h: New file.
17010         * tests/socket-server.h: New file.
17011         * tests/socket-client.h: New file.
17012         * modules/nonblocking-socket-tests: New file.
17013         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17014
17015 2011-04-17  Bruno Haible  <bruno@clisp.org>
17016
17017         nonblocking: Add tests for pipes.
17018         * tests/test-nonblocking-pipe.sh: New file.
17019         * tests/test-nonblocking-pipe-main.c: New file.
17020         * tests/test-nonblocking-pipe-child.c: New file.
17021         * tests/test-nonblocking-pipe.h: New file.
17022         * tests/test-nonblocking-writer.h: New file.
17023         * tests/test-nonblocking-reader.h: New file.
17024         * tests/test-nonblocking-misc.h: New file.
17025         * modules/nonblocking-pipe-tests: New file.
17026         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17027
17028 2011-04-16  Bruno Haible  <bruno@clisp.org>
17029
17030         gettext: Clarify the needed programmer actions.
17031         * modules/gettext (Notice): New field.
17032         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17033
17034 2011-04-16  Bruno Haible  <bruno@clisp.org>
17035
17036         strchrnul: Tweak last commit.
17037         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17038         bug.
17039         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17040         as in _GL_FUNCDECL_SYS.
17041         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17042         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17043
17044 2011-04-15  Eric Blake  <eblake@redhat.com>
17045
17046         strchrnul: work around cygwin bug
17047         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17048         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17050         * modules/string (Makefile.am): Substitute it.
17051         * lib/string.in.h (strchrnul): Use it.
17052
17053 2011-04-15  Bruno Haible  <bruno@clisp.org>
17054
17055         Don't require lib/stdio-write.c when only module 'stdio' is used.
17056         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17057         invocation.
17058         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17059
17060 2011-04-14  Bruno Haible  <bruno@clisp.org>
17061
17062         Support non-blocking pipe I/O in read() on native Windows.
17063         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17064         (read): New declaration.
17065         * lib/read.c: New file.
17066         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17067         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17068         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17069         vscanf): New declarations.
17070         * lib/stdio-read.c: New file.
17071         * m4/read.m4: New file.
17072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17073         REPLACE_READ.
17074         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17075         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17076         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17077         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17078         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17079         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17080         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17081         * modules/read: New file.
17082         * modules/nonblocking (Files): Add lib/stdio-read.c.
17083         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17084         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17085         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17086         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17087         * modules/pread (Depends-on): Add read.
17088         * modules/safe-read (Depends-on): Likewise.
17089         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17090         gets, scanf, vfscanf, vscanf): Verify signatures.
17091         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17092         problem with non-blocking pipes.
17093         * doc/posix-functions/fgetc.texi: Likewise.
17094         * doc/posix-functions/fgets.texi: Likewise.
17095         * doc/posix-functions/fread.texi: Likewise.
17096         * doc/posix-functions/fscanf.texi: Likewise.
17097         * doc/posix-functions/getc.texi: Likewise.
17098         * doc/posix-functions/getchar.texi: Likewise.
17099         * doc/posix-functions/gets.texi: Likewise.
17100         * doc/posix-functions/scanf.texi: Likewise.
17101         * doc/posix-functions/vfscanf.texi: Likewise.
17102         * doc/posix-functions/vscanf.texi: Likewise.
17103
17104 2011-04-14  Bruno Haible  <bruno@clisp.org>
17105
17106         Support non-blocking pipe I/O in write() on native Windows.
17107         * lib/write.c (rpl_write): Split a write request that failed merely
17108         because the byte count was larger than the pipe buffer's size.
17109         * doc/posix-functions/write.texi: Mention the problem with large byte
17110         counts.
17111
17112 2011-04-14  Bruno Haible  <bruno@clisp.org>
17113
17114         wchar: Ensure that wchar_t gets defined on uClibc.
17115         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17116         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17117
17118 2011-04-13  Bruno Haible  <bruno@clisp.org>
17119
17120         safe-write, full-read: Avoid unnecessary compilation units.
17121         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17122         (Depends-on): Remove safe-read. Add ssize_t.
17123         * modules/full-read (Files): Add lib/full-write.c.
17124         (Depends-on): Add full-write.
17125
17126 2011-04-13  Bruno Haible  <bruno@clisp.org>
17127
17128         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17129         * modules/pwrite (Depends-on): Add 'write'.
17130
17131 2011-04-13  Bruno Haible  <bruno@clisp.org>
17132
17133         Support non-blocking pipe I/O in write() on native Windows.
17134         * lib/unistd.in.h (write): Enable replacement also if
17135         GNULIB_UNISTD_H_NONBLOCKING is 1.
17136         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17137         (rpl_write): When failing to write on a non-blocking pipe, change
17138         errno from ENOSPC to EAGAIN.
17139         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17140         putchar, puts, vfprintf, vprintf): Enable replacement also if
17141         GNULIB_STDIO_H_NONBLOCKING is 1.
17142         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17143         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17144         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17145         CALL_WITH_SIGPIPE_EMULATION.
17146         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17147         * m4/nonblocking.m4: New file.
17148         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17149         for non-blocking I/O support.
17150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17151         GNULIB_UNISTD_H_NONBLOCKING.
17152         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17153         required for non-blocking I/O support.
17154         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17155         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17156         lib/stdio-write.c, m4/asm-underscore.m4.
17157         (Depends-on): Add stdio, unistd.
17158         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17159         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17160         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17161         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17162         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17163         problem with non-blocking pipes.
17164         * doc/posix-functions/fputc.texi: Likewise.
17165         * doc/posix-functions/fputs.texi: Likewise.
17166         * doc/posix-functions/fwrite.texi: Likewise.
17167         * doc/posix-functions/printf.texi: Likewise.
17168         * doc/posix-functions/putc.texi: Likewise.
17169         * doc/posix-functions/putchar.texi: Likewise.
17170         * doc/posix-functions/puts.texi: Likewise.
17171         * doc/posix-functions/vfprintf.texi: Likewise.
17172         * doc/posix-functions/vprintf.texi: Likewise.
17173         * doc/posix-functions/write.texi: Likewise.
17174
17175 2011-04-10  Jim Meyering  <meyering@redhat.com>
17176
17177         maint.mk: prohibit doubled words
17178         Detect them also when they're separated by a newline.
17179         There are 3 ways to customize it:
17180           - disable the test on a per file basis, as usual with rules using
17181             $(VC_LIST_EXCEPT)
17182           - replace the default doubled-word-selecting regexp (affects all files)
17183           - ignore a particular file-vs-doubled-word match
17184         I nearly used that last one to ignore the "is is" match in
17185         coreutils' NEWS file, since the text was "ls -is is ..."
17186         To do that, I would have added this line to cfg.mk:
17187           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17188         but it would have ignored any "is is" match in NEWS.
17189         Low probability, but still...
17190         Instead, I changed the text, slightly:
17191           -  ls -is is now consistent with ls -lis in ignoring values returned
17192           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17193         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17194         (prohibit_doubled_word_): Define.
17195         (sc_prohibit_doubled_word): New rule.
17196         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17197
17198 2011-04-10  Jim Meyering  <meyering@redhat.com>
17199
17200         maint: fix doubled-word typo in comment
17201         * m4/gethostname.m4: s/is is/it is/
17202         * m4/getdomainname.m4: Likewise.
17203
17204 2011-04-10  Jim Meyering  <meyering@redhat.com>
17205
17206         maint: remove doubled word: s/it it/it/
17207         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17208
17209 2011-04-10  Jim Meyering  <meyering@redhat.com>
17210
17211         maint.mk: remove useless semicolon and backslash
17212         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17213         semicolon and backslash.
17214
17215 2011-04-10  Bruno Haible  <bruno@clisp.org>
17216
17217         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17218         * modules/stdint-tests (Depends-on): Add wchar.
17219
17220 2011-04-10  Jim Meyering  <meyering@redhat.com>
17221
17222         maint: remove doubled words in comments, e.g., s/a a/a/
17223         * lib/strptime.c (day_of_the_week): s/the the/the/
17224         * tests/test-chown.h (test_chown): s/a a/a/
17225
17226         test-chown.h: correct a cast
17227         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17228         when the destination is a stat.st_gid.
17229
17230 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17231
17232         getaddrinfo: Fix test for sa_len member.
17233         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17234         include <sys/types.h> before <sys/socket.h>.
17235
17236 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17237
17238         maint: change "can not" to "cannot"
17239         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17240         boundaries.
17241
17242 2011-04-09  Jim Meyering  <meyering@redhat.com>
17243
17244         maint: change "a a" to "a"
17245         * tests/test-lchown.h (test_lchown): s/a a/a/
17246
17247         maint.mk: prohibit \<the the\>
17248         * top/maint.mk (sc_prohibit_the_the): New rule.
17249
17250         maint: fix "the the" in comment
17251         * lib/count-one-bits.h: s/the the/the/
17252
17253         maint: change "can not" to "cannot"
17254         But do not change the occurrences in maintain.texi or in
17255         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17256         * doc/gnulib-tool.texi: s/can not/cannot/
17257         * doc/posix-functions/accept.texi (accept): Likewise.
17258         * doc/posix-functions/socket.texi (socket): Likewise.
17259         * lib/mbrtowc.c: Likewise.
17260
17261         maint.mk: prohibit use of "can not"
17262         * top/maint.mk (sc_prohibit_can_not): New rule.
17263         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17264
17265 2011-04-09  Bruno Haible  <bruno@clisp.org>
17266
17267         careadlinkat: Guard against misuse of careadlinkatcwd.
17268         * lib/careadlinkat.c: Include <stdlib.h>.
17269         (careadlinkatcwd): Check that the fd argument is as expected.
17270
17271 2011-04-09  Bruno Haible  <bruno@clisp.org>
17272
17273         careadlinkat: Use common coding style.
17274         * lib/careadlinkat.c: Move gnulib includes after system includes.
17275
17276 2011-04-09  Bruno Haible  <bruno@clisp.org>
17277
17278         careadlinkat: Clarify specification.
17279         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17280         (careadlinkatcwd): Add comment.
17281         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17282
17283 2011-04-09  Bruno Haible  <bruno@clisp.org>
17284
17285         areadlinkat: Avoid link error on many platforms.
17286         * modules/areadlinkat (Depends-on): Add areadlink.
17287
17288 2011-04-09  Bruno Haible  <bruno@clisp.org>
17289
17290         allocator, careadlinkat: Fix double-inclusion guard.
17291         * lib/allocator.h: Fix double-inclusion guard.
17292         * lib/careadlinkat.h: Likewise.
17293
17294 2011-04-09  Bruno Haible  <bruno@clisp.org>
17295
17296         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17297         * lib/relocwrapper.c: Update dependencies hierarchy.
17298         * build-aux/install-reloc: Update list of files to be compiled.
17299         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17300         lib/allocator.[hc].
17301
17302 2011-04-08  Eric Blake  <eblake@redhat.com>
17303
17304         strftime: silence gnulib-tool warning
17305         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17306
17307 2011-04-08  Bruno Haible  <bruno@clisp.org>
17308
17309         verify: Fix syntax error with GCC 4.6 in C++ mode.
17310         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17311         (HAVE_STATIC_ASSERT): New macro.
17312         (verify_true, verify): Use 'static_assert' if it is supported and
17313         '_Static_assert' is not supported.
17314
17315 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17316
17317         allocator: New module.
17318         * modules/allocator, lib/allocator.c: New files.
17319         * lib/allocator.h (stdlib_allocator): New decl.
17320         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17321         Remove.  Do not include <stdlib.h>.
17322         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17323         * modules/careadlinkat (Files): Remove lib/allocator.h.
17324         (Depends-on): Add allocator.
17325
17326         stdlib: let modules use system malloc, realloc
17327         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17328         if !_GL_USE_STDLIB_ALLOC.
17329         (malloc, realloc): Limit this change to a smaller scope.
17330
17331         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17332         (malloc, realloc): Don't #undef; no longer needed.
17333         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17334         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17335         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17336         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17337         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17338         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17339         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17340         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17341
17342         careadlinkat: rename members to avoid problem
17343         * lib/allocator.h (struct allocator): Rename members from
17344         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17345         and realloc are #define'd.  Reported by Eric Blake in
17346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17347         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17348
17349 2011-04-08  Eric Blake  <eblake@redhat.com>
17350
17351         nonblocking: reduce dependency
17352         * tests/test-nonblocking.c: Only test sockets when in use.
17353         * modules/nonblocking-tests (Depends-on): Drop socket.
17354         (Makefile.am): Link even if sockets are not present.
17355         * modules/pipe2-tests (Makefile.am): Likewise.
17356         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17357
17358         pipe2: fix O_NONBLOCK support on mingw
17359         * modules/pipe2 (Depends-on): Add nonblocking.
17360         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17361         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17362         * tests/test-nonblocking.c (main): Likewise.
17363         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17364
17365         fcntl-h: fix O_ACCMODE on cygwin
17366         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17367         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17368
17369         pipe-filter: drop O_NONBLOCK workarounds
17370         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17371         * modules/pipe-filter-ii (Depends-on): Likewise.
17372         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17373
17374         nonblocking: provide O_NONBLOCK for mingw
17375         * modules/nonblocking (Depends-on): Add open.
17376         (configure.ac): Set new witness macro.
17377         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17378         * modules/fcntl-h (Makefile.am): Substitute it.
17379         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17380         nonblocking module is in use.
17381         * lib/nonblocking.c: Adjust portability test.
17382         * lib/open.c (open): Don't let native open see gnulib flag.
17383         * tests/test-fcntl-h.c (main): Enhance test.
17384         * tests/test-open.h (test_open): Likewise.
17385         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17386
17387         careadlinkat: fix compilation error on mingw
17388         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17389         within struct allocator.
17390
17391 2011-04-06  Eric Blake  <eblake@redhat.com>
17392
17393         binary-io: relicense under LGPLv2+
17394         * modules/binary-io (License): Relax to LGPLv2+.
17395         Requested for libvirt, and required by pipe2.
17396
17397 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17398
17399         verify: use _Static_assert if available
17400         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17401         (verify_true, verify): Use it if available.  This generates better
17402         diagnostics with GCC 4.6.0 and later.
17403
17404 2011-04-05  Bruno Haible  <bruno@clisp.org>
17405
17406         Remove leftover generated .h files after config.status changed.
17407
17408         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17409         GL_GENERATE_ALLOCA_H.
17410         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17411         GL_GENERATE_ALLOCA_H evaluates to false.
17412
17413         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17414         GL_GENERATE_ARGZ_H.
17415         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17416         evaluates to false.
17417
17418         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17419         GL_GENERATE_BYTESWAP_H.
17420         * modules/byteswap (Makefile.am): Remove byteswap.h if
17421         GL_GENERATE_BYTESWAP_H evaluates to false.
17422
17423         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17424         GL_GENERATE_ERRNO_H.
17425         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17426         evaluates to false.
17427
17428         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17429         GL_GENERATE_FLOAT_H.
17430         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17431         evaluates to false.
17432
17433         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17434         GL_GENERATE_FNMATCH_H.
17435         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17436         GL_GENERATE_FNMATCH_H evaluates to false.
17437
17438         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17439         GL_GENERATE_GLOB_H.
17440         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17441         evaluates to false.
17442
17443         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17444         automake conditional GL_GENERATE_ICONV_H.
17445         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17446         evaluates to false.
17447
17448         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17449         GL_GENERATE_NETINET_IN_H.
17450         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17451         GL_GENERATE_NETINET_IN_H evaluates to false.
17452
17453         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17454         conditional GL_GENERATE_PTHREAD_H.
17455         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17456         * modules/pthread (Makefile.am): Remove pthread.h if
17457         GL_GENERATE_PTHREAD_H evaluates to false.
17458
17459         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17460         GL_GENERATE_SCHED_H.
17461         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17462         evaluates to false.
17463
17464         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17465         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17466         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17467         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17468
17469         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17470         GL_GENERATE_STDARG_H.
17471         * modules/stdarg (Makefile.am): Remove stdarg.h if
17472         GL_GENERATE_STDARG_H evaluates to false.
17473
17474         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17475         GL_GENERATE_STDBOOL_H.
17476         * modules/stdbool (Makefile.am): Remove stdbool.h if
17477         GL_GENERATE_STDBOOL_H evaluates to false.
17478
17479         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17480         conditional GL_GENERATE_STDDEF_H.
17481         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17482         * modules/stddef (Makefile.am): Remove stddef.h if
17483         GL_GENERATE_STDDEF_H evaluates to false.
17484
17485         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17486         GL_GENERATE_STDINT_H.
17487         * modules/stdint (Makefile.am): Remove stdint.h if
17488         GL_GENERATE_STDINT_H evaluates to false.
17489
17490         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17491         GL_GENERATE_SYSEXITS_H.
17492         * modules/sysexits (Makefile.am): Remove sysexits.h if
17493         GL_GENERATE_SYSEXITS_H evaluates to false.
17494
17495         Reported by Karl Berry and Ralf Wildenhues.
17496
17497 2011-04-05  Bruno Haible  <bruno@clisp.org>
17498
17499         Ensure to rebuild generated .h files when config.status has changed.
17500         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17501         config.status.
17502         * modules/ctype (Makefile.am): Likewise.
17503         * modules/dirent (Makefile.am): Likewise.
17504         * modules/errno (Makefile.am): Likewise.
17505         * modules/fcntl-h (Makefile.am): Likewise.
17506         * modules/float (Makefile.am): Likewise.
17507         * modules/getopt-posix (Makefile.am): Likewise.
17508         * modules/glob (Makefile.am): Likewise.
17509         * modules/iconv-h (Makefile.am): Likewise.
17510         * modules/inttypes (Makefile.am): Likewise.
17511         * modules/langinfo (Makefile.am): Likewise.
17512         * modules/locale (Makefile.am): Likewise.
17513         * modules/math (Makefile.am): Likewise.
17514         * modules/netdb (Makefile.am): Likewise.
17515         * modules/netinet_in (Makefile.am): Likewise.
17516         * modules/poll-h (Makefile.am): Likewise.
17517         * modules/pthread (Makefile.am): Likewise.
17518         * modules/pty (Makefile.am): Likewise.
17519         * modules/sched (Makefile.am): Likewise.
17520         * modules/search (Makefile.am): Likewise.
17521         * modules/selinux-h (Makefile.am): Likewise.
17522         * modules/signal (Makefile.am): Likewise.
17523         * modules/spawn (Makefile.am): Likewise.
17524         * modules/stdarg (Makefile.am): Likewise.
17525         * modules/stdbool (Makefile.am): Likewise.
17526         * modules/stddef (Makefile.am): Likewise.
17527         * modules/stdint (Makefile.am): Likewise.
17528         * modules/stdio (Makefile.am): Likewise.
17529         * modules/stdlib (Makefile.am): Likewise.
17530         * modules/string (Makefile.am): Likewise.
17531         * modules/strings (Makefile.am): Likewise.
17532         * modules/sys_file (Makefile.am): Likewise.
17533         * modules/sys_ioctl (Makefile.am): Likewise.
17534         * modules/sys_select (Makefile.am): Likewise.
17535         * modules/sys_socket (Makefile.am): Likewise.
17536         * modules/sys_stat (Makefile.am): Likewise.
17537         * modules/sys_time (Makefile.am): Likewise.
17538         * modules/sys_times (Makefile.am): Likewise.
17539         * modules/sys_utsname (Makefile.am): Likewise.
17540         * modules/sys_wait (Makefile.am): Likewise.
17541         * modules/sysexits (Makefile.am): Likewise.
17542         * modules/termios (Makefile.am): Likewise.
17543         * modules/time (Makefile.am): Likewise.
17544         * modules/unistd (Makefile.am): Likewise.
17545         * modules/wchar (Makefile.am): Likewise.
17546         * modules/wctype-h (Makefile.am): Likewise.
17547         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17548
17549 2011-04-05  Bruno Haible  <bruno@clisp.org>
17550
17551         pipe2: Relicense under LGPLv2+.
17552         * modules/pipe2 (License): Change to LGPLv2+.
17553         Requested by Eric Blake, for libvirt.
17554
17555 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17556
17557         bootstrap: compute gnulib_extra_files after updating build_aux
17558         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17559         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17560
17561 2011-04-05  Eric Blake  <eblake@redhat.com>
17562
17563         bootstrap: preserve git whitelist item sorting
17564         * build-aux/bootstrap (sort_patterns): New function.
17565         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17566
17567 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17568
17569         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17570         sc_space_tab check.
17571
17572 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17573
17574         areadlink, areadlinkat: rewrite in terms of careadlinkat
17575         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17576         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17577         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17578         (malloc, realloc): Remove #undefs.
17579         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17580         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17581         readlink, ssize_t, stdint, unistd.
17582         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17583         areadlink, stdint.
17584
17585         careadlinkat: new module
17586         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17587         * modules/careadlinkat: New files, written by me with
17588         a review and feedback from Ben Pfaff in
17589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17590
17591 2011-04-01  Bruno Haible  <bruno@clisp.org>
17592
17593         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17594         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17595         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17596         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17597         Reported by Bruce Korb <bruce.korb@gmail.com>.
17598
17599 2011-04-01  Bruno Haible  <bruno@clisp.org>
17600
17601         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17602         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17603         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17604         * modules/wcpcpy (Depends-on): Add extensions.
17605         * modules/wcpncpy (Depends-on): Likewise.
17606         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17607         systems.
17608         * doc/posix-functions/wcpncpy.texi: Likewise.
17609         * doc/posix-functions/wcwidth.texi: Likewise.
17610
17611 2011-03-31  Eric Blake  <eblake@redhat.com>
17612
17613         nonblocking: fix mingw test failures
17614         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17615         non-blocking flag on regular file.
17616         (get_nonblocking_flag): Set errno on invalid fd.
17617         * tests/test-nonblocking.c (main): Avoid test failure on
17618         directories if fchdir is not active.
17619         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17620
17621 2011-03-31  Bruno Haible  <bruno@clisp.org>
17622
17623         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17624         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17625         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17626         Reported by Simon Josefsson <simon@josefsson.org>.
17627
17628 2011-03-31  Bruno Haible  <bruno@clisp.org>
17629         and Eric Blake  <eblake@redhat.com>
17630
17631         nonblocking: new module
17632         * modules/nonblocking: New module.
17633         * modules/nonblocking-tests: Likewise.
17634         * lib/nonblocking.h: New file.
17635         * lib/nonblocking.c: Likewise.
17636         * tests/test-nonblocking.c: New test.
17637         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17638
17639 2011-03-30  Bruno Haible  <bruno@clisp.org>
17640
17641         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17642         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17643         instead of 'printf' format for GCC >= 4.4.
17644         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17645         (fprintf, printf, vfprintf, vprintf): Declare with
17646         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17647         the system's vfprintf() function.
17648         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17649
17650 2011-03-30  Eric Blake  <eblake@redhat.com>
17651
17652         passfd: fix scoping bug
17653         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17654         before sendmsg/recvmsg.
17655
17656         passfd: standardize coding conventions
17657         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17658         can be learned at compile time.
17659         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17660         ifdefs.
17661         (sendfd, recvfd): Follow gnulib code conventions.
17662
17663         passfd: fix incorrect sendmsg arguments
17664         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17665         incorrect msg_controllen value.
17666         * modules/passfd-tests (Depends-on): Check for alarm.
17667         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17668         Reported by Bastien ROUCARIES.
17669
17670 2011-03-30  Bruno Haible  <bruno@clisp.org>
17671
17672         c-strcasestr: Relicense under LGPLv2+.
17673         * modules/c-strcasestr (License): Change to LGPLv2+.
17674         Requested by Eric Blake, for libvirt.
17675
17676 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17677
17678         * users.txt: Add libidn2.  Fix libtasn1 link.
17679
17680 2011-03-30  Jim Meyering  <meyering@redhat.com>
17681
17682         tests: readlink* ("",... fails with EINVAL on newer kernels
17683         readlink and readlinkat have typically failed with ENOENT for
17684         the invalid, empty file name,  "".  However, with the advent
17685         of linux-2.6.39, they fail with EINVAL.
17686         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17687         when operating on the empty file name.
17688         * tests/test-readlink.h (test_readlink): Likewise.
17689
17690 2011-03-29  Bruno Haible  <bruno@clisp.org>
17691
17692         Relicense some modules under LGPLv2+, for libidn2.
17693         * modules/array-mergesort (License): Change to LGPLv2+.
17694         * modules/c-strcaseeq (License): Likewise.
17695         * modules/striconveh (License): Likewise.
17696         * modules/striconveha (License): Likewise.
17697         * modules/uniconv/base (License): Likewise.
17698         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17699         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17700         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17701         * modules/unictype/base (License): Likewise.
17702         * modules/unictype/bidiclass-of (License): Likewise.
17703         * modules/unictype/category-M (License): Likewise.
17704         * modules/unictype/category-none (License): Likewise.
17705         * modules/unictype/category-of (License): Likewise.
17706         * modules/unictype/category-test (License): Likewise.
17707         * modules/unictype/category-test-withtable (License): Likewise.
17708         * modules/unictype/combining-class (License): Likewise.
17709         * modules/unictype/joiningtype-of (License): Likewise.
17710         * modules/unictype/scripts (License): Likewise.
17711         * modules/uninorm/base (License): Likewise.
17712         * modules/uninorm/canonical-decomposition (License): Likewise.
17713         * modules/uninorm/composition (License): Likewise.
17714         * modules/uninorm/decompose-internal (License): Likewise.
17715         * modules/uninorm/decomposition-table (License): Likewise.
17716         * modules/uninorm/nfc (License): Likewise.
17717         * modules/uninorm/nfd (License): Likewise.
17718         * modules/uninorm/u32-normalize (License): Likewise.
17719         * modules/unistr/base (License): Likewise.
17720         * modules/unistr/u32-cpy (License): Likewise.
17721         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17722         * modules/unistr/u32-to-u8 (License): Likewise.
17723         * modules/unistr/u32-uctomb (License): Likewise.
17724         * modules/unistr/u8-check (License): Likewise.
17725         * modules/unistr/u8-mblen (License): Likewise.
17726         * modules/unistr/u8-mbtouc (License): Likewise.
17727         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17728         * modules/unistr/u8-mbtoucr (License): Likewise.
17729         * modules/unistr/u8-prev (License): Likewise.
17730         * modules/unistr/u8-strlen (License): Likewise.
17731         * modules/unistr/u8-to-u32 (License): Likewise.
17732         * modules/unistr/u8-uctomb (License): Likewise.
17733         * modules/unitypes (License): Likewise.
17734         Requested by Simon Josefsson.
17735
17736 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17737
17738         lib-symbol-visibility: Add a notice.
17739         * modules/lib-symbol-visibility (Notice): New field.
17740
17741 2011-03-29  Bruno Haible  <bruno@clisp.org>
17742
17743         getaddrinfo: Doc fix.
17744         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17745         section "fixed in Gnulib".
17746
17747 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17748
17749         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17750         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17751
17752 2011-03-26  Bruno Haible  <bruno@clisp.org>
17753
17754         unictype/property-byname: Reduce the number of load-time relocations.
17755         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17756         (UC_PROPERTY_INDEX_*): New enumeration values.
17757         (uc_property_byname): Convert an index from the lookup table to an
17758         uc_property_t.
17759         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17760         values.
17761
17762 2011-03-26  Bruno Haible  <bruno@clisp.org>
17763
17764         unictype/property-byname: Allow omitted word separators and aliases.
17765         * lib/unictype/pr_byname.gperf: Add property names without word
17766         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17767         for 'space'.
17768
17769 2011-03-26  Bruno Haible  <bruno@clisp.org>
17770
17771         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17772         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17773         also hyphens to space.
17774         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17775         without spaces.
17776         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17777
17778 2011-03-26  Bruno Haible  <bruno@clisp.org>
17779
17780         unictype/joiningtype-byname: Recognize long names as well.
17781         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17782         a long name.
17783         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17784         unictype/joiningtype_byname.h.
17785         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17786         * lib/unictype/joiningtype_byname.gperf: New file.
17787         * modules/unictype/joiningtype-byname (Files): Add
17788         lib/unictype/joiningtype_byname.gperf.
17789         (Depends-on): Add gperf.
17790         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17791         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17792         long names.
17793
17794         Tests for module 'unictype/joiningtype-longname'.
17795         * modules/unictype/joiningtype-longname-tests: New file.
17796         * tests/unictype/test-joiningtype_longname.c: New file.
17797
17798         New module 'unictype/joiningtype-longname'.
17799         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17800         * lib/unictype/joiningtype_longname.c: New file.
17801         * modules/unictype/joiningtype-longname: New file.
17802         * modules/unictype/joiningtype-all (Depends-on): Add
17803         unictype/joiningtype-longname.
17804
17805 2011-03-26  Bruno Haible  <bruno@clisp.org>
17806
17807         unictype/bidiclass-byname: Recognize long names as well.
17808         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17809         name.
17810         * lib/unictype/bidi_byname.c: Include <string.h>,
17811         unictype/bidi_byname.h.
17812         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17813         * lib/unictype/bidi_byname.gperf: New file.
17814         * modules/unictype/bidiclass-byname (Files): Add
17815         lib/unictype/bidi_byname.gperf.
17816         (Depends-on): Add gperf.
17817         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17818         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17819         long names.
17820
17821         Tests for module 'unictype/bidiclass-longname'.
17822         * modules/unictype/bidiclass-longname-tests: New file.
17823         * tests/unictype/test-bidi_longname.c: New file.
17824
17825         New module 'unictype/bidiclass-longname'.
17826         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17827         * lib/unictype/bidi_longname.c: New file.
17828         * modules/unictype/bidiclass-longname: New file.
17829         * modules/unictype/bidiclass-all (Depends-on): Add
17830         unictype/bidiclass-longname.
17831
17832 2011-03-26  Bruno Haible  <bruno@clisp.org>
17833
17834         unictype/bidi*: Rename modules.
17835         * modules/unictype/bidiclass-all: Renamed from
17836         modules/unictype/bidicategory-all.
17837         * modules/unictype/bidiclass-name: Renamed from
17838         modules/unictype/bidiclass-name.
17839         (Description): Update.
17840         * modules/unictype/bidiclass-name-tests: Renamed from
17841         modules/unictype/bidicategory-name-tests.
17842         * modules/unictype/bidiclass-byname: Renamed from
17843         modules/unictype/bidicategory-byname.
17844         (Description): Update.
17845         * modules/unictype/bidiclass-byname-tests: Renamed from
17846         modules/unictype/bidicategory-byname-tests.
17847         * modules/unictype/bidiclass-of: Renamed from
17848         modules/unictype/bidicategory-of.
17849         (Description): Update.
17850         * modules/unictype/bidiclass-of-tests: Renamed from
17851         modules/unictype/bidicategory-of-tests.
17852         * modules/unictype/bidiclass-test: Renamed from
17853         modules/unictype/bidicategory-test.
17854         (Description): Update.
17855         * modules/unictype/bidiclass-test-tests: Renamed from
17856         modules/unictype/bidicategory-test-tests.
17857         * modules/unictype/bidicategory-all: New file, a simple redirection.
17858         * modules/unictype/bidicategory-name: Likewise.
17859         * modules/unictype/bidicategory-byname: Likewise.
17860         * modules/unictype/bidicategory-of: Likewise.
17861         * modules/unictype/bidicategory-test: Likewise.
17862         * modules/unictype/property-bidi-* (Dependencies): Update.
17863         * lib/unictype/bidi_*.c: Update comment.
17864
17865 2011-03-26  Bruno Haible  <bruno@clisp.org>
17866
17867         unictype/bidi*: Rename functions, part 2.
17868         * modules/unictype/bidicategory-name (configure.ac): Update required
17869         libunistring version.
17870         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17871
17872 2011-03-25  Bruno Haible  <bruno@clisp.org>
17873
17874         New module 'unictype/combining-class-all'.
17875         * modules/unictype/combining-class-all: New file.
17876
17877         Tests for module 'unictype/combining-class-byname'.
17878         * modules/unictype/combining-class-byname-tests: New file.
17879         * tests/unictype/test-combiningclass_byname.c: New file.
17880
17881         New module 'unictype/combining-class-byname'.
17882         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17883         * lib/unictype/combiningclass_byname.c: New file.
17884         * lib/unictype/combiningclass_byname.gperf: New file.
17885         * modules/unictype/combining-class-byname: New file.
17886
17887         Tests for module 'unictype/combining-class-longname'.
17888         * modules/unictype/combining-class-longname-tests: New file.
17889         * tests/unictype/test-combiningclass_longname.c: New file.
17890
17891         New module 'unictype/combining-class-longname'.
17892         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17893         * lib/unictype/combiningclass_longname.c: New file.
17894         * modules/unictype/combining-class-longname: New file.
17895
17896         Tests for module 'unictype/combining-class-name'.
17897         * modules/unictype/combining-class-name-tests: New file.
17898         * tests/unictype/test-combiningclass_name.c: New file.
17899
17900         New module 'unictype/combining-class-name'.
17901         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17902         * lib/unictype/combiningclass_name.c: New file.
17903         * modules/unictype/combining-class-name: New file.
17904
17905 2011-03-25  Bruno Haible  <bruno@clisp.org>
17906
17907         unictype/combining-class: Rename source files.
17908         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17909         of unictype/combining.h.
17910         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17911         Update.
17912         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17913         * modules/unictype/combining-class (Description): Fix.
17914         (Files, Makefile.am): Update.
17915         * tests/unictype/test-combiningclass.c: Renamed from
17916         tests/unictype/test-combining.c.
17917         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17918
17919 2011-03-25  Bruno Haible  <bruno@clisp.org>
17920
17921         unictype: Update list of canonical combining classes.
17922         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17923
17924 2011-03-25  Bruno Haible  <bruno@clisp.org>
17925
17926         unictype/category-byname: Recognize long names as well.
17927         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17928         a long name.
17929         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17930         unictype/categ_byname.h.
17931         (UC_CATEGORY_INDEX_*): New enumeration values.
17932         (uc_general_category_byname): Use uc_general_category_lookup and
17933         convert from index to value.
17934         * lib/unictype/categ_byname.gperf: New file.
17935         * modules/unictype/category-byname (Files): Add
17936         lib/unictype/categ_byname.gperf.
17937         (Depends-on): Add gperf.
17938         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17939         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17940         long names.
17941
17942         Tests for module 'unictype/category-longname'.
17943         * modules/unictype/category-longname-tests: New file.
17944         * tests/unictype/test-categ_longname.c: New file.
17945
17946         New module 'unictype/category-longname'.
17947         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17948         * lib/unictype/categ_longname.c: New file.
17949         * modules/unictype/category-longname: New file.
17950         * modules/unictype/category-all (Depends-on): Add it.
17951
17952 2011-03-25  Bruno Haible  <bruno@clisp.org>
17953
17954         Tests for module 'unictype/category-LC'.
17955         * modules/unictype/category-LC-tests: New file.
17956         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17957
17958         New module 'unictype/category-LC'.
17959         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17960         (UC_CATEGORY_LC): New declaration.
17961         (UC_CASED_LETTER): New macro.
17962         * lib/gen-uni-tables.c (is_category_LC): New function.
17963         (output_categories): Also handle category LC.
17964         (UC_CATEGORY_MASK_LC): New enumeration value.
17965         (general_category_byname): Also handle category LC.
17966         * lib/unictype/categ_LC.c: New file.
17967         * lib/unictype/categ_LC.h: New file, automatically generated.
17968         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17969         category LC.
17970         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17971         * modules/unictype/category-LC: New file.
17972         * modules/unictype/category-byname (Depends-on): Add
17973         unictype/category-LC.
17974         * modules/unictype/category-all (Depends-on): Likewise.
17975
17976 2011-03-25  Eric Blake  <eblake@redhat.com>
17977
17978         xmalloc: revert yesterday's regression
17979         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17980         realloc's underlying behavior (allowing allocation of zero-size
17981         objects, especially if malloc-gnu is also in use).
17982
17983 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17984
17985         maint.mk: add missing version to VC-tag
17986         * top/maint.mk: git tag was missing actual tag name; add it.
17987
17988         valgrind: do leak checking, and exit with code 1 on error (not 0)
17989         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17990         to VALGRIND.
17991
17992 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17993
17994         posix-modules: say what it does.
17995         * posix-modules: Add a line to the --help output saying what it does.
17996
17997 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17998
17999         xmalloc: Do not leak if underlying realloc is C99 compatible.
18000         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18001         This avoids a leak on C99-based systems.  See
18002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18003
18004 2011-03-24  Eric Blake  <eblake@redhat.com>
18005
18006         realloc: document portability problem
18007         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18008         passing 0 size to realloc.
18009
18010 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18011
18012         doc: update users.txt
18013         * users.txt: Add cvsps, tmpwatch
18014
18015 2011-03-23  Matt Rice  <ratmice@gmail.com>
18016
18017         doc: update users.txt
18018         * users.txt: Add gdb.
18019
18020 2011-03-23  Jim Meyering  <meyering@redhat.com>
18021
18022         doc: update users.txt
18023         Looking through matches up to the following URL (there are still
18024         several more pages), I found several projects that use gnulib:
18025         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18026         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18027         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18028
18029 2011-03-22  Bruno Haible  <bruno@clisp.org>
18030
18031         unictype/bidi*: Rename functions.
18032         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18033         uc_bidi_class, uc_is_bidi_class): New declarations.
18034         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18035         uc_bidi_category_byname.
18036         (uc_bidi_category_byname): New function.
18037         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18038         u_bidi_category_name.
18039         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18040         (uc_bidi_category_name): New function.
18041         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18042         uc_bidi_category.
18043         (uc_bidi_category): New function.
18044         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18045         uc_is_bidi_category. Invoke uc_bidi_class.
18046         (uc_is_bidi_category): New function.
18047         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18048         instead of uc_bidi_category_byname.
18049         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18050         instead of uc_bidi_category_name.
18051         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18052         uc_bidi_category.
18053         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18054         instead of uc_is_bidi_category.
18055
18056 2011-03-21  Bruno Haible  <bruno@clisp.org>
18057
18058         New module 'unictype/joininggroup-all'.
18059         * modules/unictype/joininggroup-all: New file.
18060
18061         Tests for module 'unictype/joininggroup-of'.
18062         * modules/unictype/joininggroup-of-tests: New file.
18063         * tests/unictype/test-joininggroup_of.c: New file.
18064         * tests/unictype/test-joininggroup_of.h: New file, automatically
18065         generated by gen-uni-tables.
18066
18067         New module 'unictype/joininggroup-of'.
18068         * modules/unictype/joininggroup-of: New file.
18069         * lib/unictype/joininggroup_of.c: New file.
18070         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18071         gen-uni-tables.
18072
18073         Tests for module 'unictype/joininggroup-byname'.
18074         * modules/unictype/joininggroup-byname-tests: New file.
18075         * tests/unictype/test-joininggroup_byname.c: New file.
18076
18077         New module 'unictype/joininggroup-byname'.
18078         * modules/unictype/joininggroup-byname: New file.
18079         * lib/unictype/joininggroup_byname.c: New file.
18080         * lib/unictype/joininggroup_byname.gperf: New file.
18081
18082         Tests for module 'unictype/joininggroup-name'.
18083         * modules/unictype/joininggroup-name-tests: New file.
18084         * tests/unictype/test-joininggroup_name.c: New file.
18085
18086         New module 'unictype/joininggroup-name'.
18087         * modules/unictype/joininggroup-name: New file.
18088         * lib/unictype/joininggroup_name.c: New file.
18089         * lib/unictype/joininggroup_name.h: New file.
18090
18091         New module 'unictype/joiningtype-all'.
18092         * modules/unictype/joiningtype-all: New file.
18093
18094         Tests for module 'unictype/joiningtype-of'.
18095         * modules/unictype/joiningtype-of-tests: New file.
18096         * tests/unictype/test-joiningtype_of.c: New file.
18097         * tests/unictype/test-joiningtype_of.h: New file, automatically
18098         generated by gen-uni-tables.
18099
18100         New module 'unictype/joiningtype-of'.
18101         * modules/unictype/joiningtype-of: New file.
18102         * lib/unictype/joiningtype_of.c: New file.
18103         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18104         gen-uni-tables.
18105
18106         Tests for module 'unictype/joiningtype-byname'.
18107         * modules/unictype/joiningtype-byname-tests: New file.
18108         * tests/unictype/test-joiningtype_byname.c: New file.
18109
18110         New module 'unictype/joiningtype-byname'.
18111         * modules/unictype/joiningtype-byname: New file.
18112         * lib/unictype/joiningtype_byname.c: New file.
18113
18114         Tests for module 'unictype/joiningtype-name'.
18115         * modules/unictype/joiningtype-name-tests: New file.
18116         * tests/unictype/test-joiningtype_name.c: New file.
18117
18118         New module 'unictype/joiningtype-name'.
18119         * modules/unictype/joiningtype-name: New file.
18120         * lib/unictype/joiningtype_name.c: New file.
18121
18122         unictype: Add support for Arabic shaping properties.
18123         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18124         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18125         declarations.
18126         (UC_JOINING_GROUP_*): New enumeration values.
18127         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18128         declarations.
18129         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18130         (unicode_joining_type): New variable.
18131         (UC_JOINING_GROUP_*): New enumeration values.
18132         (unicode_joining_group): New variable.
18133         (fill_arabicshaping, joining_type_as_c_identifier,
18134         output_joining_type_test, output_joining_type,
18135         joining_group_as_c_identifier, output_joining_group_test,
18136         output_joining_group): New functions.
18137         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18138         fill_arabicshaping and output_joining_type_test, output_joining_type,
18139         output_joining_group_test, output_joining_group.
18140         Reported by Simon Josefsson.
18141
18142 2011-03-21  Jim Meyering  <meyering@redhat.com>
18143
18144         strftime: fix a bug in yesterday's change
18145         * lib/strftime.c (add): Accommodate width's initial value of -1.
18146         Otherwise, nstrftime would copy uninitialized data into
18147         the result buffer.
18148
18149 2011-03-21  Jim Meyering  <meyering@redhat.com>
18150
18151         tests: add strftime-tests module
18152         * tests/test-strftime.c: New file.
18153         * modules/strftime-tests: New module.
18154
18155 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18156
18157         strftime: don't assume a byte count fits in 'int'
18158         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18159         found this problem by static analysis, using gcc -Wstrict-overflow
18160         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18161         on an integer overflow having undefined behavior, but it turns out
18162         that the argument is a size, which might not fit in 'int' anyway,
18163
18164 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18165
18166         stdio: don't require ignore_value around fwrite
18167
18168         This patch works around libc bug 11959
18169         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18170         Without this patch, applications must often write
18171         ignore_value (fwrite (...)) even though the ignore_value is
18172         not helpful here.  It's common to write many objects, using
18173         fwrite/printf/etc., and then use ferror to detect output error.
18174
18175         I considered making this patch optional, but decided against it,
18176         because libc is obviously being inconsistent here: there is no
18177         reason libc should insist that user code must inspect fwrite
18178         return's value without also insisting that it inspect printf's,
18179         putchar's, etc.  If user code wants to have a strict style where
18180         all these functions' values are checked (so that ferror need not
18181         be checked), we could add support for that style in a new gnulib
18182         module, but in the meantime it's better to be consistent and to
18183         support common usage.
18184
18185         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18186         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18187         that we are compiling in checking mode, and if not C++, and
18188         if not already wrapping fwrite for some other reason.
18189         (fwrite): #define to rpl_fwrite if the latter is defined.
18190
18191 2011-03-20  Bruno Haible  <bruno@clisp.org>
18192
18193         verror: Fix compilation error introduced on 2011-02-13.
18194         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18195         instead of __attribute__.
18196         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18197
18198 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18199             Bruno Haible  <bruno@clisp.org>
18200
18201         socklen: do not depend on sys_socket
18202         While trying to modify Emacs to use gnulib's socklen module,
18203         I discovered a circular dependency: socklen depends on sys_socket
18204         and vice versa.  Emacs can use socklen, but it does not need
18205         sys_socket because it has its own substitute for sys/socket.h.
18206         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18207         gl_TYPE_SOCKLEN_T.
18208         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18209         gl_PREREQ_SYS_H_SOCKET.
18210         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18211         gl_PREREQ_SYS_H_SOCKET.
18212         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18213         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18214         * modules/socklen (Depends-on): Do not depend on sys_socket.
18215         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18216
18217 2011-03-20  Jim Meyering  <meyering@redhat.com>
18218
18219         maint.mk: sort file names *after* new transformation
18220         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18221         prefix would have led to an unwarranted failure in GNU parted.
18222         Sort after that transformation.
18223
18224 2011-03-19  Jim Meyering  <meyering@redhat.com>
18225
18226         maint.mk: fix po-file syntax-check rule
18227         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18228         Patch by Bruno Haible.
18229
18230 2011-03-19  Bruno Haible  <bruno@clisp.org>
18231
18232         socklen: Update comment.
18233         * m4/socklen.m4: Update comment about platforms.
18234
18235 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18236             Bruno Haible  <bruno@clisp.org>
18237
18238         inet_ntop, inet_pton: Simplify.
18239         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18240         documented to provide socklen_t and we already depend on sys_socket.
18241         * modules/inet_pton (Depends-on): Likewise.
18242         * lib/arpa_inet.in.h: Adjust comment.
18243
18244 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18245             Bruno Haible  <bruno@clisp.org>
18246
18247         netdb: Simplify.
18248         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18249         documented to provide socklen_t and we already depend on sys_socket.
18250         * lib/netdb.in.h: Adjust comment.
18251
18252 2011-03-19  Bruno Haible  <bruno@clisp.org>
18253
18254         sys_socket, netdb: Document problem with socklen_t.
18255         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18256         platforms.
18257         * doc/posix-headers/netdb.texi: Likewise.
18258
18259 2011-03-18  Eric Blake  <eblake@redhat.com>
18260
18261         maint.mk: let po check work in VPATH build
18262         * top/maint.mk (po_file): Allow cfg.mk override.
18263         (sc_po_check): Allow VPATH use.
18264         Reported by Jiri Denemark.
18265
18266 2011-03-16  Jim Meyering  <meyering@redhat.com>
18267
18268         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18269         Before, you would have had to create one .x-sc_ file per rule in order
18270         to exempt offending files.  Now, you may instead use a Make variable --
18271         usually defined in cfg.mk -- whose name identifies the affected rule.
18272         * top/maint.mk (_sc_excl): Define.
18273         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18274         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18275
18276 2011-03-13  Bruno Haible  <bruno@clisp.org>
18277
18278         ignore-value tests: Avoid warnings.
18279         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18280         empty for gcc < 3.4.
18281
18282 2011-03-13  Bruno Haible  <bruno@clisp.org>
18283
18284         passfd: Fix link error on Solaris.
18285         * modules/passfd (Description): Correct.
18286         (Depends-on): Add socketlib.
18287         (Link): New section.
18288         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18289
18290 2011-03-13  Bruno Haible  <bruno@clisp.org>
18291
18292         passfd: Fix link error on AIX 5.2.
18293         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18294
18295 2011-03-13  Bruno Haible  <bruno@clisp.org>
18296
18297         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18298         * lib/sys_socket.in.h: Include <stddef.h>.
18299         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18300         CMSG_FIRSTHDR. Remove unused variable.
18301
18302 2011-03-13  Bruno Haible  <bruno@clisp.org>
18303
18304         passfd: Fix compilation error on OpenBSD.
18305         * lib/passfd.c: Include <sys/uio.h>.
18306
18307 2011-03-13  Bruno Haible  <bruno@clisp.org>
18308
18309         passfd test: Fix warnings.
18310         * tests/test-passfd.c: Include <sys/wait.h>.
18311         (main): Fix typo.
18312
18313 2011-03-13  Bruno Haible  <bruno@clisp.org>
18314
18315         passfd module, part 4, tweaks.
18316         * tests/test-passfd.c: Reorder includes.
18317         (main): Fix perror and printf calls.
18318
18319 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18320
18321         passfd module, part 4.
18322         * modules/passfd-tests: New file.
18323         * tests/test-passfd.c: New file.
18324
18325 2011-03-13  Jim Meyering  <meyering@redhat.com>
18326
18327         Makefile: rely on GNU make; derive syntax-check rule names
18328         Rather than requiring that each sc_ rule be listed as a dependent
18329         of "check", use features of GNU make to derive the list.
18330         * Makefile (syntax-check-rules): Define.
18331         (check): Depend on the new variable, not the hard-coded list.
18332
18333 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18334             Bruno Haible  <bruno@clisp.org>
18335
18336         passfd module, part 3.
18337         * lib/passfd.h (recvfd): Add a flags argument.
18338         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18339         (recvfd): Add a flags argument.
18340         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18341         exists.
18342         * modules/passfd (Depends-on): Add cloexec.
18343         Suggested by Eric Blake.
18344
18345 2011-03-13  Bruno Haible  <bruno@clisp.org>
18346
18347         passfd module, part 2, tweaks.
18348         * modules/passfd (Files): Reorder.
18349         (Depends-on): Remove errno.
18350         (Include): Remove <sys/socket.h>, <sys/un.h>.
18351         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18352         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18353         specification header. Include <sys/socket.h> always. Don't include
18354         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18355         (sendfd): Clarify that it sets errno when it fails.
18356         (recvfd): Fix specification.
18357
18358 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18359
18360         passfd module, part 2.
18361         * modules/passfd: New file.
18362         * lib/passfd.h: New file.
18363         * lib/passfd.c: New file.
18364
18365 2011-03-12  Bruno Haible  <bruno@clisp.org>
18366
18367         wcswidth, mbswidth: Avoid integer overflow.
18368         * lib/wcswidth.c: Include <limits.h>.
18369         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18370         * lib/mbswidth.c: Include <limits.h>.
18371         (mbsnwidth): Avoid 'int' overflow.
18372         Reported by Jim Meyering.
18373
18374 2011-03-12  Bruno Haible  <bruno@clisp.org>
18375
18376         futimens, utimensat: Avoid endless recursion on Solaris 10.
18377         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18378         Solaris.
18379         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18380         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18381
18382 2011-03-11  Jim Meyering  <meyering@redhat.com>
18383
18384         maint.mk: relax a regexp to accommodate other formatting styles
18385         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18386         between "ngettext" and the following "(".
18387
18388 2011-03-11  Pádraig Brady <P@draigBrady.com>
18389
18390         maint.mk: suppress a false positive warning
18391         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18392         diagnostics are marked with ngettext.
18393
18394 2011-03-10  Eric Blake  <eblake@redhat.com>
18395
18396         wchar: add explicit dependencies, for Tru64
18397         * modules/mbmemcasecoll (Depends-on): Add wchar.
18398         * modules/mbtowc (Depends-on): Likewise.
18399         * modules/vasnprintf (Depends-on): Likewise.
18400         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18401         * modules/wctomb (Depends-on): Likewise.
18402         Reported by Peter O'Gorman.
18403
18404 2011-03-08  Bruno Haible  <bruno@clisp.org>
18405
18406         passfd module, part 1, tweaks.
18407         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18408         Improve indentation. Improve AC_MSG_CHECKING messages.
18409         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18410         gl_SOCKET_FAMILIES.
18411
18412 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18413
18414         passfd module, part 1.
18415         * m4/afunix.m4: New file.
18416         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18417         sockets.
18418
18419 2011-03-08  Bruno Haible  <bruno@clisp.org>
18420
18421         regex-quote: New API.
18422         * lib/regex-quote.h: Include <stdbool.h>.
18423         (struct regex_quote_spec): New type.
18424         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18425         New declarations.
18426         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18427         'const struct regex_quote_spec *' argument.
18428         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18429         (pcre_special): New constant.
18430         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18431         New functions.
18432         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18433         'const struct regex_quote_spec *' argument.
18434         * modules/regex-quote (Depends-on): Add stdbool.
18435         * tests/test-regex-quote.c (check): Update for new API. Add test for
18436         anchored results.
18437         * NEWS: Mention the API change.
18438         Reported by Reuben Thomas and Eric Blake.
18439
18440 2011-03-06  Bruno Haible  <bruno@clisp.org>
18441
18442         regex-quote: Fix creation of POSIX extended regular expressions.
18443         * lib/regex-quote.c (ere_special): Add grouping and alternation
18444         operators.
18445
18446 2011-03-05  Bruno Haible  <bruno@clisp.org>
18447
18448         doc: Improve doc regarding autopoint vs. gnulib.
18449         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18450         disable autopoint while running autoreconf.
18451         Suggested by Ralf Wildenhues.
18452
18453 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18454
18455         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18456         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18457
18458 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18459
18460         parse-duration: remove xalloc.h dependency
18461         * lib/parse-duration.c (parse_period): handle NULL return from
18462         strdup instead of calling xstrdup().
18463         * modules/parse-duration: remove "xalloc" dependency
18464
18465 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18466
18467         bootstrap: honor m4_base when running aclocal
18468         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18469
18470 2011-03-02  Jim Meyering  <meyering@redhat.com>
18471
18472         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18473         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18474         on request from Matt Booth.
18475
18476 2011-03-01  Eric Blake  <eblake@redhat.com>
18477
18478         test-link: work on Hurd
18479         * tests/test-link.h (test_link): Hurd rejects linking directories
18480         with EISDIR instead of the POSIX-mandated EPERM.
18481
18482 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18483
18484         stdio: simplify by moving files to printf-posix, sigpipe
18485         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18486         since this symbol is needed only if printf is replaced.
18487         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18488         Require gl_ASM_SYMBOL_PREFIX.
18489         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18490         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18491         (Depends-on): Add 'raise'.
18492         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18493         * modules/stdio (Files): Remove lib/stdio-write.c,
18494         m4/asm-underscore.m4.
18495         (Depends-on): Remove 'raise'.
18496
18497         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18498         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18499         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18500         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18501
18502 2011-02-28  Bruno Haible  <bruno@clisp.org>
18503
18504         localcharset: Assume ANSI C behaviour of free().
18505         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18506         calling free().
18507         Suggested by Simon Josefsson <simon@josefsson.org>.
18508
18509 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18510             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18511             Bruno Haible  <bruno@clisp.org>  (tiny change)
18512
18513         On Cygwin, use /proc file system instead of win32 API.
18514         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18515         Win32 file names.
18516         (DllMain): Simplify by removing Cygwin specific code.
18517         (find_shared_library_fullname): Use Linux specific implementation also
18518         for Cygwin.
18519         (get_shared_library_fullname): Update accordingly.
18520         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18521         Win32 file names.
18522         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18523         Cygwin specific code.
18524
18525 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18526             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18527
18528         Fix OpenMP flag detection for various Fortran compilers.
18529         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18530         OpenMP-conditional compilation construct, to force compile
18531         failure with missing OpenMP flag.
18532         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18533
18534 2011-02-25  Eric Blake  <eblake@redhat.com>
18535
18536         strstr: expand test coverage
18537         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18538         compilation.
18539         * tests/test-memmem.c (main): Duplicate tests.
18540         * tests/test-strcasestr.c (main): Likewise.
18541         * tests/test-c-strcasestr.c (main): Likewise.
18542
18543 2011-02-25  Jim Meyering  <meyering@redhat.com>
18544
18545         maint.mk: detect missing-NL-at-EOF, too
18546         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18547         it also detects when a file lacks a newline at EOF.
18548         (require_exactly_one_NL_at_EOF_): Renamed from
18549         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18550         since people may well have .x-sc_... file names tied to the
18551         existing name.  Suggested by Eric Blake.
18552
18553 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18554
18555         dirname: move m4/dos.m4 functionality into lib/dosname.h
18556
18557         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18558         extracts symbols from it, puts them into config.h; but it's much
18559         easier to use the symbols directly.  filename.h already does this,
18560         but it disagrees with dos.m4 in some respects.  This patch
18561         introduces a different include file dosname.h that packages up
18562         dos.m4, and then later we can work on merging filename.h and
18563         dosname.h.  Applications that need only the easy-to-configure
18564         symbols should consider including dosname.h rather than dirname.h.
18565         * NEWS: Mention incompatible changes.
18566         * m4/dos.m4: Remove.
18567         * lib/dosname.h, modules/dosname: New files.
18568         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18569         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18570         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18571         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18572         Include dosname.h, not dirname.h.
18573         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18574         Include dosname.h, for definitions of symbols like ISSLASH
18575         that used to be in config.h.
18576         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18577         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18578         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18579         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18580         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18581         * modules/rmdir (Files): Likewise.
18582         * modules/stat (Files): Likewise.
18583         * modules/unlink (Files): Likewise.
18584         * modules/dirname-lgpl (Depends-on): Add dosname.
18585         * modules/lstat (Depends-on): Likewise.
18586         * modules/openat (Depends-on): Likewise.
18587         * modules/rmdir (Depends-on): Likewise.
18588         * modules/savewd (Depends-on): Likewise.
18589         * modules/stat (Depends-on): Likewise.
18590         * modules/unlink (Depends-on): Likewise.
18591         * modules/openat (Depends-on): Remove dirname-lgpl.
18592         * modules/savewd (Depends-on): Likewise.
18593         * tests/test-dirname.c: Do not use removed symbols like
18594         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18595         the remaining symbols, e.g., ISSLASH ('\\').
18596
18597 2011-02-25  Eric Blake  <eblake@redhat.com>
18598
18599         strstr: revert patches that introduced bug and pessimization
18600         * lib/str-two-way.h: Add another reference.
18601         (two_way_short_needle, two_way_long_needle): Revert changes from
18602         2011-02-24; they pessimize search speed.
18603         (critical_factorization): Partially revert changes from
18604         2010-06-22; they violate the requirement that the left half of the
18605         needle be smaller than the period of the needle.
18606
18607 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18608
18609         filenamecat: remove unnecessary dependency on dirname-lgpl
18610         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18611         is no direct dependency, just an indirect one via filenamecat-lgpl.
18612
18613         remove: remove unnecessary use of m4/dos.m4
18614         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18615         * modules/remove (FILES): Remove m4/dos.m4.
18616
18617         * lib/openat-proc.c: Don't include dirname.h; not needed.
18618
18619         backupfile: remove unnecessary use of m4/dos.m4
18620         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18621         of its symbols are used by the backupfile code.  backupfile.c does
18622         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18623         for the rare case of programs that want all their backup file
18624         names to live within 8+3 limits, and dos.m4 doesn't address that.
18625         * modules/backupfile (Files): Remove m4/dos.m4.
18626
18627 2011-02-24  Jim Meyering  <meyering@redhat.com>
18628
18629         strstr: fix a bug whereby strstr would mistakenly return NULL
18630         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18631         in period calculation.
18632         (two_way_long_needle): Likewise.
18633         The original problem was reported by Mike Stump in
18634         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18635         Ralf Wildenhues provided the short needle and haystack.
18636         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18637         Add a more involved test to trigger the bug in two_way_long_needle.
18638
18639 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18640
18641         gnulib-tool: remove use of bold display in help screen
18642         * gnulib-tool (func_usage): Do not use bold display anymore in the
18643         help screen.  That was just meant to be a temporary emphasis for a
18644         backward-incompatible change.
18645
18646 2011-02-23  Bruno Haible  <bruno@clisp.org>
18647
18648         Fix misindentation of preprocessor directives.
18649         * lib/argp-namefrob.h: Reindent preprocessor directives.
18650         * lib/getopt_int.h (struct _getopt_data): Likewise.
18651         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18652         * lib/vasnprintf.c (decode_long_double): Likewise.
18653         * tests/test-argmatch.c: Insert blank lines, for clarity.
18654         * tests/test-exclude.c: Likewise.
18655
18656 2011-02-22  Bruno Haible  <bruno@clisp.org>
18657
18658         ioctl: Fix for MacOS X in 64-bit mode.
18659         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18660         value.
18661         Suggested by Eric Blake.
18662         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18663
18664 2011-02-22  Jim Meyering  <meyering@redhat.com>
18665
18666         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18667         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18668         in lib/.
18669
18670 2011-02-22  Eric Blake  <eblake@redhat.com>
18671
18672         maint: avoid any CDPATH issue
18673         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18674
18675         maint: adjust cpp indentation for my modules, as well
18676         * Makefile (sc_cpp_indent_check): Add my name.
18677         * lib/fbufmode.c: Filter through cppi.
18678         * lib/fpurge.c: Likewise.
18679         * lib/freadable.c: Likewise.
18680         * lib/freading.c: Likewise.
18681         * lib/fwritable.c: Likewise.
18682         * lib/fwriting.c: Likewise.
18683         * lib/sigaction.c: Likewise.
18684
18685 2011-02-22  Jim Meyering  <meyering@redhat.com>
18686
18687         maint: adjust cpp indentation to reflect nesting depth
18688         I.e., in a block of code that begins with an unnested "#if",
18689         put one space between the "#" in column 1 and following token.
18690         For example,
18691         -#include <sys/vfs.h>
18692         +# include <sys/vfs.h>
18693         Do this only in .c files that are part of a module I maintain.
18694         * lib/linkat.c: Filter through cppi.
18695         * lib/nanosleep.c: Likewise.
18696         * lib/openat.c: Likewise.
18697         * lib/openat-die.c: Likewise.
18698         * lib/dup3.c: Likewise.
18699         * lib/fchownat.c: Likewise.
18700         * lib/flock.c: Likewise.
18701         * lib/fsync.c: Likewise.
18702         * lib/fts.c: Likewise.
18703         * lib/getpass.c: Likewise.
18704         * lib/gettimeofday.c: Likewise.
18705         * lib/userspec.c: Likewise.
18706         * Makefile (sc_cpp_indent_check): New rule, to check this.
18707
18708 2011-02-22  Bruno Haible  <bruno@clisp.org>
18709
18710         New module 'wctomb'.
18711         * lib/stdlib.in.h (wctomb): New declaration.
18712         * lib/wctomb.c: New file.
18713         * lib/wctomb-impl.h: New file.
18714         * m4/wctomb.m4: New file.
18715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18716         REPLACE_WCTOMB.
18717         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18718         REPLACE_WCTOMB.
18719         * modules/wctomb: New file.
18720         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18721         * doc/posix-functions/wctomb.texi: Mention the new module.
18722         * modules/wctob (Depends-on): Add wctomb.
18723
18724 2011-02-22  Bruno Haible  <bruno@clisp.org>
18725
18726         New module 'mbtowc'.
18727         * lib/stdlib.in.h (mbtowc): New declaration.
18728         * lib/mbtowc.c: New file.
18729         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18730         * m4/mbtowc.m4: New file.
18731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18732         REPLACE_MBTOWC.
18733         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18734         REPLACE_MBTOWC.
18735         * modules/mbtowc: New file.
18736         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18737         * doc/posix-functions/mbtowc.texi: Mention the new module.
18738         * modules/btowc (Depends-on): Add mbtowc.
18739
18740 2011-02-22  Bruno Haible  <bruno@clisp.org>
18741
18742         wcrtomb: Add more tests for native Windows platforms.
18743         * tests/test-wcrtomb-w32-1.sh: New file.
18744         * tests/test-wcrtomb-w32-2.sh: New file.
18745         * tests/test-wcrtomb-w32-3.sh: New file.
18746         * tests/test-wcrtomb-w32-4.sh: New file.
18747         * tests/test-wcrtomb-w32-5.sh: New file.
18748         * tests/test-wcrtomb-w32.c: New file.
18749         * modules/wcrtomb-tests (Files): Add them.
18750         (Makefile.am): Arrange to run these tests.
18751         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18752         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18753
18754 2011-02-20  Bruno Haible  <bruno@clisp.org>
18755
18756         wcrtomb: Enhance test.
18757         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18758
18759 2011-02-20  Bruno Haible  <bruno@clisp.org>
18760
18761         mbrtowc: Tiny optimization.
18762         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18763
18764 2011-02-20  Jim Meyering  <meyering@redhat.com>
18765
18766         test-exclude.c: remove unmatched #endif
18767         * tests/test-exclude.c: Remove stray #endif, left over from
18768         the change of a week ago.
18769
18770 2011-02-19  Jim Meyering  <meyering@redhat.com>
18771
18772         git-version-gen: skip "-dirty" check when appropriate
18773         * build-aux/git-version-gen: Don't run any git commands when the
18774         version string comes from .tarball-version.  Prior to this, we
18775         would run git update-index --refresh even from a just-unpacked
18776         tarball directory, and that could affect a .git/ directory in a
18777         parent of the build directory.  Reported by Mike Frysinger.
18778
18779 2011-02-19  Bruno Haible  <bruno@clisp.org>
18780
18781         unictype/property-byname: Reduce the size of the 'data' segment.
18782         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18783
18784 2011-02-19  Bruno Haible  <bruno@clisp.org>
18785
18786         unictype/scripts: Reduce the size of the 'data' segment.
18787         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18788         '%pic'.
18789         * lib/unictype/scripts_byname.gperf: Regenerated.
18790
18791 2011-02-19  Bruno Haible  <bruno@clisp.org>
18792
18793         stdint: Update documentation.
18794         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18795
18796 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18797
18798         stdint: omit redundant check for wchar.h
18799         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18800         always tests whether wchar.h exists, so remove the now-redundant test.
18801
18802 2011-02-18  Bruno Haible  <bruno@clisp.org>
18803
18804         stdint: Cut dependency to module 'wchar'.
18805         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18806         include the necessary prerequisites.
18807         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18808         * modules/stdint (Depends-on): Remove wchar.
18809         (Makefile.am): Substitute HAVE_WCHAR_H.
18810         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18811
18812 2011-02-18  Eric Blake  <eblake@redhat.com>
18813
18814         longlong: skip, rather than fail, on cross-compilation
18815         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18816         when cross-compiling; regression from 2011-02-16.
18817
18818 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18819
18820         * NEWS: Mention 2011-02-08 change to stdlib.
18821
18822 2011-02-17  Bruno Haible  <bruno@clisp.org>
18823
18824         getloadavg: Add comments about platforms.
18825         * m4/getloadavg.m4: Add comment.
18826         * lib/getloadavg.c: Likewise.
18827
18828 2011-02-17  Bruno Haible  <bruno@clisp.org>
18829
18830         getloadavg: Fix link error on Solaris 2.6.
18831         * modules/getloadavg (Link): New section.
18832         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18833         linking test-getloadavg.
18834         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18835         getloadavg.
18836
18837 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18838
18839         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18840         It was 'int', but this doesn't match the IRIX 6.5 manual.
18841         Suggested by Bruno Haible in
18842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18843
18844 2011-02-17  Bruno Haible  <bruno@clisp.org>
18845
18846         havelib: Fix comments.
18847         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18848         change.
18849
18850 2011-02-17  Bruno Haible  <bruno@clisp.org>
18851
18852         havelib: Update config.rpath.
18853         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18854
18855 2011-02-17  Bruno Haible  <bruno@clisp.org>
18856
18857         getloadavg test: Add some plausibility checks.
18858         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18859         is improbable.
18860
18861 2011-02-16  Eric Blake  <eblake@redhat.com>
18862
18863         maintainer-makefile: make syntax-check a no-op from tarballs
18864         * top/maint.mk (no-vc-detected): New rule.
18865         (local-checks-available): Use it to avoid hanging if someone tries
18866         'make syntax-check' from a tarball.  Also append to any non-syntax
18867         checks already defined in cfg.mk.
18868
18869 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18870
18871         longlong: tune, particularly for common case of c99
18872
18873         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18874         or running anything if c99, or if unsigned long long int does not
18875         work.  In either case, we know the answer without further tests.
18876         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18877         it at most once, and use its results for both long long int and
18878         unsigned long long int.  This is more likely to be efficient in
18879         the common case where the program wants to check for both long
18880         long int and unsigned long long int.
18881         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18882         since the answer is already known.
18883
18884 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18885
18886         getloadavg: set errno
18887         * lib/getloadavg.c: Set errno when returning -1.  If no other
18888         error number looks appropriate, set it to ENOSYS if the getloadavg
18889         looks like it can't possibly ever work, ENOTSUP otherwise.
18890         Suggested by Bruno Haible in
18891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18892
18893         getloadavg: trim unused parts and speed up 'configure'
18894         * NEWS: Document this.
18895         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18896         always compiled if getloadavg is absent.
18897         Move test code to ...
18898         * tests/test-getloadavg.c: New file, containing previous
18899         contents of test from lib/getloadavg.c.  It also contains
18900         suggestions by Bruno Haible in
18901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18902         * modules/getloadavg-tests: New file.
18903         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18904         Do tests in the same order as they're needed for getloadavg.c.
18905         Omit setgid-related tests that generate symbols KMEM_GROUP,
18906         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18907         Do only the tests that are needed to see whether the system has
18908         getloadavg, moving the other tests into ...
18909         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18910         NLIST_NAME_UNION; nobody should be using it.  Do not define
18911         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18912         relevant, as the user of this module shouldn't care how getloadavg
18913         is implemented.
18914
18915         getloadavg: omit unused var
18916         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18917
18918 2011-02-15  Jim Meyering  <meyering@redhat.com>
18919
18920         doc: update users.txt
18921         * users.txt: Update iwhd's URL.
18922
18923 2011-02-13  Bruno Haible  <bruno@clisp.org>
18924
18925         Consistent macro naming for macros that use GCC __attribute__.
18926         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18927         _ATTRIBUTE_NONNULL_.
18928         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18929         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18930         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18931         ATTRIBUTE_DEPRECATED.
18932         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18933         ATTRIBUTE_NORETURN.
18934         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18935         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18936         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18937         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18938         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18939         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18940         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18941         ATTRIBUTE_SENTINEL.
18942         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18943         ATTRIBUTE_RETURN_CHECK.
18944         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18945         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18946         ATTRIBUTE_NORETURN.
18947         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18948         Reported by Paul Eggert.
18949
18950 2011-02-13  Bruno Haible  <bruno@clisp.org>
18951
18952         Don't interfere with a program's definition of __attribute__.
18953         * lib/argp.h (__attribute__): Remove definition.
18954         (_GL_ATTRIBUTE_FORMAT): New macro.
18955         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18956         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18957         (_GL_ATTRIBUTE_FORMAT): New macro.
18958         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18959         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18960         GCC 3 or newer.
18961         * lib/error.h (__attribute__): Remove definition.
18962         (_GL_ATTRIBUTE_FORMAT): New macro.
18963         (error, error_at_line): Use it.
18964         * lib/hash.h (__attribute__): Remove definition.
18965         (ATTRIBUTE_WUR): Update definition. Define always.
18966         * lib/openat.h (__attribute__): Remove definition.
18967         (ATTRIBUTE_NORETURN): Update definition. Define always.
18968         * lib/sigpipe-die.h (__attribute__): Remove definition.
18969         (ATTRIBUTE_NORETURN): Update definition. Define always.
18970         * lib/vasnprintf.h (__attribute__): Remove definition.
18971         (_GL_ATTRIBUTE_FORMAT): New macro.
18972         (asnprintf, vasnprintf): Use it.
18973         * lib/xalloc.h (__attribute__): Remove definition.
18974         (ATTRIBUTE_NORETURN): Update definition. Define always.
18975         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18976         * lib/xmemdup0.h (__attribute__): Remove definition.
18977         (ATTRIBUTE_NORETURN): Update definition. Define always.
18978         * lib/xprintf.h (__attribute__): Remove definition.
18979         (_GL_ATTRIBUTE_FORMAT): New macro.
18980         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18981         * lib/xstrtol.h (__attribute__): Remove definition.
18982         (ATTRIBUTE_NORETURN): Update definition. Define always.
18983         * lib/xvasprintf.h (__attribute__): Remove definition.
18984         (_GL_ATTRIBUTE_FORMAT): New macro.
18985         (xasprintf, xvasprintf): Use it.
18986         * tests/test-argmatch.c (__attribute__): Remove definition.
18987         (ATTRIBUTE_NORETURN): Update definition. Define always.
18988         * tests/test-exclude.c (__attribute__): Remove definition.
18989         (ATTRIBUTE_NORETURN): Update definition. Define always.
18990         Reported by Paul Eggert.
18991
18992 2011-02-13  Bruno Haible  <bruno@clisp.org>
18993
18994         mbrtowc: Add more tests for native Windows platforms.
18995         * tests/test-mbrtowc-w32-1.sh: New file.
18996         * tests/test-mbrtowc-w32-2.sh: New file.
18997         * tests/test-mbrtowc-w32-3.sh: New file.
18998         * tests/test-mbrtowc-w32-4.sh: New file.
18999         * tests/test-mbrtowc-w32-5.sh: New file.
19000         * tests/test-mbrtowc-w32.c: New file.
19001         * modules/mbrtowc-tests (Files): Add them.
19002         (Makefile.am): Arrange to run these tests.
19003         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19004         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19005
19006 2011-02-13  Bruno Haible  <bruno@clisp.org>
19007
19008         mbrtowc: Work around native Windows bug.
19009         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19010         guess when no suitable locale for testing was found.
19011         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19012
19013 2011-02-13  Bruno Haible  <bruno@clisp.org>
19014
19015         mbsinit: Work around mingw bug.
19016         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19017         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19018         Windows.
19019         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19020
19021 2011-02-13  Bruno Haible  <bruno@clisp.org>
19022
19023         mbsinit: Don't crash for a NULL argument.
19024         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19025         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19026
19027 2011-02-13  Bruno Haible  <bruno@clisp.org>
19028
19029         Don't interfere with a program's definition of __attribute__.
19030         * lib/stdio.in.h (__attribute__): Remove definition.
19031         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19032         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19033         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19034         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19035         * lib/string.in.h (__attribute__): Remove definition.
19036         Reported by Paul Eggert.
19037
19038 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19039
19040         stdlib: don't get in the way of non-GCC __attribute__
19041         See thread starting at
19042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19043         Revert previous stdlib change, installing the following instead:
19044         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19045         to get in the way of a non-GCC compiler that supports __attribute__.
19046         (_GL_ATTRIBUTE_RETURN): New macro.
19047         (_Exit): Use it instead of __attribute__.
19048
19049 2011-02-12  Bruno Haible  <bruno@clisp.org>
19050
19051         quotearg test: Avoid test failure on mingw.
19052         * tests/test-quotearg.sh: Convert the locale identifier from native
19053         Windows syntax to Unix syntax.
19054
19055 2011-02-12  Bruno Haible  <bruno@clisp.org>
19056
19057         setlocale: Prefer gnulib's override over libintl's override.
19058         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19059         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19060         GNULIB_defined_setlocale is set.
19061
19062 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19063
19064         stdlib: support non-GCC __attribute__
19065
19066         Fix a serious and tricky problem encountered when attempting to
19067         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19068         5.5, but it crashed due to memory corruption on Solaris 10 with
19069         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19070         bits that are otherwise zero.  This tagging is optional inside
19071         Emacs but is preferred and is used when __attribute__ ((__aligned
19072         (8))) works, as it does with both recent-enough GCC and with Sun C
19073         5.11.  However, Sun C 5.11 is not GCC and does not #define
19074         __GNUC__ and __GNUC_MINOR__.
19075
19076         When I added the getloadavg module to Emacs, it brought in
19077         stdlib.in.h, which contained this fragment:
19078
19079            #ifndef __attribute__
19080            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19081            #  define __attribute__(Spec)   /* empty */
19082            # endif
19083            #endif
19084
19085         When files that include <stdlib.h> were compiled with Sun C 5.11,
19086         the above code disabled __attribute__ ((__aligned (8))), which
19087         caused variables to not be properly aligned, which eventually led
19088         to the pointer corruption mentioned above.  (This was a bit hard
19089         to diagnose, unfortunately.)
19090
19091         Several "#define __attribute__(X) /* empty */" code snippets need
19092         to be eradicated from Gnulib to work with non-GCC compilers that
19093         support __attribute__.  The Autoconf way to do this is to test for
19094         each kind of attribute that we want support for, and selectively
19095         enable that in source code.
19096
19097         Fix this problem just for stdlib.h, by adding a test for the
19098         __noreturn__ attribute, and change stdlib.in.h to use that test
19099         when needed.  This technique can be easily generalized to the
19100         other *.in.h files and attributes, and a similar technique can be
19101         used for *.h and *.c files.  This patch is enough to solve the
19102         problem for Emacs + getloadavg, and I thought I'd publish it for
19103         feedback before undertaking further, similar fixes in other
19104         modules.
19105
19106         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19107         because it's not needed for stdlib.h.  It merely substitutes the
19108         value directly into stdlib.h.  We may well need to #define it, or
19109         similar symbols, for other modules, but it's nice to also have an
19110         option to not #define it for applications like Emacs that do not
19111         need it.
19112
19113         * lib/stdlib.in.h (__attribute__): Do not #define.
19114         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19115         be defined only if the _Exit module is also used.
19116         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19118         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19119         platforms.
19120         * modules/_Exit (Files): Add m4/attribute.m4.
19121         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19122         * m4/attribute.m4: New file.
19123
19124 2011-02-12  Bruno Haible  <bruno@clisp.org>
19125
19126         wcsrtombs: Work around bug on native Windows.
19127         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19128         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19129         instead of len.
19130         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19131
19132 2011-02-12  Bruno Haible  <bruno@clisp.org>
19133
19134         mbsrtowcs: Work around bug on native Windows.
19135         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19136         against mingw bug.
19137         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19138
19139 2011-02-12  Bruno Haible  <bruno@clisp.org>
19140
19141         Avoid setlocale bugs in tests.
19142         * modules/btowc (Dependencies): Add setlocale.
19143         * modules/c-strcase (Dependencies): Likewise.
19144         * modules/mbmemcasecmp (Dependencies): Likewise.
19145         * modules/mbmemcasecoll (Dependencies): Likewise.
19146         * modules/mbrtowc (Dependencies): Likewise.
19147         * modules/mbscasecmp (Dependencies): Likewise.
19148         * modules/mbscasestr (Dependencies): Likewise.
19149         * modules/mbschr (Dependencies): Likewise.
19150         * modules/mbscspn (Dependencies): Likewise.
19151         * modules/mbsinit (Dependencies): Likewise.
19152         * modules/mbsncasecmp (Dependencies): Likewise.
19153         * modules/mbsnrtowcs (Dependencies): Likewise.
19154         * modules/mbspbrk (Dependencies): Likewise.
19155         * modules/mbspcasecmp (Dependencies): Likewise.
19156         * modules/mbsrchr (Dependencies): Likewise.
19157         * modules/mbsrtowcs (Dependencies): Likewise.
19158         * modules/mbsspn (Dependencies): Likewise.
19159         * modules/mbsstr (Dependencies): Likewise.
19160         * modules/nl_langinfo (Dependencies): Likewise.
19161         * modules/quotearg (Dependencies): Likewise.
19162         * modules/unicase/locale-language (Dependencies): Likewise.
19163         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19164         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19165         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19166         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19167         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19168         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19169         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19170         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19171         * modules/vasnprintf-posix (Dependencies): Likewise.
19172         * modules/wcrtomb (Dependencies): Likewise.
19173         * modules/wcsnrtombs (Dependencies): Likewise.
19174         * modules/wcsrtombs (Dependencies): Likewise.
19175
19176 2011-02-12  Bruno Haible  <bruno@clisp.org>
19177
19178         setlocale: Workaround native Windows bug.
19179         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19180         succeeds but sets LC_CTYPE to "C", report a failure.
19181         * tests/test-setlocale2.sh: New file.
19182         * tests/test-setlocale2.c: New file.
19183         * modules/setlocale-tests (Files): Add the new files.
19184         (Makefile.am): Enable test-setlocale2.sh test.
19185         * doc/posix-functions/setlocale.texi: Mention workaround.
19186
19187 2011-02-11  Bruno Haible  <bruno@clisp.org>
19188
19189         Tests for module 'setlocale'.
19190         * modules/setlocale-tests: New file.
19191         * tests/test-setlocale1.sh: New file.
19192         * tests/test-setlocale1.c: New file.
19193
19194         New module 'setlocale'.
19195         * lib/locale.in.h (setlocale): New declaration.
19196         * lib/setlocale.c: New file, based on
19197         gettext/gettext-runtime/intl/setlocale.c.
19198         * m4/setlocale.m4: New file.
19199         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19200         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19201         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19202         REPLACE_SETLOCALE.
19203         * modules/setlocale: New file.
19204         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19205         * doc/posix-functions/setlocale.texi: Mention the new module.
19206
19207 2011-02-11  Bruno Haible  <bruno@clisp.org>
19208
19209         Prepare for locale dependent tests on mingw.
19210         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19211         because it has the wrong locale encoding.
19212         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19213         French_France.1252 instead of "fr".
19214         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19215         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19216         because it has the wrong locale encoding.
19217         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19218         native Windows, try Turkish_Turkey.65001.
19219         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19220         Chinese_China.54936.
19221
19222         Prepare for locale dependent tests on mingw.
19223         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19224         differently.
19225         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19226         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19227         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19228         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19229
19230 2011-02-11  Eric Blake  <eblake@redhat.com>
19231
19232         strptime: avoid compiler warnings
19233         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19234         compiler warnings about dead code.
19235         Reported by Daniel P. Berrange.
19236
19237 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19238
19239         doc: update users.txt
19240         * users.txt: Add rcs.
19241
19242 2011-02-10  John W. Eaton  <jwe@gnu.org>
19243
19244         doc: update users.txt
19245         * users.txt: Add octave.
19246
19247 2011-02-10  Jim Meyering  <meyering@redhat.com>
19248
19249         doc: update users.txt
19250         * users.txt: Add iwhd.
19251
19252 2011-02-09  Bruno Haible  <bruno@clisp.org>
19253
19254         gnulib-tool: Make copyright notice adjustment more robust.
19255         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19256         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19257         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19258         License".
19259         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19260
19261 2011-02-06  Bruno Haible  <bruno@clisp.org>
19262
19263         New module 'towctrans'.
19264         * modules/towctrans: New file.
19265         * lib/wctype.in.h (towctrans): New declaration.
19266         * lib/towctrans.c: New file.
19267         * lib/towctrans-impl.h: New file.
19268         * m4/towctrans.m4: New file.
19269         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19270         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19271         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19272         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19273         * doc/posix-functions/towctrans.texi: Mention the new module.
19274
19275 2011-02-06  Bruno Haible  <bruno@clisp.org>
19276
19277         New module 'wctrans'.
19278         * modules/wctrans: New file.
19279         * lib/wctype.in.h (wctrans): New declaration.
19280         * lib/wctrans.c: New file.
19281         * lib/wctrans-impl.h: New file.
19282         * m4/wctrans.m4: New file.
19283         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19284         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19285         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19286         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19287         * doc/posix-functions/wctrans.texi: Mention the new module.
19288
19289 2011-02-06  Bruno Haible  <bruno@clisp.org>
19290
19291         New module 'iswctype'.
19292         * modules/iswctype: New file.
19293         * lib/wctype.in.h (iswctype): New declaration.
19294         * lib/iswctype.c: New file.
19295         * lib/iswctype-impl.h: New file.
19296         * m4/iswctype.m4: New file.
19297         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19298         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19299         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19300         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19301         * doc/posix-functions/iswctype.texi: Mention the new module and the
19302         HP-UX 11.00 problem.
19303
19304 2011-02-06  Bruno Haible  <bruno@clisp.org>
19305
19306         New module 'wctype'.
19307         * modules/wctype: Change to represent the wctype() substitute.
19308         * lib/wctype.in.h (wctype): New declaration.
19309         * lib/wctype.c: New file.
19310         * lib/wctype-impl.h: New file.
19311         * m4/wctype.m4: New file.
19312         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19313         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19314         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19315         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19316         * doc/posix-functions/wctype.texi: Mention the new module and the
19317         HP-UX 11.00 problem.
19318
19319 2011-02-06  Bruno Haible  <bruno@clisp.org>
19320
19321         wctype-h: Ensure wctype_t and wctrans_t are defined.
19322         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19323         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19324         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19325         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19326         HAVE_WCTRANS_T.
19327         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19328
19329 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19330
19331         flock: fix license typo
19332
19333         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19334         omitted.
19335
19336 2011-02-08  Bruno Haible  <bruno@clisp.org>
19337
19338         Split large sed scripts, for HP-UX sed.
19339         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19340         to avoid HP-UX limit of 99 commands, in the near future.
19341         * modules/stdlib (Makefile.am): Likewise.
19342         * modules/unistd (Makefile.am): Likewise.
19343         * modules/wchar (Makefile.am): Likewise.
19344         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19345         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19346         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19347
19348 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19349             Bruno Haible  <bruno@clisp.org>
19350
19351         stdlib: improve random_r modularization
19352         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19353         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19354         you also need the random_r module to get this material right.
19355         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19356         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19357         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19358
19359 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19360
19361         stdlib: don't depend on stdint
19362         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19363         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19364         be independent of whether stdint.h is needed.
19365         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19366         here, instead of ...
19367         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19368         struct random_data should be using the random_r module, not just
19369         the stdlib module (which wouldn't make sense: what package needs
19370         just struct random_data without also needing random_r?).
19371         * modules/stdlib (Depends-on): Remove stdint.
19372
19373         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19374         See the thread rooted at
19375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19376         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19377         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19378         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19379         __VMS)); previously it was always included (via fcntl--.h).
19380         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19381         hand; this is good enough for load averages.  Also, do not use
19382         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19383         flags directly if available and don't bother otherwise.  (Packages
19384         that need the extra reliability should use the modules that define
19385         these flags on older platforms that lack them.)
19386         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19387         fcntl-safer.
19388
19389 2011-02-08  Jim Meyering  <meyering@redhat.com>
19390
19391         di-set.h, ino-map.h: add multiple-inclusion guard
19392         Technically, the guard is required only for ino-map.h, due to its
19393         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19394         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19395         * lib/ino-map.h: Likewise.
19396
19397 2011-02-06  Bruno Haible  <bruno@clisp.org>
19398
19399         iswblank: Ensure declaration on glibc systems.
19400         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19401         * modules/iswblank (Dependencies): Add 'extensions'.
19402         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19403
19404 2011-02-06  Bruno Haible  <bruno@clisp.org>
19405
19406         New module 'iswblank'.
19407         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19408         * modules/iswblank: New file.
19409         * modules/wctype-h (Files): Remove lib/iswblank.c.
19410         (Makefile.am): Substitute GNULIB_ISWBLANK.
19411         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19412         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19413         (gl_WCTYPE_H_DEFAULTS): New macro.
19414         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19415         * modules/iswblank-tests: New file.
19416         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19417         * tests/test-wctype-h.c (main): Remove iswblank tests.
19418         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19419         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19420         of 'wctype-h'.
19421         * NEWS: Mention the change.
19422         * modules/mbchar (Depends-on): Add iswblank.
19423
19424 2011-02-08  Bruno Haible  <bruno@clisp.org>
19425
19426         di-set tests: Refactor.
19427         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19428         unnecessary includes.
19429         (ASSERT): Remove macro.
19430         (main): Make C90 compliant by avoiding variable declaration after
19431         statement.
19432         * modules/di-set-tests (Files): Add tests/macros.h.
19433
19434 2011-02-08  Bruno Haible  <bruno@clisp.org>
19435
19436         ino-map tests: Refactor.
19437         * tests/test-ino-map.c: Include ino-map.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/ino-map-tests (Files): Add tests/macros.h.
19443
19444 2011-02-08  Jim Meyering  <meyering@redhat.com>
19445
19446         di-set: add "const" to a cast
19447         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19448         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19449
19450 2011-02-06  Bruno Haible  <bruno@clisp.org>
19451
19452         Rename module 'wctype' to 'wctype-h'.
19453         * modules/wctype-h: Renamed from modules/wctype.
19454         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19455         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19456         (Files, Depends-on, Makefile.am): Update.
19457         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19458         (Files, Makefile.am): Update.
19459         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19460         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19461         * doc/posix-headers/wctype.texi: Update.
19462         * doc/posix-functions/iswalnum.texi: Update.
19463         * doc/posix-functions/iswalpha.texi: Update.
19464         * doc/posix-functions/iswblank.texi: Update.
19465         * doc/posix-functions/iswcntrl.texi: Update.
19466         * doc/posix-functions/iswdigit.texi: Update.
19467         * doc/posix-functions/iswgraph.texi: Update.
19468         * doc/posix-functions/iswlower.texi: Update.
19469         * doc/posix-functions/iswprint.texi: Update.
19470         * doc/posix-functions/iswpunct.texi: Update.
19471         * doc/posix-functions/iswspace.texi: Update.
19472         * doc/posix-functions/iswupper.texi: Update.
19473         * doc/posix-functions/iswxdigit.texi: Update.
19474         * doc/posix-functions/towlower.texi: Update.
19475         * doc/posix-functions/towupper.texi: Update.
19476         * NEWS: Mention the change.
19477         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19478         * modules/mbchar (Dependencies): Likewise.
19479         * modules/mbswidth (Dependencies): Likewise.
19480         * modules/quotearg (Dependencies): Likewise.
19481         * modules/regex (Dependencies): Likewise.
19482         * modules/wcscasecmp (Dependencies): Likewise.
19483         * modules/wcsncasecmp (Dependencies): Likewise.
19484         * modules/wcwidth (Dependencies): Likewise.
19485
19486 2011-02-06  Bruno Haible  <bruno@clisp.org>
19487
19488         New module 'wcswidth'.
19489         * modules/wcswidth: New file.
19490         * lib/wchar.in.h (wcswidth): New declaration.
19491         * lib/wcswidth.c: New file.
19492         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19493         * m4/wcswidth.m4: New file.
19494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19496         REPLACE_WCSWIDTH.
19497         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19498         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19499         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19500         * doc/posix-functions/wcswidth.texi: Mention the new module.
19501
19502 2011-02-06  Bruno Haible  <bruno@clisp.org>
19503
19504         New module 'wcstok'.
19505         * modules/wcstok: New file.
19506         * lib/wchar.in.h (wcstok): New declaration.
19507         * lib/wcstok.c: New file.
19508         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19509         * m4/wcstok.m4: New file.
19510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19512         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19513         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19514         * doc/posix-functions/wcstok.texi: Mention the new module.
19515
19516 2011-02-06  Bruno Haible  <bruno@clisp.org>
19517
19518         New module 'wcsstr'.
19519         * modules/wcsstr: New file.
19520         * lib/wchar.in.h (wcsstr): New declaration.
19521         * lib/wcsstr.c: New file.
19522         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19523         * m4/wcsstr.m4: New file.
19524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19526         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19527         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19528         * doc/posix-functions/wcsstr.texi: Mention the new module.
19529
19530 2011-02-06  Bruno Haible  <bruno@clisp.org>
19531
19532         New module 'wcspbrk'.
19533         * modules/wcspbrk: New file.
19534         * lib/wchar.in.h (wcspbrk): New declaration.
19535         * lib/wcspbrk.c: New file.
19536         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19537         * m4/wcspbrk.m4: New file.
19538         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19539         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19540         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19541         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19542         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19543
19544 2011-02-06  Bruno Haible  <bruno@clisp.org>
19545
19546         New module 'wcsspn'.
19547         * modules/wcsspn: New file.
19548         * lib/wchar.in.h (wcsspn): New declaration.
19549         * lib/wcsspn.c: New file.
19550         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19551         * m4/wcsspn.m4: New file.
19552         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19553         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19554         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19555         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19556         * doc/posix-functions/wcsspn.texi: Mention the new module.
19557
19558 2011-02-06  Bruno Haible  <bruno@clisp.org>
19559
19560         New module 'wcscspn'.
19561         * modules/wcscspn: New file.
19562         * lib/wchar.in.h (wcscspn): New declaration.
19563         * lib/wcscspn.c: New file.
19564         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19565         * m4/wcscspn.m4: New file.
19566         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19567         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19568         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19569         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19570         * doc/posix-functions/wcscspn.texi: Mention the new module.
19571
19572 2011-02-06  Bruno Haible  <bruno@clisp.org>
19573
19574         New module 'wcsrchr'.
19575         * modules/wcsrchr: New file.
19576         * lib/wchar.in.h (wcsrchr): New declaration.
19577         * lib/wcsrchr.c: New file.
19578         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19579         * m4/wcsrchr.m4: New file.
19580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19582         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19583         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19584         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19585
19586 2011-02-06  Bruno Haible  <bruno@clisp.org>
19587
19588         New module 'wcschr'.
19589         * modules/wcschr: New file.
19590         * lib/wchar.in.h (wcschr): New declaration.
19591         * lib/wcschr.c: New file.
19592         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19593         * m4/wcschr.m4: New file.
19594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19597         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19598         * doc/posix-functions/wcschr.texi: Mention the new module.
19599
19600 2011-02-06  Bruno Haible  <bruno@clisp.org>
19601
19602         New module 'wcsdup'.
19603         * modules/wcsdup: New file.
19604         * lib/wchar.in.h (wcsdup): New declaration.
19605         * lib/wcsdup.c: New file.
19606         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19607         * m4/wcsdup.m4: New file.
19608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19611         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19612         * doc/posix-functions/wcsdup.texi: Mention the new module.
19613
19614 2011-02-06  Bruno Haible  <bruno@clisp.org>
19615
19616         New module 'wcsxfrm'.
19617         * modules/wcsxfrm: New file.
19618         * lib/wchar.in.h (wcsxfrm): New declaration.
19619         * lib/wcsxfrm.c: New file.
19620         * lib/wcsxfrm-impl.h: New file.
19621         * m4/wcsxfrm.m4: New file.
19622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19625         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19626         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19627
19628 2011-02-06  Bruno Haible  <bruno@clisp.org>
19629
19630         New module 'wcscoll'.
19631         * modules/wcscoll: New file.
19632         * lib/wchar.in.h (wcscoll): New declaration.
19633         * lib/wcscoll.c: New file.
19634         * lib/wcscoll-impl.h: New file.
19635         * m4/wcscoll.m4: New file.
19636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19638         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19639         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19640         * doc/posix-functions/wcscoll.texi: Mention the new module.
19641
19642 2011-02-06  Bruno Haible  <bruno@clisp.org>
19643
19644         New module 'wcsncasecmp'.
19645         * modules/wcsncasecmp: New file.
19646         * lib/wchar.in.h (wcsncasecmp): New declaration.
19647         * lib/wcsncasecmp.c: New file.
19648         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19649         * m4/wcsncasecmp.m4: New file.
19650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19653         HAVE_WCSNCASECMP.
19654         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19655         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19656
19657 2011-02-06  Bruno Haible  <bruno@clisp.org>
19658
19659         New module 'wcscasecmp'.
19660         * modules/wcscasecmp: New file.
19661         * lib/wchar.in.h (wcscasecmp): New declaration.
19662         * lib/wcscasecmp.c: New file.
19663         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19664         * m4/wcscasecmp.m4: New file.
19665         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19666         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19667         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19668         HAVE_WCSCASECMP.
19669         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19670         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19671
19672 2011-02-05  Bruno Haible  <bruno@clisp.org>
19673
19674         New module 'wcsncmp'.
19675         * modules/wcsncmp: New file.
19676         * lib/wchar.in.h (wcsncmp): New declaration.
19677         * lib/wcsncmp.c: New file.
19678         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19679         * m4/wcsncmp.m4: New file.
19680         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19681         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19682         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19683         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19684         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19685
19686 2011-02-05  Bruno Haible  <bruno@clisp.org>
19687
19688         New module 'wcscmp'.
19689         * modules/wcscmp: New file.
19690         * lib/wchar.in.h (wcscmp): New declaration.
19691         * lib/wcscmp.c: New file.
19692         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19693         * m4/wcscmp.m4: New file.
19694         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19695         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19696         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19697         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19698         * doc/posix-functions/wcscmp.texi: Mention the new module.
19699
19700 2011-02-05  Bruno Haible  <bruno@clisp.org>
19701
19702         New module 'wcsncat'.
19703         * modules/wcsncat: New file.
19704         * lib/wchar.in.h (wcsncat): New declaration.
19705         * lib/wcsncat.c: New file.
19706         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19707         * m4/wcsncat.m4: New file.
19708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19710         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19711         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19712         * doc/posix-functions/wcsncat.texi: Mention the new module.
19713
19714 2011-02-05  Bruno Haible  <bruno@clisp.org>
19715
19716         New module 'wcscat'.
19717         * modules/wcscat: New file.
19718         * lib/wchar.in.h (wcscat): New declaration.
19719         * lib/wcscat.c: New file.
19720         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19721         * m4/wcscat.m4: New file.
19722         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19723         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19724         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19725         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19726         * doc/posix-functions/wcscat.texi: Mention the new module.
19727
19728 2011-02-05  Bruno Haible  <bruno@clisp.org>
19729
19730         New module 'wcpncpy'.
19731         * modules/wcpncpy: New file.
19732         * lib/wchar.in.h (wcpncpy): New declaration.
19733         * lib/wcpncpy.c: New file.
19734         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19735         * m4/wcpncpy.m4: New file.
19736         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19737         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19738         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19739         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19740         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19741
19742 2011-02-05  Bruno Haible  <bruno@clisp.org>
19743
19744         New module 'wcsncpy'.
19745         * modules/wcsncpy: New file.
19746         * lib/wchar.in.h (wcsncpy): New declaration.
19747         * lib/wcsncpy.c: New file.
19748         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19749         * m4/wcsncpy.m4: New file.
19750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19752         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19753         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19754         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19755
19756 2011-02-05  Bruno Haible  <bruno@clisp.org>
19757
19758         New module 'wcpcpy'.
19759         * modules/wcpcpy: New file.
19760         * lib/wchar.in.h (wcpcpy): New declaration.
19761         * lib/wcpcpy.c: New file.
19762         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19763         * m4/wcpcpy.m4: New file.
19764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19766         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19767         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19768         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19769
19770 2011-02-05  Bruno Haible  <bruno@clisp.org>
19771
19772         New module 'wcscpy'.
19773         * modules/wcscpy: New file.
19774         * lib/wchar.in.h (wcscpy): New declaration.
19775         * lib/wcscpy.c: New file.
19776         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19777         * m4/wcscpy.m4: New file.
19778         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19779         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19780         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19781         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19782         * doc/posix-functions/wcscpy.texi: Mention the new module.
19783
19784 2011-02-05  Bruno Haible  <bruno@clisp.org>
19785
19786         New module 'wcsnlen'.
19787         * modules/wcsnlen: New file.
19788         * lib/wchar.in.h (wcsnlen): New declaration.
19789         * lib/wcsnlen.c: New file.
19790         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19791         * m4/wcsnlen.m4: New file.
19792         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19793         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19794         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19795         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19796         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19797
19798 2011-02-05  Bruno Haible  <bruno@clisp.org>
19799
19800         New module 'wcslen'.
19801         * modules/wcslen: New file.
19802         * lib/wchar.in.h (wcslen): New declaration.
19803         * lib/wcslen.c: New file.
19804         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19805         * m4/wcslen.m4: New file.
19806         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19807         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19809         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19810         * doc/posix-functions/wcslen.texi: Mention the new module.
19811
19812 2011-02-05  Bruno Haible  <bruno@clisp.org>
19813
19814         New module 'wmemset'.
19815         * modules/wmemset: New file.
19816         * lib/wchar.in.h (wmemset): New declaration.
19817         * lib/wmemset.c: New file.
19818         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19819         * m4/wmemset.m4: New file.
19820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19822         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19823         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19824         * doc/posix-functions/wmemset.texi: Mention the new module.
19825
19826 2011-02-05  Bruno Haible  <bruno@clisp.org>
19827
19828         New module 'wmemmove'.
19829         * modules/wmemmove: New file.
19830         * lib/wchar.in.h (wmemmove): New declaration.
19831         * lib/wmemmove.c: New file.
19832         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19833         * m4/wmemmove.m4: New file.
19834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19836         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19837         HAVE_WMEMMOVE.
19838         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19839         * doc/posix-functions/wmemmove.texi: Mention the new module.
19840
19841 2011-02-05  Bruno Haible  <bruno@clisp.org>
19842
19843         New module 'wmemcpy'.
19844         * modules/wmemcpy: New file.
19845         * lib/wchar.in.h (wmemcpy): New declaration.
19846         * lib/wmemcpy.c: New file.
19847         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19848         * m4/wmemcpy.m4: New file.
19849         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19850         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19851         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19852         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19853         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19854
19855 2011-02-05  Bruno Haible  <bruno@clisp.org>
19856
19857         New module 'wmemcmp'.
19858         * modules/wmemcmp: New file.
19859         * lib/wchar.in.h (wmemcmp): New declaration.
19860         * lib/wmemcmp.c: New file.
19861         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19862         * m4/wmemcmp.m4: New file.
19863         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19864         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19865         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19866         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19867         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19868
19869 2011-02-07  Jim Meyering  <meyering@redhat.com>
19870
19871         di-set, ino-map: new modules, from coreutils
19872         * lib/di-set.c: New file.
19873         * lib/di-set.h: Likewise.
19874         * lib/ino-map.c: Likewise.
19875         * lib/ino-map.h: Likewise.
19876         * modules/di-set: Likewise.
19877         * modules/di-set-tests: Likewise.
19878         * modules/ino-map: Likewise.
19879         * modules/ino-map-tests: Likewise.
19880         * tests/test-di-set.c: Likewise.
19881         * tests/test-ino-map.c: Likewise.
19882
19883 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19884
19885         getloadavg: merge minor changes from Emacs
19886
19887         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19888         (getloadavg): Use memset, not bzero.
19889
19890         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19891         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19892         clash (bug#86).
19893
19894 2010-11-14  Bruno Haible  <bruno@clisp.org>
19895
19896         Allow multiple gnulib generated replacements to coexist.
19897         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19898         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19899         * lib/langinfo.in.h (nl_item): Likewise.
19900         * lib/math.in.h (_NaN, NAN): Likewise.
19901         * lib/netdb.in.h (struct addrinfo): Likewise.
19902         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19903         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19904         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19905         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19906         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19907         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19908         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19909         pthread_mutexattr_init, pthread_mutexattr_settype,
19910         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19911         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19912         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19913         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19914         * lib/sched.in.h (struct sched_param): Likewise.
19915         * lib/se-selinux.in.h (security_class_t, security_context_t,
19916         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19917         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19918         lsetfilecon, fsetfilecon, security_check_context,
19919         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19920         Likewise.
19921         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19922         Likewise.
19923         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19924         _gl_function_taking_int_returning_void_t, union sigval,
19925         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19926         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19927         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19928         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19929         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19930         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19931         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19932         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19933         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19934         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19935         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19936         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19937         socklen_t, rpl_fd_isset): Likewise.
19938         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19939         * lib/sys_time.in.h (struct timeval): Likewise.
19940         * lib/sys_times.in.h (struct tms): Likewise.
19941         * lib/sys_utsname.in.h (struct utsname):
19942         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19943         * lib/unistd.in.h (getpagesize): Likewise.
19944         * lib/wchar.in.h (mbstate_t): Likewise.
19945         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19946         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19947         towlower, towupper): Likewise.
19948         Reported by Sam Steingold <sds@gnu.org>.
19949
19950 2011-02-05  Eric Blake  <eblake@redhat.com>
19951
19952         unsetenv: work around Haiku issues
19953         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19954         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19955
19956 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19957
19958         libposix: avoid calling error() within libposix
19959         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19960         is defined.
19961
19962 2011-02-05  Eric Blake  <eblake@redhat.com>
19963
19964         strerror_r-posix: port to cygwin
19965         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19966         implementation.
19967         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19968         * tests/test-strerror_r.c (main): Fix test.
19969         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19970         issue.
19971
19972 2011-02-05  Bruno Haible  <bruno@clisp.org>
19973
19974         New module 'wmemchr'.
19975         * modules/wmemchr: New file.
19976         * lib/wchar.in.h (wmemchr): New declaration.
19977         * lib/wmemchr.c: New file.
19978         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19979         * m4/wmemchr.m4: New file.
19980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19982         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19983         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19984         * doc/posix-functions/wmemchr.texi: Mention the new module.
19985
19986 2011-02-04  Eric Blake  <eblake@redhat.com>
19987
19988         fdopendir: detect FreeBSD bug
19989         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19990         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19991
19992 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19993
19994         stdbool: do not define HAVE_STDBOOL_H
19995         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19996         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19997         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19998         imported from the latest Autoconf git.  It was motivated by Emacs,
19999         which uses gnulib but does not need HAVE_STDBOOL_H.
20000
20001 2011-02-04  Bruno Haible  <bruno@clisp.org>
20002
20003         wcsnrtombs: Prepare for new module wwcsnrtombs.
20004         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20005         * lib/wcsnrtombs.c: Include it.
20006         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20007
20008         wcsrtombs: Prepare for new module wwcsrtombs.
20009         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20010         * lib/wcsrtombs.c: Include it.
20011         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20012
20013         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20014         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20015         * lib/mbsnrtowcs.c: Include it.
20016         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20017
20018         mbsrtowcs: Prepare for new module mbsrtowwcs.
20019         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20020         * lib/mbsrtowcs.c: Include it.
20021         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20022
20023 2011-02-04  Bruno Haible  <bruno@clisp.org>
20024
20025         vasnprintf: Reduce use of malloc for small format strings.
20026         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20027         (arguments): Add room for the first 7 arguments.
20028         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20029         (char_directives, u8_directives, u16_directives, u32_directives): Add
20030         room for the first 7 directives.
20031         * lib/printf-parse.c: Include <string.h>.
20032         (PRINTF_PARSE): Change memory handling code so that it uses the first
20033         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20034         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20035         Reported by Pádraig Brady <P@draigbrady.com>.
20036
20037 2011-01-31  Eric Blake  <eblake@redhat.com>
20038
20039         dup2: work around Haiku bug
20040         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20041         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20042         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20043         * tests/test-dup2.c (main): Enhance test.
20044
20045 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20046
20047         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20048         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20049         declared by eglibc 2.11.2.
20050         * lib/stdio.in.h: Likewise.
20051
20052 2011-01-31  Eric Blake  <eblake@redhat.com>
20053
20054         ignore-value: add missing test dependency
20055         * tests/test-ignore-value.c: Revert previous change; stdio.h
20056         provides off_t.
20057         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20058
20059 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20060
20061         mktime: clarify long_int width checking
20062         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20063         the top level, to make it clearer that the assumption about
20064         long_int width is being checked.  See
20065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20066
20067 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20068
20069         ignore-value: Fix self-test.
20070         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20071
20072 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20073
20074         TYPE_MAXIMUM: avoid theoretically undefined behavior
20075         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20076         negative number, which the C Standard says has undefined behavior.
20077         In practice this is not a problem, but might as well do it by the book.
20078         Reported by Rich Felker and Eric Blake; see
20079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20080         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20081         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20083         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20084         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20085         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20086
20087         mktime: #undef mktime before #defining it
20088         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20089
20090         mktime: systematically normalize tm_isdst comparisons
20091         * lib/mktime.c (isdst_differ): New function.
20092         (__mktime_internal): Use it systematically for all isdst comparisons.
20093         This completes the fix for libc BZ #6723, and removes the need for
20094         normalizing tm_isdst.  See
20095         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20096         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20097
20098         mktime: fix some integer overflow issues and sidestep the rest
20099
20100         This was prompted by a bug report by Benjamin Lindner for MinGW
20101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20102         His bug is due to signed integer overflow (0 - INT_MIN), and I
20103         I scanned through mktime.c looking for other integer overflow
20104         problems, fixing all the bugs I found.
20105
20106         Although the C Standard says the resulting code is still not safe
20107         in the presence of integer overflow, in practice it should be good
20108         enough for all real-world two's-complement implementations, except
20109         for debugging environments that deliberately trap on integer
20110         overflow (e.g., gcc -ftrapv).
20111
20112         * lib/mktime.c (WRAPV): New macro.
20113         (SHR): Also check that long_int and time_t shift right in the
20114         usual way, before using the fast-but-unportable method.
20115         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20116         used.  The code already assumed two's complement, so there's
20117         no need to test for alternatives.  All uses removed.
20118         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20119         the C standard.  Problem reported by Rich Felker in
20120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20121         (twos_complement_arithmetic): Also check long_int and time_t.
20122         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20123         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20124         (__mktime_internal): Avoid integer overflow with unary subtraction
20125         in two instances where -1 - X is an adequate replacement for -X,
20126         since the calculations are approximate.
20127
20128 2011-01-29  Eric Blake  <eblake@redhat.com>
20129
20130         mktime: avoid infinite loop
20131         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20132         type; behavior is still undefined but portable to all known targets.
20133         Reported by Rich Felker.
20134
20135 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20136
20137         rename, unlink, same-inode: Relicense.
20138         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20139         * modules/unlink (License): Likewise.
20140         * modules/same-inode (License): Likewise.
20141
20142 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20143
20144         mktime: avoid problems on NetBSD 5 / i386
20145         * lib/mktime.c (long_int): New type.  This works around a problem
20146         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20147         but time_t is 64 bits, and where I expect the existing code is
20148         wrong in some cases.
20149         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20150         (ydhms_diff): Bring back the compile-time check for wide-enough
20151         year and yday.
20152
20153         mktime: fix misspelling in comment
20154         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20155         This merges all recent glibc changes of importance.
20156
20157 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20158
20159         move-if-change: cope with concurrent mv of identical file.
20160         * build-aux/move-if-change (CMPPROG): Accept environment
20161         variable as an override for `cmp'.
20162         (usage): Document CMPPROG.
20163         Adjust comparison to drop stdout.  Cope with failure of mv if
20164         the target file exists and is identical to the source, for
20165         parallel builds.
20166         Report from H.J. Lu against binutils in PR binutils/12283.
20167
20168 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20169
20170         * users.txt: Mention sharutils.
20171
20172 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20173
20174         * users.txt: Mention OATH Toolkit.
20175
20176 2011-01-27  Bruno Haible  <bruno@clisp.org>
20177
20178         Prepare for supporting FreeBSD 10.
20179         * build-aux/config.libpath: Remove handling of freebsd1*.
20180
20181 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20182
20183         Prepare for supporting FreeBSD 10.
20184         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20185         match FreeBSD 10.0.
20186
20187 2011-01-27  Bruno Haible  <bruno@clisp.org>
20188
20189         vma-iter, get-rusage-as: Add OpenBSD support.
20190         * modules/vma-iter (configure.ac): Test for mquery.
20191         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20192         * lib/vma-iter.c: Include <sys/mman.h>.
20193         (vma_iterate): Add an implementation based on mquery().
20194         * lib/resource-ext.h (get_rusage_as): Update comments.
20195         * lib/get-rusage-as.c: Likewise.
20196         * lib/get-rusage-data.c: Likewise.
20197
20198 2011-01-26  Karl Berry  <karl@gnu.org>
20199
20200         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20201         variables to make it easier to override the makeinfo program used.
20202
20203 2011-01-26  Eric Blake  <eblake@redhat.com>
20204
20205         fcntl: work around Haiku F_DUPFD bugs
20206         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20207         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20208         cloexec bit on duplication.
20209         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20210
20211 2011-01-26  Bruno Haible  <bruno@clisp.org>
20212
20213         Enable memory leak tests on AIX.
20214         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20215         * tests/test-fprintf-posix3.c (main): Likewise.
20216
20217 2011-01-26  Bruno Haible  <bruno@clisp.org>
20218
20219         Tests for module 'get-rusage-data'.
20220         * modules/get-rusage-data-tests: New file.
20221         * tests/test-get-rusage-data.c: New file.
20222
20223         New module 'get-rusage-data'.
20224         * lib/resource-ext.h (get_rusage_data): New declaration.
20225         * lib/get-rusage-data.c: New file.
20226         * modules/get-rusage-data: New file.
20227
20228 2011-01-25  Bruno Haible  <bruno@clisp.org>
20229
20230         get-rusage-as: Allow for easier testing.
20231         * lib/resource-ext.h (get_rusage_as): Add comment.
20232         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20233         (main): New function for interactive testing.
20234
20235 2011-01-25  Bruno Haible  <bruno@clisp.org>
20236
20237         vma-iter: Treat Haiku like BeOS.
20238         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20239         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20240
20241 2011-01-25  Eric Blake  <eblake@redhat.com>
20242
20243         c-stack: fix regression on cygwin when libsigsegv is present
20244         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20245
20246 2011-01-24  Bruno Haible  <bruno@clisp.org>
20247
20248         vma-iter: Avoid empty intervals.
20249         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20250         on an empty interval.
20251
20252 2011-01-24  Jim Meyering  <meyering@redhat.com>
20253
20254         u64: remove unnecessary #include
20255         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20256
20257 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20258
20259         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20260         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20261
20262 2011-01-23  Bruno Haible  <bruno@clisp.org>
20263
20264         New module 'vma-iter'.
20265         * lib/vma-iter.h: New file.
20266         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20267         * modules/vma-iter: New file.
20268         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20269         for get_rusage_as_via_iterator.
20270         (vma_iterate_callback): New function.
20271         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20272         * modules/get-rusage-as (Depends-on): Add vma-iter.
20273
20274 2011-01-23  Bruno Haible  <bruno@clisp.org>
20275
20276         uninorm: Tweak includes.
20277         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20278         Reported by Jim Meyering.
20279
20280 2011-01-23  Bruno Haible  <bruno@clisp.org>
20281
20282         get-rusage-as: Improve on NetBSD.
20283         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20284         /proc, like on FreeBSD.
20285
20286 2011-01-23  Jim Meyering  <meyering@redhat.com>
20287
20288         xreadlink.h: remove unnecessary #include
20289         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20290
20291         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20292         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20293
20294 2011-01-23  Bruno Haible  <bruno@clisp.org>
20295
20296         get-rusage-as: Fix bug.
20297         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20298         original limit when aborting the first loop.
20299
20300 2011-01-23  Bruno Haible  <bruno@clisp.org>
20301
20302         wctype: Ensure valid C syntax.
20303         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20304         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20305
20306 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20307
20308         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20309         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20310         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20311         as they are needed only for configure's test case.
20312         This removes two unnecessary symbols from config.h.
20313
20314         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20315         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20316         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20317         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20318         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20319         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20320         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20321         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20322         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20323         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20324         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20325         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20326         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20327         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20328         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20329         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20330         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20331         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20332
20333 2011-01-21  Eric Blake  <eblake@redhat.com>
20334
20335         maintainer-makefile: work with older git for submodule check
20336         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20337         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20338         Reported by Matthias Bolte.
20339
20340         bootstrap: minor portability fixes
20341         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20342         (usage): Omit leading capital and trailing . on help phrases, per
20343         GNU Coding Standards.
20344         (check_versions, top level): Prefix messages with script name.
20345
20346 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20347
20348         bootstrap: support --no-git option
20349         * build-aux/bootstrap: Add --no-git option, to be used when
20350         --gnulib-srcdir points to the exact desired checkout.
20351
20352 2011-01-21  Eric Blake  <eblake@redhat.com>
20353
20354         strerror_r-posix: work with glibc 2.13
20355         * lib/strerror_r.c (strerror_r): Fix return type.
20356
20357 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20358             Bruno Haible  <bruno@clisp.org>
20359
20360         uN_strstr: New unit tests.
20361         * modules/unistr/u8-strstr-tests: New file.
20362         * modules/unistr/u16-strstr-tests: New file.
20363         * modules/unistr/u32-strstr-tests: New file.
20364         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20365         * tests/unistr/test-u8-strstr.c: New file.
20366         * tests/unistr/test-u16-strstr.c: New file.
20367         * tests/unistr/test-u32-strstr.c: New file.
20368
20369 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20370             Bruno Haible  <bruno@clisp.org>
20371
20372         Make uN_strstr functions O(n) worst-case.
20373         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20374         16-bit and 32-bit unit cases, use the unibyte algorithm from
20375         lib/mbsstr.c.
20376         * lib/unistr/u8-strstr.c: Include <string.h>.
20377         (UNIT_IS_UINT8_T): New macro.
20378         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20379         (U_STRLEN, U_STRNLEN): New macros.
20380         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20381         (U_STRLEN, U_STRNLEN): New macros.
20382         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20383         (configure.ac): Update required libunistring version.
20384         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20385         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20386         malloca.
20387         (configure.ac): Update required libunistring version.
20388         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20389         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20390         malloca.
20391         (configure.ac): Update required libunistring version.
20392
20393 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20394             Bruno Haible  <bruno@clisp.org>
20395
20396         Prepare for faster uN_strstr functions.
20397         * lib/str-kmp.h: Support definable UNITs.
20398         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20399         needle_len argument.
20400         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20401         * lib/mbscasestr.c (mbscasestr): Likewise.
20402
20403 2011-01-21  Pádraig Brady <P@draigBrady.com>
20404
20405         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20406         * tests/test-malloca.c (main): Unset the environment variable
20407         to greatly speed up the test.
20408         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20409         * modules/malloca-tests: Depend on unsetenv.
20410
20411 2011-01-21  Pádraig Brady <P@draigBrady.com>
20412
20413         ignore-value: remove stdint dependency
20414         * lib/ignore-value.h: Remove <stdint.h>
20415         * modules/ignore-value: Remove stdint dependency.
20416
20417 2011-01-21  Jim Meyering  <meyering@redhat.com>
20418
20419         maint.mk: adjust variable name to be consistent with other gl_ vars
20420         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20421         to be lower case.
20422
20423 2011-01-20  Jim Meyering  <meyering@redhat.com>
20424
20425         maint.mk: make "check" depend on public-submodule-commit by default
20426         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20427
20428 2011-01-20  Bruno Haible  <bruno@clisp.org>
20429
20430         mbfile, mbiter: Complete change from 2008-12-21.
20431         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20432         * m4/mbiter.m4 (gl_MBITER): Likewise.
20433
20434 2011-01-20  Jim Meyering  <meyering@redhat.com>
20435
20436         init.sh: insert space between each function name and "()"
20437         * tests/init.sh: Make it a little easier to see that a function's
20438         name is "warn_", and not "warn" when looking at the first part of
20439         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20440
20441 2011-01-20  Jim Meyering  <meyering@redhat.com>
20442
20443         mountlist: clean up code formatting
20444         * lib/mountlist.c (read_file_system_list): Split a long line,
20445         correct bracing style, use NULL in place of "(struct statfs *)0",
20446         don't parenthesize return value, add spaces around "=" and after
20447         ";-in-for-stmt".
20448
20449 2011-01-14  Markus Duft <mduft@gentoo.org>
20450
20451         mountlist: add support for Interix
20452         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20453         Apply statvfs to all entries of /dev/fs.
20454         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20455         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20456
20457 2011-01-20  Jim Meyering  <meyering@redhat.com>
20458
20459         maint.mk: improve the public-submodule-commit rule
20460         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20461         to suppress printing of its commands... unless V=1.
20462         Add git submodule's --quiet option to suppress printing of e.g.,
20463         "Entering gnulib" output.
20464         "cd" into $(srcdir) before running git submodule.
20465
20466 2011-01-20  Bruno Haible  <bruno@clisp.org>
20467
20468         include_next: Fix bug introduced on 2011-01-18.
20469         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20470         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20471         ac_cv_header_... variable if the second argument is not 'check'.
20472         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20473         gl_NEXT_HEADERS_INTERNAL.
20474
20475 2011-01-20  Bruno Haible  <bruno@clisp.org>
20476
20477         Allow the user to avoid the GNULIB_TEST_* macros.
20478         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20479         Suggested by Paul Eggert.
20480
20481 2011-01-14  Jim Meyering  <meyering@redhat.com>
20482
20483         bootstrap: avoid failure when there is no .gitmodules file
20484         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20485         has been assigned to, even when its value is the empty string.
20486         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20487         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20488         Reported by John W. Eaton <jwe@gnu.org>.
20489
20490 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20491
20492         assume <ctype.h>, ..., <time.h> exist
20493         For years gnulib has been assuming the existence of the headers
20494         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20495         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20496         them, since they don't appear to be needed.
20497         * README (Portability guidelines): Document this.
20498         * lib/flock.c: Assume <fcntl.h> exists.
20499         * lib/regex_internal.h: Assume <locale.h> exists.
20500         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20501         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20502         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20503         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20504         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20505         * m4/regex.m4 (gl_REGEX): Likewise.
20506         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20507         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20508         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20509         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20510         * tests/test-argp.c: Likewise.
20511         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20512
20513         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20514         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20515         AA_APPLE_UNIVERSAL_BUILD.  See
20516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20517         * NEWS: Document this.
20518
20519 2011-01-19  Eric Blake  <eblake@redhat.com>
20520
20521         c-stack: assume stack overflow if SA_SIGINFO unsupported
20522         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20523         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20524         sigaction will work.
20525         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20526         behavior match Linux.
20527         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20528
20529         stdbool-tests: accomodate Haiku
20530         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20531
20532         binary-io: fix O_TEXT on Haiku
20533         * modules/binary-io (Depends-on): Add fcntl-h.
20534         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20535         than blindly undefining O_TEXT.
20536         Reported by Scott McCreary.
20537
20538 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20539
20540         include_next: do not check for standard headers like stddef.h
20541
20542         I found this problem when modifying Emacs to use gnulib.
20543         I noticed that it added HAVE_STDDEF_H to config.h, even though
20544         gnulib always assumes <stddef.h> exists as per README and this
20545         symbol is unnecessary.
20546         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20547         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20548         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20549         faster for headers like stddef.h that are known to exist.
20550         (gl_CHECK_NEXT_HEADERS): Use it.
20551         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20552         rather than gl_CHECK_NEXT_HEADERS.
20553         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20554         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20555
20556 2011-01-18  Eric Blake  <eblake@redhat.com>
20557
20558         ansi-c++-opt: skip C++ dependency style if C++ is unused
20559         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20560         tests when we know C++ compilation is not desired.
20561         Reported by Scott McCreary.
20562
20563 2011-01-18  Bruno Haible  <bruno@clisp.org>
20564
20565         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20566         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20567         (main): Perform test also when getrlimit and setrlimit don't exist or
20568         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20569         limiting the address space size using setrlimit, compare the address
20570         space size before and after the the test.
20571         * tests/test-dprintf-posix2.c: Likewise.
20572         * tests/test-fprintf-posix3.sh: Update skip messages.
20573         * tests/test-dprintf-posix2.sh: Likewise.
20574         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20575         * modules/dprintf-posix-tests (Depends-on): Likewise.
20576         Reported by Bruce Korb <bkorb@gnu.org> and
20577         Gary V. Vaughan <gary@gnu.org>.
20578
20579 2011-01-18  Bruno Haible  <bruno@clisp.org>
20580
20581         get-rusage-as: Improvement for Cygwin.
20582         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20583         areas that are merely reserved.
20584
20585 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20586
20587         strftime: remove dependencies on multibyte modules
20588
20589         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20590         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20591         only if __osf__ is defined, and I suspect OSF doesn't need these
20592         other modules.  If my guess is wrong, we'll need to come up with a
20593         variant of strftime that doesn't need the multibyte modules.
20594
20595         I discovered this problem when attempting modify Emacs to use the
20596         strftime module.  With the previous gnulib, this caused Emacs to
20597         need 31 new files, ranging from lib/config.charset to
20598         m4/wint_t.m4.  This was overkill and I expect would be offputting
20599         to the Emacs maintainers.  After this change, only 6 new files are
20600         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20601         stdbool.m4, and tm_gmtoff.m4.
20602
20603         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20604         Suggested by Bruno Haible in
20605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20606         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20607         and do not check for wchar.h.
20608         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20609         (Depends-on): Remove mbrlen, mbsinit, wchar.
20610
20611 2011-01-18  Bruno Haible  <bruno@clisp.org>
20612
20613         Tests for module 'get-rusage-as'.
20614         * modules/get-rusage-as-tests: New file.
20615         * tests/test-get-rusage-as.c: New file.
20616
20617         New module 'get-rusage-as'.
20618         * modules/get-rusage-as: New file.
20619         * lib/resource-ext.h: New file.
20620         * lib/get-rusage-as.c: New file.
20621
20622 2011-01-17  Eric Blake  <eblake@redhat.com>
20623
20624         sigaction: relax license from LGPLv3+ to LGPLv2+
20625         * modules/sigaction (License): Relax to LGPLv2+.
20626
20627 2011-01-14  Bruno Haible  <bruno@clisp.org>
20628
20629         filemode: Make function declarations usable in C++ mode.
20630         * lib/filemode.h: Enclose function declarations in extern "C" block.
20631         Reported by John W. Eaton <jwe@gnu.org>.
20632
20633 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20634
20635         save-cwd: no longer include "xgetcwd.h"
20636         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20637         This avoids a compilation failure in projects that use save-cwd
20638         without also using the xgetcwd module.
20639
20640 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20641
20642         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20643         This is so that a program like Emacs, which needs only dtoastr,
20644         does not have to bother with distributing and compiling ftoastr
20645         and ldtoastr.
20646         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20647         * modules/dtoastr, modules/ldtoastr: New files.
20648         * modules/ftoastr: Now works just for 'float'.
20649         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20650         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20651         dtoastr.c, ldtoastr.c.
20652
20653 2011-01-11  Jim Meyering  <meyering@redhat.com>
20654
20655         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20656         There is no need to work around the lack of the fchdir function,
20657         since gnulib can now provide a replacement when required.
20658         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20659         * modules/save-cwd (Depends-on): Add fchdir.
20660
20661 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20662
20663         openat, save-cwd: avoid xmalloc
20664
20665         This removes a direct (but undocumented) dependency of openat on
20666         xalloc, along with an indirect dependency via save-cwd.  It also
20667         removes a dependency of save-cwd on xgetcwd, and thereby
20668         indirectly on xalloc.  This change causes the openat substitute
20669         to fall back on save_cwd when memory is tight, and for save_cwd to
20670         fail instead of dying when memory is tight, but that's good enough.
20671         Problem and initial idea for fix reported by Bastien Roucaries in
20672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20673
20674         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20675         xalloc.h (for xmalloc).
20676         (openat_proc_name): Use malloc, not xmalloc.
20677         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20678         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20679
20680         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20681         This avoids heap allocation for file names whose lengths are in
20682         the range 512..1023, with the upper bound increasing to at most
20683         4031 depending on the platform's PATH_MAX.  (We do not want
20684         pathmax.h here as it might supply a non-constant PATH_MAX.)
20685         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20686         Perhaps they should be moved to malloca.h?
20687         (OPENAT_BUFFER_SIZE): Use them.
20688
20689 2011-01-10  Bruno Haible  <bruno@clisp.org>
20690
20691         doc: Update users.txt.
20692         * users.txt: Add recutils.
20693
20694 2011-01-09  Karl Berry  <karl@gnu.org>
20695
20696         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20697
20698         * doc/configmake.texi: New file.
20699         * doc/gnulib.texi: Include it.
20700         * modules/configmake: Move documentation from here.
20701
20702 2011-01-09  Bruno Haible  <bruno@clisp.org>
20703
20704         Update to Unicode 6.0.0.
20705         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20706         (get_lbp): Update for Unicode 6.0.0.
20707         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20708         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20709         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20710         U+11001, U+11038..U+11046. Remove U+06DE.
20711         (uc_width): Fix bounds of planes.
20712         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20713         lib/uniwidth/width.c.
20714         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20715         trailing whitespace removed.
20716         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20717         without comments, but with the original copyright notice.
20718         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20719         * lib/unicase/ignorable.h: Likewise.
20720         * lib/unicase/tocasefold.h: Likewise.
20721         * lib/unicase/tolower.h: Likewise.
20722         * lib/unicase/totitle.h: Likewise.
20723         * lib/unicase/toupper.h: Likewise.
20724         * lib/unictype/bidi_of.h: Likewise.
20725         * lib/unictype/blocks.h: Likewise.
20726         * lib/unictype/categ_C.h: Likewise.
20727         * lib/unictype/categ_Cn.h: Likewise.
20728         * lib/unictype/categ_L.h: Likewise.
20729         * lib/unictype/categ_Ll.h: Likewise.
20730         * lib/unictype/categ_Lm.h: Likewise.
20731         * lib/unictype/categ_Lo.h: Likewise.
20732         * lib/unictype/categ_Lu.h: Likewise.
20733         * lib/unictype/categ_M.h: Likewise.
20734         * lib/unictype/categ_Mc.h: Likewise.
20735         * lib/unictype/categ_Me.h: Likewise.
20736         * lib/unictype/categ_Mn.h: Likewise.
20737         * lib/unictype/categ_N.h: Likewise.
20738         * lib/unictype/categ_Nd.h: Likewise.
20739         * lib/unictype/categ_No.h: Likewise.
20740         * lib/unictype/categ_P.h: Likewise.
20741         * lib/unictype/categ_Po.h: Likewise.
20742         * lib/unictype/categ_S.h: Likewise.
20743         * lib/unictype/categ_Sc.h: Likewise.
20744         * lib/unictype/categ_Sk.h: Likewise.
20745         * lib/unictype/categ_Sm.h: Likewise.
20746         * lib/unictype/categ_So.h: Likewise.
20747         * lib/unictype/categ_of.h: Likewise.
20748         * lib/unictype/combining.h: Likewise.
20749         * lib/unictype/ctype_alnum.h: Likewise.
20750         * lib/unictype/ctype_alpha.h: Likewise.
20751         * lib/unictype/ctype_graph.h: Likewise.
20752         * lib/unictype/ctype_lower.h: Likewise.
20753         * lib/unictype/ctype_print.h: Likewise.
20754         * lib/unictype/ctype_punct.h: Likewise.
20755         * lib/unictype/ctype_upper.h: Likewise.
20756         * lib/unictype/decdigit.h: Likewise.
20757         * lib/unictype/digit.h: Likewise.
20758         * lib/unictype/numeric.h: Likewise.
20759         * lib/unictype/pr_alphabetic.h: Likewise.
20760         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20761         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20762         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20763         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20764         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20765         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20766         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20767         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20768         * lib/unictype/pr_case_ignorable.h: Likewise.
20769         * lib/unictype/pr_cased.h: Likewise.
20770         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20771         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20772         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20773         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20774         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20775         * lib/unictype/pr_combining.h: Likewise.
20776         * lib/unictype/pr_composite.h: Likewise.
20777         * lib/unictype/pr_currency_symbol.h: Likewise.
20778         * lib/unictype/pr_decimal_digit.h: Likewise.
20779         * lib/unictype/pr_deprecated.h: Likewise.
20780         * lib/unictype/pr_format_control.h: Likewise.
20781         * lib/unictype/pr_grapheme_base.h: Likewise.
20782         * lib/unictype/pr_grapheme_extend.h: Likewise.
20783         * lib/unictype/pr_grapheme_link.h: Likewise.
20784         * lib/unictype/pr_id_continue.h: Likewise.
20785         * lib/unictype/pr_id_start.h: Likewise.
20786         * lib/unictype/pr_ideographic.h: Likewise.
20787         * lib/unictype/pr_lowercase.h: Likewise.
20788         * lib/unictype/pr_math.h: Likewise.
20789         * lib/unictype/pr_numeric.h: Likewise.
20790         * lib/unictype/pr_other_alphabetic.h: Likewise.
20791         * lib/unictype/pr_other_id_continue.h: Likewise.
20792         * lib/unictype/pr_other_math.h: Likewise.
20793         * lib/unictype/pr_punctuation.h: Likewise.
20794         * lib/unictype/pr_sentence_terminal.h: Likewise.
20795         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20796         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20797         * lib/unictype/pr_unified_ideograph.h: Likewise.
20798         * lib/unictype/pr_uppercase.h: Likewise.
20799         * lib/unictype/pr_xid_continue.h: Likewise.
20800         * lib/unictype/pr_xid_start.h: Likewise.
20801         * lib/unictype/scripts.h: Likewise.
20802         * lib/unictype/scripts_byname.gperf: Likewise.
20803         * lib/unictype/sy_java_ident.h: Likewise.
20804         * lib/unigbrk/gbrkprop.h: Likewise.
20805         * lib/unilbrk/lbrkprop1.h: Likewise.
20806         * lib/unilbrk/lbrkprop2.h: Likewise.
20807         * lib/uninorm/decomposition-table2.h: Likewise.
20808         * lib/uniwbrk/wbrkprop.h: Likewise.
20809         * tests/unicase/test-cased.c: Likewise.
20810         * tests/unicase/test-ignorable.c: Likewise.
20811         * tests/unicase/test-uc_tolower.c: Likewise.
20812         * tests/unicase/test-uc_totitle.c: Likewise.
20813         * tests/unicase/test-uc_toupper.c: Likewise.
20814         * tests/unictype/test-categ_C.c: Likewise.
20815         * tests/unictype/test-categ_Cn.c: Likewise.
20816         * tests/unictype/test-categ_L.c: Likewise.
20817         * tests/unictype/test-categ_Ll.c: Likewise.
20818         * tests/unictype/test-categ_Lm.c: Likewise.
20819         * tests/unictype/test-categ_Lo.c: Likewise.
20820         * tests/unictype/test-categ_Lu.c: Likewise.
20821         * tests/unictype/test-categ_M.c: Likewise.
20822         * tests/unictype/test-categ_Mc.c: Likewise.
20823         * tests/unictype/test-categ_Me.c: Likewise.
20824         * tests/unictype/test-categ_Mn.c: Likewise.
20825         * tests/unictype/test-categ_N.c: Likewise.
20826         * tests/unictype/test-categ_Nd.c: Likewise.
20827         * tests/unictype/test-categ_No.c: Likewise.
20828         * tests/unictype/test-categ_P.c: Likewise.
20829         * tests/unictype/test-categ_Po.c: Likewise.
20830         * tests/unictype/test-categ_S.c: Likewise.
20831         * tests/unictype/test-categ_Sc.c: Likewise.
20832         * tests/unictype/test-categ_Sk.c: Likewise.
20833         * tests/unictype/test-categ_Sm.c: Likewise.
20834         * tests/unictype/test-categ_So.c: Likewise.
20835         * tests/unictype/test-ctype_alnum.c: Likewise.
20836         * tests/unictype/test-ctype_alpha.c: Likewise.
20837         * tests/unictype/test-ctype_graph.c: Likewise.
20838         * tests/unictype/test-ctype_lower.c: Likewise.
20839         * tests/unictype/test-ctype_print.c: Likewise.
20840         * tests/unictype/test-ctype_punct.c: Likewise.
20841         * tests/unictype/test-ctype_upper.c: Likewise.
20842         * tests/unictype/test-decdigit.h: Likewise.
20843         * tests/unictype/test-digit.h: Likewise.
20844         * tests/unictype/test-numeric.h: Likewise.
20845         * tests/unictype/test-pr_alphabetic.c: Likewise.
20846         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20847         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20848         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20849         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20850         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20851         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20852         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20853         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20854         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20855         * tests/unictype/test-pr_cased.c: Likewise.
20856         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20857         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20858         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20859         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20860         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20861         * tests/unictype/test-pr_combining.c: Likewise.
20862         * tests/unictype/test-pr_composite.c: Likewise.
20863         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20864         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20865         * tests/unictype/test-pr_deprecated.c: Likewise.
20866         * tests/unictype/test-pr_format_control.c: Likewise.
20867         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20868         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20869         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20870         * tests/unictype/test-pr_id_continue.c: Likewise.
20871         * tests/unictype/test-pr_id_start.c: Likewise.
20872         * tests/unictype/test-pr_ideographic.c: Likewise.
20873         * tests/unictype/test-pr_lowercase.c: Likewise.
20874         * tests/unictype/test-pr_math.c: Likewise.
20875         * tests/unictype/test-pr_numeric.c: Likewise.
20876         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20877         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20878         * tests/unictype/test-pr_other_math.c: Likewise.
20879         * tests/unictype/test-pr_punctuation.c: Likewise.
20880         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20881         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20882         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20883         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20884         * tests/unictype/test-pr_uppercase.c: Likewise.
20885         * tests/unictype/test-pr_xid_continue.c: Likewise.
20886         * tests/unictype/test-pr_xid_start.c: Likewise.
20887         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20888         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20889         changes.
20890         * lib/unictype/categ_Cc.h: Likewise.
20891         * lib/unictype/categ_Cf.h: Likewise.
20892         * lib/unictype/categ_Co.h: Likewise.
20893         * lib/unictype/categ_Cs.h: Likewise.
20894         * lib/unictype/categ_Lt.h: Likewise.
20895         * lib/unictype/categ_Nl.h: Likewise.
20896         * lib/unictype/categ_Pc.h: Likewise.
20897         * lib/unictype/categ_Pd.h: Likewise.
20898         * lib/unictype/categ_Pe.h: Likewise.
20899         * lib/unictype/categ_Pf.h: Likewise.
20900         * lib/unictype/categ_Pi.h: Likewise.
20901         * lib/unictype/categ_Ps.h: Likewise.
20902         * lib/unictype/categ_Z.h: Likewise.
20903         * lib/unictype/categ_Zl.h: Likewise.
20904         * lib/unictype/categ_Zp.h: Likewise.
20905         * lib/unictype/categ_Zs.h: Likewise.
20906         * lib/unictype/ctype_blank.h: Likewise.
20907         * lib/unictype/ctype_cntrl.h: Likewise.
20908         * lib/unictype/ctype_digit.h: Likewise.
20909         * lib/unictype/ctype_space.h: Likewise.
20910         * lib/unictype/ctype_xdigit.h: Likewise.
20911         * lib/unictype/mirror.h: Likewise.
20912         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20913         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20914         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20915         * lib/unictype/pr_bidi_control.h: Likewise.
20916         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20917         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20918         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20919         * lib/unictype/pr_bidi_pdf.h: Likewise.
20920         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20921         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20922         * lib/unictype/pr_dash.h: Likewise.
20923         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20924         * lib/unictype/pr_diacritic.h: Likewise.
20925         * lib/unictype/pr_extender.h: Likewise.
20926         * lib/unictype/pr_hex_digit.h: Likewise.
20927         * lib/unictype/pr_hyphen.h: Likewise.
20928         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20929         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20930         * lib/unictype/pr_ignorable_control.h: Likewise.
20931         * lib/unictype/pr_iso_control.h: Likewise.
20932         * lib/unictype/pr_join_control.h: Likewise.
20933         * lib/unictype/pr_left_of_pair.h: Likewise.
20934         * lib/unictype/pr_line_separator.h: Likewise.
20935         * lib/unictype/pr_logical_order_exception.h: Likewise.
20936         * lib/unictype/pr_non_break.h: Likewise.
20937         * lib/unictype/pr_not_a_character.h: Likewise.
20938         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20939         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20940         * lib/unictype/pr_other_id_start.h: Likewise.
20941         * lib/unictype/pr_other_lowercase.h: Likewise.
20942         * lib/unictype/pr_other_uppercase.h: Likewise.
20943         * lib/unictype/pr_paired_punctuation.h: Likewise.
20944         * lib/unictype/pr_paragraph_separator.h: Likewise.
20945         * lib/unictype/pr_pattern_syntax.h: Likewise.
20946         * lib/unictype/pr_pattern_white_space.h: Likewise.
20947         * lib/unictype/pr_private_use.h: Likewise.
20948         * lib/unictype/pr_quotation_mark.h: Likewise.
20949         * lib/unictype/pr_radical.h: Likewise.
20950         * lib/unictype/pr_soft_dotted.h: Likewise.
20951         * lib/unictype/pr_space.h: Likewise.
20952         * lib/unictype/pr_titlecase.h: Likewise.
20953         * lib/unictype/pr_variation_selector.h: Likewise.
20954         * lib/unictype/pr_white_space.h: Likewise.
20955         * lib/unictype/pr_zero_width.h: Likewise.
20956         * lib/unictype/sy_c_ident.h: Likewise.
20957         * lib/unictype/sy_c_whitespace.h: Likewise.
20958         * lib/unictype/sy_java_whitespace.h: Likewise.
20959         * lib/uninorm/composition-table.gperf: Likewise.
20960         * lib/uninorm/decomposition-table1.h: Likewise.
20961         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20962         LB8.
20963         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20964         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20965         * modules/unictype/*: Bump version number of expected libunistring
20966         version.
20967
20968 2011-01-09  Bruno Haible  <bruno@clisp.org>
20969
20970         Update to Unicode 5.2.0.
20971         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20972         trailing whitespace removed.
20973
20974 2011-01-09  Bruno Haible  <bruno@clisp.org>
20975
20976         New Unicode character properties, from Unicode 5.2.0.
20977         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20978         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20979         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20980         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20981         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20982         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20983         uc_is_property_cased, uc_is_property_case_ignorable,
20984         uc_is_property_changes_when_lowercased,
20985         uc_is_property_changes_when_uppercased,
20986         uc_is_property_changes_when_titlecased,
20987         uc_is_property_changes_when_casefolded,
20988         uc_is_property_changes_when_casemapped): New declarations.
20989         * lib/unictype/pr_byname.gperf: Add the new properties.
20990         * modules/unictype/property-byname (Depends-on): Depend on the new
20991         properties modules.
20992         * modules/unictype/property-all (Depends-on): Likewise.
20993         * MODULES.html.sh (Unicode string functions): Add
20994         unictype/property-case-ignorable, unictype/property-cased,
20995         unictype/property-changes-when-casefolded,
20996         unictype/property-changes-when-casemapped,
20997         unictype/property-changes-when-lowercased,
20998         unictype/property-changes-when-titlecased,
20999         unictype/property-changes-when-uppercased.
21000
21001         New module 'unictype/property-changes-when-casemapped'.
21002         * modules/unictype/property-changes-when-casemapped: New file.
21003         * lib/unictype/pr_changes_when_casemapped.c: New file.
21004         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21005         generated by gen-uni-tables.
21006         * modules/unictype/property-changes-when-casemapped-tests: New file.
21007         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21008         automatically generated by gen-uni-tables.
21009
21010         New module 'unictype/property-changes-when-casefolded'.
21011         * modules/unictype/property-changes-when-casefolded: New file.
21012         * lib/unictype/pr_changes_when_casefolded.c: New file.
21013         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21014         generated by gen-uni-tables.
21015         * modules/unictype/property-changes-when-casefolded-tests: New file.
21016         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21017         automatically generated by gen-uni-tables.
21018
21019         New module 'unictype/property-changes-when-titlecased'.
21020         * modules/unictype/property-changes-when-titlecased: New file.
21021         * lib/unictype/pr_changes_when_titlecased.c: New file.
21022         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21023         generated by gen-uni-tables.
21024         * modules/unictype/property-changes-when-titlecased-tests: New file.
21025         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21026         automatically generated by gen-uni-tables.
21027
21028         New module 'unictype/property-changes-when-uppercased'.
21029         * modules/unictype/property-changes-when-uppercased: New file.
21030         * lib/unictype/pr_changes_when_uppercased.c: New file.
21031         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21032         generated by gen-uni-tables.
21033         * modules/unictype/property-changes-when-uppercased-tests: New file.
21034         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21035         automatically generated by gen-uni-tables.
21036
21037         New module 'unictype/property-changes-when-lowercased'.
21038         * modules/unictype/property-changes-when-lowercased: New file.
21039         * lib/unictype/pr_changes_when_lowercased.c: New file.
21040         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21041         generated by gen-uni-tables.
21042         * modules/unictype/property-changes-when-lowercased-tests: New file.
21043         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21044         automatically generated by gen-uni-tables.
21045
21046         New module 'unictype/property-case-ignorable'.
21047         * modules/unictype/property-case-ignorable: New file.
21048         * lib/unictype/pr_case_ignorable.c: New file.
21049         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21050         by gen-uni-tables.
21051         * modules/unictype/property-case-ignorable-tests: New file.
21052         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21053         generated by gen-uni-tables.
21054
21055         New module 'unictype/property-cased'.
21056         * modules/unictype/property-cased: New file.
21057         * lib/unictype/pr_cased.c: New file.
21058         * lib/unictype/pr_cased.h: New file, automatically generated by
21059         gen-uni-tables.
21060         * modules/unictype/property-cased-tests: New file.
21061         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21062         gen-uni-tables.
21063
21064 2011-01-09  Bruno Haible  <bruno@clisp.org>
21065
21066         Update to Unicode 5.2.0.
21067         * lib/gen-uni-tables.c (output_predicate, output_category,
21068         output_combclass, output_bidi_category, output_decimal_digit_test,
21069         output_decimal_digit, output_digit_test, output_digit,
21070         output_numeric_test, output_numeric, output_mirror, output_scripts,
21071         output_scripts_byname, output_blocks, output_ident_category): Fix
21072         comment header.
21073         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21074         get_wbp.
21075         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21076         items.
21077         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21078         Changes_When_Lowercased, Changes_When_Uppercased,
21079         Changes_When_Titlecased, Changes_When_Casefolded,
21080         Changes_When_Casemapped.
21081         (is_property_alphabetic, is_property_default_ignorable_code_point):
21082         Update for Unicode 5.2.0.
21083         (is_property_cased, is_property_case_ignorable,
21084         is_property_changes_when_lowercased,
21085         is_property_changes_when_uppercased,
21086         is_property_changes_when_titlecased,
21087         is_property_changes_when_casefolded,
21088         is_property_changes_when_casemapped): New functions.
21089         (output_properties): Output also the properties cased, case_ignorable,
21090         changes_when_lowercased, changes_when_uppercased,
21091         changes_when_titlecased, changes_when_casefolded,
21092         changes_when_casemapped.
21093         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21094         Unicode TR#11 revision 17 -> 19.
21095         (LBP_CP): New enumeration value.
21096         (LBP_*): Adjust values accordingly.
21097         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21098         TR#14 revision 22 -> 24.
21099         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21100         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21101         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21102         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21103         is_WBP_MIDLETTER.
21104         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21105         the code1 and code2 of each composition rule.
21106         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21107         * lib/unicase/ignorable.h: Likewise.
21108         * lib/unicase/tocasefold.h: Likewise.
21109         * lib/unicase/tolower.h: Likewise.
21110         * lib/unicase/totitle.h: Likewise.
21111         * lib/unicase/toupper.h: Likewise.
21112         * lib/unictype/bidi_of.h: Likewise.
21113         * lib/unictype/blocks.h: Likewise.
21114         * lib/unictype/categ_C.h: Likewise.
21115         * lib/unictype/categ_Cf.h: Likewise.
21116         * lib/unictype/categ_Cn.h: Likewise.
21117         * lib/unictype/categ_L.h: Likewise.
21118         * lib/unictype/categ_Ll.h: Likewise.
21119         * lib/unictype/categ_Lm.h: Likewise.
21120         * lib/unictype/categ_Lo.h: Likewise.
21121         * lib/unictype/categ_Lu.h: Likewise.
21122         * lib/unictype/categ_M.h: Likewise.
21123         * lib/unictype/categ_Mc.h: Likewise.
21124         * lib/unictype/categ_Mn.h: Likewise.
21125         * lib/unictype/categ_N.h: Likewise.
21126         * lib/unictype/categ_Nd.h: Likewise.
21127         * lib/unictype/categ_Nl.h: Likewise.
21128         * lib/unictype/categ_No.h: Likewise.
21129         * lib/unictype/categ_P.h: Likewise.
21130         * lib/unictype/categ_Pd.h: Likewise.
21131         * lib/unictype/categ_Po.h: Likewise.
21132         * lib/unictype/categ_S.h: Likewise.
21133         * lib/unictype/categ_Sc.h: Likewise.
21134         * lib/unictype/categ_So.h: Likewise.
21135         * lib/unictype/categ_of.h: Likewise.
21136         * lib/unictype/combining.h: Likewise.
21137         * lib/unictype/ctype_alnum.h: Likewise.
21138         * lib/unictype/ctype_alpha.h: Likewise.
21139         * lib/unictype/ctype_graph.h: Likewise.
21140         * lib/unictype/ctype_lower.h: Likewise.
21141         * lib/unictype/ctype_print.h: Likewise.
21142         * lib/unictype/ctype_punct.h: Likewise.
21143         * lib/unictype/ctype_upper.h: Likewise.
21144         * lib/unictype/decdigit.h: Likewise.
21145         * lib/unictype/digit.h: Likewise.
21146         * lib/unictype/numeric.h: Likewise.
21147         * lib/unictype/pr_alphabetic.h: Likewise.
21148         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21149         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21150         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21151         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21152         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21153         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21154         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21155         * lib/unictype/pr_combining.h: Likewise.
21156         * lib/unictype/pr_composite.h: Likewise.
21157         * lib/unictype/pr_currency_symbol.h: Likewise.
21158         * lib/unictype/pr_dash.h: Likewise.
21159         * lib/unictype/pr_decimal_digit.h: Likewise.
21160         * lib/unictype/pr_deprecated.h: Likewise.
21161         * lib/unictype/pr_diacritic.h: Likewise.
21162         * lib/unictype/pr_extender.h: Likewise.
21163         * lib/unictype/pr_grapheme_base.h: Likewise.
21164         * lib/unictype/pr_grapheme_extend.h: Likewise.
21165         * lib/unictype/pr_grapheme_link.h: Likewise.
21166         * lib/unictype/pr_id_continue.h: Likewise.
21167         * lib/unictype/pr_id_start.h: Likewise.
21168         * lib/unictype/pr_ideographic.h: Likewise.
21169         * lib/unictype/pr_ignorable_control.h: Likewise.
21170         * lib/unictype/pr_logical_order_exception.h: Likewise.
21171         * lib/unictype/pr_lowercase.h: Likewise.
21172         * lib/unictype/pr_numeric.h: Likewise.
21173         * lib/unictype/pr_other_alphabetic.h: Likewise.
21174         * lib/unictype/pr_punctuation.h: Likewise.
21175         * lib/unictype/pr_sentence_terminal.h: Likewise.
21176         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21177         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21178         * lib/unictype/pr_unified_ideograph.h: Likewise.
21179         * lib/unictype/pr_uppercase.h: Likewise.
21180         * lib/unictype/pr_xid_continue.h: Likewise.
21181         * lib/unictype/pr_xid_start.h: Likewise.
21182         * lib/unictype/pr_zero_width.h: Likewise.
21183         * lib/unictype/scripts.h: Likewise.
21184         * lib/unictype/scripts_byname.gperf: Likewise.
21185         * lib/unictype/sy_java_ident.h: Likewise.
21186         * lib/unigbrk/gbrkprop.h: Likewise.
21187         * lib/unilbrk/lbrkprop1.h: Likewise.
21188         * lib/unilbrk/lbrkprop2.h: Likewise.
21189         * lib/unilbrk/lbrktables.h: Likewise.
21190         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21191         LBP_CP. Implement rule LB30.
21192         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21193         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21194         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21195         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21196         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21197         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21198         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21199         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21200         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21201         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21202         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21203         bits instead of 16 bits in the code1 and code2 of each composition
21204         rule.
21205         (uc_composition): Update for Unicode 5.2.0.
21206         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21207         * lib/uninorm/decomposition-table2.h: Likewise.
21208         * lib/uniwbrk/wbrkprop.h: Likewise.
21209         * tests/unicase/test-cased.c: Likewise.
21210         * tests/unicase/test-ignorable.c: Likewise.
21211         * tests/unicase/test-uc_tolower.c: Likewise.
21212         * tests/unicase/test-uc_totitle.c: Likewise.
21213         * tests/unicase/test-uc_toupper.c: Likewise.
21214         * tests/unictype/test-categ_C.c: Likewise.
21215         * tests/unictype/test-categ_Cf.c: Likewise.
21216         * tests/unictype/test-categ_Cn.c: Likewise.
21217         * tests/unictype/test-categ_L.c: Likewise.
21218         * tests/unictype/test-categ_Ll.c: Likewise.
21219         * tests/unictype/test-categ_Lm.c: Likewise.
21220         * tests/unictype/test-categ_Lo.c: Likewise.
21221         * tests/unictype/test-categ_Lu.c: Likewise.
21222         * tests/unictype/test-categ_M.c: Likewise.
21223         * tests/unictype/test-categ_Mc.c: Likewise.
21224         * tests/unictype/test-categ_Mn.c: Likewise.
21225         * tests/unictype/test-categ_N.c: Likewise.
21226         * tests/unictype/test-categ_Nd.c: Likewise.
21227         * tests/unictype/test-categ_Nl.c: Likewise.
21228         * tests/unictype/test-categ_No.c: Likewise.
21229         * tests/unictype/test-categ_P.c: Likewise.
21230         * tests/unictype/test-categ_Pd.c: Likewise.
21231         * tests/unictype/test-categ_Po.c: Likewise.
21232         * tests/unictype/test-categ_S.c: Likewise.
21233         * tests/unictype/test-categ_Sc.c: Likewise.
21234         * tests/unictype/test-categ_So.c: Likewise.
21235         * tests/unictype/test-ctype_alnum.c: Likewise.
21236         * tests/unictype/test-ctype_alpha.c: Likewise.
21237         * tests/unictype/test-ctype_graph.c: Likewise.
21238         * tests/unictype/test-ctype_lower.c: Likewise.
21239         * tests/unictype/test-ctype_print.c: Likewise.
21240         * tests/unictype/test-ctype_punct.c: Likewise.
21241         * tests/unictype/test-ctype_upper.c: Likewise.
21242         * tests/unictype/test-decdigit.h: Likewise.
21243         * tests/unictype/test-digit.h: Likewise.
21244         * tests/unictype/test-numeric.h: Likewise.
21245         * tests/unictype/test-pr_alphabetic.c: Likewise.
21246         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21247         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21248         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21249         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21250         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21251         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21252         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21253         * tests/unictype/test-pr_combining.c: Likewise.
21254         * tests/unictype/test-pr_composite.c: Likewise.
21255         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21256         * tests/unictype/test-pr_dash.c: Likewise.
21257         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21258         * tests/unictype/test-pr_deprecated.c: Likewise.
21259         * tests/unictype/test-pr_diacritic.c: Likewise.
21260         * tests/unictype/test-pr_extender.c: Likewise.
21261         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21262         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21263         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21264         * tests/unictype/test-pr_id_continue.c: Likewise.
21265         * tests/unictype/test-pr_id_start.c: Likewise.
21266         * tests/unictype/test-pr_ideographic.c: Likewise.
21267         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21268         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21269         * tests/unictype/test-pr_lowercase.c: Likewise.
21270         * tests/unictype/test-pr_numeric.c: Likewise.
21271         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21272         * tests/unictype/test-pr_punctuation.c: Likewise.
21273         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21274         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21275         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21276         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21277         * tests/unictype/test-pr_uppercase.c: Likewise.
21278         * tests/unictype/test-pr_xid_continue.c: Likewise.
21279         * tests/unictype/test-pr_xid_start.c: Likewise.
21280         * tests/unictype/test-pr_zero_width.c: Likewise.
21281         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21282         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21283         changed behaviour: line breaking is now disallowed between a letter
21284         or '=' and '('.
21285         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21286         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21287         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21288         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21289         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21290         lib/uniwidth/width.c.
21291         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21292         without comments, but with the original copyright notice.
21293         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21294         changes.
21295         * lib/unictype/categ_Cc.h: Likewise.
21296         * lib/unictype/categ_Co.h: Likewise.
21297         * lib/unictype/categ_Cs.h: Likewise.
21298         * lib/unictype/categ_Lt.h: Likewise.
21299         * lib/unictype/categ_Me.h: Likewise.
21300         * lib/unictype/categ_Pc.h: Likewise.
21301         * lib/unictype/categ_Pe.h: Likewise.
21302         * lib/unictype/categ_Pf.h: Likewise.
21303         * lib/unictype/categ_Pi.h: Likewise.
21304         * lib/unictype/categ_Ps.h: Likewise.
21305         * lib/unictype/categ_Sk.h: Likewise.
21306         * lib/unictype/categ_Sm.h: Likewise.
21307         * lib/unictype/categ_Z.h: Likewise.
21308         * lib/unictype/categ_Zl.h: Likewise.
21309         * lib/unictype/categ_Zp.h: Likewise.
21310         * lib/unictype/categ_Zs.h: Likewise.
21311         * lib/unictype/ctype_blank.h: Likewise.
21312         * lib/unictype/ctype_cntrl.h: Likewise.
21313         * lib/unictype/ctype_digit.h: Likewise.
21314         * lib/unictype/ctype_space.h: Likewise.
21315         * lib/unictype/ctype_xdigit.h: Likewise.
21316         * lib/unictype/mirror.h: Likewise.
21317         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21318         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21319         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21320         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21321         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21322         * lib/unictype/pr_bidi_control.h: Likewise.
21323         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21324         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21325         * lib/unictype/pr_bidi_pdf.h: Likewise.
21326         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21327         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21328         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21329         * lib/unictype/pr_format_control.h: Likewise.
21330         * lib/unictype/pr_hex_digit.h: Likewise.
21331         * lib/unictype/pr_hyphen.h: Likewise.
21332         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21333         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21334         * lib/unictype/pr_iso_control.h: Likewise.
21335         * lib/unictype/pr_join_control.h: Likewise.
21336         * lib/unictype/pr_left_of_pair.h: Likewise.
21337         * lib/unictype/pr_line_separator.h: Likewise.
21338         * lib/unictype/pr_math.h: Likewise.
21339         * lib/unictype/pr_non_break.h: Likewise.
21340         * lib/unictype/pr_not_a_character.h: Likewise.
21341         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21342         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21343         * lib/unictype/pr_other_id_continue.h: Likewise.
21344         * lib/unictype/pr_other_id_start.h: Likewise.
21345         * lib/unictype/pr_other_lowercase.h: Likewise.
21346         * lib/unictype/pr_other_math.h: Likewise.
21347         * lib/unictype/pr_other_uppercase.h: Likewise.
21348         * lib/unictype/pr_paired_punctuation.h: Likewise.
21349         * lib/unictype/pr_paragraph_separator.h: Likewise.
21350         * lib/unictype/pr_pattern_syntax.h: Likewise.
21351         * lib/unictype/pr_pattern_white_space.h: Likewise.
21352         * lib/unictype/pr_private_use.h: Likewise.
21353         * lib/unictype/pr_quotation_mark.h: Likewise.
21354         * lib/unictype/pr_radical.h: Likewise.
21355         * lib/unictype/pr_soft_dotted.h: Likewise.
21356         * lib/unictype/pr_space.h: Likewise.
21357         * lib/unictype/pr_titlecase.h: Likewise.
21358         * lib/unictype/pr_variation_selector.h: Likewise.
21359         * lib/unictype/pr_white_space.h: Likewise.
21360         * lib/unictype/sy_c_ident.h: Likewise.
21361         * lib/unictype/sy_c_whitespace.h: Likewise.
21362         * lib/unictype/sy_java_whitespace.h: Likewise.
21363         * modules/uni*/*: Bump version number of expected libunistring version.
21364         Reported by Simon Josefsson.
21365
21366 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21367
21368         useless-if-before-free: fix typo in --help and make the internal,
21369         automatic version date update process work once again.
21370         --help output contained a NUL character instead of the
21371         backslash-zero that was intended.  Also, the "must lie within
21372         the first 8 lines" line is on line 9, and hence not getting
21373         automatically updated.
21374         * build-aux/useless-if-before-free: Fix the former by adding a
21375         backslash, and the latter by condensing the three lines of what-it-does
21376         to a single line, leaving one line of slack for the future.
21377
21378 2011-01-09  Bruno Haible  <bruno@clisp.org>
21379
21380         uniwidth/width: Fix width of U+1D173..U+1D17A.
21381         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21382         symbolic_width, output_width_property_test): New functions.
21383         (main): Invoke output_nonspacing_property, output_width_property_test.
21384         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21385         U+1D173..U+1D17A.
21386         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21387         1.
21388         * modules/uniwidth/*: Bump version number of expected libunistring
21389         version.
21390         * modules/unilbrk/*: Likewise.
21391
21392 2011-01-08  Bruno Haible  <bruno@clisp.org>
21393
21394         uninorm tests: Preserve copyright of Unicode data file.
21395         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21396         Mention modifications.
21397
21398 2011-01-08  Bruno Haible  <bruno@clisp.org>
21399
21400         gen-uni-tables: Prepare for Unicode 5.2.0.
21401         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21402         (debug_output_lbp, output_lbp): Update.
21403
21404 2011-01-08  Bruno Haible  <bruno@clisp.org>
21405
21406         unilbrk: Clarify gen-uni-tables.c code.
21407         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21408         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21409         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21410
21411 2011-01-07  Bruno Haible  <bruno@clisp.org>
21412
21413         strtod: Restore errno when successfully parsing Infinity or NaN.
21414         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21415         restore the original errno.
21416
21417 2011-01-07  Bruno Haible  <bruno@clisp.org>
21418
21419         remove test: Avoid failure on HP-UX 11.
21420         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21421
21422 2011-01-07  Bruno Haible  <bruno@clisp.org>
21423
21424         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21425         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21426         error code.
21427
21428 2011-01-07  Pádraig Brady <P@draigBrady.com>
21429
21430         ignore-value: fixup comments, and add Eric Blake
21431         as an author since he rewrote the macros.
21432         * lib/ignore-value.h (ignore_value):  State that
21433         we now support aggregates.  Also specify exactly
21434         when the GCC warn_unused_result feature was added.
21435
21436 2011-01-06  Eric Blake  <eblake@redhat.com>
21437
21438         ignore-value: support aggregate types
21439         * lib/ignore-value.h (ignore_value): Provide separate gcc
21440         definition.
21441         * modules/ignore-value-tests: New test module.
21442         * tests/test-ignore-value.c: New test.
21443
21444         maint.mk: improve sc_prohibit_strcmp regex
21445         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21446         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21447         definition of STRNEQ.
21448
21449         signal: work around Haiku issue with SIGBUS
21450         * lib/siglist.h: Add comment.
21451         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21452         strsignal's favoring of SIGSEGV.
21453         * tests/test-signal.c (main): Avoid test failure.
21454         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21455         Reported by Scott McCreary.
21456
21457         maint.mk: add pre-release check to ensure submodule commits are public
21458         * top/maint.mk (public-submodule-commit): New rule.
21459         (submodule-checks): New variable.
21460         (alpha beta stable): Depend on the variable.
21461
21462 2011-01-05  Pádraig Brady <P@draigBrady.com>
21463         and Jim Meyering  <meyering@redhat.com>
21464
21465         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21466         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21467         (ATTRIBUTE_DEPRECATED): Define.
21468         (_ignore_case): New function.
21469         (ignore_value): New macro, to replace the old function.
21470         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21471         * modules/ignore-value (Depends-on): Add stdint.
21472
21473 2011-01-04  Eric Blake  <eblake@redhat.com>
21474
21475         doc: regenerate INSTALL
21476         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21477         @firstparagraphindent support, now that autoconf dropped it.
21478         (INSTALL_PRELUDE): Reinstate old macro.
21479         * doc/install.texi: Resync from autoconf.
21480         * doc/INSTALL: Reflect recent autoconf update.
21481         * doc/INSTALL.ISO: Likewise.
21482         * doc/INSTALL.UTF-8: Likewise.
21483         Reported by Karl Berry.
21484
21485 2011-01-04  Bruce Korb  <address@hidden>
21486
21487         git-version-gen: avoid a sub-shell
21488         * build-aux/git-version-gen: Redirect stderr in `...` via
21489         "exec 2>...", rather than via an added sub-shell.
21490
21491 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21492
21493         git-version-gen: use (...) rather than sh -c '...'
21494         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21495         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21496
21497 2011-01-03  Jim Meyering  <meyering@redhat.com>
21498
21499         git-version-gen: convert leading TABs to spaces
21500         * build-aux/git-version-gen: Expand leading TABs.
21501
21502         git-version-gen: handle failed "git rev-list"
21503         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21504         from git and proceeding as if it had succeeded but printed no SHA1
21505         checksums, suppress the diagnostic and handle the failure.
21506         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21507
21508         git-version-gen: include command name in one more diagnostic
21509         * build-aux/git-version-gen: When the required .tarball-version file
21510         was missing or unreadable, you might see the diagnostic from "cat",
21511         but no trace of the name of the invoking script.  Now, you still see
21512         the diagnostic from cat, but also get one from "git-version-gen: ".
21513         Inspired by a patch from Bruce Korb.
21514
21515         update-copyright: adjust test to match changed code
21516         * tests/test-update-copyright.sh: Change test's expected output
21517         to match new actual output.
21518
21519 2011-01-02  Bruno Haible  <bruno@clisp.org>
21520
21521         getlogin_r: Avoid test failure on HP-UX 11.
21522         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21523         ERANGE when the second argument is zero.
21524         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21525         portability problem.
21526
21527 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21528
21529         * build-aux/update-copyright: doc Simon's changes
21530
21531 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21532
21533         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21534         environment variable.
21535
21536 2011-01-02  Bruno Haible  <bruno@clisp.org>
21537
21538         unigbrk: Avoid gcc warnings.
21539         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21540         unused variable.
21541         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21542         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21543         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21544         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21545         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21546         Change type of first argument to 'const char *'.
21547         (main): Remove unused variable.
21548         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21549         type of first argument to 'const char *'.
21550         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21551         Likewise.
21552         (main): Change type of variable 's'.
21553         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21554         to 'int'.
21555
21556 2011-01-02  Bruno Haible  <bruno@clisp.org>
21557
21558         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21559         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21560         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21561         bug.
21562         * lib/pwrite.c: Undo 2010-12-31 patch.
21563         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21564
21565 2011-01-02  Bruno Haible  <bruno@clisp.org>
21566
21567         pread: Fix test whether it works.
21568         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21569
21570 2011-01-02  Bruno Haible  <bruno@clisp.org>
21571
21572         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21573         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21574         ends in "6". Don't require a specific month name. Try also the locale
21575         names found on HP-UX 11 and Solaris 7.
21576
21577 2011-01-02  Bruno Haible  <bruno@clisp.org>
21578
21579         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21580         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21581         C linkage.
21582         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21583
21584 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21585
21586         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21587         for consistency, since the "cluster" term is not used elsewhere.
21588         * lib/unigbrk.in.h: Update name.
21589         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21590         * lib/unigbrk/u16-grapheme-next.c: Update name.
21591         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21592         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21593         * lib/unigbrk/u32-grapheme-next.c: Update name.
21594         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21595         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21596         * lib/unigbrk/u8-grapheme-next.c: Update name.
21597         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21598         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21599         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21600         Suggested by Bruno Haible.
21601
21602 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21603
21604         Remove module 'u8-grapheme-len' as too redundant with
21605         'u8-grapheme-next'.
21606         * modules/unigbrk/u8-grapheme-len: Delete file.
21607         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21608         * lib/unigbrk.in.h: Remove prototype for deleted function.
21609         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21610         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21611
21612         Remove module 'u16-grapheme-len' as too redundant with
21613         'u16-grapheme-next'.
21614         * modules/unigbrk/u16-grapheme-len: Delete file.
21615         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21616         * lib/unigbrk.in.h: Remove prototype for deleted function.
21617         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21618         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21619
21620         Remove module 'u32-grapheme-len' as too redundant with
21621         'u32-grapheme-next'.
21622         * modules/unigbrk/u32-grapheme-len: Delete file.
21623         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21624         * lib/unigbrk.in.h: Remove prototype for deleted function.
21625         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21626         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21627
21628         Suggested by Bruno Haible.
21629
21630 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21631
21632         * unigbrk.in.h: Fix typo: "ben" => "been".
21633         Reported by Bruno Haible.
21634
21635 2011-01-01  Jim Meyering  <meyering@redhat.com>
21636
21637         maint: update almost all copyright ranges to include 2011
21638         Run the new "make update-copyright" rule.
21639
21640 2011-01-01  Jim Meyering  <meyering@redhat.com>
21641
21642         maint: update-copyright: exempt doc/INSTALL*
21643         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21644         since they are generated.  Suggested by Bruno Haible.
21645
21646 2011-01-01  Jim Meyering  <meyering@redhat.com>
21647
21648         maint: refine the update-copyright rule
21649         * Makefile (update-copyright): Also exclude any file that includes
21650         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21651         code that merely generates the comment.
21652
21653 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21654
21655         New module 'u8-grapheme-len'.
21656         * modules/unigbrk/u8-grapheme-len: New file.
21657         * modules/unigbrk/u8-grapheme-len-tests: New file.
21658         * lib/unigbrk.in.h: Add prototype for new function.
21659         * lib/unigbrk/u8-grapheme-len.c: New file.
21660         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21661
21662         New module 'u16-grapheme-len'.
21663         * modules/unigbrk/u16-grapheme-len: New file.
21664         * modules/unigbrk/u16-grapheme-len-tests: New file.
21665         * lib/unigbrk.in.h: Add prototype for new function.
21666         * lib/unigbrk/u16-grapheme-len.c: New file.
21667         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21668
21669         New module 'u32-grapheme-len'.
21670         * modules/unigbrk/u32-grapheme-len: New file.
21671         * modules/unigbrk/u32-grapheme-len-tests: New file.
21672         * lib/unigbrk.in.h: Add prototype for new function.
21673         * lib/unigbrk/u32-grapheme-len.c: New file.
21674         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21675
21676         New module 'u8-grapheme-next'.
21677         * modules/unigbrk/u8-grapheme-next: New file.
21678         * modules/unigbrk/u8-grapheme-next-tests: New file.
21679         * lib/unigbrk.in.h: Add prototype for new function.
21680         * lib/unigbrk/u8-grapheme-next.c: New file.
21681         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21682
21683         New module 'u16-grapheme-next'.
21684         * modules/unigbrk/u16-grapheme-next: New file.
21685         * modules/unigbrk/u16-grapheme-next-tests: New file.
21686         * lib/unigbrk.in.h: Add prototype for new function.
21687         * lib/unigbrk/u16-grapheme-next.c: New file.
21688         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21689
21690         New module 'u32-grapheme-next'.
21691         * modules/unigbrk/u32-grapheme-next: New file.
21692         * modules/unigbrk/u32-grapheme-next-tests: New file.
21693         * lib/unigbrk.in.h: Add prototype for new function.
21694         * lib/unigbrk/u32-grapheme-next.c: New file.
21695         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21696
21697         New module 'u8-grapheme-prev'.
21698         * modules/unigbrk/u8-grapheme-prev: New file.
21699         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21700         * lib/unigbrk.in.h: Add prototype for new function.
21701         * lib/unigbrk/u8-grapheme-prev.c: New file.
21702         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21703
21704         New module 'u16-grapheme-prev'.
21705         * modules/unigbrk/u16-grapheme-prev: New file.
21706         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21707         * lib/unigbrk.in.h: Add prototype for new function.
21708         * lib/unigbrk/u16-grapheme-prev.c: New file.
21709         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21710
21711         New module 'u32-grapheme-prev'.
21712         * modules/unigbrk/u32-grapheme-prev: New file.
21713         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21714         * lib/unigbrk.in.h: Add prototype for new function.
21715         * lib/unigbrk/u32-grapheme-prev.c: New file.
21716         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21717
21718         New module 'u8-grapheme-breaks'.
21719         * modules/unigbrk/u8-grapheme-breaks: New file.
21720         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21721         * lib/unigbrk.in.h: Add prototype for new function.
21722         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21723         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21724
21725         New module 'u16-grapheme-breaks'.
21726         * modules/unigbrk/u16-grapheme-breaks: New file.
21727         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21728         * lib/unigbrk.in.h: Add prototype for new function.
21729         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21730         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21731
21732         New module 'u32-grapheme-breaks'.
21733         * modules/unigbrk/u32-grapheme-breaks: New file.
21734         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21735         * lib/unigbrk.in.h: Add prototype for new function.
21736         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21737         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21738
21739         New module 'ulc-grapheme-breaks'.
21740         * modules/unigbrk/ulc-grapheme-breaks: New file.
21741         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21742         * m4/locale-ar.m4: New file.
21743         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21744         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21745         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21746
21747 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21748
21749         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21750         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21751         modified how this file was generated before I initially submitted
21752         the module, but failed to regenerate it.  This meant that several
21753         of the level2 entries were wrong.
21754         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21755         Remove the division-by-2 that is folded into the table now that
21756         gbrkprop.h has been regenerated properly.  Now -1 entries are
21757         handled correctly.
21758
21759         New module 'unigbrk/uc-gbrk-prop-tests'.
21760         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21761         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21762         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21763         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21764
21765 2011-01-01  Bruno Haible  <bruno@clisp.org>
21766
21767         Avoid use of hexadecimal escapes.
21768         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21769         instead of hexadecimal escapes.
21770
21771 2011-01-01  Jim Meyering  <meyering@redhat.com>
21772
21773         maint: new rule to update copyright year ranges
21774         * Makefile (update-copyright): New rule.
21775
21776         maint: indent with TABs in Makefile
21777         * Makefile: Expand leading sequences of spaces to TABs
21778
21779         version-etc: update the copyright year it reports
21780         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21781
21782 2010-12-31  Bruno Haible  <bruno@clisp.org>
21783
21784         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21785         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21786         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21787         zero.
21788
21789 2010-12-31  Bruno Haible  <bruno@clisp.org>
21790
21791         pwrite: Work around HP-UX 11.11 bug.
21792         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21793         works and set REPLACE_PWRITE if not.
21794         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21795         function.
21796         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21797
21798 2010-12-31  Bruno Haible  <bruno@clisp.org>
21799
21800         pread: Work around HP-UX 11 bugs.
21801         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21802         and set REPLACE_PREAD if not.
21803         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21804
21805 2010-12-31  Eric Blake  <eblake@redhat.com>
21806
21807         nl_langinfo: fix YESEXPR on Irix 6.5
21808         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21809         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21810         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21811         it.
21812
21813 2010-12-31  Bruno Haible  <bruno@clisp.org>
21814
21815         iconv: Document HP-UX 11 bug.
21816         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21817
21818 2010-12-31  Bruno Haible  <bruno@clisp.org>
21819
21820         ldexpl: Fix link error on HP-UX 11.
21821         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21822         LDEXPL_LIBM, using $ISNANL_LIBM.
21823
21824 2010-12-31  Eric Blake  <eblake@redhat.com>
21825
21826         ftello: avoid compilation failure with SunStudio c89
21827         * lib/ftello.c (ftello): Use lseek, not llseek.
21828
21829         tests: avoid failing coreutils tests on cygwin
21830         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21831         (create_exe_shims_): Return 0 when skipping.
21832
21833 2010-12-31  Bruno Haible  <bruno@clisp.org>
21834
21835         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21836         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21837
21838 2010-12-31  Bruno Haible  <bruno@clisp.org>
21839
21840         waitpid: Fix link error in C++ mode.
21841         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21842
21843 2010-12-31  Bruno Haible  <bruno@clisp.org>
21844
21845         isnan: Use GCC built-ins when possible.
21846         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21847         __builtin_isnan.
21848         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21849         (isnan): Define using GCC built-ins for GCC >= 4.0.
21850
21851 2010-12-31  Bruno Haible  <bruno@clisp.org>
21852
21853         isnand: Fix mistake.
21854         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21855         __builtin_isnand.
21856
21857 2010-12-31  Bruno Haible  <bruno@clisp.org>
21858
21859         open: Avoid C++ error on HP-UX 11.
21860         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21861
21862 2010-12-31  Bruno Haible  <bruno@clisp.org>
21863
21864         time_r: Add missing declarations on HP-UX 11.
21865         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21866         instead of HAVE_LOCALTIME_R.
21867         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21868         HAVE_LOCALTIME_R always.
21869         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21870         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21871         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21872         HAVE_LOCALTIME_R.
21873         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21874         * doc/posix-functions/localtime_r.texi: Likewise.
21875
21876 2010-12-29  Eric Blake  <eblake@redhat.com>
21877
21878         mountlist: tweak previous commit
21879         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21880         Reported by Paul Eggert.
21881
21882         mountlist: fix local drive detection on cygwin
21883         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21884         that works for cygwin.
21885
21886 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21887
21888         ftoastr, snprintf: ftoastr + snprintf module
21889         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21890         since the snprintf module now should be good enough here.
21891         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21892         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21893         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21894         GNULIB_SNPRINTF only for the test directory, and the latter
21895         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21896         seems to suffice by itself.
21897
21898 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21899
21900         alloca: one step towards thread-safety
21901         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21902         need for a static variable.  All callers changed.  This does not
21903         make the alloca replacement thread-safe, but it's one step.
21904
21905         tests: minor indenting change
21906         * tests/init.sh: Sync from coreutils housekeeping patch
21907         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21908         to keep lines within 80 columns.
21909
21910 2010-12-28  Jim Meyering  <meyering@redhat.com>
21911
21912         regex: don't infloop on persistent failing calloc
21913         * lib/regexec.c (build_trtable): Return failure indication upon
21914         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21915         In glibc, this was fixed for version 2.13:
21916         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21917
21918 2010-12-28  Bruno Haible  <bruno@clisp.org>
21919             Paul Eggert <eggert@cs.ucla.edu>
21920
21921         linkat: Make implementation robust against system behaviour variations.
21922         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21923         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21924         way, and to -2 if it needs a generic runtime test.
21925         * lib/linkat.c (solaris_optimized_link_immediate,
21926         solaris_optimized_link_follow): New functions.
21927         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21928         (check_same_link): Use it.
21929
21930 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21931
21932         New module 'unigbrk/base'.
21933         * modules/unigbrk/base: New file.
21934         * lib/unigbrk.in.h: New file.
21935
21936         New module 'unigbrk/uc-gbrk-prop'.
21937         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21938         * modules/unigbrk/uc-gbrk-prop: New file.
21939         * lib/unigbrk/gbrkprop.h: New file.
21940         * lib/unigbrk/uc-gbrk-prop.c: New file.
21941
21942         New module 'unigbrk/uc-is-grapheme-break'.
21943         * modules/unigbrk/uc-is-grapheme-break: New file.
21944         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21945         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21946         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21947         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21948         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21949
21950         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21951
21952 2010-12-27  Bruno Haible  <bruno@clisp.org>
21953
21954         linkat test: Avoid failure on Solaris 11 2010-11.
21955         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21956
21957 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21958
21959         utimens: work around glibc rounding bug on more platforms
21960         * lib/utimens.c (fdutimens): Work around rounding bug even if
21961         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21962         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21963
21964 2010-12-27  Bruno Haible  <bruno@clisp.org>
21965
21966         select tests: Improve comments.
21967         * tests/test-select.c (do_select): Add comments.
21968
21969 2010-12-27  Bruno Haible  <bruno@clisp.org>
21970
21971         select tests: Safer way of handling timeout.
21972         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21973         at every invocation.
21974
21975 2010-12-27  Bruno Haible  <bruno@clisp.org>
21976
21977         select tests: Use 'bool' where appropriate.
21978         * tests/test-select.c (connect_to_socket): Change argument type to
21979         'bool'.
21980
21981 2010-12-27  Bruno Haible  <bruno@clisp.org>
21982
21983         select tests: Use existing modules.
21984         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21985         (configure.ac): Don't test for unistd.h.
21986         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21987         declared in <unistd.h>.
21988
21989 2010-12-27  Bruno Haible  <bruno@clisp.org>
21990
21991         mbrtowc: Work around a Solaris 7 bug.
21992         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21993         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21994         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21995         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21996         MBRTOWC_NULL_ARG1_BUG.
21997         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21998         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21999         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22000         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22001
22002 2010-12-27  Jim Meyering  <meyering@redhat.com>
22003
22004         read-file.c: tweak syntax
22005         * lib/read-file.c (fread_file): Remove space after "*" in function
22006         definitions.
22007
22008 2010-12-27  Bruno Haible  <bruno@clisp.org>
22009
22010         times test: Avoid gcc warnings on OSF/1.
22011         * tests/test-times.c (main): Cast printf arguments from clock_t to
22012         'long int'.
22013
22014 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22015
22016         utimens: work around glibc rounding bug on older Linux kernels
22017         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22018         on Linux with a glibc whose utimes might not work, then work
22019         around a longstanding glibc bug involving rounding rather than
22020         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22021         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22022
22023 2010-12-26  Bruno Haible  <bruno@clisp.org>
22024
22025         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22026         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22027         _GL_CXXALIAS_SYS.
22028         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22029
22030 2010-12-26  Bruno Haible  <bruno@clisp.org>
22031
22032         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22033         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22034         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22035         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22036         looking for the declaration.
22037         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22038         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22039         problem.
22040         * doc/posix-functions/inet_pton.texi: Likewise.
22041
22042 2010-12-26  Bruno Haible  <bruno@clisp.org>
22043
22044         arpa_inet: Use the common idioms with C++ support.
22045         * lib/arpa_inet.in.h: Include c++defs.h.
22046         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22047         support.
22048         * modules/arpa_inet (Depends-on): Add c++defs.
22049         (Makefile.am): Substitute the contents of c++defs.h.
22050         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22051         * modules/arpa_inet-c++-tests: New file.
22052         * tests/test-arpa_inet-c++.cc: New file.
22053
22054 2010-12-25  Bruno Haible  <bruno@clisp.org>
22055
22056         Fix more C++ link errors on Solaris 8.
22057         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22058         $(LIB_EACCESS).
22059         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22060         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22061         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22062         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22063         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22064
22065 2010-12-25  Bruno Haible  <bruno@clisp.org>
22066
22067         printf-posix: Fix link error when a non-GCC compiler is used.
22068         * lib/stdio.in.h (printf): When not using GCC, override printf
22069         correctly.
22070         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22071
22072 2010-12-25  Bruno Haible  <bruno@clisp.org>
22073
22074         strerror_r-posix: Update doc.
22075         * doc/posix-functions/strerror_r.texi: Update doc about the return
22076         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22077
22078 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22079
22080         utimens: simplify the logic of the previous change
22081         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22082         This should not affect whether the test succeeds or fails.
22083
22084         utimens: configure better on hosts with NFS clock skew
22085         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22086         uses the clock of the local host.  It might use the clock of the
22087         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22088         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22089
22090 2010-12-25  Bruno Haible  <bruno@clisp.org>
22091
22092         ptsname test: Avoid failure on Solaris.
22093         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22094         open a pseudo-terminal; don't use BSD-style ptys.
22095         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22096
22097 2010-12-25  Bruno Haible  <bruno@clisp.org>
22098
22099         ptsname: Avoid ERANGE failure on some systems.
22100         * lib/ptsname.c (buffer): Increase size.
22101
22102 2010-12-25  Bruno Haible  <bruno@clisp.org>
22103
22104         rename, renameat: Avoid test failures at NFS mounted locations.
22105         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22106         so that subsequent mkdir calls succeed.
22107
22108 2010-12-25  Bruno Haible  <bruno@clisp.org>
22109
22110         iswblank: Fix C++ link error on Solaris 8.
22111         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22112         _GL_FUNCDECL_SYS.
22113
22114 2010-12-25  Bruno Haible  <bruno@clisp.org>
22115
22116         unistd: Fix C++ link error on Solaris 8.
22117         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22118
22119 2010-12-25  Bruno Haible  <bruno@clisp.org>
22120
22121         readlink doc: Mention an old glibc bug.
22122         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22123
22124 2010-12-25  Bruno Haible  <bruno@clisp.org>
22125
22126         fcntl-h: Fix for use of C++ on glibc systems.
22127         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22128         also on glibc systems in C++ mode.
22129         Reported by Gary V. Vaughan <gary@gnu.org>.
22130
22131 2010-12-25  Bruno Haible  <bruno@clisp.org>
22132
22133         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22134         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22135
22136 2010-12-25  Bruno Haible  <bruno@clisp.org>
22137
22138         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22139         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22140         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22141         test whether truncl works according to ISO C 99 with IEC 60559.
22142         * m4/truncl-ieee.m4: New file.
22143         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22144         m4/signbit.m4.
22145         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22146
22147 2010-12-25  Bruno Haible  <bruno@clisp.org>
22148
22149         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22150         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22151         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22152         test whether ceill works according to ISO C 99 with IEC 60559.
22153         * m4/ceill-ieee.m4: New file.
22154         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22155         m4/signbit.m4.
22156         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22157
22158 2010-12-25  Bruno Haible  <bruno@clisp.org>
22159
22160         Ensure all prerequisites of <wchar.h> are included.
22161         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22162         before <wchar.h>.
22163         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22164         gl_MBRLEN_NUL_RETVAL): Likewise.
22165         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22166         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22167         AC_FUNC_MBRTOWC): Likewise.
22168         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22169         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22170         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22171         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22172         Likewise.
22173         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22174         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22175         (gl_WCHAR_H): Improve comments.
22176         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22177
22178 2010-12-25  Bruno Haible  <bruno@clisp.org>
22179
22180         strtok_r: Fix C syntax error in autoconf macro.
22181         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22182         characters in test program.
22183
22184 2010-12-24  Bruno Haible  <bruno@clisp.org>
22185
22186         ceil, trunc, round: Fix gcc warnings.
22187         * lib/ceil.c (MIN): Undefine before redefining.
22188         * lib/trunc.c (MIN): Likewise.
22189         * lib/round.c (MIN): Likewise.
22190         Include <math.h> first.
22191
22192 2010-12-24  Bruno Haible  <bruno@clisp.org>
22193
22194         select tests: Avoid failures on OSF/1 5.1.
22195         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22196         failure of closing the last socket; it may fail with ECONNRESET.
22197
22198 2010-12-24  Eric Blake  <eblake@redhat.com>
22199
22200         stdint: avoid HP-UX 10.20 preprocessor bug
22201         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22202         than #if.
22203         * tests/test-floor2.c (main): Likewise.
22204         Reported by Peter O'Gorman.
22205
22206         pipe: make obsoletion transition easier
22207         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22208         * modules/pipe (Files): Include revived file.
22209         (Include): Drop reference, to mirror getdate's behavior.
22210
22211 2010-12-24  Bruno Haible  <bruno@clisp.org>
22212
22213         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22214         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22215         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22216         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22217
22218 2010-12-24  Bruno Haible  <bruno@clisp.org>
22219
22220         gethostname: Ensure declaration on NonStop Kernel.
22221         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22222         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22223
22224 2010-12-24  Bruno Haible  <bruno@clisp.org>
22225
22226         sys_select: Ensure all necessary types on NonStop Kernel.
22227         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22228         include <sys/time.h>.
22229         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22230         NonStop Kernel.
22231         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22232
22233 2010-12-24  Bruno Haible  <bruno@clisp.org>
22234
22235         sys_select: Remove unneeded include.
22236         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22237         have <sys/select.h>.
22238
22239 2010-12-24  Bruno Haible  <bruno@clisp.org>
22240
22241         gethostname: Provide a fallback for HOST_NAME_MAX.
22242         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22243         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22244         instead.
22245         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22246
22247 2010-12-24  Bruno Haible  <bruno@clisp.org>
22248
22249         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22250         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22251         (SA_RESTART): Likewise.
22252         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22253
22254 2010-12-24  Bruno Haible  <bruno@clisp.org>
22255
22256         signal: Define NSIG.
22257         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22258         * tests/test-signal.c (nsig): New variable.
22259         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22260
22261 2010-12-24  Bruno Haible  <bruno@clisp.org>
22262
22263         rename, renameat: Avoid test failures on OSF/1 5.1.
22264         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22265         alternative error codes.
22266         * tests/test-renameat.c (main): Likewise.
22267
22268 2010-12-24  Bruno Haible  <bruno@clisp.org>
22269
22270         *printf: Detect large precisions bug on Solaris 10/SPARC.
22271         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22272         by Paul Eggert.
22273         * tests/test-snprintf-posix.h (test_function): Add this test code here
22274         too.
22275         * tests/test-sprintf-posix.h (test_function): Likewise.
22276         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22277         * tests/test-vasprintf-posix.c (test_function): Likewise.
22278         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22279         around by gnulib.
22280         * doc/posix-functions/printf.texi: Likewise.
22281         * doc/posix-functions/snprintf.texi: Likewise.
22282         * doc/posix-functions/sprintf.texi: Likewise.
22283         * doc/posix-functions/vfprintf.texi: Likewise.
22284         * doc/posix-functions/vprintf.texi: Likewise.
22285         * doc/posix-functions/vsnprintf.texi: Likewise.
22286         * doc/posix-functions/vsprintf.texi: Likewise.
22287         * doc/posix-functions/dprintf.texi: Undo last commit.
22288         * doc/posix-functions/vdprintf.texi: Likewise.
22289
22290 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22291
22292         tests: port test-fdutimensat.c to Solaris 8
22293         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22294         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22295         On Solaris 8, it fails with errno == ENOSYS, because there is no
22296         futimens (so it can't use the fd), and there is no lutimens (so it
22297         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22298
22299         vsnprintf: make more consistent with snprintf; doc fixes
22300
22301         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22302         the byte count return problem was promoted from the snprintf-posix
22303         to the snprintf module.
22304         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22305         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22306         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22307         * tests/test-snprintf.c (main): Check the byte count returned.
22308         * tests/test-vsnprintf.c (main): Likewise.
22309
22310 2010-12-23  Eric Blake  <eblake@redhat.com>
22311
22312         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22313         * modules/sigpipe (License): Relax license.
22314
22315 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22316
22317         doc: document Solaris printf bug with large float precisions
22318         * doc/posix-functions/dprintf.texi (dprintf):
22319         * doc/posix-functions/fprintf.texi (fprintf):
22320         * doc/posix-functions/printf.texi (printf):
22321         * doc/posix-functions/snprintf.texi (snprintf):
22322         * doc/posix-functions/sprintf.texi (sprintf):
22323         * doc/posix-functions/vdprintf.texi (vdprintf):
22324         * doc/posix-functions/vfprintf.texi (vfprintf):
22325         * doc/posix-functions/vprintf.texi (vprintf):
22326         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22327         * doc/posix-functions/vsprintf.texi (vsprintf):
22328         Mention that these functions mishandle large floating point
22329         precisions on Solaris 10.  The same bug is also present in Solaris
22330         8, and I assume earlier.  This causes "cd gnulib-tests; make
22331         check" to fail on Solaris 8 (and I assume, later) when building
22332         the latest coreutils, in test-vasprintf-posix's call to
22333         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22334         the wide flavors (e.g., wprintf) so this patch just updates the
22335         documentation for the narrow ones.
22336
22337         test-posixtm.c: add two tests
22338         * tests/test-posixtm.c: Add two tests, to highlight the
22339         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22340         around this bug; this is merely to document it.
22341
22342 2010-12-22  Bruno Haible  <bruno@clisp.org>
22343
22344         getlogin_r: Work around portability problem on OSF/1.
22345         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22346         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22347         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22348         test for a truncated result.
22349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22350         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22351         * modules/getlogin_r (Depends-on): Add memchr.
22352         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22353
22354 2010-12-22  Bruno Haible  <bruno@clisp.org>
22355
22356         ptsname: Avoid test failure on OSF/1 5.1.
22357         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22358         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22359         (same_slave): New function.
22360         (main): Use it to compare ptsname's result with the expected file name.
22361
22362 2010-12-22  Bruno Haible  <bruno@clisp.org>
22363
22364         Port extended stdio modules to HP NonStop Kernel.
22365         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22366         macros.
22367         * lib/fbufmode.c: Update comments.
22368         * lib/fflush.c: Likewise.
22369         * lib/fpurge.c: Likewise.
22370         * lib/freadable.c: Likewise.
22371         * lib/freadahead.c: Likewise.
22372         * lib/freading.c: Likewise.
22373         * lib/freadptr.c: Likewise.
22374         * lib/freadseek.c: Likewise.
22375         * lib/fseeko.c: Likewise.
22376         * lib/fseterr.c: Likewise.
22377         * lib/fwritable.c: Likewise.
22378         * lib/fwriting.c: Likewise.
22379         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22380
22381 2010-12-22  Bruno Haible  <bruno@clisp.org>
22382
22383         ttyname_r: Work around bug on OSF/1 5.1.
22384         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22385         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22386         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22387         present.
22388         * lib/ttyname_r.c (ttyname_r): Update comments.
22389
22390 2010-12-22  Bruno Haible  <bruno@clisp.org>
22391
22392         round: Implement result sign according to IEEE 754.
22393         * lib/round.c (MIN, MINUS_ZERO): New macros.
22394         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22395         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22396         * tests/test-round-ieee.c (main): Likewise.
22397         * tests/test-roundl-ieee.c (main): Likewise.
22398
22399         trunc: Implement result sign according to IEEE 754.
22400         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22401         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22402         * tests/test-trunc2.c: Include minus-zero.h.
22403         (MINUS_ZERO): New macro.
22404         (trunc_reference): Keep in sync with lib/trunc.c.
22405         * tests/test-truncf2.c: Include minus-zero.h.
22406         (MINUS_ZERO): New macro.
22407         (truncf_reference): Keep in sync with lib/trunc.c.
22408         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22409         * tests/test-trunc-ieee.c (main): Likewise.
22410         * tests/test-truncl-ieee.c (main): Likewise.
22411
22412         ceil: Implement result sign according to IEEE 754.
22413         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22414         (FUNC): Return -0.0 for -1 < x < 0.
22415         * tests/test-ceil2.c: Include minus-zero.h.
22416         (MINUS_ZERO): New macro.
22417         (ceil_reference): Keep in sync with lib/ceil.c.
22418         * tests/test-ceilf2.c: Include minus-zero.h.
22419         (MINUS_ZERO): New macro.
22420         (ceilf_reference): Keep in sync with lib/ceil.c.
22421         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22422         * tests/test-ceil-ieee.c (main): Likewise.
22423         * tests/test-ceill-ieee.c (main): Likewise.
22424
22425         floor: Implement result sign according to IEEE 754.
22426         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22427         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22428         * tests/test-floorf2.c (floorf_reference): Likewise.
22429         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22430         * tests/test-floor-ieee.c (main): Likewise.
22431         * tests/test-floorl-ieee.c (main): Likewise.
22432
22433 2010-12-22  Bruno Haible  <bruno@clisp.org>
22434
22435         getaddrinfo: Update doc.
22436         * doc/posix-functions/gai_strerror.texi: Return type is also different
22437         on AIX and HP-UX.
22438
22439 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22440
22441         getaddrinfo, inet_ntop: Update doc for Solaris.
22442         * doc/posix-functions/gai_strerror.texi: Return type is also an
22443         issue on Solaris 9 and earlier.
22444         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22445         on Solaris 10 and earlier.
22446
22447 2010-12-21  Bruno Haible  <bruno@clisp.org>
22448
22449         New module 'roundl-ieee'.
22450         * modules/roundl-ieee: New file.
22451         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22452         test whether roundl works according to ISO C 99 with IEC 60559.
22453         * m4/roundl-ieee.m4: New file.
22454         * modules/roundl-ieee-tests: New file.
22455         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22456         * tests/test-roundl.c (main): Remove signbit tests.
22457         * modules/roundl-tests (Depends-on): Remove signbit.
22458         * doc/posix-functions/roundl.texi: Mention the new module.
22459
22460 2010-12-21  Bruno Haible  <bruno@clisp.org>
22461
22462         New module 'truncl-ieee'.
22463         * modules/truncl-ieee: New file.
22464         * modules/truncl-ieee-tests: New file.
22465         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22466         * tests/test-truncl.c (main): Remove signbit tests.
22467         * modules/truncl-tests (Depends-on): Remove signbit.
22468         * doc/posix-functions/truncl.texi: Mention the new module.
22469
22470 2010-12-21  Bruno Haible  <bruno@clisp.org>
22471
22472         New module 'ceill-ieee'.
22473         * modules/ceill-ieee: New file.
22474         * modules/ceill-ieee-tests: New file.
22475         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22476         * tests/test-ceill.c (main): Remove signbit tests.
22477         * modules/ceill-tests (Depends-on): Remove signbit.
22478         * doc/posix-functions/ceill.texi: Mention the new module.
22479
22480 2010-12-21  Bruno Haible  <bruno@clisp.org>
22481
22482         New module 'floorl-ieee'.
22483         * modules/floorl-ieee: New file.
22484         * modules/floorl-ieee-tests: New file.
22485         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22486         * tests/test-floorl.c (main): Remove signbit tests.
22487         * modules/floorl-tests (Depends-on): Remove signbit.
22488         * doc/posix-functions/floorl.texi: Mention the new module.
22489
22490 2010-12-21  Bruno Haible  <bruno@clisp.org>
22491
22492         New module 'round-ieee'.
22493         * modules/round-ieee: New file.
22494         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22495         whether round works according to ISO C 99 with IEC 60559.
22496         * m4/round-ieee.m4: New file.
22497         * modules/round-ieee-tests: New file.
22498         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22499         * tests/test-round1.c (main): Remove signbit tests.
22500         * modules/round-tests (Depends-on): Remove 'signbit'.
22501         * doc/posix-functions/round.texi: Mention the new module.
22502
22503 2010-12-21  Bruno Haible  <bruno@clisp.org>
22504
22505         New module 'trunc-ieee'.
22506         * modules/trunc-ieee: New file.
22507         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22508         whether trunc works according to ISO C 99 with IEC 60559.
22509         * m4/trunc-ieee.m4: New file.
22510         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22512         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22513         * modules/trunc-ieee-tests: New file.
22514         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22515         * tests/test-trunc1.c (main): Remove signbit tests.
22516         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22517         * doc/posix-functions/trunc.texi: Mention the new module.
22518
22519 2010-12-21  Bruno Haible  <bruno@clisp.org>
22520
22521         New module 'ceil-ieee'.
22522         * modules/ceil-ieee: New file.
22523         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22524         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22525         ISO C 99 with IEC 60559.
22526         * m4/ceil-ieee.m4: New file.
22527         * modules/ceil (Files): Add lib/ceil.c.
22528         (Depends-on): Add 'float'.
22529         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22530         * lib/math.in.h (ceil): New declaration.
22531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22532         REPLACE_CEIL.
22533         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22534         * modules/ceil-ieee-tests: New file.
22535         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22536         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22537         * doc/posix-functions/ceil.texi: Mention the new module.
22538
22539 2010-12-21  Bruno Haible  <bruno@clisp.org>
22540
22541         New module 'floor-ieee'.
22542         * modules/floor-ieee: New file.
22543         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22544         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22545         ISO C 99 with IEC 60559.
22546         * m4/floor-ieee.m4: New file.
22547         * modules/floor (Files): Add lib/floor.c.
22548         (Depends-on): Add 'float'.
22549         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22550         * lib/math.in.h (floor): New declaration.
22551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22552         REPLACE_FLOOR.
22553         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22554         * modules/floor-ieee-tests: New file.
22555         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22556         * tests/test-math-c++.cc: Check the signature of 'floor'.
22557         * doc/posix-functions/floor.texi: Mention the new module.
22558
22559 2010-12-21  Bruno Haible  <bruno@clisp.org>
22560
22561         New module 'roundf-ieee'.
22562         * modules/roundf-ieee: New file.
22563         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22564         test whether roundf works according to ISO C 99 with IEC 60559.
22565         * m4/roundf-ieee.m4: New file.
22566         * modules/roundf-ieee-tests: New file.
22567         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22568         * tests/test-roundf1.c (main): Remove signbit tests.
22569         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22570         * doc/posix-functions/roundf.texi: Mention the new module.
22571
22572 2010-12-21  Bruno Haible  <bruno@clisp.org>
22573
22574         New module 'truncf-ieee'.
22575         * modules/truncf-ieee: New file.
22576         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22577         test whether truncf works according to ISO C 99 with IEC 60559.
22578         * m4/truncf-ieee.m4: New file.
22579         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22581         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22582         * modules/truncf-ieee-tests: New file.
22583         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22584         * tests/test-truncf1.c (main): Remove signbit tests.
22585         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22586         * doc/posix-functions/truncf.texi: Mention the new module.
22587
22588 2010-12-21  Bruno Haible  <bruno@clisp.org>
22589
22590         New module 'ceilf-ieee'.
22591         * modules/ceilf-ieee: New file.
22592         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22593         test whether ceilf works according to ISO C 99 with IEC 60559.
22594         * m4/ceilf-ieee.m4: New file.
22595         * modules/ceilf-ieee-tests: New file.
22596         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22597         * tests/test-ceilf1.c (main): Remove signbit tests.
22598         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22599         * doc/posix-functions/ceilf.texi: Mention the new module.
22600
22601 2010-12-21  Bruno Haible  <bruno@clisp.org>
22602
22603         New module 'floorf-ieee'.
22604         * modules/floorf-ieee: New file.
22605         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22606         test whether floorf works according to ISO C 99 with IEC 60559.
22607         * m4/floorf-ieee.m4: New file.
22608         * modules/floorf-ieee-tests: New file.
22609         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22610         * tests/test-floorf1.c (main): Remove signbit tests.
22611         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22612         * doc/posix-functions/floorf.texi: Mention the new module.
22613
22614 2010-12-21  Bruno Haible  <bruno@clisp.org>
22615
22616         Support for minus zero in autoconf macros.
22617         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22618         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22619         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22620         * tests/minus-zero.h: Update comments.
22621
22622 2010-12-21  Bruno Haible  <bruno@clisp.org>
22623
22624         Tests for module 'ceil'.
22625         * modules/ceil-tests: New file.
22626         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22627         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22628
22629 2010-12-21  Bruno Haible  <bruno@clisp.org>
22630
22631         Tests for module 'floor'.
22632         * modules/floor-tests: New file.
22633         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22634         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22635
22636 2010-12-21  Bruno Haible  <bruno@clisp.org>
22637
22638         math: Fix indentation.
22639         * lib/math.in.h (floorf): Fix indentation.
22640
22641 2010-12-21  Bruno Haible  <bruno@clisp.org>
22642
22643         Fix cross-compilation guesses on Solaris.
22644         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22645         not match "solaris2.10".
22646         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22647         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22648         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22649
22650 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22651
22652         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22653         This fixes a problem observed with the latest coreutils snapshot
22654         that caused a test to fail on Solaris 8.  src/csplit.c's call
22655         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22656         earlier, instead of returning the number of bytes that would have
22657         been generated; this causes csplit to incorrectly report memory
22658         exhaustion.
22659         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22660         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22661         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22662         comments to match.
22663         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22664         Fix typo in matching older versions of Solaris: "solaris2.10"
22665         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22666         only for guessing while cross-compiling.
22667         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22668
22669 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22670
22671         ftoastr: fix comment again
22672         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22673         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22674         Also, simplify example a bit by using flags = 0.
22675
22676 2010-12-20  Bruno Haible  <bruno@clisp.org>
22677
22678         round*, trunc*: Update documentation regarding glibc.
22679         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22680         * doc/posix-functions/round.texi: Likewise.
22681         * doc/posix-functions/roundl.texi: Likewise.
22682         * doc/posix-functions/truncf.texi: Likewise.
22683         * doc/posix-functions/trunc.texi: Likewise.
22684         * doc/posix-functions/truncl.texi: Likewise.
22685
22686 2010-12-20  Bruno Haible  <bruno@clisp.org>
22687
22688         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22689         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22690         * doc/posix-functions/round.texi: Likewise.
22691         * doc/posix-functions/roundl.texi: Likewise.
22692
22693 2010-12-20  Bruno Haible  <bruno@clisp.org>
22694
22695         ttyname_r: Add missing declaration on HP-UX 11.
22696         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22697         HAVE_TTYNAME_R.
22698         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22699         declared. Set HAVE_TTYNAME_R always.
22700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22701         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22702         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22703         HAVE_TTYNAME_R.
22704         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22705
22706 2010-12-20  Bruno Haible  <bruno@clisp.org>
22707
22708         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22709         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22710         * doc/posix-functions/getlogin_r.texi: Likewise.
22711         * tests/test-getlogin.c: Include <errno.h>.
22712         (main): Avoid test failure on HP-UX 11.11.
22713         * tests/test-getlogin_r.c (main): Likewise.
22714
22715 2010-12-20  Bruno Haible  <bruno@clisp.org>
22716
22717         getlogin_r: Add missing declaration on HP-UX 11.
22718         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22719         declared also when it exists as a function.
22720         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22721
22722 2010-12-20  Bruno Haible  <bruno@clisp.org>
22723
22724         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22725         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22726         through wcrtomb.
22727
22728 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22729
22730         ftoastr: fix comment
22731         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22732         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22733
22734 2010-12-19  Bruno Haible  <bruno@clisp.org>
22735
22736         isnan: Ensure it is a macro.
22737         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22738         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22739         Solaris.
22740
22741 2010-12-19  Bruno Haible  <bruno@clisp.org>
22742
22743         ldexpl test: Fix link error on OSF/1 5.1.
22744         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22745
22746 2010-12-19  Bruno Haible  <bruno@clisp.org>
22747
22748         wctype: Make it work in C++ mode on OSF/1 5.1.
22749         * lib/wctype.in.h (iswblank): Declare but not define here.
22750         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22751         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22752         * modules/wctype (Files): Add lib/iswblank.c.
22753
22754 2010-12-19  Bruno Haible  <bruno@clisp.org>
22755
22756         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22757         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22758         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22759
22760 2010-12-19  Bruno Haible  <bruno@clisp.org>
22761
22762         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22763         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22764         _POSIX_PII_SOCKET.
22765         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22766         * doc/posix-functions/recvfrom.texi: Likewise.
22767         * doc/posix-functions/send.texi: Likewise.
22768         * doc/posix-functions/sendto.texi: Likewise.
22769
22770 2010-12-19  Bruno Haible  <bruno@clisp.org>
22771
22772         tcgetsid: Add missing declaration on OSF/1 5.1.
22773         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22774         HAVE_TCGETSID.
22775         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22776         Don't set HAVE_TCGETSID.
22777         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22778         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22779         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22780         HAVE_TCGETSID.
22781         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22782
22783 2010-12-19  Bruno Haible  <bruno@clisp.org>
22784
22785         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22786         * lib/stdio.in.h: During the include_next statement, let recursive
22787         includes of this file include only the system header file.
22788
22789 2010-12-19  Bruno Haible  <bruno@clisp.org>
22790
22791         iconv_open: Fix regression from 2010-12-04.
22792         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22793         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22794
22795 2010-12-19  Bruno Haible  <bruno@clisp.org>
22796
22797         stdbool test: Avoid a gcc warning.
22798         * tests/test-stdbool.c (main): Fail if e1 is false.
22799         Reported by Jim Meyering.
22800
22801 2010-12-19  Jim Meyering  <meyering@redhat.com>
22802
22803         setenv: restore to working order
22804         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22805         mistakenly removed.
22806         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22807         HAVE_SETENV.
22808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22809         HAVE_SETENV.
22810
22811 2010-12-19  Bruno Haible  <bruno@clisp.org>
22812
22813         Document some different function declarations on OSF/1 5.1.
22814         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22815         * doc/posix-functions/inet_ntop.texi: Likewise.
22816         * doc/posix-functions/gethostname.texi: Likewise.
22817         * lib/unistd.in.h (gethostname): Update comment.
22818
22819 2010-12-19  Bruno Haible  <bruno@clisp.org>
22820
22821         doc: Mention vasprintf-posix module.
22822         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22823         the 'vasprintf-posix' module.
22824         * doc/glibc-functions/vasprintf.texi: Likewise.
22825
22826 2010-12-19  Bruno Haible  <bruno@clisp.org>
22827
22828         unsetenv: Add missing declaration on OSF/1 5.1.
22829         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22830         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22831         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22833         not HAVE_UNSETENV.
22834         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22835         HAVE_UNSETENV.
22836         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22837
22838 2010-12-19  Bruno Haible  <bruno@clisp.org>
22839
22840         setenv: Add missing declaration on OSF/1 5.1.
22841         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22842         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22843         declared. Don't set HAVE_SETENV.
22844         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22845         not HAVE_SETENV.
22846         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22847         HAVE_SETENV.
22848         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22849
22850 2010-12-19  Bruno Haible  <bruno@clisp.org>
22851
22852         nl_langinfo tests: Avoid gcc warning.
22853         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22854
22855 2010-12-19  Bruno Haible  <bruno@clisp.org>
22856
22857         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22858         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22859         _GL_CXXALIAS_SYS.
22860
22861 2010-12-19  Bruno Haible  <bruno@clisp.org>
22862
22863         stdbool: Relax test.
22864         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22865         address to 'bool' work in static initializer, for compilers other than
22866         GCC.
22867
22868 2010-12-19  Bruno Haible  <bruno@clisp.org>
22869
22870         ftello: Add missing declaration on OSF/1 5.1.
22871         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22872         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22874         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22875         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22876
22877 2010-12-19  Bruno Haible  <bruno@clisp.org>
22878
22879         fseeko: Add missing declaration on OSF/1 5.1.
22880         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22881         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22883         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22884         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22885
22886 2010-12-19  Bruno Haible  <bruno@clisp.org>
22887
22888         fchdir: Add missing declaration on OSF/1 5.1.
22889         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22890         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22892         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22893         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22894
22895 2010-12-19  Bruno Haible  <bruno@clisp.org>
22896
22897         relocatable-prog-wrapper: Separate from relocatable-prog.
22898         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22899         uninstall-relocwrapper rule here.
22900         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22901         Reported by Ian Beckwith <ianb@erislabs.net>.
22902
22903 2010-12-19  Bruno Haible  <bruno@clisp.org>
22904
22905         unistr/u8-mbsnlen: Add missing dependency.
22906         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22907         Reported by Ian Beckwith <ianb@erislabs.net>.
22908
22909 2010-12-19  Bruno Haible  <bruno@clisp.org>
22910
22911         iconv: Make it possible again to use this module without 'iconv-h'.
22912         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22913         if it is not defined.
22914         Reported by Ian Beckwith <ianb@erislabs.net>.
22915
22916 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22917
22918         acl: port to Solaris 8 when copying from tmpfs to ufs
22919         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22920         error number.  Problem observed on Solaris 8 with latest
22921         coreutils, with "mv A B", where A is on a tmpfs file system and B
22922         is on a ufs file system.  This caused coreutils' mv/part-symlink
22923         test to fail.
22924
22925         tests: set fail=0 at start
22926         * tests/init.sh (setup_): Move fail=0 initialization here ...
22927         (mktempd_): ... from here, so that tests can rely on fail being
22928         set to 0 initially.  This fixes a problem in coreutils; see:
22929         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22930
22931 2010-12-18  Bruno Haible  <bruno@clisp.org>
22932
22933         memmem-simple: Stylistic changes.
22934         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22935         Fix preprocessor directive indentation.
22936
22937 2010-12-15  Pádraig Brady <P@draigBrady.com>
22938
22939         memmem, memmem-simple: reorganize and expand empty needle check
22940         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22941         functional checks to memmem-simple so that one has a fully functional
22942         memmem by using just this module.
22943         Restrict the performance only check to the memmem module.
22944         Also expand the empty needle check to ensure the correct
22945         pointer is returned, not just a non NULL pointer.
22946         * doc/glibc-functions/memmem.texi: Rearrange the portability
22947         documentation to correlate with the rearranged checks.
22948         Clarify exactly how the memmem and memmem-simple modules
22949         relate to each other.
22950
22951 2010-12-15  Pádraig Brady <P@draigBrady.com>
22952             Bruno Haible  <bruno@clisp.org>
22953
22954         Improve cross-compilation guesses for uClibc.
22955         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22956         that uClibc does not have the glibc bug.
22957         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22958         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22959
22960 2010-12-14  Eric Blake  <eblake@redhat.com>
22961
22962         configmake: provide fallbacks for oldest supported autotools
22963         * m4/configmake.m4: New file.
22964         * modules/configmake (Files): Ship it.
22965         (configure.ac): Use it to guarantee fallbacks.
22966
22967 2010-12-13  Pádraig Brady <P@draigBrady.com>
22968
22969         read-file: Improve handling of large files
22970         * lib/read-file.c (fread_file): Minimize realloc()s
22971         for regular files, and better manage sizes around SIZE_MAX.
22972
22973 2010-12-13  Eric Blake  <eblake@redhat.com>
22974
22975         cloexec, fcntl: relax license
22976         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22977         consent from all contributors.
22978         * modules/fcntl (License): Likewise.
22979
22980 2010-12-10  Bruno Haible  <bruno@clisp.org>
22981
22982         Tests for module 'pipe-posix'.
22983         * modules/pipe-posix-tests: New file.
22984         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22985
22986 2010-12-10  Bruno Haible  <bruno@clisp.org>
22987
22988         pipe-posix: Make it work in C++ mode.
22989         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22990         (pipe): Use common idiom, not a macro definition.
22991         * lib/pipe.c: New file.
22992         * m4/pipe.m4: New file.
22993         * modules/pipe-posix (Description): Enhance.
22994         (Files): Add lib/pipe.c, m4/pipe.m4.
22995         (configure.ac): Invoke gl_FUNC_PIPE.
22996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22997         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22998         * tests/test-unistd-c++.cc: Check the signature of pipe.
22999
23000 2010-12-10  Bruno Haible  <bruno@clisp.org>
23001
23002         Rename module 'pipe' to 'spawn-pipe'.
23003         * modules/spawn-pipe: New file, renamed from modules/pipe.
23004         (Files, configure.ac, Makefile.am): Update.
23005         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23006         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23007         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23008         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23009         "spawn-pipe.h" instead of "pipe.h".
23010         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23011         to gl_SPAWN_PIPE.
23012         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23013         (Files, Makefile.am): Update.
23014         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23015         Update.
23016         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23017         Include "spawn-pipe.h" instead of "pipe.h".
23018         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23019         * lib/javacomp.c: Likewise.
23020         * lib/javaversion.c: Likewise.
23021         * lib/pipe-filter-gi.c: Likewise.
23022         * lib/pipe-filter-ii.c: Likewise.
23023         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23024         * modules/javacomp (Depends-on): Likewise.
23025         * modules/javaversion (Depends-on): Likewise.
23026         * modules/pipe-filter-gi (Depends-on): Likewise.
23027         * modules/pipe-filter-ii (Depends-on): Likewise.
23028         * MODULES.html.sh (Executing programs): Update.
23029         * NEWS: Mention the change.
23030
23031 2010-12-10  Eric Blake  <eblake@redhat.com>
23032
23033         pipe-posix: new module
23034         * modules/pipe-posix: New file.
23035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23036         (gl_UNISTD_H): Check for declaration.
23037         * modules/unistd (Makefile.am): Substitute it.
23038         * lib/unistd.in.h (pipe): Provide it for mingw.
23039         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23040         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23041
23042 2010-12-07  Bruno Haible  <bruno@clisp.org>
23043
23044         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23045         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23046         u8_strcmp_gnu.
23047         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23048
23049 2010-12-06  Bruno Haible  <bruno@clisp.org>
23050
23051         Update internal documentation.
23052         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23053
23054 2010-12-04  Bruno Haible  <bruno@clisp.org>
23055
23056         Put more information about failed tests into the test return codes.
23057         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23058         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23059         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23060         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23061         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23062         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23063         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23064         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23065         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23066         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23067         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23068         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23069         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23070         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23071         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23072         returns a bit mask.
23073         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23074         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23075         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23076         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23077         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23078         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23079         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23080         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23081         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23082         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23083         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23084         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23085         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23086         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23087         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23088         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23089         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23090         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23091         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23092         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23093         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23094         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23095         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23096         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23097         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23098         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23099         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23100         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23101         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23102         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23103         gl_PRINTF_PRECISION): Likewise.
23104         * m4/regex.m4 (gl_REGEX): Likewise.
23105         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23106         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23107         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23108         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23109         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23110         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23111         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23112         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23113         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23114         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23115         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23116         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23117         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23118         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23119         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23120         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23121         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23122         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23124         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23125         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23126         enumerated value.
23127         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23128
23129 2010-12-04  Bruno Haible  <bruno@clisp.org>
23130
23131         Update for Solaris 11 2010-11.
23132         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23133         Express, released in November 2010.
23134
23135 2010-12-04  Bruno Haible  <bruno@clisp.org>
23136
23137         nproc: Relax license.
23138         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23139         and Paul Eggert.
23140         Requested by Ludovic Courtès <ludo@gnu.org>.
23141
23142 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23143
23144         utimecmp: fine-grained src to nearby coarse-grained dest
23145
23146         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23147         and the source is on a file system with higher-resolution time
23148         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23149         not work, and the time stamps are close together, the algorithm to
23150         determine the exact resolution from the read-back mtime was buggy:
23151         it had a "!=" where it should have had an "==".  This bug has been
23152         in the code ever since it was introduced to gnulib.
23153         Problem reported by Dan Jacobson in
23154         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23155
23156 2010-11-30  Bruno Haible  <bruno@clisp.org>
23157
23158         strerror_r-posix: Fix autoconf test.
23159         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23160
23161 2010-11-28  Bruno Haible  <bruno@clisp.org>
23162             Paul Eggert  <eggert@cs.ucla.edu>
23163
23164         Tests for module 'getdomainname'.
23165         * modules/getdomainname-tests: New file.
23166         * tests/test-getdomainname.c: New file, based on
23167         tests/test-gethostname.c.
23168
23169 2010-11-28  Bruno Haible  <bruno@clisp.org>
23170             Paul Eggert  <eggert@cs.ucla.edu>
23171
23172         getdomainname: Use the system function when possible.
23173         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23174         (getdomainname): Replace if needed. Provide the declaration if it is
23175         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23176         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23177         (getdomainname): When the system has getdomainname, call the system
23178         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23179         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23180         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23181         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23182         the function if its second argument is of type 'int' or if it is found
23183         in libnsl.
23184         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23185         <sys/systeminfo.h> and sysinfo().
23186         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23188         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23189         HAVE_GETDOMAINNAME.
23190         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23191         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23192         * doc/glibc-functions/getdomainname.texi: Document the problems with
23193         the getdomainname declaration.
23194
23195 2010-11-28  Bruno Haible  <bruno@clisp.org>
23196
23197         sys_socket: Ensure ss_family field on AIX.
23198         * lib/sys_socket.in.h (ss_family): New macro definition.
23199         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23200         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23201         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23202         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23203         * modules/sys_socket (Makefile.am): Substitute
23204         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23205         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23206
23207 2010-11-27  Bruno Haible  <bruno@clisp.org>
23208
23209         readline: Improve configure output.
23210         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23211         "checking for readline..." result understandable.
23212
23213 2010-11-27  Bruno Haible  <bruno@clisp.org>
23214
23215         *printf-posix: Detect a bug on Solaris 10/x86.
23216         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23217         for floating-point output.
23218         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23219         directive.
23220         * tests/test-snprintf-posix.h (test_function): Likewise.
23221         * tests/test-sprintf-posix.h (test_function): Likewise.
23222         * tests/test-vasprintf-posix.c (test_function): Likewise.
23223         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23224         * doc/posix-functions/printf.texi: Likewise.
23225         * doc/posix-functions/snprintf.texi: Likewise.
23226         * doc/posix-functions/sprintf.texi: Likewise.
23227         * doc/posix-functions/vfprintf.texi: Likewise.
23228         * doc/posix-functions/vprintf.texi: Likewise.
23229         * doc/posix-functions/vsnprintf.texi: Likewise.
23230         * doc/posix-functions/vsprintf.texi: Likewise.
23231         * doc/glibc-functions/obstack_printf.texi: Likewise.
23232         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23233
23234 2010-11-27  Bruno Haible  <bruno@clisp.org>
23235
23236         Fix link error when module libunistring-optional is in use.
23237         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23238         * modules/striconveha-tests (Makefile.am): Likewise.
23239
23240 2010-11-27  Bruno Haible  <bruno@clisp.org>
23241
23242         regex: Mention link dependencies.
23243         * modules/regex (Link): New section.
23244         * modules/rpmatch (Link): Likewise.
23245         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23246
23247 2010-11-27  Bruno Haible  <bruno@clisp.org>
23248
23249         ftoastr: Fix compilation error on Solaris.
23250         * lib/ftoastr.c: Include <config.h>.
23251
23252 2010-11-27  Bruno Haible  <bruno@clisp.org>
23253
23254         getloadavg: Update documentation.
23255         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23256
23257 2010-11-27  Bruno Haible  <bruno@clisp.org>
23258
23259         sys_socket: Fix test whether the functions are declared.
23260         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23261         not <sys/select.h>.
23262
23263 2010-11-27  Bruno Haible  <bruno@clisp.org>
23264
23265         getpass: Make sure to get system declaration on some platforms.
23266         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23267         gl_USE_SYSTEM_EXTENSIONS.
23268         * modules/getpass (Depends-on): Add extensions.
23269
23270 2010-11-26  Bruno Haible  <bruno@clisp.org>
23271
23272         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23273         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23274         'iconv' module is present.
23275         (ICONV_CONST): New macro.
23276         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23277         ICONV_CONST.
23278         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23279         set ICONV_CONST.
23280         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23281         here.
23282         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23283         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23284         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23285         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23286         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23287         present.
23288
23289 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23290
23291         ftoastr: comment fix
23292         * lib/ftoastr.c: "little" -> "little or no" in comment
23293
23294 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23295
23296         stdint: port to GCC 4.3 + OSX + Octave
23297         On this platform, stdint.h is buggy and defines int64_t to long
23298         long int.  The replacement defined it to long int, causing
23299         problems with C++ style name mangling.  Instead, trust the system
23300         definition if INT64_MAX is defined, and likewise for the unsigned
23301         variant.   Problem reported by Jarno Rajahalme in
23302         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23303         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23304         and don't mess with int64_t and INT64_MAX in this case.
23305         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23306
23307 2010-11-24  Bruno Haible  <bruno@clisp.org>
23308
23309         doc: Corrections regarding MacOS X 10.4 and 10.5.
23310         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23311         MacOS X.
23312         Reported by Simon Josefsson.
23313
23314 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23315
23316         Uninstall ".bin" files installed by relocwrapper.
23317         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23318         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23319         unless it is already there.
23320
23321 2010-11-21  Bruno Haible  <bruno@clisp.org>
23322
23323         Update for NetBSD 5.0.
23324         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23325         NetBSD; the test fails on NetBSD 5.0.
23326         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23327         about NetBSD.
23328
23329 2010-11-21  Bruno Haible  <bruno@clisp.org>
23330
23331         Update for HP-UX 11.23 and HP-UX 11.31.
23332         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23333         HP-UX.
23334
23335 2010-11-21  Bruno Haible  <bruno@clisp.org>
23336
23337         Update for MacOS X 10.5.
23338         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23339         MacOS X; the test fails on MacOS X 10.5.8.
23340         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23341         about MacOS X.
23342
23343 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23344
23345         bootstrap: add bootstrap_sync option.
23346         See discussion at
23347         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23348         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23349         * build-aux/bootstrap: Accept --bootstrap-sync to update
23350         bootstrap if it is not identical to the local gnulib's
23351         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23352         enable this by default.  Accept --no-bootstrap-sync to disable
23353         it.
23354
23355 2010-11-20  Bruno Haible  <bruno@clisp.org>
23356
23357         Ensure that <features.h> is included before __GLIBC__ is tested.
23358         * lib/printf-parse.h: Include <features.h>.
23359         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23360         Reported by Mike Frysinger <vapier@gentoo.org>.
23361
23362         Ensure that <features.h> is included before __GLIBC__ is tested.
23363         * lib/wchar.in.h: Include <features.h>.
23364         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23365         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23366         Reported by Mike Frysinger <vapier@gentoo.org>.
23367
23368         Ensure that <features.h> is included before __GLIBC__ is tested.
23369         * lib/arpa_inet.in.h: Include <features.h>.
23370         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23371         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23372         Reported by Mike Frysinger <vapier@gentoo.org>.
23373
23374         Ensure that <features.h> is included before __GLIBC__ is tested.
23375         * build-aux/link-warning.h: Include <features.h>.
23376         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23377         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23378         Reported by Mike Frysinger <vapier@gentoo.org>.
23379
23380         Ensure that <features.h> is included before __GLIBC__ is tested.
23381         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23382         Reported by Mike Frysinger <vapier@gentoo.org>.
23383
23384 2010-11-20  Bruno Haible  <bruno@clisp.org>
23385
23386         memmem: Fix autoconf test.
23387         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23388
23389 2010-11-20  Bruno Haible  <bruno@clisp.org>
23390
23391         Port to uClibc.
23392         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23393         * lib/fcntl.in.h: Likewise.
23394         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23395         * lib/mbrtowc.c (mbrtowc): Likewise.
23396         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23397         * lib/strerror_r.c: Likewise.
23398         * lib/unistr/u8-strnlen.c: Likewise.
23399         * lib/vasnprintf.c (decimal_point_char): Likewise.
23400         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23401         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23402         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23403         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23404         * tests/test-sigaction.c (handler, main): Likewise.
23405         * lib/freading.h: Treat uClibc like a non-glibc platform.
23406         * lib/freading.c: Likewise.
23407         * lib/gettext.h: Likewise.
23408         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23409         Likewise.
23410         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23411         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23412         * lib/propername.c (proper_name_utf8): Likewise.
23413         * lib/spawn.in.h: Likewise.
23414         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23415         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23416         mem_cd_iconveh_internal): Likewise.
23417         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23418         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23419         strstr, strcasestr): Likewise.
23420         * lib/unicodeio.c (unicode_to_mb): Likewise.
23421         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23422         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23423         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23424         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23425         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23426         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23427         * lib/unistr/u8-stpncpy.c: Likewise.
23428         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23429         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23430         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23431         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23432         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23433         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23434         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23437         Likewise.
23438         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23439         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23440         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23442         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23443         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23444         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23445         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23446         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23447         * tests/test-striconveha.c (main): Likewise.
23448         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23449         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23450         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23451         * doc/posix-functions/getline.texi: Likewise.
23452         Reported by Mike Frysinger <vapier@gentoo.org>.
23453
23454 2010-11-20  Bruno Haible  <bruno@clisp.org>
23455
23456         nproc: Fix condition.
23457         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23458         HAVE_PTHREAD_AFFINITY_NP.
23459
23460 2010-11-20  Bruno Haible  <bruno@clisp.org>
23461
23462         Fix a comment.
23463         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23464
23465 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23466
23467         ftoastr: don't assume snprintf
23468         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23469         Implement a subset of snprintf here, by using sprintf safely.
23470         * modules/ftoastr (Depends-on): Remove snprintf.
23471
23472 2010-11-19  Jim Meyering  <meyering@redhat.com>
23473
23474         test-rename.h: fix compilation failure
23475         * tests/test-rename.h (test_rename): Add omitted "}".
23476
23477 2010-11-17  Jim Meyering  <meyering@redhat.com>
23478
23479         maint.mk: add a URL discussing the no-@acronym policy
23480         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23481
23482 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23483
23484         ftoastr: depend on snprintf, improve comments
23485         * lib/ftoastr.c: Also mention Loitsch's draft.
23486         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23487         needed in the current implementation, but it might simplify
23488         speeding up the code later.
23489         * modules/ftoastr: Depend on snprintf; this improves portability.
23490         Suggested by Bruno Haible in the same email.
23491
23492         ftoastr: port to hosts lacking strtof and strtold
23493         Problem reported by Bruno Haible in
23494         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23495         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23496         environment and strtold (and presumably strtof) are not available.
23497         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23498         (configure.ac): Require gl_C99_STRTOLD.
23499
23500 2010-11-18  Bruno Haible  <bruno@clisp.org>
23501
23502         c-strtold: Avoid link error on AIX 7.
23503         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23504         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23505         (gl_C_STRTOLD): Test whether strtold_l exists.
23506         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23507
23508 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23509
23510         intprops: new macro INT_BITS_STRLEN_BOUND
23511         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23512         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23513         not exposed.  Also, it uses a slightly tighter bound than before;
23514         though this makes no practical difference, we might as well be as
23515         tight as we easily can.
23516
23517         ftoastr: new module, for lossless conversion of floats to short strings
23518         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23519         * modules/ftoastr: New files.
23520
23521 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23522
23523         bootstrap: port to Solaris sed
23524         * build-aux/bootstrap (get_version): Port to Solaris sed.
23525         See Ralf Wildenhues's note in
23526         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23527
23528 2010-11-14  Jim Meyering  <meyering@redhat.com>
23529
23530         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23531         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23532         and move definition closer to sole use.
23533
23534 2010-11-13  Jim Meyering  <meyering@redhat.com>
23535
23536         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23537         Now we require at least autoconf-2.59, which means the work-around
23538         is no longer needed.
23539         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23540         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23541         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23542         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23543         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23544
23545 2010-11-13  Bruno Haible  <bruno@clisp.org>
23546
23547         rename, renameat: Avoid test failures at NFS mounted locations.
23548         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23549         functions.
23550         (test_rename): Use assert_nonexistent.
23551         * tests/test-rename.c: Include <dirent.h>.
23552         * tests/test-renameat.c: Likewise.
23553         Reported by Gary V. Vaughan <gary@gnu.org>.
23554
23555         rename, renameat: Document Linux bug with NFS
23556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23557         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23558         * doc/posix-functions/renameat.texi: Likewise.
23559         Suggested by Eric Blake.
23560
23561 2010-11-13  Bruno Haible  <bruno@clisp.org>
23562
23563         rename test: Add comments.
23564         * tests/test-rename.h (test_rename): Add structure and comments.
23565
23566 2010-11-13  Eric Blake  <eblake@redhat.com>
23567
23568         maintainer-makefile: cover a few more files
23569         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23570         scripts generated within C files, for libvirt.
23571
23572 2010-11-13  Bruno Haible  <bruno@clisp.org>
23573
23574         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23575         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23576         character, return the number of bytes that belong together, not always
23577         1.
23578         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23579         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23580         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23581         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23582         number of bytes of an invalid character.
23583         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23584         (main): Invoke it.
23585         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23586         results.
23587         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23588         malformed byte sequences.
23589         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23590         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23591         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23592         Reported by Ben Pfaff and Paolo Bonzini.
23593
23594 2010-11-13  Bruno Haible  <bruno@clisp.org>
23595
23596         openat: Work around glibc bug with fchownat() and empty file names.
23597         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23598         (gl_FUNC_FCHOWNAT): Invoke it.
23599         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23600         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23601         Reported by Gary V. Vaughan <gary@gnu.org>.
23602
23603 2010-11-13  Bruno Haible  <bruno@clisp.org>
23604
23605         openat: Ensure autoconf macro ordering.
23606         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23607         gl_USE_SYSTEM_EXTENSIONS.
23608         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23609
23610 2010-11-13  Bruno Haible  <bruno@clisp.org>
23611
23612         Update comments.
23613         * lib/unistr/u8-check.c: Update file name in comments.
23614         * lib/unistr/u8-mblen.c: Likewise.
23615         * lib/unistr/u8-prev.c: Likewise.
23616         * lib/unistr/u8-strmblen.c: Likewise.
23617         * lib/unistr/u8-strmbtouc.c: Likewise.
23618
23619 2010-11-13  Jim Meyering  <meyering@redhat.com>
23620
23621         tests: avoid test failure on Solaris 10 due to lack of PATH export
23622         * tests/test-update-copyright.sh: Don't forget to export PATH.
23623
23624         init.sh: ensure that IFS is defined, just in case...
23625         * tests/init.sh (setup_): Ensure that IFS is defined,
23626         so that saving and restoring it works as expected.  This
23627         appears to be useful at least for an old version of dash
23628         from a long time ago (RH 6).  See here for details:
23629         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23630
23631         maint.mk: tighten "test a == b" check
23632         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23633         test to files that contain something like #!/bin/sh.
23634         Without this, coreutils would get two false positives in
23635         the comments of C source files.
23636
23637 2010-11-12  Eric Blake  <eblake@redhat.com>
23638
23639         bootstrap: fix typo in previous attempt
23640         * build-aux/bootstrap (buildreq): Correct the grouping.
23641         Reported by Paul Eggert.
23642
23643         maintainer-makefile: prohibit test x == x
23644         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23645         Based on a report by Matthias Bolte.
23646
23647         bootstrap: allow FreeBSD gzip
23648         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23649         which has no '.' and goes to stderr.
23650         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23651         Reported by Matthias Bolte.
23652
23653         maintainer-makefile: check for i18n setup
23654         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23655         will likely work.
23656
23657 2010-11-12  Bruno Haible  <bruno@clisp.org>
23658
23659         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23660         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23661         * lib/nanosleep.c (nanosleep): Likewise.
23662
23663 2010-11-11  Bruno Haible  <bruno@clisp.org>
23664
23665         fcntl-h: Fix for use of C++ on glibc systems.
23666         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23667         also on glibc systems in C++ mode.
23668         Reported by Gary V. Vaughan <gary@gnu.org>.
23669
23670 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23671
23672         mknod: avoid false failure with dash
23673         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23674
23675 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23676
23677         unlink: Fix "is it should" typo in diagnostic.
23678         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23679         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23680
23681 2010-11-11  Bruno Haible  <bruno@clisp.org>
23682
23683         Tests for module 'strerror_r-posix'.
23684         * modules/strerror_r-posix-tests: New file.
23685         * tests/test-strerror_r.c: New file.
23686         * tests/test-string-c++.cc: Check the signature of strerror_r.
23687
23688         New module 'strerror_r-posix'.
23689         * lib/string.in.h (strerror_r): New declaration.
23690         * lib/strerror_r.c: New file.
23691         * m4/strerror_r.m4: New file.
23692         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23693         of strerror_r.
23694         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23695         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23696         * modules/strerror_r-posix: New file.
23697         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23698         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23699         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23700         portability problems.
23701
23702 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23703
23704         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23705         line is also considered for output. Quoted function name in shell
23706         command, so temporary files for functions like MyClass::operator()
23707         are removed correctly without errors.
23708
23709 2010-11-09  Bruno Haible  <bruno@clisp.org>
23710
23711         * doc/posix-functions/strerror.texi: List more failing platforms.
23712
23713         * doc/posix-functions/strerror.texi: Add a comment.
23714
23715 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23716
23717         fdopendir: fix bug on MacOS X when low on file descriptors
23718
23719         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23720         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23721         All callers changed.
23722         (fdopendir): Invoke save_cwd at the top level, not after using
23723         multiple dup() calls to use up file descriptors.  Then retry
23724         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23725         less than the maximum number of open file descriptors, because
23726         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23727         on Mac OS X 10.6.4 for tar 1.24
23728         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23729         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23730         and for tar 1.25
23731         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23732
23733 2010-11-07  Bruno Haible  <bruno@clisp.org>
23734
23735         vasnprintf: Support I flag on glibc systems.
23736         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23737         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23738         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23739         snprintf function.
23740         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23741         glibc systems.
23742         * tests/test-vasnprintf-posix3.c: New file.
23743         * modules/vasnprintf-posix-tests (Files): Add it.
23744         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23745
23746 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23747
23748         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23749         * MODULES.html.sh: For compiler warnings, use name
23750         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23751
23752 2010-11-05  Eric Blake  <eblake@redhat.com>
23753
23754         ceil, floor: avoid spurious failure with icc
23755         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23756         [denormals-as-zero] when optimizing without -mieee-fp option.
23757         * tests/test-floorf2.c (floorf_reference): Likewise.
23758         * tests/test-ceilf1.c (dummy): New function.
23759         (main): Use it to outsmart icc's optimization.
23760         * tests/test-floorf1.c (dummy, main): Likewise.
23761
23762         tests: require working signbit
23763         * modules/ceilf-tests (Depends-on): Add signbit.
23764         * modules/ceill-tests (Depends-on): Likewise.
23765         * modules/floorf-tests (Depends-on): Likewise.
23766         * modules/floorl-tests (Depends-on): Likewise.
23767         * modules/round-tests (Depends-on): Likewise.
23768         * modules/roundf-tests (Depends-on): Likewise.
23769         * modules/roundl-tests (Depends-on): Likewise.
23770         * modules/trunc-tests (Depends-on): Likewise.
23771         * modules/truncf-tests (Depends-on): Likewise.
23772         * modules/truncl-tests (Depends-on): Likewise.
23773
23774         strtod: work around icc bug
23775         * lib/strtod.c (minus_zero): Define to working value.
23776         (strtod): Use it to avoid icc bug.
23777
23778         copysign: enhance tests
23779         * modules/copysign-tests (Files): Add minus-zero.h.
23780         * tests/test-copysign.c (main): Also test zeros.
23781
23782 2010-11-04  Eric Blake  <eblake@redhat.com>
23783
23784         ceil, floor, round, trunc: enhance tests of -0
23785         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23786         * tests/test-ceill.c (main): Likewise.
23787         * tests/test-floorf1.c (main): Likewise.
23788         * tests/test-floorl.c (main): Likewise.
23789         * tests/test-round1.c (main): Likewise.
23790         * tests/test-roundf1.c (main): Likewise.
23791         * tests/test-roundl.c (main): Likewise.
23792         * tests/test-trunc1.c (main): Likewise.
23793         * tests/test-truncf1.c (main): Likewise.
23794         * tests/test-truncl.c (main): Likewise.
23795
23796 2010-11-04  Eric Blake  <eblake@redhat.com>
23797
23798         frexp, tests: work around ICC bug with -zero
23799         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23800         works with more compilers.
23801         * tests/minus-zero.h: New file.
23802         * modules/ceilf-tests (Files): Include it.
23803         * modules/ceill-tests (Files): Likewise.
23804         * modules/floorf-tests (Files): Likewise.
23805         * modules/floorl-tests (Files): Likewise.
23806         * modules/frexp-nolibm-tests (Files): Likewise.
23807         * modules/frexp-tests (Files): Likewise.
23808         * modules/frexpl-nolibm-tests (Files): Likewise.
23809         * modules/frexpl-tests (Files): Likewise.
23810         * modules/isnan-tests (Files): Likewise.
23811         * modules/isnand-nolibm-tests (Files): Likewise.
23812         * modules/isnand-tests (Files): Likewise.
23813         * modules/isnanf-nolibm-tests (Files): Likewise.
23814         * modules/isnanf-tests (Files): Likewise.
23815         * modules/isnanl-nolibm-tests (Files): Likewise.
23816         * modules/isnanl-tests (Files): Likewise.
23817         * modules/round-tests (Files): Likewise.
23818         * modules/roundf-tests (Files): Likewise.
23819         * modules/roundl-tests (Files): Likewise.
23820         * modules/ldexpl-tests (Files): Likewise.
23821         * modules/signbit-tests (Files): Likewise.
23822         * modules/snprintf-posix-tests (Files): Likewise.
23823         * modules/sprintf-posix-tests (Files): Likewise.
23824         * modules/strtod-tests (Files): Likewise.
23825         * modules/trunc-tests (Files): Likewise.
23826         * modules/truncf-tests (Files): Likewise.
23827         * modules/truncl-tests (Files): Likewise.
23828         * modules/vsnprintf-posix-tests (Files): Likewise.
23829         * modules/vsprintf-posix-tests (Files): Likewise.
23830         * modules/vasnprintf-posix-tests (Files): Likewise.
23831         * modules/vasprintf-posix-tests (Files): Likewise.
23832         * tests/test-ceilf1.c (main): Use it.
23833         * tests/test-ceill.c (main): Likewise.
23834         * tests/test-floorf1.c (main): Likewise.
23835         * tests/test-floorl.c (main): Likewise.
23836         * tests/test-frexp.c (main): Likewise.
23837         * tests/test-frexpl.c (main): Likewise.
23838         * tests/test-isnan.c (main): Likewise.
23839         * tests/test-isnand.h (main): Likewise.
23840         * tests/test-isnanf.h (main): Likewise.
23841         * tests/test-isnanl.h (main): Likewise.
23842         * tests/test-ldexpl.c (main): Likewise.
23843         * tests/test-round.c (main): Likewise.
23844         * tests/test-roundf.c (main): Likewise.
23845         * tests/test-roundl.c (main): Likewise.
23846         * tests/test-signbit.c (test_signbitf, test_signbitd)
23847         (test_signbitl): Likewise.
23848         * tests/test-snprintf-posix.h (test_function): Likewise.
23849         * tests/test-sprintf-posix.h (test_function): Likewise.
23850         * tests/test-strtod.c (main): Likewise.
23851         * tests/test-trunc1.c (main): Likewise.
23852         * tests/test-truncf1.c (main): Likewise.
23853         * tests/test-truncl.c (main): Likewise.
23854
23855         isnanl: work around icc bug
23856         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23857
23858 2010-11-03  Eric Blake  <eblake@redhat.com>
23859
23860         tests: fix compiler warnings
23861         * tests/test-getopt.h (test_getopt): Fix condition.
23862         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23863         * tests/test-pipe2.c (main): Likewise.
23864         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23865
23866         utimens: fix broken m4 test
23867         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23868
23869 2010-10-28  Bruno Haible  <bruno@clisp.org>
23870
23871         posix_spawn*, getdtablesize: Relax license.
23872         * modules/posix_spawn (License): Change to LGPLv2+.
23873         * modules/posix_spawnp (License): Likewise.
23874         * modules/posix_spawn-internal (License): Likewise.
23875         * modules/posix_spawnattr_init (License): Likewise.
23876         * modules/posix_spawnattr_getflags (License): Likewise.
23877         * modules/posix_spawnattr_setflags (License): Likewise.
23878         * modules/posix_spawnattr_getpgroup (License): Likewise.
23879         * modules/posix_spawnattr_setpgroup (License): Likewise.
23880         * modules/posix_spawnattr_getschedparam (License): Likewise.
23881         * modules/posix_spawnattr_setschedparam (License): Likewise.
23882         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23883         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23884         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23885         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23886         * modules/posix_spawnattr_getsigmask (License): Likewise.
23887         * modules/posix_spawnattr_setsigmask (License): Likewise.
23888         * modules/posix_spawnattr_destroy (License): Likewise.
23889         * modules/posix_spawn_file_actions_init (License): Likewise.
23890         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23891         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23892         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23893         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23894         * modules/getdtablesize (License): Likewise.
23895         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23896
23897 2010-10-26  Bruno Haible  <bruno@clisp.org>
23898
23899         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23900         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23901         Cygwin and mingw.
23902         Suggested by Eric Blake.
23903
23904 2010-10-26  Bruno Haible  <bruno@clisp.org>
23905
23906         stdio: Work around compilation error due to renameat() on Solaris 10.
23907         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23908         * lib/renameat.c: Don't include <unistd.h> here.
23909         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23910         Reported by Paul Eggert and Eric Blake.
23911
23912 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23913
23914         renameat: port to Solaris 10, which declares renameat in unistd.h
23915
23916         * lib/renameat.c: Include unistd.h before stdio.h, because
23917         Solaris 10 declares renameat in unistd.h.  Problem encountered
23918         when building GNU tar 1.24 on Solaris 10.
23919
23920 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23921
23922         fdopendir: fix C89 compilation
23923         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23924         compilers.
23925
23926 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23927
23928         inttostr: simplify by removing unnecessary redundancy
23929         * lib/anytostr.c: Don't include verify.h.
23930         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23931         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23932         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23933         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23934         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23935         Likewise.
23936         * modules/inttostr (Depends-on): Remove 'verify'.
23937
23938 2010-10-23  Bruno Haible  <bruno@clisp.org>
23939
23940         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23941         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23942         Reported by Eric Blake.
23943
23944 2010-10-23  Bruno Haible  <bruno@clisp.org>
23945
23946         Tests: Fix LOCALE_JA on MirBSD 10.
23947         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23948         to an UTF-8 locale.
23949         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23950         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23951         Reported by Eric Blake.
23952
23953 2010-10-21  Bruno Haible  <bruno@clisp.org>
23954
23955         nl_langinfo test: Avoid test failure on NetBSD 5.
23956         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23957         Reported by Eric Blake.
23958
23959 2010-10-21  Eric Blake  <eblake@redhat.com>
23960
23961         c-stack: work around libsigsegv 2.8 bug
23962         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23963         overflow on at least PowerPC64.
23964
23965 2010-10-17  Bruno Haible  <bruno@clisp.org>
23966
23967         userspec: Drop redundant file.
23968         * modules/userspec (Files): Remove lib/inttostr.h.
23969
23970 2010-10-17  Bruno Haible  <bruno@clisp.org>
23971
23972         nl_langinfo tests: Silence some warnings.
23973         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23974         Reported by Jim Meyering.
23975
23976 2010-10-17  Bruno Haible  <bruno@clisp.org>
23977
23978         Make use of GCC's attribute __alloc_size__.
23979         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23980         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23981         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23982         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23983         __alloc_size__.
23984         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23985         Suggested by Jim Meyering.
23986
23987 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23988
23989         bootstrap: anchor .gitignore entries.
23990         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23991         with...
23992         (insert_vc_ignore): ... this new function, which prepends `/' to
23993         all .gitignore entries before passing them to
23994         insert_sorted_if_absent.
23995
23996 2010-10-16  Bruno Haible  <bruno@clisp.org>
23997
23998         nextafter: Fix configure check.
23999         * modules/nextafter (configure.ac): Correct expected prototype.
24000
24001 2010-10-16  Bruno Haible  <bruno@clisp.org>
24002
24003         termios: Update documentation.
24004         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24005
24006 2010-10-16  Bruno Haible  <bruno@clisp.org>
24007
24008         tests: Make them compile with TinyCC.
24009         * tests/test-strstr.c (main): Remove parentheses around array
24010         initializer.
24011
24012 2010-10-15  Eric Blake  <eblake@redhat.com>
24013
24014         ignore-value: make header idempotent
24015         * lib/ignore-value.h: Add double-inclusion guards.
24016         Reported by Stefan Berger.
24017
24018 2010-10-15  Jim Meyering  <meyering@redhat.com>
24019
24020         GNUmakefile: handle "stable" target, not "major"
24021         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24022         lists in maint.mk and announce-gen.  Without this, "make stable"
24023         would fail to ensure that $(VERSION) is up to date.
24024
24025 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24026
24027         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24028         & co.
24029
24030 2010-10-14  Bruno Haible  <bruno@clisp.org>
24031
24032         vasnprintf: Don't set errno to 0.
24033         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24034         block that sets it to 0.
24035         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24036
24037 2010-10-14  Bruno Haible  <bruno@clisp.org>
24038
24039         socketlib: Fix.
24040         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24041         gl_PREREQ_SYS_H_WINSOCK2.
24042         Reported by Ian Beckwith <ianb@erislabs.net>.
24043
24044 2010-10-13  Jim Meyering  <meyering@redhat.com>
24045
24046         test-select-stdin.c: avoid warn_unused_result warnings
24047         * tests/test-select-stdin.c: Include "macros.h".
24048         ASSERT that read and fflush succeed.
24049
24050 2010-10-13  Jim Meyering  <meyering@redhat.com>
24051
24052         git-version-gen: do require git-VC'd files in cwd
24053         * build-aux/git-version-gen: Reject a git version string
24054         if there are no commits associated with the current directory.
24055         This avoids an unlikely false-positive (unrelated dir whose parent
24056         repository also contains a tag matching v*), as pointed out
24057         by Giuseppe Scrivano in
24058         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24059
24060 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24061
24062         argv-iter: omit nonconforming declaration
24063         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24064         enum arg_iter_err declaration, which doesn't conform to C99.
24065         Solaris 10 cc warns about this.
24066
24067 2010-10-13  Eric Blake  <eblake@redhat.com>
24068
24069         termios: fix compilation on mingw
24070         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24071         (gl_TERMIOS_H): Adjust it on mingw.
24072         * modules/termios (Makefile.am): Substitute new key.
24073         * lib/termios.in.h (includes): Make include_next conditional.
24074         * doc/posix-headers/termios.texi (termios.h): Update
24075         documentation.
24076         Reported by Daniel P. Berrange.
24077
24078 2010-10-13  Jim Meyering  <meyering@redhat.com>
24079
24080         git-version-gen: don't require that .git/ be in the current dir
24081         * build-aux/git-version-gen: Adjust this script so that it works
24082         when run from any working directory beneath the top-level .git/-
24083         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24084         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24085
24086         test-select: avoid warn_unused_result warnings
24087         * tests/test-select.c: Include "macros.h".
24088         ASSERT that each call to read, write, and pipe succeeds.
24089         While not technically required, also check each "close".
24090         * modules/select-tests (Files): Add tests/macros.h.
24091
24092         test-symlinkat: remove declaration of unused local
24093         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24094
24095         test-inttostr: avoid shadowing warnings
24096         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24097         and use malloc rather than the stack for the same reason as
24098         mentioned in the comment justifying the other allocation.
24099
24100 2010-10-11  Bruno Haible  <bruno@clisp.org>
24101
24102         stdlib: Allow multiple gnulib generated replacements to coexist.
24103         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24104         Reported by Sam Steingold <sds@gnu.org>.
24105
24106 2010-10-11  Jim Meyering  <meyering@redhat.com>
24107
24108         fix a documentation typo
24109         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24110
24111 2010-10-11  Eric Blake  <eblake@redhat.com>
24112
24113         futimens: work around Solaris 11 bug
24114         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24115         * tests/test-futimens.h (test_futimens): Enhance, rather than
24116         weaken test.
24117         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24118
24119 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24120
24121         Indentation.
24122         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24123         higher-level operators more to the left.
24124
24125 2010-10-11  Jim Meyering  <meyering@redhat.com>
24126
24127         test-futimens: avoid unwarranted test failure on Solaris 5.11
24128         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24129         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24130         because it tries to dereference the NULL name argument.
24131
24132 2010-10-11  Bruno Haible  <bruno@clisp.org>
24133
24134         Indentation.
24135         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24136         indentation.
24137
24138 2010-10-11  Jim Meyering  <meyering@redhat.com>
24139
24140         spawn.in.h: make indentation consistent with parentheses
24141         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24142         Make indentation consistent with parentheses.
24143
24144 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24145
24146         Fix mismatched parens in previous commit
24147         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24148         parens.
24149
24150 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24151
24152         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24153
24154         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24155         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24156         * lib/malloca.c: Include "verify.h".
24157         (verify1): Remove, replacing with a verify call.
24158         * lib/relocwrapper.c (verify1): Likewise.
24159         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24160         Likewise.
24161         * modules/malloca (Depends-on): Add 'verify'.
24162         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24163         * modules/vasnprintf (Depends-on): Add 'verify'.
24164         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24165         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24166         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24167         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24168         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24169         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24170         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24171
24172         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24173
24174         Formerly the style was sometimes 2*X - 1, because the C standard
24175         was wrongly thought to disallow ?: in integral constant expressions.
24176         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24177         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24178         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24179         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24180         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24181         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24182         verify that time_t cannot be floating.
24183
24184 2010-10-08  Eric Blake  <eblake@redhat.com>
24185
24186         time: enforce recent POSIX ruling that time_t is integral
24187         * lib/time.in.h (__time_t_must_be_integral): Detect any
24188         problematic systems, allowing the rest of gnulib to assume POSIX.
24189
24190 2010-10-08  Jim Meyering  <meyering@redhat.com>
24191
24192         fdopendir: fix a bug on systems lacking openat and /proc support
24193         OpenBSD 4.7 is one such system.  The most noticeable effect was
24194         failure of any application making nontrivial use of fts: rm, du,
24195         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24196           ./rm: traversal failed: `a': Bad file descriptor
24197         Debugging that, you see that even though FD 6 was closed just
24198         prior to the opendir call in fd_clone_opendir, its resulting
24199         dir->dd_fd was 8, rather than the expected value of 6:
24200
24201         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24202         93                close (fd);
24203         (gdb) n
24204         94                dir = fd_clone_opendir (dupfd);
24205         (gdb) n
24206         95                saved_errno = errno;
24207         (gdb) p dir->dd_fd
24208         $11 = 8
24209
24210         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24211         The problem is that on OpenBSD, fd_clone_opendir has to resort
24212         to using the old-style save/restore CWD mechanism, due to its
24213         lack of openat/proc support, and *that* would steal the FD (6)
24214         that opendir was supposed to use.
24215
24216         The fix is to squirrel away the desired FD so that save_cwd uses a
24217         different one, and then free the dest FD right before calling opendir.
24218         That guarantees opendir will use the required file descriptor.
24219
24220         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24221
24222 2010-10-08  Bruno Haible  <bruno@clisp.org>
24223
24224         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24225         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24226
24227 2010-10-08  Bruno Haible  <bruno@clisp.org>
24228
24229         nanosleep: Make replacement POSIX compliant.
24230         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24231         is out of range.
24232         Reported by Jim Meyering.
24233
24234 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24235
24236         bootstrap: add hook for altering gnulib.mk, for Bison
24237         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24238         the Bison bootstrapping process can rewrite file names and variables
24239         in this file before later parts of 'bootstrap' use the file.
24240         Bison wants to include lib/gnulib.mk from the top-level makefile,
24241         so it needs the file names in this file to be relative to the top
24242         level, not relative to lib; plus it needs variable names to be
24243         rewritten.
24244         (slurp): Use the new function.
24245
24246         bootstrap: reformat for readability
24247         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24248
24249 2010-10-08  Eric Blake  <eblake@redhat.com>
24250
24251         docs: update cygwin progress
24252         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24253         1.7.7.
24254         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24255         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24256         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24257         * doc/posix-functions/carg.texi (carg): Likewise.
24258         * doc/posix-functions/cargf.texi (cargf): Likewise.
24259         * doc/posix-functions/casin.texi (casin): Likewise.
24260         * doc/posix-functions/casinf.texi (casinf): Likewise.
24261         * doc/posix-functions/casinh.texi (casinh): Likewise.
24262         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24263         * doc/posix-functions/catan.texi (catan): Likewise.
24264         * doc/posix-functions/catanf.texi (catanf): Likewise.
24265         * doc/posix-functions/catanh.texi (catanh): Likewise.
24266         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24267         * doc/posix-functions/ccos.texi (ccos): Likewise.
24268         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24269         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24270         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24271         * doc/posix-functions/cexp.texi (cexp): Likewise.
24272         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24273         * doc/posix-functions/cimag.texi (cimag): Likewise.
24274         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24275         * doc/posix-functions/clog.texi (clog): Likewise.
24276         * doc/posix-functions/clogf.texi (clogf): Likewise.
24277         * doc/posix-functions/conj.texi (conj): Likewise.
24278         * doc/posix-functions/conjf.texi (conjf): Likewise.
24279         * doc/posix-functions/cpow.texi (cpow): Likewise.
24280         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24281         * doc/posix-functions/cproj.texi (cproj): Likewise.
24282         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24283         * doc/posix-functions/creal.texi (creal): Likewise.
24284         * doc/posix-functions/crealf.texi (crealf): Likewise.
24285         * doc/posix-functions/csin.texi (csin): Likewise.
24286         * doc/posix-functions/csinf.texi (csinf): Likewise.
24287         * doc/posix-functions/csinh.texi (csinh): Likewise.
24288         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24289         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24290         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24291         * doc/posix-functions/ctan.texi (ctan): Likewise.
24292         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24293         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24294         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24295         * doc/posix-headers/complex.texi (complex.h): Likewise.
24296
24297 2010-10-07  Jim Meyering  <meyering@redhat.com>
24298
24299         parse-datetime: avoid compilation failure on OpenBSD 4.7
24300         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24301         This works around a compilation failure on OpenBSD 4.7:
24302         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24303
24304 2010-10-07  Eric Blake  <eblake@redhat.com>
24305
24306         docs: update cygwin progress
24307         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24308         1.7.6.
24309         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24310         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24311         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24312         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24313         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24314         Likewise.
24315         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24316         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24317         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24318         Likewise.
24319         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24320         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24321         Likewise.
24322         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24323         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24324         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24325         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24326         Likewise.
24327         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24328         Likewise.
24329         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24330
24331         docs: update parse-datetime history
24332         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24333         documentation of this function's history and alternatives.
24334
24335         cygwin: use more robust version check
24336         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24337         exclude an eventual cygwin 1.9.1.
24338         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24340         (gl_FUNC_STRCASESTR): Likewise.
24341         Reported by Bruno Haible.
24342
24343 2010-10-06  Bruno Haible  <bruno@clisp.org>
24344
24345         string, sys_select: Avoid #including large headers unless necessary.
24346         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24347         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24348         OSF/1, BeOS, Haiku.
24349         Reported by Jim Meyering.
24350
24351 2010-10-05  Eric Blake  <eblake@redhat.com>
24352
24353         memmem, strstr, strcasestr: fix bug with long periodic needle
24354         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24355         periodic needle having false positive.
24356         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24357         and cygwin 1.7.7.
24358         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24359         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24360         (gl_FUNC_STRCASESTR): Likewise.
24361         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24362         * tests/test-memmem.c (main): Expose the bug.
24363         * tests/test-strcasestr.c (main): Likewise.
24364         * tests/test-strstr.c (main): Likewise.
24365         * tests/test-c-strcasestr.c (main): Likewise.
24366         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24367         * doc/posix-functions/strstr.texi (strstr): Likewise.
24368         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24369         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24370
24371 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24372
24373         parse-datetime: do some more renaming
24374         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24375         parse_datetime, not get_date.  Mention the renaming.
24376         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24377         in comments.
24378         * m4/bison.m4: Likewise.
24379
24380 2010-10-05  Eric Blake  <eblake@redhat.com>
24381
24382         parse-datetime: better name than get_date
24383         * NEWS: Reword the deprecation notice.
24384         * modules/get_date: Rename to modules/parse-datetime.
24385         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24386         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24387         * lib/get_date.y: Rename to lib/parse-datetime.y.
24388         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24389         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24390         * doc/getdate.texi: Provide fallback wrapper.
24391         * lib/getdate.h: Move guts, and wrap...
24392         * lib/parse-datetime.h: ...new file.
24393         * lib/parse-datetime.y (get_date): Rename...
24394         (parse_datetime): ...to this.
24395         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24396         (gl_PARSE_DATETIME): ...to this.
24397         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24398         documentation.
24399         * modules/getdate (Files): Provide fallback docs and header.
24400         (Notice, Depends-on): Update references.
24401         * tests/test-parse-datetime.c: Likewise.
24402         * DEPENDENCIES: Likewise.
24403         * MODULES.html.sh (Date and time <time.h>): Likewise.
24404         * doc/parse-datetime.texi (Date input formats)
24405         (Authors of parse_datetime): Likewise.
24406         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24407         (Include): Likewise.
24408         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24409         * gnulib-tool: Likewise.
24410         * m4/bison.m4 (gl_BISON): Likewise.
24411         Suggested by Bruno Haible.
24412
24413 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24414
24415         more ports to Solaris tr, which needs [] around ranges
24416         * gnulib-tool: Solaris tr needs [] around ranges.
24417         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24418         * tests/test-pipe-filter-gi1.c (main): Likewise.
24419         * tests/test-pipe-filter-ii1.c (main): Likewise.
24420
24421 2010-10-05  Eric Blake  <eblake@redhat.com>
24422
24423         bootstrap: fix Solaris regression
24424         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24425         around ranges.
24426         Reported by Pádraig Brady.
24427
24428         bootstrap: work with pkg-config
24429         * build-aux/bootstrap (check_versions): Also transliterate - in
24430         prerequisite name.
24431         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24432         prerequisites that were already found, to avoid confusion.
24433         Reported by Justin Clift.
24434
24435         faccessat: remove unused wrappers
24436         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24437         presence of these wrappers dragged in -lgen on Solaris.
24438         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24439
24440 2010-10-05  Jim Meyering  <meyering@redhat.com>
24441
24442         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24443         * Makefile (sc_pragma_columns): New syntax-check rule.
24444
24445 2010-10-04  Bruno Haible  <bruno@clisp.org>
24446
24447         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24448         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24449         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24450         Reported by Bruce Korb and Eric Blake.
24451
24452 2010-10-04  Bruno Haible  <bruno@clisp.org>
24453
24454         threadlib: Make option --with-libpth-prefix work.
24455         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24456         use $LIBPTH, not just -lpth.
24457
24458 2010-10-04  Bruno Haible  <bruno@clisp.org>
24459
24460         Avoid line length limitation from HP NonStop system header files.
24461         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24462         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24463         * lib/ctype.in.h: Likewise.
24464         * lib/dirent.in.h: Likewise.
24465         * lib/errno.in.h: Likewise.
24466         * lib/fcntl.in.h: Likewise.
24467         * lib/float.in.h: Likewise.
24468         * lib/getopt.in.h: Likewise.
24469         * lib/iconv.in.h: Likewise.
24470         * lib/inttypes.in.h: Likewise.
24471         * lib/langinfo.in.h: Likewise.
24472         * lib/locale.in.h: Likewise.
24473         * lib/math.in.h: Likewise.
24474         * lib/netdb.in.h: Likewise.
24475         * lib/netinet_in.in.h: Likewise.
24476         * lib/poll.in.h: Likewise.
24477         * lib/pthread.in.h: Likewise.
24478         * lib/pty.in.h: Likewise.
24479         * lib/sched.in.h: Likewise.
24480         * lib/se-selinux.in.h: Likewise.
24481         * lib/search.in.h: Likewise.
24482         * lib/signal.in.h: Likewise.
24483         * lib/spawn.in.h: Likewise.
24484         * lib/stdarg.in.h: Likewise.
24485         * lib/stddef.in.h: Likewise.
24486         * lib/stdint.in.h: Likewise.
24487         * lib/stdio.in.h: Likewise.
24488         * lib/stdlib.in.h: Likewise.
24489         * lib/string.in.h: Likewise.
24490         * lib/strings.in.h: Likewise.
24491         * lib/sys_file.in.h: Likewise.
24492         * lib/sys_ioctl.in.h: Likewise.
24493         * lib/sys_select.in.h: Likewise.
24494         * lib/sys_socket.in.h: Likewise.
24495         * lib/sys_stat.in.h: Likewise.
24496         * lib/sys_time.in.h: Likewise.
24497         * lib/sys_times.in.h: Likewise.
24498         * lib/sys_utsname.in.h: Likewise.
24499         * lib/sys_wait.in.h: Likewise.
24500         * lib/sysexits.in.h: Likewise.
24501         * lib/termios.in.h: Likewise.
24502         * lib/time.in.h: Likewise.
24503         * lib/unistd.in.h: Likewise.
24504         * lib/wchar.in.h: Likewise.
24505         * lib/wctype.in.h: Likewise.
24506         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24507         * modules/ctype (Makefile.am): Likewise.
24508         * modules/dirent (Makefile.am): Likewise.
24509         * modules/errno (Makefile.am): Likewise.
24510         * modules/fcntl-h (Makefile.am): Likewise.
24511         * modules/float (Makefile.am): Likewise.
24512         * modules/getopt-posix (Makefile.am): Likewise.
24513         * modules/iconv-h (Makefile.am): Likewise.
24514         * modules/inttypes (Makefile.am): Likewise.
24515         * modules/langinfo (Makefile.am): Likewise.
24516         * modules/locale (Makefile.am): Likewise.
24517         * modules/math (Makefile.am): Likewise.
24518         * modules/netdb (Makefile.am): Likewise.
24519         * modules/netinet_in (Makefile.am): Likewise.
24520         * modules/poll-h (Makefile.am): Likewise.
24521         * modules/pthread (Makefile.am): Likewise.
24522         * modules/pty (Makefile.am): Likewise.
24523         * modules/sched (Makefile.am): Likewise.
24524         * modules/search (Makefile.am): Likewise.
24525         * modules/selinux-h (Makefile.am): Likewise.
24526         * modules/signal (Makefile.am): Likewise.
24527         * modules/spawn (Makefile.am): Likewise.
24528         * modules/stdarg (Makefile.am): Likewise.
24529         * modules/stddef (Makefile.am): Likewise.
24530         * modules/stdint (Makefile.am): Likewise.
24531         * modules/stdio (Makefile.am): Likewise.
24532         * modules/stdlib (Makefile.am): Likewise.
24533         * modules/string (Makefile.am): Likewise.
24534         * modules/strings (Makefile.am): Likewise.
24535         * modules/sys_file (Makefile.am): Likewise.
24536         * modules/sys_ioctl (Makefile.am): Likewise.
24537         * modules/sys_select (Makefile.am): Likewise.
24538         * modules/sys_socket (Makefile.am): Likewise.
24539         * modules/sys_stat (Makefile.am): Likewise.
24540         * modules/sys_time (Makefile.am): Likewise.
24541         * modules/sys_times (Makefile.am): Likewise.
24542         * modules/sys_utsname (Makefile.am): Likewise.
24543         * modules/sys_wait (Makefile.am): Likewise.
24544         * modules/sysexits (Makefile.am): Likewise.
24545         * modules/termios (Makefile.am): Likewise.
24546         * modules/time (Makefile.am): Likewise.
24547         * modules/unistd (Makefile.am): Likewise.
24548         * modules/wchar (Makefile.am): Likewise.
24549         * modules/wctype (Makefile.am): Likewise.
24550
24551 2010-10-04  Bruno Haible  <bruno@clisp.org>
24552
24553         read-file tests: Avoid a test failure on NonStop Kernel.
24554         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24555         a regular file.
24556         Reported by Joachim Schmitz <schmitz@hp.com>.
24557
24558 2010-10-03  Bruno Haible  <bruno@clisp.org>
24559
24560         gnulib-tool: Fixes for --create-testdir with --libtool.
24561         * gnulib-tool (func_get_automake_snippet): Don't augment
24562         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24563         an executable.
24564         (func_create_testdir): Handle module 'alloca' like func_import.
24565         Reported by Bruce Korb <bruce.korb@gmail.com>.
24566
24567 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24568
24569         Avoid some lines longer than 80 characters.
24570         * lib/stdint.in.h: Break long comment lines.
24571         * lib/math.in.h: Likewise.
24572         (_GL_NUM_UINT_WORDS): New macro, for readability.
24573         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24574         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24575         * lib/stdlib.in.h: Likewise.
24576         * lib/spawn.in.h: Likewise.
24577         * lib/sys_socket.in.h: Update an URL.
24578         * lib/sys_stat.in.h: Break long line.
24579
24580 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24581
24582         Improve pmccabe2html.
24583         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24584         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24585         when the sources change. Remove the line in the HTML about "Used
24586         ranges" (which implied that there might be other unused ranges),
24587         rename "Resume" to "Summary" (easier to understand for more users).
24588         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24589         styles, and some unnecessary blank lines.
24590
24591 2010-10-03  Bruno Haible  <bruno@clisp.org>
24592             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24593
24594         acl: Add support for ACLs on NonStop Kernel.
24595         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24596         Check whether the function aclsort() exists.
24597         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24598         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24599         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24600         (acl_nontrivial [HAVE_ACLSORT]: New function.
24601         (file_has_acl): Implement for NonStop Kernel.
24602         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24603         (qset_acl): Implement for NonStop Kernel.
24604         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24605         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24606         (main): Implement for NonStop Kernel.
24607         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24608         Kernel. Handle this flavor.
24609         * tests/test-set-mode-acl.sh: Likewise.
24610         * tests/test-copy-acl.sh: Likewise.
24611         * tests/test-copy-file.sh: Likewise.
24612
24613 2010-10-03  Bruno Haible  <bruno@clisp.org>
24614
24615         Info about ACLs on NonStop Kernel.
24616         * doc/acl-resources.txt: Add info about NonStop Kernel.
24617         References by Joachim Schmitz <schmitz@hp.com>.
24618
24619 2010-10-02  Bruno Haible  <bruno@clisp.org>
24620
24621         Define missing EDQUOT on NonStop Kernel.
24622         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24623         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24624         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24625         missing.
24626         * doc/posix-headers/errno.texi: Mention the NSK bug.
24627         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24628         Reported by Joachim Schmitz <schmitz@hp.com>.
24629
24630 2010-10-02  Bruno Haible  <bruno@clisp.org>
24631
24632         Update doc for POSIX:2008.
24633         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24634         Update URL of POSIX specification.
24635
24636 2010-10-02  Bruno Haible  <bruno@clisp.org>
24637
24638         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24639         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24640         from gnulib, not from Automake.
24641
24642 2010-10-02  Bruno Haible  <bruno@clisp.org>
24643
24644         New module 'system-posix'.
24645         * modules/system-posix: New file.
24646         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24647         module is present.
24648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24649         GNULIB_SYSTEM_POSIX.
24650         * modules/stdlib (Depends-on): Remove sys_wait.
24651         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24652         * doc/posix-functions/system.texi: Mention the new module.
24653         * doc/posix-headers/stdlib.texi: Likewise.
24654         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24655         define test_sys_wait_macros to a no-op.
24656         Reported by Sam Steingold <sds@gnu.org>.
24657
24658 2010-09-30  Bruno Haible  <bruno@clisp.org>
24659
24660         More renaming from 'getdate' to 'get_date'.
24661         * doc/get_date.texi: Renamed from doc/getdate.texi.
24662         * modules/get_date (Files): Update.
24663         * MODULES.html.sh (Date and time <time.h>): Update.
24664         * DEPENDENCIES: Update.
24665         * gnulib-tool: Update comment.
24666         * m4/bison.m4 (gl_BISON): Likewise.
24667         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24668
24669 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24670
24671         bootstrap: support ACLOCAL_FLAGS during aclocal
24672         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24673         can add additional -I dir for third-party .m4 files.
24674
24675 2010-09-30  Eric Blake  <eblake@redhat.com>
24676
24677         bootstrap: use glibtoolize on MacOS
24678         * build-aux/bootstrap (check_versions): Convert libtool into
24679         libtoolize.
24680         (tool search): Move libtool check earlier, and look for
24681         glibtoolize for MacOS.
24682         (gnulib_tool_options): Auto-add --libtool when appropriate.
24683         Reported by Justin Clift.
24684
24685         poll: fix typo that broke test on MacOS
24686         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24687         Reported by Justin Clift.
24688
24689         getdate: rename to get_date
24690         Note: getdate.h is not renamed, to minimize client impact.
24691         * modules/getdate: Mark obsolete.  Move old contents...
24692         * modules/get_date: ...to new module name.
24693         * modules/getdate-tests: Move...
24694         * modules/get_date-tests: ...here.
24695         * m4/getdate.m4: Move...
24696         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24697         * lib/getdate.y: Move...
24698         * lib/get_date.y: ...here.
24699         * tests/test-getdate.c: Move...
24700         * tests/test-get_date.c: ...here.
24701         * doc/posix-functions/getdate.texi (getdate): Update name.
24702         * NEWS: Mention the change.
24703
24704 2010-09-29  Bruno Haible  <bruno@clisp.org>
24705
24706         Separate the module 'waitpid' from the module 'sys_wait'.
24707         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24708         present.
24709         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24710         gl_MODULE_INDICATOR_FOR_TESTS.
24711         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24712         * modules/sys_wait (Depends-on): Remove waitpid.
24713         (Makefile.am): Substitute GNULIB_WAITPID.
24714         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24715         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24716         signature only if the 'waitpid' module is present.
24717         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24718         * NEWS: Mention the change.
24719         * modules/grantpt (Depends-on): Add waitpid.
24720         * modules/wait-process (Depends-on): Likewise.
24721
24722 2010-09-29  Bruno Haible  <bruno@clisp.org>
24723
24724         More tests for module 'sys_wait'.
24725         * modules/sys_wait-c++-tests: New file.
24726         * tests/test-sys_wait-c++.cc: New file.
24727         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24728         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24729
24730 2010-09-29  Bruno Haible  <bruno@clisp.org>
24731
24732         New module 'waitpid'.
24733         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24734         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24735         Don't include <process.h>.
24736         (waitpid): Declare only, using modern idiom.
24737         * m4/waitpid.m4: New file.
24738         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24739         * modules/waitpid: New file.
24740         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24741         (Makefile.am): Update.
24742         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24743
24744 2010-09-28  Bruno Haible  <bruno@clisp.org>
24745
24746         poll: Assume ANSI C.
24747         * lib/poll.c (poll): Use an ANSI C declaration.
24748
24749 2010-09-28  Bruno Haible  <bruno@clisp.org>
24750
24751         poll-h: Create poll.h on all platforms.
24752         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24753         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24754         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24755         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24756         (gl_REPLACE_POLL_H): Don't set POLL_H.
24757         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24758         * modules/poll-h (Depends-on): Add include_next.
24759         (Makefile.am): Create poll.h unconditionally. Substitute also
24760         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24761
24762 2010-09-28  Bruno Haible  <bruno@clisp.org>
24763
24764         Tests for module 'poll-h'.
24765         * modules/poll-h-c++-tests: New file.
24766         * tests/test-poll-h-c++.cc: New file.
24767
24768         Tests for module 'poll-h'.
24769         * modules/poll-h-tests: New file.
24770         * tests/test-poll-h.c: New file.
24771
24772 2010-09-28  Bruno Haible  <bruno@clisp.org>
24773
24774         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24775         * modules/poll-h (Depends-on): Add 'extensions'.
24776
24777 2010-09-28  Bruno Haible  <bruno@clisp.org>
24778
24779         New module 'poll-h'.
24780         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24781         (poll): Use modern idiom.
24782         * modules/poll-h: New file.
24783         * modules/poll (Files): Remove lib/poll.in.h.
24784         (Depends-on): Add poll-h.
24785         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24786         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24787         * m4/poll_h.m4: New file.
24788         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24789         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24790         and invoke gl_REPLACE_POLL_H.
24791         * lib/poll.c: Use common idiom.
24792         * tests/test-poll.c: Likewise.
24793         * doc/posix-headers/poll.texi: Mention the poll-h module.
24794         Suggested by Eric Blake.
24795
24796 2010-09-26  Bruno Haible  <bruno@clisp.org>
24797
24798         sys_wait: Implement WSTOPSIG.
24799         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24800         Reported by Simon Josefsson.
24801
24802 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24803
24804         stdlib, sys_wait: Avoid compilation error on mingw.
24805         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24806
24807 2010-09-26  Bruno Haible  <bruno@clisp.org>
24808
24809         stdlib tests: Avoid code duplication.
24810         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24811         * modules/sys_wait-tests (Files): Likewise.
24812         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24813         * tests/test-stdlib.c: Include test-sys_wait.h.
24814         (main): Invoke test_sys_wait_macros.
24815         * tests/test-sys_wait.c: Include test-sys_wait.h.
24816         (main): Invoke test_sys_wait_macros.
24817
24818 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24819
24820         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24821         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24822         sure Windows sockets are working before calling getaddrinfo.
24823         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24824         * doc/gnulib.texi (Windows sockets): Fix typo.
24825
24826 2010-09-25  Bruno Haible  <bruno@clisp.org>
24827
24828         Tests for module 'regex-quote'.
24829         * modules/regex-quote-tests: New file.
24830         * tests/test-regex-quote.c: New file.
24831
24832         New module 'regex-quote'.
24833         * lib/regex-quote.h: New file.
24834         * lib/regex-quote.c: New file.
24835         * modules/regex-quote: New file.
24836         Suggested by Reuben Thomas <rrt@sc3d.org>.
24837
24838 2010-09-24  Bruno Haible  <bruno@clisp.org>
24839
24840         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24841         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24842
24843 2010-09-23  Bruno Haible  <bruno@clisp.org>
24844
24845         setenv: Relax license.
24846         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24847         Blake.
24848         Requested by Eric Blake.
24849
24850 2010-09-22  Bruno Haible  <bruno@clisp.org>
24851
24852         termios: Relax license.
24853         * modules/termios (License): Change to LGPLv2+.
24854         Requested by Eric Blake.
24855
24856 2010-09-22  Bruno Haible  <bruno@clisp.org>
24857
24858         threadlib: Allow the package to change the default to 'no'.
24859         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24860         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24861         Reported by Paul Eggert.
24862
24863 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24864             Bruno Haible  <bruno@clisp.org>
24865
24866         Fix endless loop in mbmemcasecoll.
24867         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24868         byte.
24869         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24870
24871 2010-09-22  Bruno Haible  <bruno@clisp.org>
24872
24873         Tests for module 'memcoll'.
24874         * modules/memcoll-tests: New file.
24875         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24876
24877         memcoll, xmemcoll: Clarify size vs. length.
24878         * modules/memcoll.c (memcoll0): Clarify specification.
24879         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24880         passed to collate_error.
24881
24882 2010-09-22  Bruno Haible  <bruno@clisp.org>
24883
24884         Tests for module 'memcasecmp'.
24885         * modules/memcasecmp-tests: New file.
24886         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24887
24888 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24889
24890         * lib/pthread.in.h: Add split double-inclusion guard, and include
24891         system <pthread.h> if there is one.  Use @@-style as in other
24892         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24893         pthread.h doesn't.
24894         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24895         (pthread_mutexattr_settype, pthread_mutex_trylock):
24896         New static inline functions, if there's no system <pthread.h>.
24897         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24898         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24899         Approximate with mutexes if the system lacks spinlocks, as in
24900         MacOS.
24901         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24902         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24903         @@-style.  Check for spinlocks separately.
24904         (gl_PTHREAD_DEFAULTS): New macro.
24905         * modules/pthread: Redo to use a more typical style for in.h files.
24906
24907 2010-09-21  Eric Blake  <eblake@redhat.com>
24908
24909         net_if: enhance tests
24910         * tests/test-net_if.c (main): Move signature checks earlier.
24911         Print failures to stderr.
24912         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24913         Document the bug that we do not yet fix.
24914
24915 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24916
24917         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24918         about gnulib, not GSS.
24919
24920 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24921
24922         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24923         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24924         for Emacs.
24925         * build-aux/pmccabe2html: Make Makefile.am example code more
24926         cut-and-paste friendly.
24927
24928 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24929
24930         * tests/test-net_if.c: New file.
24931         * modules/net_if-tests: New file.
24932
24933 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24934
24935         pthread: add pthread_spin_destroy
24936         * lib/pthread.in.h (pthread_spin_destroy): New function.
24937
24938 2010-09-19  Bruno Haible  <bruno@clisp.org>
24939
24940         gnulib-tool: Fix --help output.
24941         * gnulib-tool (func_usage): Fix help message.
24942         Reported by Reuben Thomas <rrt@sc3d.org>.
24943
24944 2010-09-18  Jim Meyering  <meyering@redhat.com>
24945
24946         maint.mk: avoid unexpanded \n in two diagnostics
24947         * top/maint.mk (sc_prohibit_always_true_header_tests):
24948         Don't use a literal \n in a halt=... assignment.  It would not be
24949         expanded, and the two \n bytes would appear in the diagnostic output
24950         rather than the desired newline.  Use halt=$$(printf ... instead.
24951         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24952
24953 2010-09-18  Bruno Haible  <bruno@clisp.org>
24954
24955         netinet_in: Doc tweak.
24956         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24957         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24958
24959 2010-09-18  Jim Meyering  <meyering@redhat.com>
24960
24961         init.sh: correct an outdated comment
24962         * tests/init.sh (create_exe_shims_):  s/function/alias/
24963
24964         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24965         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24966         a file named "*.exe" is removed between the glob expansion and the
24967         processing of that oddly named file.
24968
24969 2010-09-17  Eric Blake  <eblake@redhat.com>
24970
24971         mirbsd: add some more support
24972         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24973         in BSD family.
24974         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24975         devices as OpenBSD.
24976         * m4/host-os.m4 (mirbsd): Add MirBSD.
24977
24978         tests: fix unportable assumption on sys/wait.h
24979         * tests/test-sys_wait.c (main): Relax test.
24980         * tests/test-stdlib.c (main): Likewise.
24981
24982         init.sh: accomodate directory with no .exes
24983         * tests/init.sh: Accomodate directory containing only scripts.
24984
24985         tests: avoid compiler warning
24986         * tests/test-stdlib.c (main): Use the variable.
24987
24988         fdutimens, fdutimensat: update signature, again
24989         * lib/utimens.h (gl_futimens): Delete, and move signature...
24990         (fdutimens): ...here.
24991         (fdutimensat): Rearrange signature.
24992         (lutimensat): Rename variable for clarity.
24993         * lib/fdutimensat.c (fdutimensat): Update signature.
24994         * lib/utimens.c (fdutimens): Likewise.
24995         (gl_futimens): Delete.
24996         (utimens, lutimens): Update callers.
24997         * lib/futimens.c (futimens): Likewise.
24998         * tests/test-fdutimensat.c: Likewise.
24999         * tests/test-utimens.c: Likewise.
25000         * tests/test-futimens.h: Update comment.
25001         * NEWS: Mention this.
25002         Suggested by Paul Eggert.
25003
25004 2010-09-17  Bruno Haible  <bruno@clisp.org>
25005
25006         Take over the maintenance of some older macros from Autoconf.
25007         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25008         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25009         GNU Autoconf.
25010         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25011         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25012
25013 2010-09-17  Eric Blake  <eblake@redhat.com>
25014
25015         fdutimensat: drop atflag validation
25016         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25017         with valid fd, to close a race scenario where futimens is
25018         unsupported and FILE was replaced by a symlink.
25019         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25020         accordingly.
25021         Suggested by Paul Eggert.
25022
25023 2010-09-16  Bruno Haible  <bruno@clisp.org>
25024
25025         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25026         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25027
25028 2010-09-16  Bruno Haible  <bruno@clisp.org>
25029
25030         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25031         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25032         login_tty exists.
25033         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25034
25035 2010-09-16  Bruno Haible  <bruno@clisp.org>
25036
25037         login_tty: Make the replacement code work on BSD systems.
25038         * lib/login_tty.c: Include <sys/ioctl.h>.
25039         (login_tty): Use ioctl TIOCSCTTY when available.
25040         * modules/login_tty (Depends-on): Add sys_ioctl.
25041         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25042
25043 2010-09-16  Bruno Haible  <bruno@clisp.org>
25044
25045         login_tty: Stricter unit test.
25046         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25047         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25048         and tcgetsid() after login_tty.
25049         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25050
25051 2010-09-16  Bruno Haible  <bruno@clisp.org>
25052
25053         New module 'tcgetsid'.
25054         * lib/tcgetsid.c: New file.
25055         * m4/tcgetsid.m4: New file.
25056         * modules/tcgetsid: New file.
25057         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25058         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25059         GNULIB_TCGETSID, HAVE_TCGETSID.
25060         * lib/termios.in.h: Include <sys/types.h>.
25061         (tcgetsid): New declaration.
25062         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25063         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25064         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25065         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25066
25067 2010-09-16  Bruno Haible  <bruno@clisp.org>
25068
25069         Tests for module 'termios'.
25070         * modules/termios-c++-tests: New file.
25071         * modules/termios-tests: New file.
25072         * tests/test-termios-c++.cc: New file.
25073         * tests/test-termios.c: New file.
25074
25075         New module 'termios'.
25076         * modules/termios: New file.
25077         * lib/termios.in.h: New file.
25078         * m4/termios_h.m4: New file.
25079         * doc/posix-headers/termios.texi: Mention the new module.
25080
25081 2010-09-16  Eric Blake  <eblake@redhat.com>
25082
25083         fdutimensat: add an atflag parameter
25084         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25085         * lib/utimens.h (fdutimensat): Update prototype.
25086         * tests/test-fdutimensat.c: Adjust test to match.
25087         * NEWS: Document the change.
25088         Suggested by Paul Eggert.
25089
25090 2010-09-16  Bruno Haible  <bruno@clisp.org>
25091
25092         Fix typos in comments.
25093         * lib/striconveh.h: Fix typo in comment.
25094         * lib/login_tty.c (login_tty): Likewise.
25095
25096 2010-09-15  Bruno Haible  <bruno@clisp.org>
25097
25098         stdlib: clarify MirBSD WEXITSTATUS bug
25099         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25100         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25101
25102 2010-09-15  Eric Blake  <eblake@redhat.com>
25103
25104         stdlib: work around MirBSD WEXITSTATUS bug
25105         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25106         * modules/stdlib (Depends-on): Add sys_wait.
25107         * tests/test-sys_wait.c (main): Enhance test.
25108         * tests/test-stdlib.c (main): Likewise.
25109         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25110
25111         docs: mention MacOS issue with WEXITSTATUS(constant)
25112         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25113         issue.
25114         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25115
25116         strnlen: add tests
25117         * modules/strnlen-tests: New file.
25118         * tests/test-strnlen.c: Likewise.
25119
25120 2010-09-14  Bruno Haible  <bruno@clisp.org>
25121
25122         unistr/base: Avoid link errors when module 'libunistring' is also used.
25123         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25124         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25125         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25126         Declare also when HAVE_LIBUNISTRING is set.
25127         Reported by Pádraig Brady <P@draigbrady.com>.
25128
25129 2010-09-14  Eric Blake  <eblake@redhat.com>
25130
25131         test-rawmemchr: make more robust
25132         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25133         (Depends-on, configure.ac): Add needed prerequisites to use it.
25134         * modules/memchr-tests (Files, Depends-on, configure.ac):
25135         Likewise, to avoid implicit reliance on memchr module prereqs.
25136         * tests/test-memchr.c (main): Ensure proper masking.
25137         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25138         reads.
25139
25140         memchr: detect glibc Alpha bug
25141         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25142         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25143         Alpha.
25144         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25145         * tests/test-memchr.c (main): Enhance test.
25146         Reported by Nelson H. F. Beebe.
25147
25148 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25149
25150         fts, getcwd, glob: audit for dirfd returning -1
25151         * lib/fts.c (opendir): Remove #define; no longer used.
25152         (opendirat): New arg PDIR_FD.  All callers changed.
25153         (fts_build, _opendir2): Use new opendirat to avoid the need for
25154         dirfd, or for checking whether dirfd returns a negative value.
25155         Don't use opendir; always use openat followed by fdopendir.
25156         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25157         it.
25158         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25159         returns -1 here.
25160         * modules/fts (Depends-on): Remove dirfd.
25161         * modules/getcwd (Depends-on): Likewise.
25162
25163 2010-09-13  Eric Blake  <eblake@redhat.com>
25164
25165         float: fix broken MirBSD header
25166         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25167         * doc/posix-headers/float.texi (float.h): Document it.
25168
25169 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25170
25171         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25172         * lib/fts.c (opendirat): New arg extra_flags.
25173         (__opendir2): Use it to avoid following symlinks when opening
25174         a directory, if symlinks are not supposed to be followed.  See
25175         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25176
25177         fdopendir: preserve argument fd before returning
25178         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25179         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25180         (fdopendir): Use them, arranging for FD to be open to the same
25181         directory that it was when it started.  (It might be temporarily
25182         closed while fdopendir is running, so this not thread- or
25183         signal-safe.)  Be careful to do the right thing even when file
25184         descriptors are scarce and dup fails with errno == EMFILE.  See
25185         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25186
25187 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25188
25189         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25190         * NEWS: Document change.
25191         * m4/regex.m4: Disable test for regoff_t size.
25192
25193 2010-09-13  Jim Meyering  <meyering@redhat.com>
25194
25195         fts: don't operate on an invalid file descriptor after failed dup
25196         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25197         negative file descriptor.
25198
25199 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25200
25201         savedir: add streamsavedir, deprecate fdsavedir
25202         * NEWS: Mention deprecation of fdsavedir.
25203         * lib/savedir.c (streamsavedir): New extern function, whose name
25204         ends in "savedir" to be consistent with the others.  This differs
25205         from savedirstream in that it doesn't close its argument.  The
25206         next version of GNU tar will use this instead of fdsavedir, to
25207         avoid some race conditions and conserve file descriptors.
25208         (savedirstream): Reimplement as a wrapper around streamsavedir.
25209         (fdsavedir): Add a comment deprecating this function.  As far as
25210         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25211         * lib/savedir.h (streamsavedir): New decl.
25212         (fdsavedir): Add a comment deprecating this.
25213
25214 2010-09-10  Bruno Haible  <bruno@clisp.org>
25215
25216         langinfo: Fix last commit.
25217         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25218         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25220
25221 2010-09-10  Bruno Haible  <bruno@clisp.org>
25222
25223         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25224         * lib/progreloc.c (O_EXEC): Define fallback.
25225
25226 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25227
25228         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25229         * NEWS: Document recent changes to fcntl-h.
25230         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25231         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25232         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25233         Similarly for O_SEARCH; this last was already true, but not documented.
25234         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25235         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25236         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25237         Likewise.
25238         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25239         is zero, not whether it is defined.
25240         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25241         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25242         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25243
25244 2010-09-10  Bruno Haible  <bruno@clisp.org>
25245
25246         langinfo, nl_langinfo: Fix for IRIX 5.3.
25247         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25248         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25249         HAVE_LANGINFO_YESEXPR.
25250         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25251         HAVE_LANGINFO_YESEXPR.
25252         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25253         HAVE_LANGINFO_T_FMT_AMPM is 0.
25254         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25255         HAVE_LANGINFO_YESEXPR is 0.
25256         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25257         NOEXPR.
25258         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25259         * doc/posix-functions/nl_langinfo.texi: Likewise.
25260         Reported by Eric Blake.
25261
25262 2010-09-10  Bruno Haible  <bruno@clisp.org>
25263
25264         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25265         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25266         on FreeBSD 8.0 and OpenBSD 4.6.
25267         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25268         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25269         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25270         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25271         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25272         ac_includes_default.
25273         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25274
25275 2010-09-09  Eric Blake  <eblake@redhat.com>
25276
25277         strsignal: work around NetBSD bug
25278         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25279         * lib/string.in.h (includes): Likewise.
25280         * doc/posix-functions/strsignal.texi (strsignal): Document the
25281         bug.
25282         Reported by Nelson H. F. Beebe.
25283
25284         gnulib-tool: work with NetBSD /bin/sh
25285         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25286         (func_get_description, func_get_comment, func_get_status)
25287         (func_get_notice, func_get_applicability, func_get_filelist)
25288         (func_get_dependencies, func_get_autoconf_early_snippet)
25289         (func_get_autoconf_snippet, func_get_automake_snippet)
25290         (func_get_include_directive, func_get_link_directive)
25291         (func_get_license, func_get_maintainer, func_import): Avoid
25292         shell syntax errors from parsing syntax extensions.
25293
25294 2010-09-09  Bruno Haible  <bruno@clisp.org>
25295
25296         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25297         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25298         a reliable way to determine whether the 'alias' command works.
25299
25300 2010-09-08  Jim Meyering  <meyering@redhat.com>
25301
25302         init.sh: penalize a set-x-impaired shell; don't disqualify it
25303         * tests/init.sh: Too many shells corrupt application stderr when
25304         you set -x, so we can't afford to disqualify them, since at least
25305         on Irix-6.5, that would disqualify all bourne shells.
25306         Instead, use a two-pass approach.
25307         On the first pass, try to find a shell that meets the stricter
25308         condition that set -x does not corrupt stderr.
25309         If no shell meets the stricter condition, retest each candidate
25310         shell, but without that extra condition.  Finally, when
25311         VERBOSE=yes is requested and set -x might cause trouble, simply
25312         issue a warning and refrain from enabling debug output.
25313
25314 2010-09-08  Eric Blake  <eblake@redhat.com>
25315
25316         unsetenv: fix OpenBSD bug
25317         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25318         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25319         documentation.
25320         Reported by Jim Meyering.
25321
25322         strtod: work around IRIX 6.5 bug
25323         * lib/strtod.c (strtod): Reparse number on shorter string if
25324         exponent parse was invalid.
25325         * tests/test-strtod.c (main): Add check for "0x1p 2".
25326         Reported by Tom G. Christensen.
25327
25328         getopt: optimize previous patch
25329         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25330         empty variable.  Speed up awk script.
25331         Reported by Paolo Bonzini.
25332
25333 2010-09-08  Jim Meyering  <meyering@redhat.com>
25334
25335         test.sh: disqualify shells for which set -x corrupts stderr
25336         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25337         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25338         appear in stderr output.  For example, this command:
25339             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25340         prints "P=1" on those two systems:
25341
25342 2010-09-08  Bruno Haible  <bruno@clisp.org>
25343
25344         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25345         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25346         commands, because some shells ignore redirections when there is an
25347         error in the command lookup.
25348         Reported by Eric Blake.
25349
25350 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25351
25352         * lib/regex.h: Fix a mention of `regex_compile' (should be
25353         `re_compile_pattern').
25354         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25355         (re_set_registers): Correct name of parameter in comment.
25356
25357         * doc/regex.texi: Add documentation for missing syntax flags.
25358         Remove commented-out documentation of defunct syntax option
25359         RE_NO_EMPTY_ALTS.
25360         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25361         Add documentation of re_set_registers.
25362         Document trick to re-use a pattern buffer by setting fastmap manually.
25363         Update documentation of struct re_pattern_buffer per public members.
25364         Uncomment documentation of equivalence class operators and
25365         collating symbol operators, since they are now implemented,
25366         Explain leftmost-longest matching in relation to alternatives.
25367         Tidy documentation of substring matching.
25368         Remove POSIX documentation, which is done better in
25369         glibc, and refer the reader there. Keep BSD API documentation, as
25370         that is not readily available elsewhere.
25371
25372 2010-09-07  Eric Blake  <eblake@redhat.com>
25373
25374         getopt: handle POSIXLY_CORRECT set but not exported
25375         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25376         export state of POSIXLY_CORRECT, due to bash set -o posix.
25377         Reported by Dustin J. Mitchell.
25378
25379 2010-09-05  Bruno Haible  <bruno@clisp.org>
25380
25381         gnulib-tool: Highlight the changed options.
25382         * gnulib-tool (func_usage): Display the --import, --add-import,
25383         --remove-import explanations in bold font.
25384
25385 2010-09-06  Karl Berry  <karl@gnu.org>
25386
25387         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25388
25389 2010-09-05  Bruno Haible  <bruno@clisp.org>
25390
25391         uniwidth/width: Update comment.
25392         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25393         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25394
25395 2010-09-05  Bruno Haible  <bruno@clisp.org>
25396
25397         isinf, isnan: Relax license.
25398         * modules/isinf (License): Change from GPL to LGPL, with consent from
25399         Ben Pfaff.
25400         * modules/isnan (License): Likewise.
25401         Requested by Ludovic Courtès.
25402
25403 2010-09-04  Bruno Haible  <bruno@clisp.org>
25404
25405         gnulib-tool: Help migration from --import to --add-import or --update.
25406         * gnulib-tool: Emit a verbose error message when --import is used
25407         without any module name.
25408
25409 2010-09-04  Bruno Haible  <bruno@clisp.org>
25410
25411         Update doc about gnulib-tool.
25412         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25413         'gnulib-tool --update' in more detail.
25414         Reported by Eric Blake.
25415
25416 2010-09-04  Bruno Haible  <bruno@clisp.org>
25417
25418         gnulib-tool: Change --import. New options --add/remove-import.
25419         * gnulib-tool: New options --add-import, --remove-import.
25420         (func_usage): Document them.
25421         (have_associative): Define always.
25422         (func_import): In import mode, don't merge the specified settings with
25423         the cached settings. Implement remove-import mode.
25424         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25425         Explain when to use them versus --import.
25426         (Simple update): Use --add-import instead of --import.
25427         * NEWS: Mention the change.
25428
25429 2010-09-04  Bruno Haible  <bruno@clisp.org>
25430
25431         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25432         separate gnulib.mk.
25433
25434 2010-09-04  Bruno Haible  <bruno@clisp.org>
25435
25436         gnulib-tool: Don't talk about CVS any more.
25437         * gnulib-tool (func_usage, func_import): Write "version control"
25438         instead of CVS.
25439
25440 2010-09-04  Jim Meyering  <meyering@redhat.com>
25441
25442         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25443         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25444         false positives (whose names may be ill-chosen) when searching
25445         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25446         would cause a false-positive.
25447
25448         avoid coreutils "make distcheck" failure
25449         Coreutils tests with an absolute build directory name that contains
25450         a space.  Not quoting this directory name caused a failure.
25451         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25452         * tests/test-vc-list-files-cvs.sh: Likewise.
25453
25454 2010-09-04  Bruno Haible  <bruno@clisp.org>
25455
25456         gnulib-tool: Avoid error when run in a package without Makefile.am.
25457         * gnulib-tool: When collecting the m4dirs in a package that does not
25458         have a Makefile.am, eliminate those directories that contain no
25459         gnulib-cache.m4. Fix expression that counts these directories.
25460
25461 2010-09-04  Bruno Haible  <bruno@clisp.org>
25462
25463         update-copyright test: Improve output when perl is missing or too old.
25464         * tests/test-update-copyright.sh: Move test of Perl version down after
25465         the test whether Perl exists. Provide an explanation relating Perl's
25466         error message to Automake's SKIP: message.
25467
25468 2010-09-04  Bruno Haible  <bruno@clisp.org>
25469
25470         Don't augment PATH in TESTS_ENVIRONMENT.
25471         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25472         set abs_aux_dir instead of augmenting PATH.
25473         * modules/vc-list-files-tests (Makefile.am): Likewise.
25474         * tests/test-update-copyright.sh: Augment PATH here.
25475         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25476         path_prepend_.
25477         * tests/test-vc-list-files-git.sh: Likewise.
25478
25479 2010-09-04  Jim Meyering  <meyering@redhat.com>
25480
25481         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25482         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25483
25484 2010-09-04  Bruno Haible  <bruno@clisp.org>
25485
25486         strdup: Fix compilation error in C++ mode.
25487         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25488         the macro.
25489
25490 2010-09-04  Bruno Haible  <bruno@clisp.org>
25491
25492         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25493         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25494         macro into a function.
25495         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25496
25497 2010-09-04  Bruno Haible  <bruno@clisp.org>
25498
25499         Set PATH_SEPARATOR the same way autoconf does.
25500         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25501         the value of PATH_SEPARATOR the same way autoconf-generated configure
25502         scripts do.
25503         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25504         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25505
25506 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25507
25508         Set PATH_SEPARATOR the same way autoconf does.
25509         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25510         the same way autoconf-generated configure scripts do.
25511         * posix-modules: Likewise.
25512
25513 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25514
25515         hash: fix safe_hasher const typo
25516         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25517         const; otherwise, there is a type error later.
25518
25519 2010-09-02  Jim Meyering  <meyering@redhat.com>
25520
25521         test-update-copyright.sh: require perl 5.8.0
25522         * tests/test-update-copyright.sh: Require 5.8.0,
25523         which Tom G. Christensen has confirmed is adequate,
25524         while 5.6.1 is not.
25525
25526 2010-09-02  Eric Blake  <eblake@redhat.com>
25527
25528         tests: init.sh improvements for re-exec'ing with zsh
25529         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25530         -vx through shell re-exec.
25531         Reported by Tom G. Christensen.
25532
25533         wctype: fix typo in previous commit
25534         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25535         Reported by Ludovic Courtès.
25536
25537 2010-09-02  Jim Meyering  <meyering@redhat.com>
25538
25539         test-update-copyright.sh: skip test if Perl is too old
25540         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25541         Reported by Tom G. Christensen.
25542
25543 2010-09-02  Bruno Haible  <bruno@clisp.org>
25544
25545         wctype: Avoid compilation error on IRIX 6.5.30.
25546         * lib/wctype.in.h (iswblank): Declare with a replacement if
25547         REPLACE_ISWBLANK is set.
25548         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25549         declared. Set REPLACE_ISWBLANK.
25550         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25551         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25552         * doc/posix-headers/wctype.texi: Likewise.
25553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25554
25555 2010-09-01  Bruno Haible  <bruno@clisp.org>
25556
25557         New module 'socketlib'.
25558         * modules/socketlib: New file.
25559         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25560         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25561         * modules/sockets (Depends-on): Add socketlib.
25562         Suggested by Sam Steingold <sds@gnu.org>.
25563
25564 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25565
25566         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25567
25568         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25569         when one needs search access to a directory but not read access.
25570         On systems where it is available, it works in some cases where
25571         O_RDONLY does not, namely on directories that are searchable but
25572         not readable, and which need only to be searchable.  If O_SEARCH
25573         is not available, fall back to the traditional method of using
25574         O_RDONLY.
25575
25576         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25577         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25578         when opening a directory that needs only to be searchable.
25579         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25580         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25581         * lib/openat-proc.c (openat_proc_name): Likewise.
25582         * lib/openat.c (openat_needs_fchdir): Likewise.
25583         * lib/save-cwd.c (save_cwd): Likewise.
25584         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25585
25586 2010-08-28  Bruno Haible  <bruno@clisp.org>
25587
25588         New module 'host-cpu-c-abi'.
25589         * modules/host-cpu-c-abi: New file.
25590         * m4/host-cpu-c-abi.m4: New file, based on part of
25591         clisp/src/m4/general.m4.
25592         Requested by Sam Steingold <sds@gnu.org>.
25593
25594 2010-08-31  Eric Blake  <eblake@redhat.com>
25595         and Jim Meyering  <meyering@redhat.com>
25596
25597         hash: factor, and guard against misbehaving hasher function
25598         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25599         of table->hasher's return value.  Also protect against a hash value
25600         so large that adding it to table->bucket results in a NULL pointer.
25601         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25602         Use it in place of open-coded check-and-abort.
25603
25604 2010-08-30  Bruno Haible  <bruno@clisp.org>
25605
25606         hash: silence spurious clang warning
25607         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25608         Reported by Eric Blake.
25609
25610 2010-08-30  Eric Blake  <eblake@redhat.com>
25611
25612         strstr, memmem, strcasestr: avoid leaked shell message
25613         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25614         FreeBSD.
25615         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25616         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25617
25618         tests: silence clang warning
25619         * tests/test-malloca.c (do_allocation): Avoid dead store.
25620
25621 2010-08-29  Bruno Haible  <bruno@clisp.org>
25622
25623         gettext: Fix recent mistake.
25624         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25625
25626 2010-08-29  Bruno Haible  <bruno@clisp.org>
25627
25628         selinux-h: Offer a --without-selinux option.
25629         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25630         --without-selinux was specified, skip all tests and define
25631         HAVE_SELINUX_SELINUX_H to 0.
25632         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25633         set LIB_SELINUX to empty.
25634         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25635         gl_LIBSELINUX. If --without-selinux was specified, replace
25636         selinux/context.h.
25637         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25638
25639 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25640             Bruno Haible  <bruno@clisp.org>
25641
25642         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25643         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25644         of HAVE_REALLOC.
25645         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25646         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25647         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25648         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25649
25650 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25651             Bruno Haible  <bruno@clisp.org>
25652
25653         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25654         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25655         HAVE_CALLOC.
25656         * lib/xmalloc.c: Update accordingly.
25657         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25658         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25659         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25660
25661 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25662             Bruno Haible  <bruno@clisp.org>
25663
25664         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25665         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25666         HAVE_MALLOC.
25667         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25668         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25669         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25670
25671 2010-08-29  Bruno Haible  <bruno@clisp.org>
25672
25673         Update modules list.
25674         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25675         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25676         (String handling <string.h>): Add astrxfrm.
25677         (File system functions): Add readlinkat.
25678
25679 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25680
25681         Tests for module 'realloc-gnu'.
25682         * modules/realloc-gnu-tests: New file.
25683         * tests/test-realloc-gnu.c: New file.
25684
25685         Tests for module 'calloc-gnu'.
25686         * modules/calloc-gnu-tests: New file.
25687         * tests/test-calloc-gnu.c: New file.
25688
25689         Tests for module 'malloc-gnu'.
25690         * modules/malloc-gnu-tests: New file.
25691         * tests/test-malloc-gnu.c: New file.
25692
25693 2010-08-28  Bruno Haible  <bruno@clisp.org>
25694
25695         Rename module 'realloc' -> 'realloc-gnu'.
25696         * modules/realloc-gnu: New file, copied from modules/realloc.
25697         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25698         obsolete.
25699         * modules/mgetgroups (Depends-on): Update.
25700         * doc/posix-functions/realloc.texi: Update.
25701         * NEWS: Mention the change.
25702
25703         Rename module 'calloc' -> 'calloc-gnu'.
25704         * modules/calloc-gnu: New file, copied from modules/calloc.
25705         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25706         obsolete.
25707         * doc/posix-functions/calloc.texi: Update.
25708         * NEWS: Mention the change.
25709
25710         Rename module 'malloc' -> 'malloc-gnu'.
25711         * modules/malloc-gnu: New file, copied from modules/malloc.
25712         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25713         obsolete.
25714         * modules/argp (Depends-on): Update.
25715         * modules/regex (Depends-on): Update.
25716         * doc/posix-functions/malloc.texi: Update.
25717         * NEWS: Mention the change.
25718
25719 2010-08-28  Eric Blake  <eblake@redhat.com>
25720
25721         pread, pwrite: add missing dependency
25722         * modules/pread (Depends-on): Add extensions.
25723         * modules/pwrite (Depends-on): Likewise.
25724
25725 2010-08-28  Bruno Haible  <bruno@clisp.org>
25726
25727         unistr/u*-strchr: Fix tests dependencies.
25728         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25729         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25730         Reported by Ian Beckwith <ianb@erislabs.net>.
25731
25732 2010-08-28  Bruno Haible  <bruno@clisp.org>
25733
25734         read-file: Don't occupy too much unused memory.
25735         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25736
25737 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25738             Eric Blake  <eblake@redhat.com>
25739             Bruno Haible  <bruno@clisp.org>
25740
25741         read-file: Avoid memory reallocations with regular files.
25742         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25743         (fread_file): With regular files, use the remaining length as the
25744         initial buffer size.  Check against overflow.
25745         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25746         sys_stat.
25747
25748 2010-08-28  Bruno Haible  <bruno@clisp.org>
25749
25750         ftello: Relax license.
25751         * modules/ftello (License): Relax to LGPLv2+.
25752         Reported by Eric Blake.
25753
25754 2010-08-28  Bruno Haible  <bruno@clisp.org>
25755
25756         Avoid relocwrapper link errors due to gnulib replacement functions.
25757         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25758         function.
25759         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25760
25761 2010-08-28  Bruno Haible  <bruno@clisp.org>
25762
25763         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25764         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25765         defined.
25766         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25767         Suggested by Eric Blake.
25768
25769 2010-08-28  Bruno Haible  <bruno@clisp.org>
25770
25771         sys_socket, netdb: Ensure socklen_t gets defined.
25772         * modules/sys_socket (Depends-on): Add socklen.
25773         * modules/netdb (Depends-on): Likewise.
25774         * modules/getaddrinfo (Depends-on): Remove socklen.
25775         * modules/getsockopt (Depends-on): Likewise.
25776         * modules/setsockopt (Depends-on): Likewise.
25777         * tests/test-sys_socket.c: Check that socklen_t is defined.
25778         * tests/test-netdb.c: Likewise.
25779         * m4/socklen.m4: Update comments.
25780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25781
25782 2010-08-27  Eric Blake  <eblake@redhat.com>
25783
25784         login_tty: add missing dependency
25785         * modules/login_tty (Depends-on): Add pty.
25786
25787 2010-08-26  Eric Blake  <eblake@redhat.com>
25788
25789         lib-symbol-versions: fix m4 quoting
25790         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25791         format for AC_LINK_IFELSE.
25792
25793         glob: fix compile test
25794         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25795
25796         btowc: fix missing file
25797         * modules/btowc (Files): Also ship locale-fr.m4.
25798
25799         lseek: fix link test
25800         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25801         AC_LINK_IFELSE.
25802
25803         include_next: silence autoconf 2.68 warning
25804         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25805         AC_COMPILE_IFELSE as special.
25806         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25807         autoconf < 2.68.
25808
25809         acl: fix compilation test
25810         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25811         AC_COMPILE_IFELSE.
25812
25813 2010-08-26  Bruno Haible  <bruno@clisp.org>
25814
25815         Modernize AC_TRY_RUN invocations.
25816         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25817         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25818         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25819         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25820         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25821         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25822         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25823         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25824         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25825         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25826         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25827         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25828         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25829         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25830         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25831         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25832         gl_MBRLEN_NUL_RETVAL): Likewise.
25833         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25834         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25835         Likewise.
25836         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25837         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25838         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25839         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25840         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25841         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25842         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25843         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25844         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25845         Likewise.
25846         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25847         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25848         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25849         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25850         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25851         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25852         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25853         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25854         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25856
25857 2010-08-26  Bruno Haible  <bruno@clisp.org>
25858
25859         Modernize AC_TRY_LINK invocations.
25860         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25861         AC_TRY_LINK.
25862         * m4/argp.m4 (gl_ARGP): Likewise.
25863         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25864         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25865         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25866         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25867         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25868         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25869         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25870         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25871         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25872         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25873         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25874         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25875         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25876         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25877         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25878         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25879         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25880         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25881         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25882         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25883         Likewise.
25884         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25885         Likewise.
25886         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25887         Likewise.
25888         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25890         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25891         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25892         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25893         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25894         * m4/servent.m4 (gl_SERVENT): Likewise.
25895         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25896         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25897         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25898         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25899         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25900         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25901         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25902         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25903         * modules/tsearch-tests (configure.ac): Likewise.
25904
25905 2010-08-26  Bruno Haible  <bruno@clisp.org>
25906
25907         Modernize AC_TRY_COMPILE invocations.
25908         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25909         AC_TRY_COMPILE.
25910         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25911         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25912         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25913         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25914         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25915         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25916         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25917         * m4/lock.m4 (gl_LOCK): Likewise.
25918         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25919         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25920         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25921         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25922         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25923         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25924         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25925         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25926         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25927         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25928         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25929         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25930         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25931         extraneous semicolon.
25932
25933 2010-08-26  Jim Meyering  <meyering@redhat.com>
25934
25935         stat-time: relax license LGPL
25936         * modules/stat-time (License): Change from GPL to LGPL,
25937         with consent from all contributors, for use in libguile.
25938         Requested by Ludovic Courtès.
25939
25940 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25941
25942         poll: return immediately on POLLHUP.
25943         * lib/poll.c (poll): Always set timeout before wait_timeout is
25944         computed.
25945
25946 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25947
25948         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25949         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25950         rmdir ("dir/.//"), unlinkat.
25951
25952 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25953
25954         stdbool: avoid spurious failure with modern xlc
25955         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25956
25957 2010-08-24  Bruno Haible  <bruno@clisp.org>
25958
25959         getloadavg: simplify code
25960         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25961         gl_have_func. Update comments.
25962
25963 2010-08-24  Eric Blake  <eblake@redhat.com>
25964
25965         getloadavg: don't define SVR4 on cygwin
25966         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25967         only define SVR4 when -lkvm is required.
25968         Reported by Yaakov Selkowitz.
25969
25970 2010-08-24  Bruno Haible  <bruno@clisp.org>
25971
25972         priv-set: fix comment
25973         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25974
25975 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25976
25977         priv-set: fix comments
25978         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25979         to match code, as suggested by David Bartley in:
25980         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25981
25982 2010-08-23  Eric Blake  <eblake@redhat.com>
25983
25984         stdbool: avoid rejecting clang
25985         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25986         * tests/test-stdbool.c: Enable more tests if using the system
25987         <stdbool.h> instead of the gnulib replacement.
25988         (main): Move xlc bug test to a runtime test for all compilers.
25989         Reported by Anders Kaseorg.
25990
25991         argz: fix shell quoting issue
25992         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25993         Reported by Charles Wilson.
25994
25995 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25996             Erik Faye-Lund <kusmabite@gmail.com>
25997
25998         poll, select: handle ERROR_BROKEN_PIPE.
25999         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26000         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26001         * lib/select.c (win32_compute_revents): Do not mark a pipe
26002         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26003
26004 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26005
26006         fts: allow compilation with C++
26007         * lib/fts_.h: Specify extern "C" linkage with C++.
26008
26009 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26010
26011         Fix gnulib-tool sed script de-commentation for AIX sed.
26012         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26013         sed.
26014
26015 2010-08-17  Eric Blake  <eblake@redhat.com>
26016
26017         test-stddef: test for (some) offsetof bugs
26018         * tests/test-stddef.c: Enhance test to ensure correct type of
26019         offsetof.
26020         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26021         that we are not fixing at this time.
26022
26023 2010-08-15  Bruno Haible  <bruno@clisp.org>
26024
26025         stpncpy: Allow stpncpy to be defined as a macro.
26026         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26027         if it's already correctly declared.
26028         * lib/string.in.h (stpncpy): Undefine before redefining.
26029         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26030
26031 2010-08-14  Bruno Haible  <bruno@clisp.org>
26032
26033         Rename module 'memxfrm' to 'amemxfrm'.
26034         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26035         (amemxfrm): Renamed from memxfrm.
26036         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26037         (amemxfrm): Renamed from memxfrm.
26038         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26039         * NEWS: Mention the change.
26040         * MODULES.html.sh (String handling <string.h>): Update.
26041         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26042         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26043         * lib/unicase/u16-casexfrm.c: Likewise.
26044         * lib/unicase/u32-casexfrm.c: Likewise.
26045         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26046         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26047         * lib/uninorm/u16-normxfrm.c: Likewise.
26048         * lib/uninorm/u32-normxfrm.c: Likewise.
26049         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26050         memxfrm.
26051         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26052         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26053         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26054         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26055         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26056         Suggested by Paul Eggert.
26057
26058 2010-08-14  Bruno Haible  <bruno@clisp.org>
26059
26060         Tests for module 'astrxfrm'.
26061         * modules/astrxfrm-tests: New file.
26062         * tests/test-astrxfrm.c: New file.
26063
26064         New module 'astrxfrm'.
26065         * lib/astrxfrm.h: New file.
26066         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26067         * modules/astrxfrm: New file.
26068
26069 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26070
26071         regex: Tweak doc.
26072         * doc/regex.texi (Overview): Don't mention regex.c.
26073         (GNU Regular Expression Compiling): Likewise.
26074         (Match-end-of-line Operator): Mention 'not_eol'.
26075
26076 2010-08-14  Brian Gough  <bjg@gnu.org>
26077             Bruno Haible  <bruno@clisp.org>
26078
26079         git-merge-changelog: add doc relating to use with bzr and hg.
26080         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26081
26082 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26083
26084         pthread: fix pthread.h creation for srcdir != builddir
26085         * modules/pthread (Makefile.am): Fix the rule to work also in a
26086         non-srcdir build.
26087
26088 2010-08-13  Karl Berry  <karl@gnu.org>
26089
26090         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26091         * doc/posix-*/*: force line break before @url of POSIX
26092         specifications.
26093         Suggested by Werner Lemberg.
26094
26095 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26096
26097         strtod: fix const diagnostic
26098         * lib/strtod.c (strtod): Don't assign const char * to char *,
26099         as this elicits a warning from GCC when warnings are enabled.
26100
26101 2010-08-10  Pádraig Brady <P@draigbrady.com>
26102         and Eric Blake  <eblake@redhat.com>
26103
26104         copy-acl: ignore ENOTSUP on HP-UX
26105         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26106         so that it is available for HP-UX.
26107         * lib/copy-acl.c (qcopy_acl): Use it.
26108         Reported by Patrick M. Callahan.
26109
26110 2010-08-10  Eric Blake  <eblake@redhat.com>
26111
26112         open, chown: relax license
26113         * modules/open (License): Change to LGPLv2+, with consent by all
26114         authors, for use in augeas.
26115         * modules/chown (License): Likewise.
26116         * modules/lchown (Likewise): Likewise.
26117         Requested by Adam Stokes.
26118
26119 2010-08-09  Karl Berry  <karl@gnu.org>
26120
26121         * build-aux/ar-lib: new file, import from Automake.
26122         * config/srclist.txt: autocheck for updates.
26123
26124 2010-08-09  Eric Blake  <eblake@redhat.com>
26125
26126         readlinkat: adjust client modules
26127         * modules/areadlinkat (Depends-on): Use readlinkat, not
26128         symlinkat.
26129         * modules/areadlinkat-with-size (Depends-on): Likewise.
26130
26131         mknod: be more vocal about danger of running tests as root
26132         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26133         root, since that is just asking for problems.
26134         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26135
26136         readlinkat: split into its own module
26137         * modules/symlinkat: Split readlinkat...
26138         * modules/readlinkat: ...into separate module.
26139         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26140         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26141         * lib/symlinkat.c (readlinkat): Move...
26142         * lib/readlinkat.c: ...into new file.
26143         * modules/symlinkat-tests: Split readlinkat test...
26144         * modules/readlinkat-tests: ...into separate module.
26145         * tests/test-symlinkat.c: Split...
26146         * tests/test-readlinkat.c: ...into new file.
26147         * NEWS: Document the split.
26148         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26149         * lib/unistd.in.h (readlinkat): Likewise.
26150         Suggested by Bruno Haible.
26151
26152 2010-08-08  Bruno Haible  <bruno@clisp.org>
26153
26154         memxfrm: Speed up.
26155         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26156         that usually only one call to strxfrm is necessary for each string
26157         part.
26158         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26159
26160 2010-08-07  Karl Berry  <karl@gnu.org>
26161
26162         * doc/posix-headers/limits.texi,
26163         * doc/posix-functions/malloc.texi,
26164         * doc/posix-functions/strsignal.texi: missing @item.
26165         * doc/ld-version-script.texi: spurious leading i.
26166         * doc/regex.texi (Interval Operators): no commas inside @var.
26167
26168 2010-08-01  Bruno Haible  <bruno@clisp.org>
26169
26170         Integrate the regex documentation.
26171         * doc/gnulib.texi: Define 'cn' index.
26172         (Regular expressions): New a chapter that includes regex.texi and
26173         regexprops-generic.texi.
26174         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26175         syntax.
26176
26177         Whitespace cleanup.
26178         * doc/regex.texi: Remove trailing spaces.
26179
26180         Add regex documentation.
26181         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26182         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26183         Written by Kathy A. Hargreaves and Karl Berry.
26184
26185 2010-08-01  Bruno Haible  <bruno@clisp.org>
26186
26187         link: Update documentation.
26188         * doc/posix-functions/link.texi: Update regarding Solaris.
26189
26190 2010-07-31  Bruno Haible  <bruno@clisp.org>
26191
26192         Update modules list.
26193         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26194         (String handling <string.h>): Add memcmp2, memxfrm.
26195         (Container data structures): Add xlist, xsublist, xoset.
26196         (Core language properties): Add alignof, unused-parameter.
26197         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26198         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26199         (Unibyte characters <ctype.h>): New section.
26200         (String handling <string.h>): New section.
26201         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26202         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26203         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26204         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26205         tan, tanh, tanl, y0, y1, yn.
26206         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26207         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26208         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26209         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26210         unlockpt, vdprintf, vdprintf-posix.
26211         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26212         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26213         xconcat-filename.
26214         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26215         getdtablesize, pipe2, pipe2-safer.
26216         (Security): New section.
26217         (Networking functions): Add accept4.
26218         (Signal handling): Add sigpipe.
26219         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26220         mbmemcasecoll.
26221         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26222         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26223         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26224         pipe-filter-ii.
26225         (Misc): Add argp-version-etc, login_tty, parse-duration.
26226
26227 2010-07-31  Bruno Haible  <bruno@clisp.org>
26228
26229         Improve doc in MODULES.html.
26230         * modules/linkat (Description): Add the word "function".
26231         * modules/mkfifo (Description): Likewise.
26232         * modules/mknod (Description): Likewise.
26233         * modules/remove (Description): Likewise.
26234         * modules/renameat (Description): Likewise.
26235         * modules/stat (Description): Likewise.
26236         * modules/symlink (Description): Likewise.
26237         * modules/unlink (Description): Likewise.
26238
26239 2010-07-31  Bruno Haible  <bruno@clisp.org>
26240
26241         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26242         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26243         option --enable/disable-c++ instead of --enable/disable-cxx.
26244         * NEWS: Mention the change.
26245
26246 2010-07-31  Bruno Haible  <bruno@clisp.org>
26247
26248         readlink, areadlink: Relax test a bit.
26249         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26250         alternative to ENOTDIR.
26251         * tests/test-areadlink.h (test_areadlink): Likewise.
26252         Reported by Rainer Tammer.
26253
26254 2010-07-31  Bruno Haible  <bruno@clisp.org>
26255
26256         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26257         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26258         character, perform the search using U_STRCHR.
26259         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26260         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26261         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26262         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26263         Suggested by Paolo Bonzini.
26264
26265 2010-07-31  Bruno Haible  <bruno@clisp.org>
26266
26267         unistr/u*-strstr: Fix dependencies.
26268         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26269         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26270         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26271
26272 2010-07-31  Bruno Haible  <bruno@clisp.org>
26273
26274         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26275         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26276         the beginning of the loop.
26277         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26278         cases in 'switch' statement.
26279
26280         unistr/u8-strchr: Fix several bugs.
26281         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26282         the string. When not found, return NULL, not a pointer near the end.
26283
26284         More tests for unistr/u8-strchr.
26285         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26286         that the function does not read past the first occurrence of the byte
26287         being searched.
26288         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26289         * tests/unistr/test-u16-strchr.c (main): New function.
26290         * tests/unistr/test-u32-strchr.c (main): New function.
26291
26292 2010-07-31  Bruno Haible  <bruno@clisp.org>
26293
26294         posix-modules: Ignore backup files of documentation files.
26295         * posix-modules: grep only through files named *.texi.
26296
26297 2010-07-31  Bruno Haible  <bruno@clisp.org>
26298
26299         symlinkat: Fix documentation.
26300         * doc/posix-functions/readlinkat.texi: Fix module name.
26301
26302 2010-07-31  Bruno Haible  <bruno@clisp.org>
26303
26304         fchownat: Replace also when chown has the trailing slash bug.
26305         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26306         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26307         introduced on 2010-04-10.
26308         Reported by Rainer Tammer.
26309
26310 2010-07-31  Bruno Haible  <bruno@clisp.org>
26311
26312         linkat: Work around AIX 7.1 bug.
26313         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26314         whether linkat handles trailing slash correctly. If not, replace linkat
26315         and define LINKAT_TRAILING_SLASH_BUG.
26316         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26317         check whether (fd1,file1) points to a directory if file1 or file2 ends
26318         in a slash. Code taken from lib/link.c.
26319         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26320         Reported by Rainer Tammer.
26321
26322 2010-07-31  Bruno Haible  <bruno@clisp.org>
26323
26324         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26325         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26326         This disables an xlc optimization that was causing wrong test results.
26327         Reported by Rainer Tammer.
26328
26329 2010-07-31  Bruno Haible  <bruno@clisp.org>
26330
26331         iconv: Work around AIX 6.1..7.1 bug.
26332         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26333         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26334         cross-compiling, guess no on all versions of AIX.
26335         Reported by Rainer Tammer.
26336
26337 2010-07-31  Bruno Haible  <bruno@clisp.org>
26338
26339         readlink: Relax test a bit.
26340         * tests/test-readlink.h (test_readlink): Allow different errno value
26341         when readlink is called with a file name that ends in / and refers to
26342         a file.
26343         Suggested by Eric Blake.
26344         Reported by Rainer Tammer.
26345
26346 2010-07-31  Bruno Haible  <bruno@clisp.org>
26347
26348         copysign: Does not require -lm on glibc systems.
26349         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26350         gl_COMMON_DOUBLE_MATHFUNC.
26351         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26352
26353 2010-07-31  Bruno Haible  <bruno@clisp.org>
26354
26355         duplocale: Work around AIX 7.1 bug.
26356         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26357         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26358         * lib/duplocale.c (rpl_duplocale): Update comment.
26359         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26360         Reported by Rainer Tammer.
26361
26362 2010-07-30  Bruno Haible  <bruno@clisp.org>
26363
26364         dirfd: Avoid link error on AIX 7.1.
26365         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26366         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26367         exist, set REPLACE_DIRFD.
26368         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26369         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26370         * doc/posix-functions/dirfd.texi: Update.
26371         Reported by Rainer Tammer.
26372
26373 2010-07-30  Eric Blake  <eblake@redhat.com>
26374
26375         strtod: next round of AIX fixes
26376         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26377         exponent.
26378         * tests/test-strtod.c (main): Enhance tests.
26379         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26380         Reported by Rainer Tammer.
26381
26382         futimens: fix configure check
26383         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26384         Reported by Bruno Haible.
26385
26386 2010-07-30  Bruno Haible  <bruno@clisp.org>
26387
26388         getline: Update regarding AIX.
26389         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26390         Reported by Rainer Tammer.
26391
26392 2010-07-30  Bruno Haible  <bruno@clisp.org>
26393
26394         wcwidth: Drop replacement on AIX 7.
26395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26396         AIX 7.
26397         Reported by Rainer Tammer.
26398
26399 2010-07-30  Bruno Haible  <bruno@clisp.org>
26400
26401         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26402         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26403         a 'char *'.
26404         Reported by Rainer Tammer.
26405
26406 2010-07-30  Bruno Haible  <bruno@clisp.org>
26407
26408         unlink: Update regarding AIX.
26409         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26410         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26411         Reported by Rainer Tammer.
26412
26413 2010-07-30  Bruno Haible  <bruno@clisp.org>
26414
26415         symlink: Update regarding AIX.
26416         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26417         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26418         Reported by Rainer Tammer.
26419
26420 2010-07-30  Bruno Haible  <bruno@clisp.org>
26421
26422         strndup: Update regarding AIX.
26423         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26424         AIX 7.
26425         Reported by Rainer Tammer.
26426
26427 2010-07-30  Bruno Haible  <bruno@clisp.org>
26428
26429         stat: Update regarding AIX.
26430         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26431         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26432         Reported by Rainer Tammer.
26433
26434 2010-07-30  Bruno Haible  <bruno@clisp.org>
26435
26436         truncl: Fix autoconf test.
26437         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26438         whether truncl works.
26439         Reported by Rainer Tammer.
26440
26441 2010-07-30  Bruno Haible  <bruno@clisp.org>
26442
26443         round: Update regarding AIX.
26444         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26445         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26446         Reported by Rainer Tammer.
26447
26448 2010-07-30  Bruno Haible  <bruno@clisp.org>
26449
26450         rename: Update regarding AIX.
26451         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26452         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26453         Reported by Rainer Tammer.
26454
26455 2010-07-30  Bruno Haible  <bruno@clisp.org>
26456
26457         printf.m4: Update regarding AIX.
26458         * m4/printf.m4: Update comments regarding AIX.
26459         Reported by Rainer Tammer.
26460
26461 2010-07-30  Bruno Haible  <bruno@clisp.org>
26462
26463         iconv: Update regarding AIX.
26464         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26465         AIX 7.
26466         Reported by Rainer Tammer.
26467
26468 2010-07-30  Bruno Haible  <bruno@clisp.org>
26469
26470         getopt: Update regarding AIX.
26471         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26472         no on AIX.
26473         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26474         Reported by Rainer Tammer.
26475
26476 2010-07-30  Bruno Haible  <bruno@clisp.org>
26477
26478         ldexpl; Update regarding AIX.
26479         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26480         on AIX 7.
26481         Reported by Rainer Tammer.
26482
26483 2010-07-30  Bruno Haible  <bruno@clisp.org>
26484
26485         frexpl: Update regarding AIX.
26486         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26487         on AIX 7.
26488         Reported by Rainer Tammer.
26489
26490 2010-07-30  Bruno Haible  <bruno@clisp.org>
26491
26492         open, fopen: Update regarding AIX.
26493         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26494         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26495         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26496         * doc/posix-functions/fopen.texi: Likewise.
26497         Reported by Rainer Tammer.
26498
26499 2010-07-30  Bruno Haible  <bruno@clisp.org>
26500
26501         chown: Update doc regarding AIX.
26502         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26503         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26504         Reported by Rainer Tammer.
26505
26506 2010-07-30  Eric Blake  <eblake@redhat.com>
26507
26508         strtod: fix bug in replacement function on AIX
26509         * lib/strtod.c (strtod): Special case broken "0x" parse in
26510         underlying strtod.
26511         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26512         * doc/posix-functions/strtod.texi (strtod): Likewise.
26513         Reported by Rainer Tammer.
26514
26515 2010-07-30  Bruno Haible  <bruno@clisp.org>
26516
26517         mbrlen: Fix cross-compilation guess for AIX.
26518         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26519         guess. Leftover from 2008-12-22.
26520
26521 2010-07-30  Bruno Haible  <bruno@clisp.org>
26522
26523         mbrtowc: Fix cross-compilation guess for AIX.
26524         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26525         guess. Leftover from 2008-12-21.
26526
26527 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26528
26529         init.sh: work around trap limitation of some shells
26530         * tests/init.sh (setup_): Move exit trap outside of shell function.
26531
26532 2010-07-29  Eric Blake  <eblake@redhat.com>
26533
26534         strtod: aid debugging
26535         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26536         understanding why strtod is rejected.
26537
26538 2010-07-28  Bruno Haible  <bruno@clisp.org>
26539
26540         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26541         * lib/unistr/u8-chr.c: Include <string.h>.
26542         * tests/unistr/test-u8-chr.c: Likewise.
26543         * tests/unistr/test-u16-chr.c: Likewise.
26544         * tests/unistr/test-u32-chr.c: Likewise.
26545         * tests/unistr/test-u8-strchr.c: Likewise.
26546         * tests/unistr/test-u16-strchr.c: Likewise.
26547         * tests/unistr/test-u32-strchr.c: Likewise.
26548         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26549         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26550         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26551         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26552
26553 2010-07-28  Bruno Haible  <bruno@clisp.org>
26554
26555         Use spaces for indentation, not tabs.
26556         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26557
26558 2010-07-27  Bruno Haible  <bruno@clisp.org>
26559
26560         mbspcasecmp: Fix function specification.
26561         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26562         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26563         Reported by Eric Blake <eblake@redhat.com>.
26564
26565 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26566
26567         timespec: use cast and not conditional, as truncation isn't possible
26568         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26569         instead of a conditional.  Comment about the situation in more detail.
26570         This undoes most of the 2009-10-29 patch.
26571
26572 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26573
26574         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26575         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26576         * lib/unistr/u8-strchr.c: Likewise.
26577         * modules/unistr/u8-chr: Depend on memchr.
26578
26579         unistr/u*-strchr: add tests
26580         * modules/unistr/u8-strchr-tests: New file.
26581         * modules/unistr/u16-strchr-tests: New file.
26582         * modules/unistr/u32-strchr-tests: New file.
26583         * tests/unistr/test-strchr.h: New file.
26584         * tests/unistr/test-u8-strchr.c: New file.
26585         * tests/unistr/test-u16-strchr.c: New file.
26586         * tests/unistr/test-u32-strchr.c: New file.
26587
26588         unistr/u*-chr: test multibyte sequences more
26589         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26590         test vector.
26591         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26592         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26593         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26594
26595         unistr/u*-chr: test multibyte sequences
26596         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26597
26598         unistr/u*-chr: prepare for multibyte tests
26599         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26600         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26601         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26602         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26603         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26604         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26605
26606 2010-07-18  Bruno Haible  <bruno@clisp.org>
26607
26608         unistr/u8-strchr: Optimize non-ASCII argument case.
26609         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26610         because the first byte often matches anyway.
26611         Reported by Pádraig Brady <P@draigbrady.com>.
26612
26613 2010-07-15  Karl Berry  <karl@gnu.org>
26614
26615         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26616
26617 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26618
26619         getcwd: on Solaris, work better if ancestors are inaccessible
26620         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26621         buffer and size, try again with a large buffer.  This works better
26622         on Solaris, since its getcwd succeeds even if the path to the root
26623         is inaccessible, and this is helpful in common cases such as .zfs
26624         hidden directories.  Problem reported by J Chapman Flack in
26625         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26626         Use system getcwd if it's declared, not merely if it's partly
26627         working; use the partly-working test only to avoid needless effort
26628         if the system getcwd fails.
26629         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26630         comment that was already obsolete and is now even more obsolete.
26631         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26632         now might call strdup.
26633
26634 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26635
26636         pthread: Add enough so that coreutils/src/sort.c compiles.
26637         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26638         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26639         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26640         Include <sys/types.h>, in case it defines pthread_t.
26641         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26642         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26643         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26644         (pthread_rwlockattr_t, pthread_spinlock_t):
26645         New typedefs, if HAVE_PTHREAD_T is not defined.
26646         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26647         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26648         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26649         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26650         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26651         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26652         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26653         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26654         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26655         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26656         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26657         New macros.
26658         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26659         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26660         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26661         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26662         (pthread_spin_unlock): New dummy functions.
26663         (pthread_create): Return EAGAIN; don't set errno.
26664         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26665         require AC_C_INLINE.
26666         * modules/pthread (Depends-on): Add sched, time.
26667         (pthread.h): Use AM_V_GEN.
26668
26669 2010-07-13  Bruno Haible  <bruno@clisp.org>
26670
26671         striconveh: Don't malloc memory if the result buffer is sufficient.
26672         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26673         buffer if its size is sufficient.
26674         Reported by Ludovic Courtès <ludo@gnu.org>.
26675
26676 2010-07-13  Bruno Haible  <bruno@clisp.org>
26677
26678         strtod: Add safety check.
26679         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26680
26681 2010-07-12  Bruno Haible  <bruno@clisp.org>
26682
26683         Unify tests that set gl_cv_func_ldexpl_no_libm.
26684         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26685         gl_FUNC_LDEXPL.
26686         (gl_FUNC_LDEXPL): Invoke it.
26687         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26688
26689 2010-07-12  Bruno Haible  <bruno@clisp.org>
26690
26691         Unify tests that set gl_cv_func_ldexp_no_libm.
26692         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26693         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26694         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26695         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26696         * modules/strtod (Files): Add m4/ldexp.m4.
26697
26698 2010-07-12  Bruno Haible  <bruno@clisp.org>
26699
26700         Unify tests that set gl_cv_func_frexpl_no_libm.
26701         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26702         gl_FUNC_FREXPL_NO_LIBM.
26703         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26704         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26705
26706 2010-07-12  Bruno Haible  <bruno@clisp.org>
26707
26708         Unify tests that set gl_cv_func_frexp_no_libm.
26709         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26710         gl_FUNC_FREXP_NO_LIBM.
26711         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26712         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26713
26714 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26715
26716         memcoll: clarify sizes versus lengths, document better, and tweak perf
26717         * lib/memcoll.c (strcoll_loop, memcoll0):
26718         Improve quality of descriptive comments.  Name variables
26719         consistently as to whether they are lengths (which do not include
26720         terminating null) versus sizes (which do).
26721         * lib/xmemcoll.c (xmemcoll0): Likewise.
26722         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26723         returned when s1size == 0; this is easier to compile and saves
26724         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26725
26726 2010-07-12  Bruno Haible  <bruno@clisp.org>
26727
26728         Tests for module '_Exit'.
26729         * modules/_Exit-tests: New file.
26730         * tests/test-_Exit.sh: New file.
26731         * tests/test-_Exit.c: New file.
26732
26733         New module '_Exit'.
26734         * lib/stdlib.in.h (__attribute__): New macro.
26735         (_Exit): New declaration.
26736         * lib/_Exit.c: New file.
26737         * m4/_Exit.m4: New file.
26738         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26739         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26740         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26741         * modules/_Exit: New file.
26742         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26743         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26744
26745 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26746
26747         strtod: make it more-accurate typically, and don't require libm
26748         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26749         Include limits.h.  Don't include string.h.
26750         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26751         (locale_isspace): New function, so that no casts are needed to
26752         check whether *s is a space.
26753         (ldexp): Provide an unused dummy if not available.
26754         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26755         (strtod): Use them.  This implementation prefers to use the
26756         underlying strtod if available, falling back on our own code
26757         only to fix known bugs.  This is more likely to produce an
26758         accurate result.  Also, it avoids the use of libm functions.
26759         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26760         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26761         was absent, but it caused a test failure with coreutils.
26762         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26763         with libm.
26764         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26765         * modules/strtod-tests (Makefile.am): Likewise.
26766
26767 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26768             Bruno Haible  <bruno@clisp.org>
26769
26770         unistr/u8-strchr: Optimize ASCII argument case.
26771         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26772
26773 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26774
26775         (x)memcoll: minor tweaks
26776         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26777         is after the type that it qualifies.
26778         (memcoll0): Likewise.
26779         * lib/memcoll.h (memcoll0): Likewise.
26780         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26781         * lib/xmemcoll.h (xmemcoll0): Likewise.
26782         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26783         differs from memcoll in that the NUL byte is part of the argument.
26784         Omit the abort-checks, as performance is a real issue here.  Plus,
26785         the checks were wrong anyway (an off-by-one error).  Omit local
26786         variable 'diff', as it's a bit clearer that way.
26787         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26788         no longer needed.
26789
26790 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26791
26792         (x)memcoll: speedup when input is known to be NUL delimited
26793         * lib/memcoll.c: Include stdlib.
26794         (memcoll0): New function.
26795         (strcoll_loop): New function, refactored for use in both memcoll
26796         and memcoll0.
26797         * lib/memcoll.h (memcoll0): Add prototype.
26798         * lib/xmemcoll.c (xmemcoll0): New function.
26799         (collate_error): New function, refactored for use in both xmemcoll
26800         and xmemcoll0.
26801         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26802         * m4/memcoll.m4: add inline invocation.
26803
26804 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26805
26806         * build-aux/bootstrap: Remove any local translations
26807         from the translation project synchronization directory,
26808         so that local only translations are not distributed.
26809
26810 2010-07-04  Bruno Haible  <bruno@clisp.org>
26811
26812         fsusage: Clarify which code applies to which platforms.
26813         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26814         platform.
26815         * lib/fsusage.c (get_fs_usage): Likewise.
26816
26817 2010-07-04  Bruno Haible  <bruno@clisp.org>
26818
26819         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26820         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26821         Reported by Martin Lambers <marlam@marlam.de>.
26822
26823 2010-07-04  Jim Meyering  <meyering@redhat.com>
26824
26825         hash: once again explicitly disallow insertion of NULL
26826         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26827         inserting a NULL pointer cannot work with these functions.
26828         Add a comment with details.
26829         This reverts part of the 2010-07-01 commit, 5bef1a35
26830         "hash: extend module to deal with non-pointer keys".
26831
26832 2010-07-01  Bruno Haible  <bruno@clisp.org>
26833
26834         stdbool: Update doc.
26835         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26836         Info from Christian Weisgerber <naddy@mips.inka.de>.
26837
26838 2010-07-01  Jim Meyering  <meyering@redhat.com>
26839
26840         hash: extend module to deal with non-pointer keys
26841         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26842         but that allows insertion of non-pointer entries.
26843         Do not disallow an ENTRY value of NULL.
26844         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26845         * lib/hash.h (hash_insert0): Declare.
26846
26847 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26848
26849         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26850         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26851         not present (i.e. with autoconf 2.59 and when using gettextize, not
26852         gnulib), require AC_GNU_SOURCE instead.
26853
26854 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26855
26856         idpriv-drop: Fix tests.
26857         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26858         not to the test-idpriv-droptemp program.
26859
26860 2010-06-29  Bruno Haible  <bruno@clisp.org>
26861
26862         string: Fix syntax error with g++ 2.96.
26863         * lib/string.in.h (__pure__): Remove definition.
26864         (_GL_ATTRIBUTE_PURE): New macro.
26865         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26866         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26867         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26868
26869 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26870
26871         unitypes: Fix bug introduced on 2010-05-18.
26872         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26873
26874 2010-06-22  Eric Blake  <eblake@redhat.com>
26875
26876         memmem: slight optimization
26877         * lib/str-two-way.h (critical_factorization): Update comments.
26878         Reduce work during factorization phase.
26879         Reported by Carlos Bueno <carlos@bueno.org>.
26880
26881 2010-06-21  Bruno Haible  <bruno@clisp.org>
26882
26883         Fix HAVE_CALLOC_POSIX misnomer.
26884         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26885         !HAVE_CALLOC_POSIX.
26886         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26887         HAVE_CALLOC_POSIX.
26888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26889         instead of HAVE_CALLOC_POSIX.
26890         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26891         HAVE_CALLOC_POSIX.
26892
26893         Use modern idiom for calloc() replacement.
26894         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26895         AC_FUNC_CALLOC.
26896         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26897         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26898         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26899         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26900         (gl_REPLACE_CALLOC): New macro.
26901
26902 2010-06-21  Bruno Haible  <bruno@clisp.org>
26903
26904         Fix HAVE_REALLOC_POSIX misnomer.
26905         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26906         !HAVE_REALLOC_POSIX.
26907         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26908         HAVE_REALLOC_POSIX.
26909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26910         instead of HAVE_REALLOC_POSIX.
26911         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26912         HAVE_REALLOC_POSIX.
26913
26914         Use modern idiom for realloc() replacement.
26915         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26916         AC_FUNC_REALLOC.
26917         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26918         Autoconf's AC_FUNC_REALLOC.
26919         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26920         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26921         (gl_REPLACE_REALLOC): New macro.
26922         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26923
26924 2010-06-21  Bruno Haible  <bruno@clisp.org>
26925
26926         Fix HAVE_MALLOC_POSIX misnomer.
26927         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26928         !HAVE_MALLOC_POSIX.
26929         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26930         HAVE_MALLOC_POSIX.
26931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26932         instead of HAVE_MALLOC_POSIX.
26933         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26934         HAVE_MALLOC_POSIX.
26935
26936         Use modern idiom for malloc() replacement.
26937         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26938         AC_FUNC_MALLOC.
26939         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26940         Autoconf's AC_FUNC_MALLOC.
26941         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26942         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26943         (gl_REPLACE_MALLOC): New macro.
26944         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26945
26946 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26947
26948         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26949         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26950         This macro takes 3 arguments, not 4.
26951
26952 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26953
26954         ipv6: fix detection under mingw
26955         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26956         in6_addr.
26957
26958 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26959
26960         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26961         that strtod() works when cross-compiling to a glibc version known
26962         to work.
26963
26964 2010-06-15  Bruno Haible  <bruno@clisp.org>
26965
26966         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26967
26968 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26969
26970         select: Correct timeout.
26971         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26972
26973 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26974
26975         git-version-gen: init shell var to avoid env var influence
26976         * build-aux/git-version-gen (v): Init shell var to empty.
26977
26978 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26979
26980         priv-set: Don't assume that priv.h exists merely because getppriv does.
26981         See Jan Andersen's bug report about AIX 5L in
26982         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26983         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26984         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26985         * lib/priv-set.h: Likewise.
26986         * tests/test-priv-set.c: Likewise.
26987
26988 2010-06-13  Bruno Haible  <bruno@clisp.org>
26989
26990         relocatable: Make it easier to test whether to install wrappers.
26991         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26992         RELOCATABLE_VIA_WRAPPER.
26993
26994 2010-06-13  Bruno Haible  <bruno@clisp.org>
26995
26996         gnulib-tool: Display specified modules and dependencies differently.
26997         * gnulib-tool (func_show_module_list): New function.
26998         (func_import, func_create_testdir): Invoke it.
26999         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27000
27001 2010-06-13  Bruno Haible  <bruno@clisp.org>
27002
27003         gnulib-tool: Align code of func_import and func_create_testdir.
27004         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27005         specified_modules.
27006
27007 2010-06-12  Jim Meyering  <meyering@redhat.com>
27008
27009         test-inttostr: avoid spurious failure on Solaris 9
27010         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27011         to accept "%ju".  Reported by Bruno Haible.
27012
27013 2010-06-11  Jim Meyering  <meyering@redhat.com>
27014
27015         test-sys_socket: mark variables as used more readably
27016         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27017         as "used" explicitly via (void) statement casts.  This is more
27018         readable than using them in an artificial return expression.
27019         Suggestion from Bruno Haible.
27020
27021 2010-06-11  Bruno Haible  <bruno@clisp.org>
27022
27023         Avoid some more warnings from "gcc -Wwrite-strings".
27024         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27025         to 'const char *'.
27026         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27027         * tests/test-c-strcasestr.c (main): Likewise.
27028         * tests/test-mbscasestr1.c (main): Likewise.
27029         * tests/test-mbscasestr2.c (main): Likewise.
27030         * tests/test-memmem.c (main): Likewise.
27031         * tests/test-strstr.c (main): Likewise.
27032         * tests/test-strcasestr.c (main): Likewise.
27033
27034 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27035
27036         init.sh: change framework_failure_ to fail with status 99, not 1
27037         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27038         automake's parallel-tests rule that this is an unexpected failure,
27039         even if the test is listed in XFAIL_TESTS.
27040
27041 2010-06-11  Jim Meyering  <meyering@redhat.com>
27042
27043         test-inttostr: avoid warnings about 4-6KB literal strings
27044         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27045         Include "macros.h", for its definition of ASSERT.
27046         (CK): s/assert/ASSERT/
27047         * modules/inttostr-tests (Files): Add macros.h.
27048
27049         init.sh: don't use $ME_ or skip_ before they are defined
27050         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27051         their first uses.  Also hoist their companions: warn_, fail_,
27052         framework_failure_, $stderr_fileno.  Prompted by a patch from
27053         Stefano Lattarini.
27054
27055         test-sys_socket: avoid set-but-not-used warnings from gcc
27056         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27057         avoid warning about set-but-not-used variables.
27058
27059         test-xvasprintf: avoid 'const' discard warnings
27060         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27061         "const" when assigning from literal strings.
27062         (test_xasprintf): Add "void" in function argument list to placate
27063         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27064
27065         tests: avoid compilation warnings in argmatch and exclude tests...
27066         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27067         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27068         Since it always exits, declare with the "noreturn" attribute.
27069         * tests/test-argmatch.c: Likewise.
27070
27071         tests: avoid 'const' discard warnings in mbsstr tests
27072         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27073         * tests/test-mbsstr2.c (main): Likewise.
27074
27075         test-verify: avoid warning from gcc's -Wmissing-declarations
27076         * tests/test-verify.c (function): Declare to be static.
27077
27078         test-inttostr.c: include <string.h> for use of strcmp
27079         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27080
27081         test-linkat: avoid failed assertion on "other" architectures
27082         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27083         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27084         sparc: https://bugs.launchpad.net/bugs/591968
27085
27086 2010-06-11  Jim Meyering  <meyering@redhat.com>
27087
27088         printf.m4: avoid autoconf's "Expanded Before Required" warning
27089         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27090         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27091         autoconf warning.
27092
27093 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27094
27095         Replacement header templates are now named with ".in", not "_".
27096         * doc/gnulib-intro.texi: Correct.
27097
27098 2010-06-10  Jim Meyering  <meyering@redhat.com>
27099
27100         inttostr-tests: depend on snprintf, not snprintf-posix
27101         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27102         snprintf-posix, to avoid this aclocal failure:
27103           missing file gnulib-tests/vasnprintf.c
27104           configure.ac:45: error: expected source file, required through \
27105           AC_LIBSOURCES, not found
27106
27107 2010-06-10  Jim Meyering  <meyering@redhat.com>
27108
27109         inttostr: add a new function, inttostr, and tests
27110         The namesake function was not available.  The existence of the
27111         template file, inttostr.c makes its addition nontrivial.
27112         * lib/anytostr.c: Rename from inttostr.c.
27113         (anytostr): Rename from inttostr.
27114         * lib/inttostr.c: New file.
27115         * modules/inttostr (Files): Add anytostr.c.
27116         (Makefile.am): Set lib_SOURCES instead of ...
27117         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27118         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27119         * lib/offtostr.c: Likewise.
27120         * lib/uinttostr.c: Likewise.
27121         * lib/umaxtostr.c: Likewise.
27122         * modules/inttostr-tests: New file.
27123         * tests/test-inttostr.c: New file.  Test these functions.
27124
27125 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27126             Bruno Haible  <bruno@clisp.org>
27127
27128         Add "Extending Gnulib" chapter to manual.
27129         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27130         chapter.
27131         (Extending Gnulib): New chapter.
27132         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27133         chapter.
27134
27135 2010-06-09  Bruno Haible  <bruno@clisp.org>
27136
27137         Avoid relocwrapper link errors due to gnulib replacement functions.
27138         * lib/areadlink.c: Use the system's malloc, realloc functions.
27139         (areadlink): Set errno to ENOMEM explicitly.
27140         * modules/areadlink (Depends-on): Remove malloc-posix.
27141         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27142
27143 2010-06-09  Bruno Haible  <bruno@clisp.org>
27144
27145         Avoid relocwrapper link errors due to gnulib replacement functions.
27146         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27147         * lib/malloca.c: Likewise.
27148         * lib/relocatable.c: Likewise.
27149         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27150         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27151         * lib/setenv.c: Use the system's malloc, realloc functions.
27152         * lib/strerror.c: Use the system's sprintf function.
27153         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27154
27155 2010-06-04  Bruno Haible  <bruno@clisp.org>
27156
27157         Prefer documented low-level autoconf macro names.
27158         * m4/lib-link.m4: Use m4_translit instead of translit.
27159         * m4/environ.m4: Likewise.
27160         * m4/mathfunc.m4: Likewise.
27161         * m4/onceonly.m4: Likewise.
27162         * m4/stdint.m4: Likewise.
27163         Suggested by Eric Blake.
27164
27165 2010-06-04  Martin Lambers  <marlam@marlam.de>
27166             Bruno Haible  <bruno@clisp.org>
27167
27168         havelib: Allow library names with '+' characters.
27169         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27170         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27171
27172 2010-06-09  Bruno Haible  <bruno@clisp.org>
27173
27174         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27175         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27176         realloc failed.
27177
27178 2010-06-08  Peter Simons  <simons@cryp.to>
27179
27180         maint.mk: make the news-check rule more configurable
27181         * top/maint.mk (news-check-lines-spec): New variable.
27182         (news-check): Use "sed -n 1,10p" in place of "head".
27183
27184 2010-06-07  Jim Meyering  <meyering@redhat.com>
27185
27186         do-release-commit-and-tag: fix typo in --help
27187         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27188
27189         regex: avoid new dead-code warning with gcc-4.6.0
27190         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27191         if-block containing a while-loop.  It's been unused for at least
27192         5 years.
27193
27194 2010-06-05  Bruno Haible  <bruno@clisp.org>
27195
27196         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27197         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27198
27199 2010-06-04  Bruno Haible  <bruno@clisp.org>
27200
27201         Update to GNU gettext 0.18.1.
27202         * modules/gettext (configure.ac): Require gettext infrastructure from
27203         version 0.18.1.
27204
27205 2010-06-03  Bruno Haible  <bruno@clisp.org>
27206
27207         Don't use AC_LIBOBJ with file names in subdirectories.
27208         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27209         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27210         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27211         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27212         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27213         gl_LIBUNISTRING_LIBSOURCE.
27214         (Makefile.am): Augment lib_SOURCES here, conditionally.
27215         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27216
27217 2010-06-03  Bruno Haible  <bruno@clisp.org>
27218
27219         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27220         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27221         expansion does not end with a newline.
27222         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27223         unnecessary newline.
27224
27225 2010-06-03  Bruno Haible  <bruno@clisp.org>
27226
27227         Reduce dependencies.
27228         * tests/test-quotearg.h: New file, extracted from
27229         tests/test-quotearg.c.
27230         * tests/test-quotearg-simple.c: New file, extracted from
27231         tests/test-quotearg.c.
27232         * tests/test-quotearg.c: Don't include <ctype.h>.
27233         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27234         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27235         use_quote_double_quotes, use_quotearg_colon): Moved to
27236         tests/test-quotearg.h.
27237         (results_g, flag_results, custom_quotes, custom_results): Moved
27238         to tests/test-quotearg-simple.c.
27239         (main): Moved the part that does not depend on gettext to
27240         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27241         performed.
27242         * modules/quotearg-simple: New file.
27243         * modules/quotearg-simple-tests: New file.
27244         * modules/quotearg (Depends-on): Add quotearg-simple.
27245         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27246         (Files): Add tests/test-quotearg.h.
27247         Reported by Paolo Bonzini.
27248
27249 2010-06-03  Bruno Haible  <bruno@clisp.org>
27250
27251         Reduce dependencies.
27252         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27253
27254 2010-06-03  Bruno Haible  <bruno@clisp.org>
27255
27256         time: Undefine more broken macros.
27257         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27258         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27259         Reported by Eric Blake.
27260
27261 2010-06-03  Bruno Haible  <bruno@clisp.org>
27262
27263         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27264         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27265         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27266         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27267         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27268         Reported by Ludovic Courtès <ludo@gnu.org>.
27269
27270 2010-06-02  Eric Blake  <eblake@redhat.com>
27271
27272         time: work with mingw + pthreads-win32 library
27273         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27274         if timespec is defined only in pthread.h.
27275         * modules/time (Makefile.am): Substitute it.
27276         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27277         <pthread.h>, when needed.
27278         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27279         from the library.
27280
27281 2010-05-31  Bruno Haible  <bruno@clisp.org>
27282
27283         Avoid expanding two macros in the wrong order.
27284         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27285         gl_LIBUNISTRING if it is defined.
27286         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27287         autoconf >= 2.64.
27288         Reported by Ludovic Courtès <ludo@gnu.org>.
27289
27290 2010-05-27  Jim Meyering  <meyering@redhat.com>
27291
27292         maint.mk: also prohibit "#undef" of always-defined symbols
27293         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27294         Allow more than one space before the symbol name.
27295         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27296         the regexp uses alternation.
27297
27298 2010-05-26  Eric Blake  <eblake@redhat.com>
27299
27300         maint.mk: avoid echo -e
27301         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27302         Convert all uses of echo -* to printf.
27303         Reported by Matthias Bolte.
27304
27305 2010-05-25  Bruno Haible  <bruno@clisp.org>
27306
27307         Update to GNU gettext 0.18, part 2.
27308         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27309         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27310
27311 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27312
27313         Add missing include in test-pwrite.c.
27314         * tests/test-pwrite.c: Include string.h, for strcmp.
27315
27316 2010-05-24  Bruno Haible  <bruno@clisp.org>
27317
27318         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27319
27320 2010-05-24  Bruno Haible  <bruno@clisp.org>
27321
27322         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27323         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27324         iconveh_error argument.
27325         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27326         U_STRCONV_TO_LOCALE.
27327         * lib/unistr/u16-strcoll.c: Likewise.
27328         * lib/unistr/u32-strcoll.c: Likewise.
27329         * modules/unistr/u8-strcoll (Depends-on): Add
27330         uniconv/u8-strconv-to-enc, localcharset. Remove
27331         uniconv/u8-strconv-to-locale.
27332         (configure.ac): Bump version number.
27333         * modules/unistr/u16-strcoll (Depends-on): Add
27334         uniconv/u16-strconv-to-enc, localcharset. Remove
27335         uniconv/u16-strconv-to-locale.
27336         (configure.ac): Bump version number.
27337         * modules/unistr/u32-strcoll (Depends-on): Add
27338         uniconv/u32-strconv-to-enc, localcharset. Remove
27339         uniconv/u32-strconv-to-locale.
27340         (configure.ac): Bump version number.
27341
27342 2010-05-24  Bruno Haible  <bruno@clisp.org>
27343
27344         Avoid a test failure on NetBSD 5.0.
27345         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27346         an iconv() bug.
27347
27348 2010-05-24  Bruno Haible  <bruno@clisp.org>
27349
27350         Adjust #include directive style.
27351         * modules/regex (Includes): Recommend to write <regex.h>.
27352
27353 2010-05-24  Bruno Haible  <bruno@clisp.org>
27354
27355         regex: Don't require alloca.
27356         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27357         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27358         only inside if (0).
27359
27360 2010-05-23  Jim Meyering  <meyering@redhat.com>
27361
27362         test-renameat.c: include <sys/stat.h>
27363         * tests/test-renameat.c: Include <sys/stat.h>; required for
27364         definition of S_IS* macros.
27365
27366 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27367
27368         Update maintainer documentation for 'relocatable-prog' module.
27369         * doc/relocatable-maint.texi: Update.
27370         Comments by Bruno Haible.
27371
27372 2010-05-23  Bruno Haible  <bruno@clisp.org>
27373
27374         git-merge-changelog: Enable --split-merged-entry by default.
27375         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27376         (usage): Don't mention this option any more.
27377         Reported by Ralf Wildenhues.
27378
27379 2010-05-23  Jim Meyering  <meyering@redhat.com>
27380
27381         test-pwrite: do not leave behind a test file named "out"
27382         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27383         The trivial-looking use of init.sh is really necessary.
27384         It ensures that the temporary file, "out", is created in
27385         a temporary directory, and removed upon termination.
27386         * tests/test-pwrite.sh: Re-add file.
27387         * modules/pwrite-tests: Reference it.
27388
27389 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27390
27391         Fix output redirection buglet in init.sh.
27392         * tests/init.sh: Fix redirection of stderr.
27393
27394 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27395
27396         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27397
27398 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27399
27400         * modules/valgrind-tests: New file.
27401         * m4/valgrind-tests.m4: New file.
27402         * doc/valgrind-tests.texi: New file.
27403         * doc/gnulib.texi (Running self-tests under valgrind): New
27404         section.
27405
27406 2010-05-19  Bruno Haible  <bruno@clisp.org>
27407
27408         Clean up dead code in recent commit.
27409         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27410         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27411         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27412         Suggested by Paolo Bonzini.
27413
27414 2010-05-19  Bruno Haible  <bruno@clisp.org>
27415
27416         Avoid valgrind error reports from libunistring.
27417         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27418         * modules/libunistring (Files): Add it.
27419         * modules/libunistring-optional (Files): Likewise.
27420
27421 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27422             Bruno Haible  <bruno@clisp.org>
27423
27424         New module 'libunistring-optional'.
27425         * modules/libunistring-optional: New file.
27426         * m4/libunistring-base.m4: New file.
27427         * m4/libunistring-optional.m4: New file.
27428         * lib/unicase.in.h: Renamed from lib/unicase.h.
27429         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27430         * lib/unictype.in.h: Renamed from lib/unictype.h.
27431         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27432         * lib/uniname.in.h: Renamed from lib/uniname.h.
27433         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27434         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27435         * lib/unistr.in.h: Renamed from lib/unistr.h.
27436         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27437         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27438         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27439         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27440         gl_LIBUNISTRING. If the library was found, determine the installed
27441         version and set LIBUNISTRING_VERSION.
27442         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27443         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27444         handle a configuration option --with-included-libunistring.
27445         * modules/libunistring (Files): Add m4/absolute-header.m4.
27446         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27447         Add m4/libunistring-base.m4.
27448         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27449         (Makefile.am): Build unicase.h from unicase.in.h.
27450         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27451         Add m4/libunistring-base.m4.
27452         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27453         (Makefile.am): Build uniconv.h from uniconv.in.h.
27454         * modules/unictype/base (Files): Use unictype.in.h instead of
27455         unictype.h. Add m4/libunistring-base.m4.
27456         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27457         (Makefile.am): Build unictype.h from unictype.in.h.
27458         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27459         Add m4/libunistring-base.m4.
27460         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27461         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27462         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27463         Add m4/libunistring-base.m4.
27464         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27465         (Makefile.am): Build uniname.h from uniname.in.h.
27466         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27467         Add m4/libunistring-base.m4.
27468         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27469         (Makefile.am): Build uninorm.h from uninorm.in.h.
27470         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27471         unistdio.h. Add m4/libunistring-base.m4.
27472         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27473         (Makefile.am): Build unistdio.h from unistdio.in.h.
27474         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27475         Add m4/libunistring-base.m4.
27476         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27477         (Makefile.am): Build unistr.h from unistr.in.h.
27478         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27479         Add m4/libunistring-base.m4.
27480         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27481         (Makefile.am): Build unitypes.h from unitypes.in.h.
27482         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27483         Add m4/libunistring-base.m4.
27484         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27485         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27486         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27487         uniwidth.h. Add m4/libunistring-base.m4.
27488         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27489         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27490         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27491         instead of augmenting lib_SOURCES.
27492         * modules/unicase/empty-suffix-context: Likewise.
27493         * modules/unicase/locale-language: Likewise.
27494         * modules/unicase/tolower: Likewise.
27495         * modules/unicase/totitle: Likewise.
27496         * modules/unicase/toupper: Likewise.
27497         * modules/unicase/u8-casecmp: Likewise.
27498         * modules/unicase/u8-casecoll: Likewise.
27499         * modules/unicase/u8-casefold: Likewise.
27500         * modules/unicase/u8-casexfrm: Likewise.
27501         * modules/unicase/u8-ct-casefold: Likewise.
27502         * modules/unicase/u8-ct-tolower: Likewise.
27503         * modules/unicase/u8-ct-totitle: Likewise.
27504         * modules/unicase/u8-ct-toupper: Likewise.
27505         * modules/unicase/u8-is-cased: Likewise.
27506         * modules/unicase/u8-is-casefolded: Likewise.
27507         * modules/unicase/u8-is-lowercase: Likewise.
27508         * modules/unicase/u8-is-titlecase: Likewise.
27509         * modules/unicase/u8-is-uppercase: Likewise.
27510         * modules/unicase/u8-prefix-context: Likewise.
27511         * modules/unicase/u8-suffix-context: Likewise.
27512         * modules/unicase/u8-tolower: Likewise.
27513         * modules/unicase/u8-totitle: Likewise.
27514         * modules/unicase/u8-toupper: Likewise.
27515         * modules/unicase/u16-casecmp: Likewise.
27516         * modules/unicase/u16-casecoll: Likewise.
27517         * modules/unicase/u16-casefold: Likewise.
27518         * modules/unicase/u16-casexfrm: Likewise.
27519         * modules/unicase/u16-ct-casefold: Likewise.
27520         * modules/unicase/u16-ct-tolower: Likewise.
27521         * modules/unicase/u16-ct-totitle: Likewise.
27522         * modules/unicase/u16-ct-toupper: Likewise.
27523         * modules/unicase/u16-is-cased: Likewise.
27524         * modules/unicase/u16-is-casefolded: Likewise.
27525         * modules/unicase/u16-is-lowercase: Likewise.
27526         * modules/unicase/u16-is-titlecase: Likewise.
27527         * modules/unicase/u16-is-uppercase: Likewise.
27528         * modules/unicase/u16-prefix-context: Likewise.
27529         * modules/unicase/u16-suffix-context: Likewise.
27530         * modules/unicase/u16-tolower: Likewise.
27531         * modules/unicase/u16-totitle: Likewise.
27532         * modules/unicase/u16-toupper: Likewise.
27533         * modules/unicase/u32-casecmp: Likewise.
27534         * modules/unicase/u32-casecoll: Likewise.
27535         * modules/unicase/u32-casefold: Likewise.
27536         * modules/unicase/u32-casexfrm: Likewise.
27537         * modules/unicase/u32-ct-casefold: Likewise.
27538         * modules/unicase/u32-ct-tolower: Likewise.
27539         * modules/unicase/u32-ct-totitle: Likewise.
27540         * modules/unicase/u32-ct-toupper: Likewise.
27541         * modules/unicase/u32-is-cased: Likewise.
27542         * modules/unicase/u32-is-casefolded: Likewise.
27543         * modules/unicase/u32-is-lowercase: Likewise.
27544         * modules/unicase/u32-is-titlecase: Likewise.
27545         * modules/unicase/u32-is-uppercase: Likewise.
27546         * modules/unicase/u32-prefix-context: Likewise.
27547         * modules/unicase/u32-suffix-context: Likewise.
27548         * modules/unicase/u32-tolower: Likewise.
27549         * modules/unicase/u32-totitle: Likewise.
27550         * modules/unicase/u32-toupper: Likewise.
27551         * modules/unicase/ulc-casecmp: Likewise.
27552         * modules/unicase/ulc-casecoll: Likewise.
27553         * modules/unicase/ulc-casexfrm: Likewise.
27554         * modules/uniconv/u8-conv-from-enc: Likewise.
27555         * modules/uniconv/u8-conv-to-enc: Likewise.
27556         * modules/uniconv/u8-strconv-from-enc: Likewise.
27557         * modules/uniconv/u8-strconv-from-locale: Likewise.
27558         * modules/uniconv/u8-strconv-to-enc: Likewise.
27559         * modules/uniconv/u8-strconv-to-locale: Likewise.
27560         * modules/uniconv/u16-conv-from-enc: Likewise.
27561         * modules/uniconv/u16-conv-to-enc: Likewise.
27562         * modules/uniconv/u16-strconv-from-enc: Likewise.
27563         * modules/uniconv/u16-strconv-from-locale: Likewise.
27564         * modules/uniconv/u16-strconv-to-enc: Likewise.
27565         * modules/uniconv/u16-strconv-to-locale: Likewise.
27566         * modules/uniconv/u32-conv-from-enc: Likewise.
27567         * modules/uniconv/u32-conv-to-enc: Likewise.
27568         * modules/uniconv/u32-strconv-from-enc: Likewise.
27569         * modules/uniconv/u32-strconv-from-locale: Likewise.
27570         * modules/uniconv/u32-strconv-to-enc: Likewise.
27571         * modules/uniconv/u32-strconv-to-locale: Likewise.
27572         * modules/unictype/bidicategory-byname: Likewise.
27573         * modules/unictype/bidicategory-name: Likewise.
27574         * modules/unictype/bidicategory-of: Likewise.
27575         * modules/unictype/bidicategory-test: Likewise.
27576         * modules/unictype/block-list: Likewise.
27577         * modules/unictype/block-test: Likewise.
27578         * modules/unictype/category-C: Likewise.
27579         * modules/unictype/category-Cc: Likewise.
27580         * modules/unictype/category-Cf: Likewise.
27581         * modules/unictype/category-Cn: Likewise.
27582         * modules/unictype/category-Co: Likewise.
27583         * modules/unictype/category-Cs: Likewise.
27584         * modules/unictype/category-L: Likewise.
27585         * modules/unictype/category-Ll: Likewise.
27586         * modules/unictype/category-Lm: Likewise.
27587         * modules/unictype/category-Lo: Likewise.
27588         * modules/unictype/category-Lt: Likewise.
27589         * modules/unictype/category-Lu: Likewise.
27590         * modules/unictype/category-M: Likewise.
27591         * modules/unictype/category-Mc: Likewise.
27592         * modules/unictype/category-Me: Likewise.
27593         * modules/unictype/category-Mn: Likewise.
27594         * modules/unictype/category-N: Likewise.
27595         * modules/unictype/category-Nd: Likewise.
27596         * modules/unictype/category-Nl: Likewise.
27597         * modules/unictype/category-No: Likewise.
27598         * modules/unictype/category-P: Likewise.
27599         * modules/unictype/category-Pc: Likewise.
27600         * modules/unictype/category-Pd: Likewise.
27601         * modules/unictype/category-Pe: Likewise.
27602         * modules/unictype/category-Pf: Likewise.
27603         * modules/unictype/category-Pi: Likewise.
27604         * modules/unictype/category-Po: Likewise.
27605         * modules/unictype/category-Ps: Likewise.
27606         * modules/unictype/category-S: Likewise.
27607         * modules/unictype/category-Sc: Likewise.
27608         * modules/unictype/category-Sk: Likewise.
27609         * modules/unictype/category-Sm: Likewise.
27610         * modules/unictype/category-So: Likewise.
27611         * modules/unictype/category-Z: Likewise.
27612         * modules/unictype/category-Zl: Likewise.
27613         * modules/unictype/category-Zp: Likewise.
27614         * modules/unictype/category-Zs: Likewise.
27615         * modules/unictype/category-and: Likewise.
27616         * modules/unictype/category-and-not: Likewise.
27617         * modules/unictype/category-byname: Likewise.
27618         * modules/unictype/category-name: Likewise.
27619         * modules/unictype/category-none: Likewise.
27620         * modules/unictype/category-of: Likewise.
27621         * modules/unictype/category-or: Likewise.
27622         * modules/unictype/category-test: Likewise.
27623         * modules/unictype/combining-class: Likewise.
27624         * modules/unictype/ctype-alnum: Likewise.
27625         * modules/unictype/ctype-alpha: Likewise.
27626         * modules/unictype/ctype-blank: Likewise.
27627         * modules/unictype/ctype-cntrl: Likewise.
27628         * modules/unictype/ctype-digit: Likewise.
27629         * modules/unictype/ctype-graph: Likewise.
27630         * modules/unictype/ctype-lower: Likewise.
27631         * modules/unictype/ctype-print: Likewise.
27632         * modules/unictype/ctype-punct: Likewise.
27633         * modules/unictype/ctype-space: Likewise.
27634         * modules/unictype/ctype-upper: Likewise.
27635         * modules/unictype/ctype-xdigit: Likewise.
27636         * modules/unictype/decimal-digit: Likewise.
27637         * modules/unictype/digit: Likewise.
27638         * modules/unictype/mirror: Likewise.
27639         * modules/unictype/numeric: Likewise.
27640         * modules/unictype/property-alphabetic: Likewise.
27641         * modules/unictype/property-ascii-hex-digit: Likewise.
27642         * modules/unictype/property-bidi-arabic-digit: Likewise.
27643         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27644         * modules/unictype/property-bidi-block-separator: Likewise.
27645         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27646         * modules/unictype/property-bidi-common-separator: Likewise.
27647         * modules/unictype/property-bidi-control: Likewise.
27648         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27649         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27650         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27651         * modules/unictype/property-bidi-european-digit: Likewise.
27652         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27653         * modules/unictype/property-bidi-left-to-right: Likewise.
27654         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27655         * modules/unictype/property-bidi-other-neutral: Likewise.
27656         * modules/unictype/property-bidi-pdf: Likewise.
27657         * modules/unictype/property-bidi-segment-separator: Likewise.
27658         * modules/unictype/property-bidi-whitespace: Likewise.
27659         * modules/unictype/property-byname: Likewise.
27660         * modules/unictype/property-combining: Likewise.
27661         * modules/unictype/property-composite: Likewise.
27662         * modules/unictype/property-currency-symbol: Likewise.
27663         * modules/unictype/property-dash: Likewise.
27664         * modules/unictype/property-decimal-digit: Likewise.
27665         * modules/unictype/property-default-ignorable-code-point: Likewise.
27666         * modules/unictype/property-deprecated: Likewise.
27667         * modules/unictype/property-diacritic: Likewise.
27668         * modules/unictype/property-extender: Likewise.
27669         * modules/unictype/property-format-control: Likewise.
27670         * modules/unictype/property-grapheme-base: Likewise.
27671         * modules/unictype/property-grapheme-extend: Likewise.
27672         * modules/unictype/property-grapheme-link: Likewise.
27673         * modules/unictype/property-hex-digit: Likewise.
27674         * modules/unictype/property-hyphen: Likewise.
27675         * modules/unictype/property-id-continue: Likewise.
27676         * modules/unictype/property-id-start: Likewise.
27677         * modules/unictype/property-ideographic: Likewise.
27678         * modules/unictype/property-ids-binary-operator: Likewise.
27679         * modules/unictype/property-ids-trinary-operator: Likewise.
27680         * modules/unictype/property-ignorable-control: Likewise.
27681         * modules/unictype/property-iso-control: Likewise.
27682         * modules/unictype/property-join-control: Likewise.
27683         * modules/unictype/property-left-of-pair: Likewise.
27684         * modules/unictype/property-line-separator: Likewise.
27685         * modules/unictype/property-logical-order-exception: Likewise.
27686         * modules/unictype/property-lowercase: Likewise.
27687         * modules/unictype/property-math: Likewise.
27688         * modules/unictype/property-non-break: Likewise.
27689         * modules/unictype/property-not-a-character: Likewise.
27690         * modules/unictype/property-numeric: Likewise.
27691         * modules/unictype/property-other-alphabetic: Likewise.
27692         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27693         * modules/unictype/property-other-grapheme-extend: Likewise.
27694         * modules/unictype/property-other-id-continue: Likewise.
27695         * modules/unictype/property-other-id-start: Likewise.
27696         * modules/unictype/property-other-lowercase: Likewise.
27697         * modules/unictype/property-other-math: Likewise.
27698         * modules/unictype/property-other-uppercase: Likewise.
27699         * modules/unictype/property-paired-punctuation: Likewise.
27700         * modules/unictype/property-paragraph-separator: Likewise.
27701         * modules/unictype/property-pattern-syntax: Likewise.
27702         * modules/unictype/property-pattern-white-space: Likewise.
27703         * modules/unictype/property-private-use: Likewise.
27704         * modules/unictype/property-punctuation: Likewise.
27705         * modules/unictype/property-quotation-mark: Likewise.
27706         * modules/unictype/property-radical: Likewise.
27707         * modules/unictype/property-sentence-terminal: Likewise.
27708         * modules/unictype/property-soft-dotted: Likewise.
27709         * modules/unictype/property-space: Likewise.
27710         * modules/unictype/property-terminal-punctuation: Likewise.
27711         * modules/unictype/property-test: Likewise.
27712         * modules/unictype/property-titlecase: Likewise.
27713         * modules/unictype/property-unassigned-code-value: Likewise.
27714         * modules/unictype/property-unified-ideograph: Likewise.
27715         * modules/unictype/property-uppercase: Likewise.
27716         * modules/unictype/property-variation-selector: Likewise.
27717         * modules/unictype/property-white-space: Likewise.
27718         * modules/unictype/property-xid-continue: Likewise.
27719         * modules/unictype/property-xid-start: Likewise.
27720         * modules/unictype/property-zero-width: Likewise.
27721         * modules/unictype/scripts: Likewise.
27722         * modules/unictype/syntax-c-ident: Likewise.
27723         * modules/unictype/syntax-c-whitespace: Likewise.
27724         * modules/unictype/syntax-java-ident: Likewise.
27725         * modules/unictype/syntax-java-whitespace: Likewise.
27726         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27727         * modules/unilbrk/u8-width-linebreaks: Likewise.
27728         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27729         * modules/unilbrk/u16-width-linebreaks: Likewise.
27730         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27731         * modules/unilbrk/u32-width-linebreaks: Likewise.
27732         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27733         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27734         * modules/uniname/uniname: Likewise.
27735         * modules/uninorm/canonical-decomposition: Likewise.
27736         * modules/uninorm/composition: Likewise.
27737         * modules/uninorm/decomposing-form: Likewise.
27738         * modules/uninorm/decomposition: Likewise.
27739         * modules/uninorm/filter: Likewise.
27740         * modules/uninorm/nfc: Likewise.
27741         * modules/uninorm/nfd: Likewise.
27742         * modules/uninorm/nfkc: Likewise.
27743         * modules/uninorm/nfkd: Likewise.
27744         * modules/uninorm/u8-normalize: Likewise.
27745         * modules/uninorm/u8-normcmp: Likewise.
27746         * modules/uninorm/u8-normcoll: Likewise.
27747         * modules/uninorm/u8-normxfrm: Likewise.
27748         * modules/uninorm/u16-normalize: Likewise.
27749         * modules/uninorm/u16-normcmp: Likewise.
27750         * modules/uninorm/u16-normcoll: Likewise.
27751         * modules/uninorm/u16-normxfrm: Likewise.
27752         * modules/uninorm/u32-normalize: Likewise.
27753         * modules/uninorm/u32-normcmp: Likewise.
27754         * modules/uninorm/u32-normcoll: Likewise.
27755         * modules/uninorm/u32-normxfrm: Likewise.
27756         * modules/unistdio/u8-asnprintf: Likewise.
27757         * modules/unistdio/u8-asprintf: Likewise.
27758         * modules/unistdio/u8-snprintf: Likewise.
27759         * modules/unistdio/u8-sprintf: Likewise.
27760         * modules/unistdio/u8-u8-asnprintf: Likewise.
27761         * modules/unistdio/u8-u8-asprintf: Likewise.
27762         * modules/unistdio/u8-u8-snprintf: Likewise.
27763         * modules/unistdio/u8-u8-sprintf: Likewise.
27764         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27765         * modules/unistdio/u8-u8-vasprintf: Likewise.
27766         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27767         * modules/unistdio/u8-u8-vsprintf: Likewise.
27768         * modules/unistdio/u8-vasnprintf: Likewise.
27769         * modules/unistdio/u8-vasprintf: Likewise.
27770         * modules/unistdio/u8-vsnprintf: Likewise.
27771         * modules/unistdio/u8-vsprintf: Likewise.
27772         * modules/unistdio/u16-asnprintf: Likewise.
27773         * modules/unistdio/u16-asprintf: Likewise.
27774         * modules/unistdio/u16-snprintf: Likewise.
27775         * modules/unistdio/u16-sprintf: Likewise.
27776         * modules/unistdio/u16-u16-asnprintf: Likewise.
27777         * modules/unistdio/u16-u16-asprintf: Likewise.
27778         * modules/unistdio/u16-u16-snprintf: Likewise.
27779         * modules/unistdio/u16-u16-sprintf: Likewise.
27780         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27781         * modules/unistdio/u16-u16-vasprintf: Likewise.
27782         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27783         * modules/unistdio/u16-u16-vsprintf: Likewise.
27784         * modules/unistdio/u16-vasnprintf: Likewise.
27785         * modules/unistdio/u16-vasprintf: Likewise.
27786         * modules/unistdio/u16-vsnprintf: Likewise.
27787         * modules/unistdio/u16-vsprintf: Likewise.
27788         * modules/unistdio/u32-asnprintf: Likewise.
27789         * modules/unistdio/u32-asprintf: Likewise.
27790         * modules/unistdio/u32-snprintf: Likewise.
27791         * modules/unistdio/u32-sprintf: Likewise.
27792         * modules/unistdio/u32-u32-asnprintf: Likewise.
27793         * modules/unistdio/u32-u32-asprintf: Likewise.
27794         * modules/unistdio/u32-u32-snprintf: Likewise.
27795         * modules/unistdio/u32-u32-sprintf: Likewise.
27796         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27797         * modules/unistdio/u32-u32-vasprintf: Likewise.
27798         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27799         * modules/unistdio/u32-u32-vsprintf: Likewise.
27800         * modules/unistdio/u32-vasnprintf: Likewise.
27801         * modules/unistdio/u32-vasprintf: Likewise.
27802         * modules/unistdio/u32-vsnprintf: Likewise.
27803         * modules/unistdio/u32-vsprintf: Likewise.
27804         * modules/unistdio/ulc-asnprintf: Likewise.
27805         * modules/unistdio/ulc-asprintf: Likewise.
27806         * modules/unistdio/ulc-fprintf: Likewise.
27807         * modules/unistdio/ulc-snprintf: Likewise.
27808         * modules/unistdio/ulc-sprintf: Likewise.
27809         * modules/unistdio/ulc-vasnprintf: Likewise.
27810         * modules/unistdio/ulc-vasprintf: Likewise.
27811         * modules/unistdio/ulc-vfprintf: Likewise.
27812         * modules/unistdio/ulc-vsnprintf: Likewise.
27813         * modules/unistdio/ulc-vsprintf: Likewise.
27814         * modules/unistr/u8-check: Likewise.
27815         * modules/unistr/u8-chr: Likewise.
27816         * modules/unistr/u8-cmp: Likewise.
27817         * modules/unistr/u8-cmp2: Likewise.
27818         * modules/unistr/u8-cpy: Likewise.
27819         * modules/unistr/u8-cpy-alloc: Likewise.
27820         * modules/unistr/u8-endswith: Likewise.
27821         * modules/unistr/u8-mblen: Likewise.
27822         * modules/unistr/u8-mbsnlen: Likewise.
27823         * modules/unistr/u8-mbtouc: Likewise.
27824         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27825         * modules/unistr/u8-mbtoucr: Likewise.
27826         * modules/unistr/u8-move: Likewise.
27827         * modules/unistr/u8-next: Likewise.
27828         * modules/unistr/u8-prev: Likewise.
27829         * modules/unistr/u8-set: Likewise.
27830         * modules/unistr/u8-startswith: Likewise.
27831         * modules/unistr/u8-stpcpy: Likewise.
27832         * modules/unistr/u8-stpncpy: Likewise.
27833         * modules/unistr/u8-strcat: Likewise.
27834         * modules/unistr/u8-strchr: Likewise.
27835         * modules/unistr/u8-strcmp: Likewise.
27836         * modules/unistr/u8-strcoll: Likewise.
27837         * modules/unistr/u8-strcpy: Likewise.
27838         * modules/unistr/u8-strcspn: Likewise.
27839         * modules/unistr/u8-strdup: Likewise.
27840         * modules/unistr/u8-strlen: Likewise.
27841         * modules/unistr/u8-strmblen: Likewise.
27842         * modules/unistr/u8-strmbtouc: Likewise.
27843         * modules/unistr/u8-strncat: Likewise.
27844         * modules/unistr/u8-strncmp: Likewise.
27845         * modules/unistr/u8-strncpy: Likewise.
27846         * modules/unistr/u8-strnlen: Likewise.
27847         * modules/unistr/u8-strpbrk: Likewise.
27848         * modules/unistr/u8-strrchr: Likewise.
27849         * modules/unistr/u8-strspn: Likewise.
27850         * modules/unistr/u8-strstr: Likewise.
27851         * modules/unistr/u8-strtok: Likewise.
27852         * modules/unistr/u8-to-u16: Likewise.
27853         * modules/unistr/u8-to-u32: Likewise.
27854         * modules/unistr/u8-uctomb: Likewise.
27855         * modules/unistr/u16-check: Likewise.
27856         * modules/unistr/u16-chr: Likewise.
27857         * modules/unistr/u16-cmp: Likewise.
27858         * modules/unistr/u16-cmp2: Likewise.
27859         * modules/unistr/u16-cpy: Likewise.
27860         * modules/unistr/u16-cpy-alloc: Likewise.
27861         * modules/unistr/u16-endswith: Likewise.
27862         * modules/unistr/u16-mblen: Likewise.
27863         * modules/unistr/u16-mbsnlen: Likewise.
27864         * modules/unistr/u16-mbtouc: Likewise.
27865         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27866         * modules/unistr/u16-mbtoucr: Likewise.
27867         * modules/unistr/u16-move: Likewise.
27868         * modules/unistr/u16-next: Likewise.
27869         * modules/unistr/u16-prev: Likewise.
27870         * modules/unistr/u16-set: Likewise.
27871         * modules/unistr/u16-startswith: Likewise.
27872         * modules/unistr/u16-stpcpy: Likewise.
27873         * modules/unistr/u16-stpncpy: Likewise.
27874         * modules/unistr/u16-strcat: Likewise.
27875         * modules/unistr/u16-strchr: Likewise.
27876         * modules/unistr/u16-strcmp: Likewise.
27877         * modules/unistr/u16-strcoll: Likewise.
27878         * modules/unistr/u16-strcpy: Likewise.
27879         * modules/unistr/u16-strcspn: Likewise.
27880         * modules/unistr/u16-strdup: Likewise.
27881         * modules/unistr/u16-strlen: Likewise.
27882         * modules/unistr/u16-strmblen: Likewise.
27883         * modules/unistr/u16-strmbtouc: Likewise.
27884         * modules/unistr/u16-strncat: Likewise.
27885         * modules/unistr/u16-strncmp: Likewise.
27886         * modules/unistr/u16-strncpy: Likewise.
27887         * modules/unistr/u16-strnlen: Likewise.
27888         * modules/unistr/u16-strpbrk: Likewise.
27889         * modules/unistr/u16-strrchr: Likewise.
27890         * modules/unistr/u16-strspn: Likewise.
27891         * modules/unistr/u16-strstr: Likewise.
27892         * modules/unistr/u16-strtok: Likewise.
27893         * modules/unistr/u16-to-u32: Likewise.
27894         * modules/unistr/u16-to-u8: Likewise.
27895         * modules/unistr/u16-uctomb: Likewise.
27896         * modules/unistr/u32-check: Likewise.
27897         * modules/unistr/u32-chr: Likewise.
27898         * modules/unistr/u32-cmp: Likewise.
27899         * modules/unistr/u32-cmp2: Likewise.
27900         * modules/unistr/u32-cpy: Likewise.
27901         * modules/unistr/u32-cpy-alloc: Likewise.
27902         * modules/unistr/u32-endswith: Likewise.
27903         * modules/unistr/u32-mblen: Likewise.
27904         * modules/unistr/u32-mbsnlen: Likewise.
27905         * modules/unistr/u32-mbtouc: Likewise.
27906         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27907         * modules/unistr/u32-mbtoucr: Likewise.
27908         * modules/unistr/u32-move: Likewise.
27909         * modules/unistr/u32-next: Likewise.
27910         * modules/unistr/u32-prev: Likewise.
27911         * modules/unistr/u32-set: Likewise.
27912         * modules/unistr/u32-startswith: Likewise.
27913         * modules/unistr/u32-stpcpy: Likewise.
27914         * modules/unistr/u32-stpncpy: Likewise.
27915         * modules/unistr/u32-strcat: Likewise.
27916         * modules/unistr/u32-strchr: Likewise.
27917         * modules/unistr/u32-strcmp: Likewise.
27918         * modules/unistr/u32-strcoll: Likewise.
27919         * modules/unistr/u32-strcpy: Likewise.
27920         * modules/unistr/u32-strcspn: Likewise.
27921         * modules/unistr/u32-strdup: Likewise.
27922         * modules/unistr/u32-strlen: Likewise.
27923         * modules/unistr/u32-strmblen: Likewise.
27924         * modules/unistr/u32-strmbtouc: Likewise.
27925         * modules/unistr/u32-strncat: Likewise.
27926         * modules/unistr/u32-strncmp: Likewise.
27927         * modules/unistr/u32-strncpy: Likewise.
27928         * modules/unistr/u32-strnlen: Likewise.
27929         * modules/unistr/u32-strpbrk: Likewise.
27930         * modules/unistr/u32-strrchr: Likewise.
27931         * modules/unistr/u32-strspn: Likewise.
27932         * modules/unistr/u32-strstr: Likewise.
27933         * modules/unistr/u32-strtok: Likewise.
27934         * modules/unistr/u32-to-u16: Likewise.
27935         * modules/unistr/u32-to-u8: Likewise.
27936         * modules/unistr/u32-uctomb: Likewise.
27937         * modules/uniwbrk/u8-wordbreaks: Likewise.
27938         * modules/uniwbrk/u16-wordbreaks: Likewise.
27939         * modules/uniwbrk/u32-wordbreaks: Likewise.
27940         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27941         * modules/uniwbrk/wordbreak-property: Likewise.
27942         * modules/uniwidth/u8-strwidth: Likewise.
27943         * modules/uniwidth/u8-width: Likewise.
27944         * modules/uniwidth/u16-strwidth: Likewise.
27945         * modules/uniwidth/u16-width: Likewise.
27946         * modules/uniwidth/u32-strwidth: Likewise.
27947         * modules/uniwidth/u32-width: Likewise.
27948         * modules/uniwidth/width: Likewise.
27949         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27950         with $(LIBUNISTRING).
27951         * modules/unicase/ignorable-tests: Likewise.
27952         * modules/unicase/locale-language-tests: Likewise.
27953         * modules/unicase/tolower-tests: Likewise.
27954         * modules/unicase/totitle-tests: Likewise.
27955         * modules/unicase/toupper-tests: Likewise.
27956         * modules/unicase/u8-casecmp-tests: Likewise.
27957         * modules/unicase/u8-casecoll-tests: Likewise.
27958         * modules/unicase/u8-casefold-tests: Likewise.
27959         * modules/unicase/u8-is-cased-tests: Likewise.
27960         * modules/unicase/u8-is-casefolded-tests: Likewise.
27961         * modules/unicase/u8-is-lowercase-tests: Likewise.
27962         * modules/unicase/u8-is-titlecase-tests: Likewise.
27963         * modules/unicase/u8-is-uppercase-tests: Likewise.
27964         * modules/unicase/u8-tolower-tests: Likewise.
27965         * modules/unicase/u8-totitle-tests: Likewise.
27966         * modules/unicase/u8-toupper-tests: Likewise.
27967         * modules/unicase/u16-casecmp-tests: Likewise.
27968         * modules/unicase/u16-casecoll-tests: Likewise.
27969         * modules/unicase/u16-casefold-tests: Likewise.
27970         * modules/unicase/u16-is-cased-tests: Likewise.
27971         * modules/unicase/u16-is-casefolded-tests: Likewise.
27972         * modules/unicase/u16-is-lowercase-tests: Likewise.
27973         * modules/unicase/u16-is-titlecase-tests: Likewise.
27974         * modules/unicase/u16-is-uppercase-tests: Likewise.
27975         * modules/unicase/u16-tolower-tests: Likewise.
27976         * modules/unicase/u16-totitle-tests: Likewise.
27977         * modules/unicase/u16-toupper-tests: Likewise.
27978         * modules/unicase/u32-casecmp-tests: Likewise.
27979         * modules/unicase/u32-casecoll-tests: Likewise.
27980         * modules/unicase/u32-casefold-tests: Likewise.
27981         * modules/unicase/u32-is-cased-tests: Likewise.
27982         * modules/unicase/u32-is-casefolded-tests: Likewise.
27983         * modules/unicase/u32-is-lowercase-tests: Likewise.
27984         * modules/unicase/u32-is-titlecase-tests: Likewise.
27985         * modules/unicase/u32-is-uppercase-tests: Likewise.
27986         * modules/unicase/u32-tolower-tests: Likewise.
27987         * modules/unicase/u32-totitle-tests: Likewise.
27988         * modules/unicase/u32-toupper-tests: Likewise.
27989         * modules/unicase/ulc-casecmp-tests: Likewise.
27990         * modules/unicase/ulc-casecoll-tests: Likewise.
27991         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27992         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27993         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27994         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27995         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27996         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27997         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27998         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27999         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28000         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28001         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28002         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28003         * modules/unictype/bidicategory-byname-tests: Likewise.
28004         * modules/unictype/bidicategory-name-tests: Likewise.
28005         * modules/unictype/bidicategory-of-tests: Likewise.
28006         * modules/unictype/bidicategory-test-tests: Likewise.
28007         * modules/unictype/block-list-tests: Likewise.
28008         * modules/unictype/block-of-tests: Likewise.
28009         * modules/unictype/block-test-tests: Likewise.
28010         * modules/unictype/category-C-tests: Likewise.
28011         * modules/unictype/category-Cc-tests: Likewise.
28012         * modules/unictype/category-Cf-tests: Likewise.
28013         * modules/unictype/category-Cn-tests: Likewise.
28014         * modules/unictype/category-Co-tests: Likewise.
28015         * modules/unictype/category-Cs-tests: Likewise.
28016         * modules/unictype/category-L-tests: Likewise.
28017         * modules/unictype/category-Ll-tests: Likewise.
28018         * modules/unictype/category-Lm-tests: Likewise.
28019         * modules/unictype/category-Lo-tests: Likewise.
28020         * modules/unictype/category-Lt-tests: Likewise.
28021         * modules/unictype/category-Lu-tests: Likewise.
28022         * modules/unictype/category-M-tests: Likewise.
28023         * modules/unictype/category-Mc-tests: Likewise.
28024         * modules/unictype/category-Me-tests: Likewise.
28025         * modules/unictype/category-Mn-tests: Likewise.
28026         * modules/unictype/category-N-tests: Likewise.
28027         * modules/unictype/category-Nd-tests: Likewise.
28028         * modules/unictype/category-Nl-tests: Likewise.
28029         * modules/unictype/category-No-tests: Likewise.
28030         * modules/unictype/category-P-tests: Likewise.
28031         * modules/unictype/category-Pc-tests: Likewise.
28032         * modules/unictype/category-Pd-tests: Likewise.
28033         * modules/unictype/category-Pe-tests: Likewise.
28034         * modules/unictype/category-Pf-tests: Likewise.
28035         * modules/unictype/category-Pi-tests: Likewise.
28036         * modules/unictype/category-Po-tests: Likewise.
28037         * modules/unictype/category-Ps-tests: Likewise.
28038         * modules/unictype/category-S-tests: Likewise.
28039         * modules/unictype/category-Sc-tests: Likewise.
28040         * modules/unictype/category-Sk-tests: Likewise.
28041         * modules/unictype/category-Sm-tests: Likewise.
28042         * modules/unictype/category-So-tests: Likewise.
28043         * modules/unictype/category-Z-tests: Likewise.
28044         * modules/unictype/category-Zl-tests: Likewise.
28045         * modules/unictype/category-Zp-tests: Likewise.
28046         * modules/unictype/category-Zs-tests: Likewise.
28047         * modules/unictype/category-and-not-tests: Likewise.
28048         * modules/unictype/category-and-tests: Likewise.
28049         * modules/unictype/category-byname-tests: Likewise.
28050         * modules/unictype/category-name-tests: Likewise.
28051         * modules/unictype/category-none-tests: Likewise.
28052         * modules/unictype/category-of-tests: Likewise.
28053         * modules/unictype/category-or-tests: Likewise.
28054         * modules/unictype/category-test-withtable-tests: Likewise.
28055         * modules/unictype/combining-class-tests: Likewise.
28056         * modules/unictype/ctype-alnum-tests: Likewise.
28057         * modules/unictype/ctype-alpha-tests: Likewise.
28058         * modules/unictype/ctype-blank-tests: Likewise.
28059         * modules/unictype/ctype-cntrl-tests: Likewise.
28060         * modules/unictype/ctype-digit-tests: Likewise.
28061         * modules/unictype/ctype-graph-tests: Likewise.
28062         * modules/unictype/ctype-lower-tests: Likewise.
28063         * modules/unictype/ctype-print-tests: Likewise.
28064         * modules/unictype/ctype-punct-tests: Likewise.
28065         * modules/unictype/ctype-space-tests: Likewise.
28066         * modules/unictype/ctype-upper-tests: Likewise.
28067         * modules/unictype/ctype-xdigit-tests: Likewise.
28068         * modules/unictype/decimal-digit-tests: Likewise.
28069         * modules/unictype/digit-tests: Likewise.
28070         * modules/unictype/mirror-tests: Likewise.
28071         * modules/unictype/numeric-tests: Likewise.
28072         * modules/unictype/property-alphabetic-tests: Likewise.
28073         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28074         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28075         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28076         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28077         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28078         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28079         * modules/unictype/property-bidi-control-tests: Likewise.
28080         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28081         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28082         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28083         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28084         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28085         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28086         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28087         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28088         * modules/unictype/property-bidi-pdf-tests: Likewise.
28089         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28090         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28091         * modules/unictype/property-byname-tests: Likewise.
28092         * modules/unictype/property-combining-tests: Likewise.
28093         * modules/unictype/property-composite-tests: Likewise.
28094         * modules/unictype/property-currency-symbol-tests: Likewise.
28095         * modules/unictype/property-dash-tests: Likewise.
28096         * modules/unictype/property-decimal-digit-tests: Likewise.
28097         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28098         * modules/unictype/property-deprecated-tests: Likewise.
28099         * modules/unictype/property-diacritic-tests: Likewise.
28100         * modules/unictype/property-extender-tests: Likewise.
28101         * modules/unictype/property-format-control-tests: Likewise.
28102         * modules/unictype/property-grapheme-base-tests: Likewise.
28103         * modules/unictype/property-grapheme-extend-tests: Likewise.
28104         * modules/unictype/property-grapheme-link-tests: Likewise.
28105         * modules/unictype/property-hex-digit-tests: Likewise.
28106         * modules/unictype/property-hyphen-tests: Likewise.
28107         * modules/unictype/property-id-continue-tests: Likewise.
28108         * modules/unictype/property-id-start-tests: Likewise.
28109         * modules/unictype/property-ideographic-tests: Likewise.
28110         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28111         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28112         * modules/unictype/property-ignorable-control-tests: Likewise.
28113         * modules/unictype/property-iso-control-tests: Likewise.
28114         * modules/unictype/property-join-control-tests: Likewise.
28115         * modules/unictype/property-left-of-pair-tests: Likewise.
28116         * modules/unictype/property-line-separator-tests: Likewise.
28117         * modules/unictype/property-logical-order-exception-tests: Likewise.
28118         * modules/unictype/property-lowercase-tests: Likewise.
28119         * modules/unictype/property-math-tests: Likewise.
28120         * modules/unictype/property-non-break-tests: Likewise.
28121         * modules/unictype/property-not-a-character-tests: Likewise.
28122         * modules/unictype/property-numeric-tests: Likewise.
28123         * modules/unictype/property-other-alphabetic-tests: Likewise.
28124         * modules/unictype/property-other-default-ignorable-code-point-tests:
28125         Likewise.
28126         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28127         * modules/unictype/property-other-id-continue-tests: Likewise.
28128         * modules/unictype/property-other-id-start-tests: Likewise.
28129         * modules/unictype/property-other-lowercase-tests: Likewise.
28130         * modules/unictype/property-other-math-tests: Likewise.
28131         * modules/unictype/property-other-uppercase-tests: Likewise.
28132         * modules/unictype/property-paired-punctuation-tests: Likewise.
28133         * modules/unictype/property-paragraph-separator-tests: Likewise.
28134         * modules/unictype/property-pattern-syntax-tests: Likewise.
28135         * modules/unictype/property-pattern-white-space-tests: Likewise.
28136         * modules/unictype/property-private-use-tests: Likewise.
28137         * modules/unictype/property-punctuation-tests: Likewise.
28138         * modules/unictype/property-quotation-mark-tests: Likewise.
28139         * modules/unictype/property-radical-tests: Likewise.
28140         * modules/unictype/property-sentence-terminal-tests: Likewise.
28141         * modules/unictype/property-soft-dotted-tests: Likewise.
28142         * modules/unictype/property-space-tests: Likewise.
28143         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28144         * modules/unictype/property-test-tests: Likewise.
28145         * modules/unictype/property-titlecase-tests: Likewise.
28146         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28147         * modules/unictype/property-unified-ideograph-tests: Likewise.
28148         * modules/unictype/property-uppercase-tests: Likewise.
28149         * modules/unictype/property-variation-selector-tests: Likewise.
28150         * modules/unictype/property-white-space-tests: Likewise.
28151         * modules/unictype/property-xid-continue-tests: Likewise.
28152         * modules/unictype/property-xid-start-tests: Likewise.
28153         * modules/unictype/property-zero-width-tests: Likewise.
28154         * modules/unictype/scripts-tests: Likewise.
28155         * modules/unictype/syntax-c-ident-tests: Likewise.
28156         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28157         * modules/unictype/syntax-java-ident-tests: Likewise.
28158         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28159         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28160         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28161         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28162         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28163         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28164         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28165         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28166         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28167         * modules/uniname/uniname-tests: Likewise.
28168         * modules/uninorm/canonical-decomposition-tests: Likewise.
28169         * modules/uninorm/compat-decomposition-tests: Likewise.
28170         * modules/uninorm/composition-tests: Likewise.
28171         * modules/uninorm/decomposing-form-tests: Likewise.
28172         * modules/uninorm/decomposition-tests: Likewise.
28173         * modules/uninorm/filter-tests: Likewise.
28174         * modules/uninorm/nfc-tests: Likewise.
28175         * modules/uninorm/nfd-tests: Likewise.
28176         * modules/uninorm/nfkc-tests: Likewise.
28177         * modules/uninorm/nfkd-tests: Likewise.
28178         * modules/uninorm/u8-normcmp-tests: Likewise.
28179         * modules/uninorm/u8-normcoll-tests: Likewise.
28180         * modules/uninorm/u16-normcmp-tests: Likewise.
28181         * modules/uninorm/u16-normcoll-tests: Likewise.
28182         * modules/uninorm/u32-normcmp-tests: Likewise.
28183         * modules/uninorm/u32-normcoll-tests: Likewise.
28184         * modules/unistdio/u8-asnprintf-tests: Likewise.
28185         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28186         * modules/unistdio/u8-vasprintf-tests: Likewise.
28187         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28188         * modules/unistdio/u8-vsprintf-tests: Likewise.
28189         * modules/unistdio/u16-asnprintf-tests: Likewise.
28190         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28191         * modules/unistdio/u16-vasprintf-tests: Likewise.
28192         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28193         * modules/unistdio/u16-vsprintf-tests: Likewise.
28194         * modules/unistdio/u32-asnprintf-tests: Likewise.
28195         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28196         * modules/unistdio/u32-vasprintf-tests: Likewise.
28197         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28198         * modules/unistdio/u32-vsprintf-tests: Likewise.
28199         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28200         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28201         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28202         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28203         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28204         * modules/unistr/u8-check-tests: Likewise.
28205         * modules/unistr/u8-chr-tests: Likewise.
28206         * modules/unistr/u8-cmp-tests: Likewise.
28207         * modules/unistr/u8-cmp2-tests: Likewise.
28208         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28209         * modules/unistr/u8-cpy-tests: Likewise.
28210         * modules/unistr/u8-mblen-tests: Likewise.
28211         * modules/unistr/u8-mbsnlen-tests: Likewise.
28212         * modules/unistr/u8-mbtouc-tests: Likewise.
28213         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28214         * modules/unistr/u8-mbtoucr-tests: Likewise.
28215         * modules/unistr/u8-move-tests: Likewise.
28216         * modules/unistr/u8-next-tests: Likewise.
28217         * modules/unistr/u8-prev-tests: Likewise.
28218         * modules/unistr/u8-set-tests: Likewise.
28219         * modules/unistr/u8-stpcpy-tests: Likewise.
28220         * modules/unistr/u8-stpncpy-tests: Likewise.
28221         * modules/unistr/u8-strcat-tests: Likewise.
28222         * modules/unistr/u8-strcmp-tests: Likewise.
28223         * modules/unistr/u8-strcoll-tests: Likewise.
28224         * modules/unistr/u8-strcpy-tests: Likewise.
28225         * modules/unistr/u8-strdup-tests: Likewise.
28226         * modules/unistr/u8-strlen-tests: Likewise.
28227         * modules/unistr/u8-strmblen-tests: Likewise.
28228         * modules/unistr/u8-strmbtouc-tests: Likewise.
28229         * modules/unistr/u8-strncat-tests: Likewise.
28230         * modules/unistr/u8-strncmp-tests: Likewise.
28231         * modules/unistr/u8-strncpy-tests: Likewise.
28232         * modules/unistr/u8-strnlen-tests: Likewise.
28233         * modules/unistr/u8-to-u16-tests: Likewise.
28234         * modules/unistr/u8-to-u32-tests: Likewise.
28235         * modules/unistr/u8-uctomb-tests: Likewise.
28236         * modules/unistr/u16-check-tests: Likewise.
28237         * modules/unistr/u16-chr-tests: Likewise.
28238         * modules/unistr/u16-cmp-tests: Likewise.
28239         * modules/unistr/u16-cmp2-tests: Likewise.
28240         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28241         * modules/unistr/u16-cpy-tests: Likewise.
28242         * modules/unistr/u16-mblen-tests: Likewise.
28243         * modules/unistr/u16-mbsnlen-tests: Likewise.
28244         * modules/unistr/u16-mbtouc-tests: Likewise.
28245         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28246         * modules/unistr/u16-mbtoucr-tests: Likewise.
28247         * modules/unistr/u16-move-tests: Likewise.
28248         * modules/unistr/u16-next-tests: Likewise.
28249         * modules/unistr/u16-prev-tests: Likewise.
28250         * modules/unistr/u16-set-tests: Likewise.
28251         * modules/unistr/u16-stpcpy-tests: Likewise.
28252         * modules/unistr/u16-stpncpy-tests: Likewise.
28253         * modules/unistr/u16-strcat-tests: Likewise.
28254         * modules/unistr/u16-strcmp-tests: Likewise.
28255         * modules/unistr/u16-strcoll-tests: Likewise.
28256         * modules/unistr/u16-strcpy-tests: Likewise.
28257         * modules/unistr/u16-strdup-tests: Likewise.
28258         * modules/unistr/u16-strlen-tests: Likewise.
28259         * modules/unistr/u16-strmblen-tests: Likewise.
28260         * modules/unistr/u16-strmbtouc-tests: Likewise.
28261         * modules/unistr/u16-strncat-tests: Likewise.
28262         * modules/unistr/u16-strncmp-tests: Likewise.
28263         * modules/unistr/u16-strncpy-tests: Likewise.
28264         * modules/unistr/u16-strnlen-tests: Likewise.
28265         * modules/unistr/u16-to-u32-tests: Likewise.
28266         * modules/unistr/u16-to-u8-tests: Likewise.
28267         * modules/unistr/u16-uctomb-tests: Likewise.
28268         * modules/unistr/u32-check-tests: Likewise.
28269         * modules/unistr/u32-chr-tests: Likewise.
28270         * modules/unistr/u32-cmp-tests: Likewise.
28271         * modules/unistr/u32-cmp2-tests: Likewise.
28272         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28273         * modules/unistr/u32-cpy-tests: Likewise.
28274         * modules/unistr/u32-mblen-tests: Likewise.
28275         * modules/unistr/u32-mbsnlen-tests: Likewise.
28276         * modules/unistr/u32-mbtouc-tests: Likewise.
28277         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28278         * modules/unistr/u32-mbtoucr-tests: Likewise.
28279         * modules/unistr/u32-move-tests: Likewise.
28280         * modules/unistr/u32-next-tests: Likewise.
28281         * modules/unistr/u32-prev-tests: Likewise.
28282         * modules/unistr/u32-set-tests: Likewise.
28283         * modules/unistr/u32-stpcpy-tests: Likewise.
28284         * modules/unistr/u32-stpncpy-tests: Likewise.
28285         * modules/unistr/u32-strcat-tests: Likewise.
28286         * modules/unistr/u32-strcmp-tests: Likewise.
28287         * modules/unistr/u32-strcoll-tests: Likewise.
28288         * modules/unistr/u32-strcpy-tests: Likewise.
28289         * modules/unistr/u32-strdup-tests: Likewise.
28290         * modules/unistr/u32-strlen-tests: Likewise.
28291         * modules/unistr/u32-strmblen-tests: Likewise.
28292         * modules/unistr/u32-strmbtouc-tests: Likewise.
28293         * modules/unistr/u32-strncat-tests: Likewise.
28294         * modules/unistr/u32-strncmp-tests: Likewise.
28295         * modules/unistr/u32-strncpy-tests: Likewise.
28296         * modules/unistr/u32-strnlen-tests: Likewise.
28297         * modules/unistr/u32-to-u16-tests: Likewise.
28298         * modules/unistr/u32-to-u8-tests: Likewise.
28299         * modules/unistr/u32-uctomb-tests: Likewise.
28300         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28301         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28302         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28303         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28304         * modules/uniwidth/u8-strwidth-tests: Likewise.
28305         * modules/uniwidth/u8-width-tests: Likewise.
28306         * modules/uniwidth/u16-strwidth-tests: Likewise.
28307         * modules/uniwidth/u16-width-tests: Likewise.
28308         * modules/uniwidth/u32-strwidth-tests: Likewise.
28309         * modules/uniwidth/u32-width-tests: Likewise.
28310         * modules/uniwidth/width-tests: Likewise.
28311
28312 2010-05-18  Richard Jones  <rjones@redhat.com>
28313
28314         doc: users.txt: list hivex
28315         * users.txt: Add hivex.
28316
28317 2010-05-18  Richard Jones  <rjones@redhat.com>
28318
28319         doc: users.txt: list febootstrap
28320         * users.txt: Add febootstrap.
28321
28322 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28323
28324         bootstrap: fix an error when gnulib is not used as a git submodule
28325         * build-aux/bootstrap (gnulib_path): If its length is zero then
28326         assign "gnulib" to it.
28327         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28328
28329 2010-05-16  Bruno Haible  <bruno@clisp.org>
28330
28331         Avoid autoconf warnings about AM_ICONV.
28332         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28333         2.64.
28334
28335 2010-05-16  Bruno Haible  <bruno@clisp.org>
28336
28337         absolute-header: Make the macro usable in more situations.
28338         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28339         from gl_ABSOLUTE_HEADER.
28340         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28341
28342 2010-05-16  James Youngman  <jay@gnu.org>
28343
28344         doc: update users.txt
28345         * users.txt: Add CSSC.
28346
28347 2010-05-16  Jim Meyering  <meyering@redhat.com>
28348
28349         init.sh: fix an error in the previous change; add more comments
28350         * tests/init.sh: Compare exit code in loop against 9, not 2.
28351         Patch by Bruno Haible.
28352         Make the two tests more similar by adding an empty "then" clause.
28353         Add comments.
28354
28355         init.sh: avoid unnecessary shell re-exec
28356         * tests/init.sh: Improve the re-exec-required check to first test the
28357         current shell.  If it passes the test, do not search for a shell that
28358         does pass, and do not re-exec.  This test is particularly contorted to
28359         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28360         of $(...) evokes a syntax error and causes immediate shell exit with
28361         status 2.  Bruno Haible reported that the re-exec made it impossible
28362         to single-step through any init.sh-using script.
28363
28364 2010-05-16  Bruno Haible  <bruno@clisp.org>
28365
28366         Fix collision between gnulib's and libintl's printf replacements.
28367         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28368         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28369         (printf): When using GNU C, map the __printf__ function to rpl_printf
28370         via __asm__. When not using GNU C, define rpl_printf instead of
28371         __printf__.
28372         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28373         commit.
28374         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28375         commit.
28376         * m4/asm-underscore.m4: New file.
28377         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28378         * modules/stdio (Files): Add m4/asm-underscore.m4.
28379         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28380         Reported by Ben Pfaff.
28381
28382 2010-05-16  Bruno Haible  <bruno@clisp.org>
28383
28384         verify: Avoid skipping the test on openSUSE 11.0.
28385         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28386
28387 2010-05-13  Bruno Haible  <bruno@clisp.org>
28388
28389         Avoid useless warnings from G++.
28390         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28391         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28392         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28393
28394 2010-05-11  Jim Meyering  <meyering@redhat.com>
28395
28396         maint.mk: tweak preceding change
28397         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28398         regexps tighter by anchoring at EOL, and make the new group "shy"
28399         for slightly decreased overhead.
28400
28401 2010-05-11  Eric Blake  <eblake@redhat.com>
28402
28403         maint.mk: gnulib doesn't guarantee NSIG
28404         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28405
28406 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28407
28408         test-pwrite.c: Remove unused variable declaration.
28409         * tests/test-pwrite.c (main): Remove read_buf declaration.
28410
28411         Remove useless test-pwrite.sh file.
28412         * tests/test-pwrite.sh: Delete file.
28413         * modules/pwrite-tests: Remove references.
28414         Reported by Bruno Haible.
28415
28416 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28417
28418         init.sh: fix a typo
28419         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28420
28421 2010-05-10  Jim Meyering  <meyering@redhat.com>
28422
28423         maint.mk: avoid using a temporary file in the always-defined-macros check
28424         * top/maint.mk (.re-defmac): Remove rule.
28425         (gl_trap_): Remove definition.
28426         (sc_prohibit_always-defined_macros): Rewrite not to create and
28427         depend on a temporary file.  Instead, depend on GNU grep's ability
28428         to read a list of regular expressions from stdin when given "-f -".
28429
28430 2010-05-09  Bruno Haible  <bruno@clisp.org>
28431
28432         Update to GNU gettext 0.18, part 1.
28433         * m4/gettext.m4: Update to GNU gettext 0.18.
28434         * m4/intl.m4: Likewise.
28435         * m4/po.m4: Likewise.
28436         * modules/gettext (Files): Add m4/fcntl-o.m4.
28437         (configure.ac): Require gettext infrastructure from version 0.18.
28438
28439 2010-05-09  Jim Meyering  <meyering@redhat.com>
28440
28441         init.sh: enable MALLOC_PERTURB_
28442         * tests/init.sh: Enable glibc's malloc-perturbing option.
28443
28444         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28445         With my recent change in init.sh from the two-line form:
28446             -#   : ${srcdir=.}
28447             -#   . "$srcdir/init.sh"; path_prepend_ .
28448             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28449         I noticed that using the one-line form would cause this test
28450         to fail with a false-positive, or to stop working altogether,
28451         depending on whether help-version changed or all the tests did.
28452         * top/maint.mk (_hv_regex): Remove this definition.
28453         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28454         (_hv_regex_strong): Use a stronger regex to check for conformance.
28455         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28456         Give a separate diagnostic for lack of conforming use.
28457
28458         maint.mk: prohibit definition of symbols defined by gnulib
28459         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28460         definition of symbols defined by gnulib.
28461
28462 2010-05-09  Bruno Haible  <bruno@clisp.org>
28463
28464         acl: Avoid test failure on Cygwin-hosted mingw.
28465         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28466
28467 2010-05-09  Bruno Haible  <bruno@clisp.org>
28468
28469         error: Use system's fcntl function.
28470         * lib/error.c (fcntl): Undefine.
28471
28472 2010-05-09  Jim Meyering  <meyering@redhat.com>
28473
28474         verify: adjust formatting to be more consistent
28475         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28476         argument-list '('s, and after one comma.
28477
28478 2010-05-09  Bruno Haible  <bruno@clisp.org>
28479
28480         error: More reliable output on mingw.
28481         * lib/error.c: Include <windows.h>.
28482         (is_open): New function.
28483         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28484         defined.
28485
28486 2010-05-09  Bruno Haible  <bruno@clisp.org>
28487
28488         vasnprintf: Fix syntax errors in libintl build on mingw.
28489         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28490         pad_ourselves and prec_ourselves after use.
28491
28492 2010-05-08  Bruno Haible  <bruno@clisp.org>
28493
28494         * lib/config.charset: Update comments for Cygwin 1.7.
28495         * lib/localcharset.c: Likewise.
28496
28497 2010-05-07  Jim Meyering  <meyering@redhat.com>
28498
28499         init.sh: improve comments
28500         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28501         . "${srcdir=.}/init.sh"; path_prepend_ .
28502         Add a note about path_prepend_ and the alternative of using
28503         TESTS_ENVIRONMENT.
28504
28505 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28506
28507         exclude: Unescape hashed patterns in wildcard mode.
28508         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28509         to the hash list.
28510         * tests/test-exclude8.sh: New test case.
28511         * modules/exclude-tests: Add new test.
28512
28513 2010-05-05  Eric Blake  <eblake@redhat.com>
28514
28515         verify: automate tests
28516         * modules/verify-tests: New module.
28517         * tests/test-verify.sh: New file.
28518         * tests/test-verify.c: Guard each negative test with a unique id.
28519         Also avoid warning about unused left hand of comma expressions.
28520
28521 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28522
28523         Further improvements to verify.h, suggested by Eric Blake.
28524         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28525         the GL_* versions, to avoid collision with OpenGL.
28526         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28527         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28528         than testing merely whether it's defined.
28529
28530         Modify verify.h to pacify gcc -Wredundant_decls.
28531         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28532         These use the prefix "GL_" since they're likely to be useful elsewhere.
28533         We may need to break them out into a different .h file.
28534         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28535         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28536         of verify_function__.
28537
28538 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28539
28540         Tests for module pwrite.
28541         * modules/pwrite-tests: New file.
28542         * tests/test-pwrite.sh: New file.
28543         * tests/test-pwrite.c: New file.
28544
28545         New module pwrite.
28546         * lib/unistd.in.h (pwrite): New declaration.
28547         * lib/pwrite.c: New file, from glibc with modifications.
28548         * m4/pwrite.m4: New file.
28549         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28550         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28551         REPLACE_PWRITE.
28552         * modules/pwrite: New file.
28553         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28554         REPLACE_PWRITE.
28555         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28556         * doc/posix-functions/pwrite.texi: Mention the new module.
28557
28558 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28559
28560         pread: Update documentation.
28561         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28562
28563 2010-05-04  Eric Blake  <eblake@redhat.com>
28564
28565         docs: update cygwin progress
28566         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28567         this bug.
28568         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28569         Added in cygwin 1.7.2.
28570         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28571         Likewise.
28572         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28573         Likewise.
28574         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28575         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28576         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28577         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28578         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28579         Mention nproc module.
28580         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28581         bug in cygwin 1.7.5 addition.
28582         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28583         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28584         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28585         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28586         1.7.5.
28587         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28588         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28589         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28590         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28591         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28592         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28593         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28594         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28595         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28596         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28597         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28598         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28599         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28600         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28601         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28602         Likewise.
28603         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28604         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28605         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28606         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28607         Likewise.
28608         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28609         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28610         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28611         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28612         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28613         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28614         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28615         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28616         Likewise.
28617         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28618         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28619         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28620         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28621         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28622         Likewise.
28623         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28624         Likewise.
28625         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28626         Likewise.
28627         * doc/glibc-functions/xdrrec_endofrecord.texi
28628         (xdrrec_endofrecord): Likewise.
28629         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28630         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28631         Likewise.
28632         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28633         Likewise.
28634
28635 2010-05-04  Jim Meyering  <meyering@redhat.com>
28636
28637         gendocs.sh: make its "-s FILE" option more useful
28638         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28639         $PACKAGE to reflect the probably-different basename of "FILE".
28640
28641 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28642
28643         bootstrap: don't ignore download_po_files failure
28644         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28645         failure.
28646
28647 2010-05-03  Jim Meyering  <meyering@redhat.com>
28648
28649         maint.mk: allow to pass options to gendocs.sh
28650         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28651         (gendocs_options_): New overridable variable.
28652
28653         gnu-web-doc-update: don't ignore configure or build failure
28654         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28655
28656         announce-gen: backslash-escape '@'s in --help output
28657         * build-aux/announce-gen: Fix syntax errors.
28658
28659         maint.mk, announce-gen: allow project-specific announcement mail headers
28660         * top/maint.mk (translation_project_): Define default.
28661         (announcement_Cc_, announcement_mail_headers_): Likewise.
28662         (announcement): Invoke announce-gen with new --mail-headers option.
28663         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28664
28665         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28666         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28667         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28668         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28669         line in the "err2" output file when running "make check" in verbose
28670         mode (i.e., with set -x enabled).
28671
28672 2010-05-03  Bruno Haible  <bruno@clisp.org>
28673
28674         wctob: Fix for weird platforms.
28675         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28676         argument value.
28677
28678 2010-05-03  Jim Meyering  <meyering@redhat.com>
28679
28680         maint.mk: prohibit unwarranted use of <strings.h>
28681         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28682         strings.h in a file that does not also use strcasecmp, strncasecmp,
28683         ffs or ffsll.
28684
28685         maint.mk: remove obsolete comments
28686         * top/maint.mk: Remove stale, commented-out rules.
28687
28688 2010-05-02  Bruno Haible  <bruno@clisp.org>
28689
28690         wcwidth: Declare also when it's aliased.
28691         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28692         macro.
28693
28694 2010-05-02  Bruno Haible  <bruno@clisp.org>
28695
28696         Fix regression from 2010-04-25.
28697         * gnulib-tool (func_modules_transitive_closure): Check the status of
28698         all modules, not only of the tests that are of the form foo-tests where
28699         foo is a module.
28700
28701 2010-05-02  Bruno Haible  <bruno@clisp.org>
28702
28703         wctob: Work around nasty Cygwin 1.7.2 bug.
28704         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28705         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28706
28707 2010-05-01  Bruno Haible  <bruno@clisp.org>
28708
28709         fpurge: Sharper test.
28710         * tests/test-fpurge.c (main): Add one more ftell check.
28711         * modules/fpurge-tests (Depends-on): Add ftell.
28712         Suggested by Eric Blake.
28713
28714 2010-05-01  Bruno Haible  <bruno@clisp.org>
28715
28716         ftello: Another test.
28717         * tests/test-ftello3.c: New file.
28718         * modules/ftello-tests (Files): Add it.
28719         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28720         MOSTLYCLEANFILES.
28721
28722         ftell: Another test.
28723         * tests/test-ftell3.c: New file.
28724         * modules/ftell-tests (Files): Add it.
28725         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28726         MOSTLYCLEANFILES.
28727
28728 2010-05-01  Bruno Haible  <bruno@clisp.org>
28729
28730         ftell, ftello: Work around Solaris bug.
28731         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28732         * lib/ftello.c: Include stdio-impl.h.
28733         (ftello): On Solaris, when _IOWRT is set, compute the result without
28734         looking at _IOREAD.
28735         * modules/ftello (Files): Add lib/stdio-impl.h.
28736         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28737         * doc/posix-functions/ftello.texi: Likewise.
28738         Reported by Eric Blake.
28739
28740 2010-05-01  Bruno Haible  <bruno@clisp.org>
28741
28742         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28743         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28744         the _IOWRT flag is also set.
28745
28746 2010-05-01  Bruno Haible  <bruno@clisp.org>
28747
28748         Fix doc about a HP-UX stdio bug.
28749         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28750         * doc/posix-functions/ftello.texi: Likewise.
28751
28752 2010-05-01  Bruno Haible  <bruno@clisp.org>
28753
28754         lseek test: Fix failure on Solaris.
28755         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28756         output.
28757
28758 2010-04-30  Jim Meyering  <meyering@redhat.com>
28759
28760         bootstrap: don't ignore failure to generate po*/Makevars
28761         * build-aux/bootstrap (with_gettext): Don't ignore failure
28762         to create po/Makevars or runtime-po/Makevars.
28763
28764 2010-04-29  Eric Blake  <eblake@redhat.com>
28765
28766         headers: relax license to LGPLv2+
28767         * modules/fcntl-h (License): Relax license.
28768         * modules/getopt-posix (License): Likewise.
28769         * modules/locale (License): Likewise.
28770         * modules/math (License): Likewise.
28771         * modules/pty (License): Likewise.
28772         * modules/sched (License): Likewise.
28773         * modules/search (License): Likewise.
28774         * modules/spawn (License): Likewise.
28775         * modules/stdarg (License): Likewise.
28776         * modules/sysexits (License): Likewise.
28777
28778 2010-04-29  Jim Meyering  <meyering@redhat.com>
28779
28780         inttypes: relax license to LGPLv2+
28781         * modules/inttypes (License): Relax license.
28782
28783 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28784
28785         * top/maint.mk (indent): Run twice to produce idempotent results.
28786
28787 2010-04-28  Bruno Haible  <bruno@clisp.org>
28788
28789         getdate: Generate getdate.c in the source directory.
28790         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28791         MOSTLYCLEANFILES.
28792         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28793
28794 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28795
28796         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28797         is not declared as a const *; avoid warnings in that case.
28798
28799 2010-04-28  Eric Blake  <eblake@redhat.com>
28800
28801         canonicalize-lgpl: avoid compiler warning
28802         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28803         declaration' / 'extraneous semicolon' warning with some compilers.
28804         Reported by Andreas Gruenbacher.
28805
28806 2010-04-28  Jim Meyering  <meyering@redhat.com>
28807
28808         init.sh: ensure a more reliable exit status when exiting via trap
28809         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28810         Inspired by patches from Dmitry V. Levin.
28811         Also trap on signal 3 (SIGQUIT).
28812
28813 2010-04-27  Bruno Haible  <bruno@clisp.org>
28814
28815         Update doc about utimes().
28816         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28817         'utimens' module.
28818         Reported by Andreas Gruenbacher <agruen@suse.de>.
28819
28820 2010-04-27  Eric Blake  <eblake@redhat.com>
28821
28822         full-read, full-write: relax license
28823         * modules/full-read (License): Drop to LGPLv2+.
28824         * modules/full-write (License): Likewise.
28825         * modules/safe-read (License): Likewise.
28826         * modules/safe-write (License): Likewise.
28827
28828         pthread: mention library for linking
28829         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28830
28831 2010-04-27  Jim Meyering  <meyering@redhat.com>
28832
28833         maint.mk: fix a bug introduced in last change
28834         * top/maint.mk (gl_assured_headers_): Now that all names are on
28835         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28836         is not anchored to end of word, it should be adequate.
28837
28838         maint.mk: avoid side-effect in latest syntax-check
28839         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28840         to run commands via $(shell...), and hence to incur cost only when
28841         the new rule is actually run.
28842
28843         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28844         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28845         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28846         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28847         (gl_assured_headers_, az_, AZ_): Define.
28848         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28849
28850 2010-04-26  Jim Meyering  <jim@meyering.net>
28851             Bruno Haible  <bruno@clisp.org>
28852
28853         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28854         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28855         Prompted by an exchange with Gilles Espinasse.
28856
28857 2010-04-26  Jim Meyering  <meyering@redhat.com>
28858
28859         git-version-gen: aesthetic tweak
28860         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28861         so that the command remains on a single line.
28862
28863 2010-04-26  Eric Blake  <eblake@redhat.com>
28864
28865         git-version-gen: allow use on EBCDIC hosts
28866         * build-aux/git-version-gen (dirty): Use literal rather than tying
28867         ourselves to ascii.
28868         Reported by Steve Goetze.
28869
28870 2010-04-25  Bruno Haible  <bruno@clisp.org>
28871
28872         netdb: Add support for GNULIB_POSIXCHECK.
28873         * lib/netdb.in.h: Include warn-on-use.h.
28874         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28875         functions are used when GNULIB_POSIXCHECK is defined and the
28876         getaddrinfo module is not in use.
28877         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28878         freeaddrinfo, gai_strerror, getnameinfo are declared.
28879         * modules/netdb (Depends-on): Add warn-on-use.
28880         (Makefile.am): Include warn-on-use.h in netdb.h.
28881
28882 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28883
28884         build: avoid "make check" failure without .git/ directory
28885         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28886         there is no .git/ directory.
28887
28888 2010-04-25  Bruno Haible  <bruno@clisp.org>
28889
28890         ptsname: Fix misuse of ttyname_r.
28891         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28892         of errno.
28893
28894 2010-04-25  Bruno Haible  <bruno@clisp.org>
28895
28896         ttyname_r: Make it work on Solaris 10.
28897         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28898         if the system function has the POSIX declaration. Test whether the
28899         function fails if the buffer is less than 128 bytes large.
28900         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28901         system's ttyname_r function. Provide a reasonably large buffer.
28902         * modules/ttyname_r (Depends-on): Add extensions.
28903         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28904
28905 2010-04-25  Bruno Haible  <bruno@clisp.org>
28906
28907         Use the 'extensions' module for some more functions on Solaris.
28908         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28909         module.
28910         * doc/posix-functions/ctime_r.texi: Likewise.
28911         * doc/posix-functions/getgrgid_r.texi: Likewise.
28912         * doc/posix-functions/getgrnam_r.texi: Likewise.
28913         * doc/posix-functions/getpwnam_r.texi: Likewise.
28914         * doc/posix-functions/getpwuid_r.texi: Likewise.
28915         * doc/posix-functions/readdir_r.texi: Likewise.
28916         * doc/posix-functions/sigwait.texi: Likewise.
28917         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28918         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28919
28920 2010-04-25  Bruno Haible  <bruno@clisp.org>
28921
28922         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28923         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28924         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28925         * lib/ttyname_r.c: Include <limits.h>.
28926         (ttyname_r): Define using the system's ttyname_r function, if it exists
28927         and not on Solaris.
28928         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28929         set.
28930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28931         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28932         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28933         Reported by Simon Josefsson.
28934
28935 2010-04-25  Bruno Haible  <bruno@clisp.org>
28936
28937         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28938         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28939         * doc/posix-functions/ctime_r.texi: Likewise.
28940         * doc/posix-functions/getgrgid_r.texi: Likewise.
28941         * doc/posix-functions/getgrnam_r.texi: Likewise.
28942         * doc/posix-functions/getlogin_r.texi: Likewise.
28943         * doc/posix-functions/getpwnam_r.texi: Likewise.
28944         * doc/posix-functions/getpwuid_r.texi: Likewise.
28945         * doc/posix-functions/readdir_r.texi: Likewise.
28946         * doc/posix-functions/sigwait.texi: Likewise.
28947         * doc/posix-functions/ttyname_r.texi: Likewise.
28948         Reported by Simon Josefsson.
28949
28950 2010-04-25  Bruno Haible  <bruno@clisp.org>
28951
28952         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28953         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28954         also to --create-testdir.
28955         (func_acceptable): Don't consider the status of *-tests modules here.
28956         (func_modules_transitive_closure): Consider it here, before including a
28957         test module.
28958         (func_import, func_create_testdir): Set inc_all_direct_tests,
28959         inc_all_indirect_tests.
28960         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28961         --create-testdir and --create-megatestdir.
28962
28963 2010-04-25  Bruno Haible  <bruno@clisp.org>
28964
28965         gnulib-tool: Add --without-*-tests options.
28966         * gnulib-tool (func_usage): Document the --without-*-tests options.
28967         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28968         excl_unportable_tests): New variables.
28969         Fail if they are specified with --import or --update.
28970         (func_acceptable): Respect the excl_*_tests variables.
28971         (func_import): Set the excl_*_tests variables to empty.
28972
28973 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28974             Bruno Haible  <bruno@clisp.org>
28975
28976         Work around a MacOS X 10.4 bug with openpty.
28977         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28978         * tests/test-openpty.c (main): Close the master side explicitly.
28979
28980 2010-04-25  Bruno Haible  <bruno@clisp.org>
28981
28982         strnlen: Fix a C++ test error on MacOS X and Solaris.
28983         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28984         the function is not declared.
28985         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28986         Simon Josefsson.
28987
28988 2010-04-24  Bruno Haible  <bruno@clisp.org>
28989
28990         Avoid a gcc warning.
28991         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28992         of correct type for %08lx directive.
28993         Reported by Eric Blake.
28994
28995 2010-04-24  Bruno Haible  <bruno@clisp.org>
28996
28997         vasnprintf: Correct errno value in case of out-of-memory.
28998         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28999         or sprintf. Use the errno value from SNPRINTF or sprintf.
29000         Reported by Ian Beckwith <ianb@erislabs.net>.
29001
29002 2010-04-24  Bruno Haible  <bruno@clisp.org>
29003
29004         ansi-c++-opt: Find correct compiler when cross-compiling.
29005         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29006         AC_CHECK_PROGS.
29007         Reported by Simon Josefsson.
29008
29009 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29010
29011         vc-list-files: Add support for subversion
29012         * build-aux/vc-list-files: Use "svn list" to generate the list of
29013         files controlled by subversion.
29014
29015 2010-04-23  Jim Meyering  <meyering@redhat.com>
29016
29017         vc-list-files tests: convert to use init.sh
29018         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29019         path_prepend_.
29020         Use Exit, not exit.
29021         Use skip_ rather than open coding it.
29022         Remove trap set-up and compare definitions.
29023         * tests/test-vc-list-files-git.sh: Likewise.
29024         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29025
29026 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29027
29028         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29029         backup files.
29030
29031 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29032
29033         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29034
29035 2010-04-20  Eric Blake  <eblake@redhat.com>
29036
29037         tests: be robust to ignored SIGPIPE
29038         * tests/test-select-in.sh: Consume all output.
29039         * tests/test-lseek.sh: Check correct exit status, while avoiding
29040         EPIPE.
29041
29042 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29043             Bruno Haible  <bruno@clisp.org>
29044
29045         visibility: Don't use -fvisibility if it leads to a warning.
29046         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29047         yes, don't pretend that visibility works if it leads to a warning.
29048         Reported by Mike Gran <spk121@yahoo.com>.
29049
29050 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29051
29052         * build-aux/bootstrap: Use "git -h" for testing for supported options
29053         instead of "git --help".  The short-form option only shows a summary,
29054         and doesn't layout the full man page.  Grep for the full option name
29055         in the summary, too.
29056
29057 2010-04-19  Bruno Haible  <bruno@clisp.org>
29058
29059         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29060         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29061         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29062         mention of RELOCATABLE_STRIP.
29063         Reported by Sylvain Beucler <beuc@beuc.net>.
29064
29065 2010-04-19  Bruno Haible  <bruno@clisp.org>
29066
29067         * lib/diffseq.h: Fix typo in comment.
29068         Reported by Eric Blake.
29069
29070 2010-04-19  Bruno Haible  <bruno@clisp.org>
29071
29072         ioctl: Move autoconf macro to a .m4 file.
29073         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29074         * modules/ioctl (Files): Add it.
29075         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29076         Reported by Ian Beckwith <ianb@erislabs.net>.
29077
29078 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29079             Bruno Haible  <bruno@clisp.org>
29080
29081         diffseq: Accommodate use-case with abstract arrays.
29082         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29083         is not defined.
29084         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29085         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29086
29087 2010-04-18  Bruno Haible  <bruno@clisp.org>
29088
29089         * doc/posix-headers/stdbool.texi: More precise wording.
29090
29091 2010-04-17  Jim Meyering  <meyering@redhat.com>
29092
29093         maint.mk: use gnu-style indentation in an embedded perl script
29094         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29095         Rename variable: s/two/last_two_bytes/
29096
29097 2010-04-16  Eric Blake  <eblake@redhat.com>
29098
29099         test-stdbool: skip test that fails with Solaris CC
29100         * tests/test-stdbool.c (f): Skip test that causes compilation
29101         error under buggy C++ compiler.
29102         * lib/stdbool.in.h: Document the limitation.
29103         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29104
29105         setenv: allow compilation with C++
29106         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29107         register keyword.
29108
29109         stdint: allow test to pass with C++
29110         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29111
29112         getopt: allow compilation with C++
29113         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29114         struct.
29115         * lib/getopt.c (_getopt_internal_r): Use correct type.
29116         Reported by Dagobert Michelson, via Joel E. Denny.
29117
29118 2010-04-16  Bruno Haible  <bruno@clisp.org>
29119
29120         Override netdb.h always.
29121         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29122         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29123         Reported by Ludovic Courtès <ludo@gnu.org>.
29124
29125 2010-04-15  Bruno Haible  <bruno@clisp.org>
29126
29127         openpty: Fix mistake from 2010-03-21.
29128         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29129         Reported by Simon Josefsson.
29130
29131 2010-04-15  Eric Blake  <eblake@redhat.com>
29132
29133         test-forkpty: fix expected signature
29134         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29135         Reported by Simon Josefsson.
29136
29137 2010-04-15  Jim Meyering  <meyering@redhat.com>
29138
29139         maint.mk: texinfo_suffix_re_: correct the default regexp
29140         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29141
29142         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29143         make it configurable via texinfo_suffix_re_.
29144
29145 2010-04-14  Eric Blake  <eblake@redhat.com>
29146
29147         strtok_r: relax license to LGPLv2+
29148         * modules/strtok_r (License): Relax license.
29149         Reported by Matthias Bolte.
29150
29151 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29152
29153         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29154         version 1.4.4 by default instead of requiring the libgcrypt
29155         version used during build.  This makes it possible to use the
29156         application with older but still binary compatible libgcrypt
29157         versions.
29158
29159 2010-04-13  Eric Blake  <eblake@redhat.com>
29160
29161         getopt-gnu: match recent glibc fixes and posix ruling
29162         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29163         '+' handling, when requesting extensions.
29164         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29165         'W;' handling.
29166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29167         * doc/posix-functions/getopt.texi (getopt): Document this.
29168         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29169         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29170         Likewise.
29171
29172         getopt: merge bug fixes from glibc
29173         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29174         diagnostics.  Honor '+:' correctly.  Reject ';'.
29175
29176         getopt-posix: detect MacOS bug
29177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29178         optind when missing a required argument.
29179         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29180         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29181         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29182         Likewise.
29183
29184         getopt-posix: avoid spurious failure on Solaris
29185         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29186         an indicator that setting optind=1 is sufficient for reset.
29187
29188         getopt-posix: avoid spurious failure on FreeBSD
29189         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29190         in POSIX mode, since the m4 test uses it.
29191
29192         gnulib-tool: silence warning on BSD sh
29193         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29194
29195 2010-04-13  Jim Meyering  <meyering@redhat.com>
29196
29197         doc: users.txt: GNU patch now uses gnulib
29198         * users.txt: Add patch.
29199
29200 2010-04-12  Jim Meyering  <meyering@redhat.com>
29201
29202         maint.mk: generate more concise timing data for syntax-check rules
29203         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29204         " done" from each line that reports a syntax-check test duration.
29205
29206 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29207
29208         git-version-gen: use "git update-index..." rather than "git status"
29209         * build-aux/git-version-gen: Use git update-index --refresh, not
29210         "git status".  With some versions of git, "git status" would fail
29211         to update the index and result in an unwarranted "-dirty" suffix.
29212
29213 2010-04-11  Jim Meyering  <meyering@redhat.com>
29214
29215         openat: correct formatting (no semantic change)
29216         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29217         Suggested by Bruno Haible.
29218
29219 2010-04-11  Bruno Haible  <bruno@clisp.org>
29220
29221         Stricter declaration checking in testdirs.
29222         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29223         If for_tests is true, augment AM_CPPFLAGS to define
29224         GNULIB_STRICT_CHECKING.
29225         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29226         GNULIB_STRICT_CHECKING is defined, verify that the function is
29227         declared.
29228
29229 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29230             Bruno Haible  <bruno@clisp.org>
29231
29232         libunistring: Improve configure output.
29233         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29234         Don't say "consider installing GNU libunistring" when checking again
29235         with libiconv.
29236
29237 2010-04-11  Bruno Haible  <bruno@clisp.org>
29238
29239         libunistring: Correct value of $LTLIBUNISTRING.
29240         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29241         correct the value of $LTLIBUNISTRING.
29242
29243 2010-04-11  Bruno Haible  <bruno@clisp.org>
29244
29245         havelib: Add static libraries to LIBS in the right order.
29246         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29247         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29248
29249 2010-04-11  Bruno Haible  <bruno@clisp.org>
29250
29251         libunistring: Detect libunistring also when it depends on libiconv.
29252         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29253         the second AC_LIB_HAVE_LINKFLAGS invocation.
29254
29255 2010-04-11  James Youngman  <jay@gnu.org>
29256
29257         close-stream: declare local scalars to be "const"
29258         * lib/close-stream.c (close_stream): Make boolean variables const
29259         to document the fact that we set but do not change them.
29260
29261 2010-04-11  Bruno Haible  <bruno@clisp.org>
29262
29263         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29264
29265 2010-04-11  Jim Meyering  <meyering@redhat.com>
29266
29267         maint.mk: don't include dist-check.mk
29268         * top/maint.mk: Remove bogus include directive.
29269
29270         maint.mk: improve empty-line-at-EOF check
29271         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29272         solution, rather than tail+Perl-based one.  The latter would read
29273         a few kilobytes from the end of each file, and did not handle empty
29274         files properly.
29275
29276         maint.mk: print the elapsed time for each syntax-check rule
29277         * top/maint.mk (sc_m_rules_): Save start time in a file.
29278         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29279         (local-check): Interpose the .z rules
29280
29281 2010-04-11  Jim Meyering  <meyering@redhat.com>
29282
29283         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29284         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29285         empty file with one that ends in an empty line.
29286
29287 2010-04-10  Bruno Haible  <bruno@clisp.org>
29288
29289         mkdir: Make it work on mingw64.
29290         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29291         * lib/mkdir.c: Update comment.
29292         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29293
29294 2010-04-10  Bruno Haible  <bruno@clisp.org>
29295
29296         Don't override improved macro from newer autoconf.
29297         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29298         autoconf >= 2.62.
29299         Reported by Joel E. Denny <jdenny@clemson.edu>.
29300
29301 2010-04-10  Jim Meyering  <meyering@redhat.com>
29302
29303         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29304         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29305
29306         maint.mk: correct a diagnostic
29307         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29308         in diagnostic; now use $prohibit.
29309
29310 2010-04-10  Bruno Haible  <address@hidden>
29311
29312         fchownat: Fix a C++ test error on Solaris 8.
29313         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29314         the function does not exist.
29315
29316 2010-04-10  Bruno Haible  <bruno@clisp.org>
29317
29318         vasnprintf: Add more tests.
29319         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29320         (test_function): Test converting an invalid wide string.
29321
29322         vasnprintf: Correct handling of unconvertible wide string arguments.
29323         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29324         VASNPRINTF.
29325         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29326         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29327         smaller than the expected maximum need for the directive. Set errno to
29328         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29329         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29330         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29331         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29332         * modules/vasnprintf (Files): Add m4/printf.m4.
29333         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29334
29335 2010-04-10  Bruno Haible  <bruno@clisp.org>
29336
29337         vasnprintf: Fix crash in %ls directive.
29338         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29339         string is passed as argument to %ls, with no precision and no width.
29340         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29341
29342 2010-04-10  Bruno Haible  <bruno@clisp.org>
29343
29344         vasnprintf: Fix multiple test failures on mingw.
29345         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29346         _snprintf, or snwprintf, not _snwprintf.
29347
29348 2010-04-10  Bruno Haible  <bruno@clisp.org>
29349
29350         write: Fix a C++ test error on mingw.
29351         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29352
29353 2010-04-10  Bruno Haible  <bruno@clisp.org>
29354
29355         vasnprintf test: Reduce code duplication.
29356         * tests/test-vasnprintf.c (test_function): New function, extracted from
29357         test_vasnprintf.
29358         (test_vasnprintf, test_asnprintf): Invoke it.
29359
29360 2010-04-10  Bruno Haible  <bruno@clisp.org>
29361
29362         strnlen: Fix warning in C++ mode on MacOS X.
29363         * lib/string.in.h (strnlen): Use the modern idiom.
29364         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29365         defining strnlen as a macro already in <config.h>.
29366         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29367         REPLACE_STRNLEN.
29368         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29369         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29370
29371 2010-04-08  James Youngman  <jay@gnu.org>
29372
29373         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29374         the example.
29375
29376 2010-04-09  Jim Meyering  <meyering@redhat.com>
29377
29378         maint.mk: print better diagnostic when there is no $(_hv_file)
29379         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29380         announce that when $(_hv_file) (aka help-version) does not exist.
29381
29382         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29383         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29384         not try to interpret its random input bytes.  Jarno Rajahalme reported
29385         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29386         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29387         (mktempd_): Likewise, just in case.
29388
29389         ftruncate: add two years to projected module removal date: 2012
29390         * m4/ftruncate.m4: Adjust comments.
29391
29392         ftruncate: mark module as obsolete; even MinGW provides it, now
29393         * modules/ftruncate (Status): Obsolete.
29394         (Notice): Say that.
29395         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29396         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29397
29398 2010-04-08  Bruno Haible  <bruno@clisp.org>
29399
29400         Fix side effects from tests-related modules.
29401         * modules/dprintf-posix (Comment): New section.
29402         * modules/fprintf-posix (Comment): Likewise.
29403         * modules/obstack-printf-posix (Comment): Likewise.
29404         * modules/printf-posix (Comment): Likewise.
29405         * modules/snprintf-posix (Comment): Likewise.
29406         * modules/sprintf-posix (Comment): Likewise.
29407         * modules/vasnprintf-posix (Comment): Likewise.
29408         * modules/vasprintf-posix (Comment): Likewise.
29409         * modules/vdprintf-posix (Comment): Likewise.
29410         * modules/vfprintf-posix (Comment): Likewise.
29411         * modules/vprintf-posix (Comment): Likewise.
29412         * modules/vsnprintf-posix (Comment): Likewise.
29413         * modules/vsprintf-posix (Comment): Likewise.
29414         * modules/xprintf-posix (Comment): Likewise.
29415         * modules/xvasprintf-posix (Comment): Likewise.
29416         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29417         * modules/floorf-tests (Depends-on): Likewise.
29418         * modules/round-tests (Depends-on): Likewise.
29419         * modules/roundf-tests (Depends-on): Likewise.
29420         * modules/trunc-tests (Depends-on): Likewise.
29421         * modules/truncf-tests (Depends-on): Likewise.
29422         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29423         'fprintf-posix' module is not present.
29424         * tests/test-floorf2.c (check): Likewise.
29425         * tests/test-trunc2.c (check): Likewise.
29426         * tests/test-truncf2.c (check): Likewise.
29427         * tests/test-round2.c (equal): Likewise.
29428         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29429
29430 2010-04-07  Karl Berry  <karl@gnu.org>
29431
29432         * config/srclist.txt,
29433         * config/srclistvars.sh,
29434         * config/srclist-update: doc fixes.
29435
29436 2010-04-07  Jim Meyering  <meyering@redhat.com>
29437
29438         maint.mk: add a PATH crosschecking syntax-check rule
29439         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29440         Useful if you use a test like the one in help-version (coreutils,
29441         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29442         printed by prog --version.
29443
29444 2010-04-06  Bruno Haible  <bruno@clisp.org>
29445
29446         Fix link error on mingw.
29447         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29448         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29449
29450 2010-04-06  Bruno Haible  <bruno@clisp.org>
29451
29452         Assume rmdir exists.
29453         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29454
29455 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29456
29457         doc: update users.txt
29458         * users.txt: Add gcal.
29459
29460 2010-04-06  Jim Meyering  <meyering@redhat.com>
29461
29462         init.sh: simply unset TMPDIR rather than risking env -i
29463         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29464         although it probably works fine on all Unix-based systems, some
29465         systems (Cygwin?) cannot tolerate a totally cleared environment.
29466         Suggestion from Eric Blake.
29467
29468 2010-04-06  Jim Meyering  <meyering@redhat.com>
29469
29470         init.sh: portability fix: use env's POSIX-specified -i option not -u
29471         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29472         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29473
29474 2010-04-05  Bruno Haible  <bruno@clisp.org>
29475
29476         btowc: Work around Cygwin 1.7.2 bug.
29477         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29478         does not map NUL to 0.
29479         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29480
29481 2010-04-05  Bruno Haible  <bruno@clisp.org>
29482
29483         Make the multithread modules work on Cygwin 1.7.2.
29484         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29485         imported symbols can be declared weak, so that it returns "no" on
29486         Cygwin 1.7.2.
29487
29488 2010-04-05  Bruno Haible  <bruno@clisp.org>
29489
29490         Use the module 'strncat'.
29491         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29492
29493         Tests for module 'strncat'.
29494         * modules/strncat-tests: New file.
29495         * tests/test-strncat.c: New file.
29496
29497         New module 'strncat'.
29498         * lib/string.in.h (strncat): New declaration.
29499         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29500         * m4/strncat.m4: New file, based on m4/memchr.m4.
29501         * modules/strncat: New file.
29502         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29503         is declared.
29504         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29505         REPLACE_STRNCAT.
29506         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29507         REPLACE_STRNCAT.
29508         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29509         module.
29510         * tests/test-string-c++.cc: Check signature of strncat.
29511
29512 2010-04-05  Jim Meyering  <meyering@redhat.com>
29513
29514         xstrtoumax-tests: convert to use init.sh
29515         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29516         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29517         Use Exit, not exit.
29518         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29519
29520         xstrtoimax-tests: convert to use init.sh
29521         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29522         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29523         Use Exit, not exit.
29524         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29525
29526 2010-04-05  Bruno Haible  <bruno@clisp.org>
29527
29528         sys_socket: Avoid #define replacements in C++ mode.
29529         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29530         warning to the function if possible, rather than #defining the symbol
29531         to a dysfunctional alias.
29532
29533 2010-04-05  Bruno Haible  <bruno@clisp.org>
29534
29535         fseeko: Fix C++ test error on mingw.
29536         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29537         gl_FUNC_FSEEKO.
29538         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29539         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29540         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29541         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29542
29543 2010-04-05  Bruno Haible  <bruno@clisp.org>
29544
29545         duplocale: Improve test output.
29546         * tests/test-duplocale.c (main): Print reason for skipped test.
29547
29548 2010-04-05  Bruno Haible  <bruno@clisp.org>
29549
29550         Assume rmdir exists.
29551         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29552         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29553
29554 2010-04-05  Bruno Haible  <bruno@clisp.org>
29555
29556         Fix link error on Solaris 8 with cc.
29557         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29558
29559 2010-04-05  Bruno Haible  <bruno@clisp.org>
29560
29561         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29562         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29563
29564 2010-04-05  Bruno Haible  <bruno@clisp.org>
29565
29566         vasprintf: Update documentation.
29567         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29568
29569 2010-04-05  Bruno Haible  <bruno@clisp.org>
29570
29571         ptsname: Improve test.
29572         * tests/test-ptsname.c (main): Also try the various master names of BSD
29573         systems.
29574
29575 2010-04-05  Bruno Haible  <bruno@clisp.org>
29576
29577         memchr: Avoid a possible C++ test error.
29578         * lib/string.in.h (memchr): Provide declaration if function is missing.
29579         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29580         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29582         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29583
29584 2010-04-05  Bruno Haible  <bruno@clisp.org>
29585
29586         strtok_r: Improve idiom.
29587         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29588         AC_LIBOBJ is used.
29589
29590 2010-04-05  Bruno Haible  <bruno@clisp.org>
29591
29592         strdup: Improve idiom.
29593         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29594         AC_LIBOBJ is used.
29595         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29596         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29597         when AC_LIBOBJ is used.
29598
29599 2010-04-05  Bruno Haible  <bruno@clisp.org>
29600
29601         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29602         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29603         don't set REPLACE_MBSINIT to 1.
29604         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29605         don't set REPLACE_MBRTOWC to 1.
29606         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29607         exist, don't set REPLACE_MBSRTOWCS to 1.
29608         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29609         exist, don't set REPLACE_MBSNRTOWCS to 1.
29610         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29611         don't set REPLACE_WCRTOMB to 1.
29612         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29613         exist, don't set REPLACE_WCSRTOMBS to 1.
29614         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29615         exist, don't set REPLACE_WCSNRTOMBS to 1.
29616
29617 2010-04-05  Bruno Haible  <bruno@clisp.org>
29618
29619         ldexpl: Improve idiom.
29620         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29621         make sure to set HAVE_DECL_LDEXPL to 0.
29622
29623 2010-04-05  Jim Meyering  <meyering@redhat.com>
29624
29625         xstrtol-tests: convert to use init.sh
29626         * modules/xstrtol-tests (Files): Add tests/init.sh.
29627         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29628         Use Exit, not exit.
29629         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29630
29631         atexit-tests: convert to use init.sh
29632         * modules/atexit-tests (Files): Add tests/init.sh.
29633         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29634         Use Exit, not exit.
29635         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29636
29637         init.sh: fix typo
29638         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29639
29640         init.sh: make it easier for a test script to write to the tty, ...
29641         when using automake's parallel-tests mode.
29642         * tests/init.sh (stderr_fileno_): Define overridable variable.
29643         (warn_): New function, to use it.
29644         (fail_, skip_, framework_failure_): Use warn_.
29645
29646 2010-04-04  Bruno Haible  <bruno@clisp.org>
29647
29648         btowc: Avoid warning.
29649         * lib/btowc.c: Include <stdlib.h>.
29650         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29651
29652 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29653             Bruno Haible  <bruno@clisp.org>
29654
29655         wchar: Port to NetBSD 1.5.
29656         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29657         * lib/wctype.in.h (WEOF): Likewise.
29658
29659 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29660             Bruno Haible  <bruno@clisp.org>
29661
29662         Port extended stdio to NetBSD 1.5.
29663         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29664         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29665         older.
29666
29667 2010-04-04  Bruno Haible  <bruno@clisp.org>
29668
29669         string: Remove unused substitution.
29670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29671         HAVE_DECL_STRERROR.
29672         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29673
29674 2010-04-04  Bruno Haible  <bruno@clisp.org>
29675
29676         strtod: Avoid a possible C++ test error.
29677         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29678         set REPLACE_STRTOD.
29679
29680 2010-04-04  Bruno Haible  <bruno@clisp.org>
29681
29682         strerror: Update documentation.
29683         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29684
29685 2010-04-04  Bruno Haible  <bruno@clisp.org>
29686
29687         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29688         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29689         _GL_CXXALIAS_SYS_CAST.
29690
29691 2010-04-04  Bruno Haible  <bruno@clisp.org>
29692
29693         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29694         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29695         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29696         REPLACE_FREXPL to 1.
29697         * doc/posix-functions/frexpl.texi: Update documentation.
29698
29699 2010-04-04  Bruno Haible  <bruno@clisp.org>
29700
29701         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29702         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29703
29704 2010-04-04  Bruno Haible  <bruno@clisp.org>
29705
29706         Implement nanosleep for native Windows.
29707         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29708
29709 2010-04-04  Bruno Haible  <bruno@clisp.org>
29710
29711         math: Fix some C++ test errors on Solaris 8.
29712         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29713
29714 2010-04-04  Bruno Haible  <bruno@clisp.org>
29715
29716         math: Fix some C++ test errors on Cygwin.
29717         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29718         truncl): Provide declaration if the system does not have it.
29719         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29720         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29721         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29722         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29723         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29724         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29725         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29726         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29727         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29728         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29729         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29730         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29731         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29732         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29733         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29734         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29736         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29737         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29738         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29739         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29740         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29741
29742 2010-04-04  Bruno Haible  <bruno@clisp.org>
29743
29744         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29745         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29746         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29747         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29748         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29749         * m4/isinf.m4 (gl_ISINF): Likewise.
29750         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29751
29752 2010-04-04  Bruno Haible  <bruno@clisp.org>
29753
29754         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29755         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29756
29757 2010-04-04  Bruno Haible  <bruno@clisp.org>
29758
29759         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29760         * modules/tmpfile (configure.ac): Update.
29761
29762         tmpfile: Fix C++ test error on mingw.
29763         * lib/stdio.in.h (tmpfile): New declaration.
29764         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29765         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29766         * modules/tmpfile (Depends-on): Add stdio.
29767         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29768         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29769         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29770         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29771         REPLACE_TMPFILE.
29772         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29773
29774 2010-04-04  Bruno Haible  <bruno@clisp.org>
29775
29776         ioctl: Fix C++ test error on mingw.
29777         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29778         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29779         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29780
29781 2010-04-03  Bruno Haible  <bruno@clisp.org>
29782
29783         wcwidth: Fix C++ test error on mingw.
29784         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29786         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29787
29788 2010-04-03  Bruno Haible  <bruno@clisp.org>
29789
29790         nanosleep: Fix C++ test error on mingw.
29791         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29792         * lib/time.in.h (nanosleep): Use modern idiom.
29793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29794         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29795         REPLACE_NANOSLEEP to 1.
29796         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29797         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29798
29799 2010-04-03  Bruno Haible  <bruno@clisp.org>
29800
29801         strptime: Fix C++ test error on mingw.
29802         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29803         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29804         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29805         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29806         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29807         not REPLACE_STRPTIME.
29808         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29809         REPLACE_STRPTIME.
29810
29811 2010-04-03  Bruno Haible  <bruno@clisp.org>
29812
29813         timegm: Fix C++ test error on mingw.
29814         * lib/time.in.h (timegm): Use modern idiom.
29815         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29816         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29817         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29818         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29819
29820 2010-04-03  Bruno Haible  <bruno@clisp.org>
29821
29822         timegm: Assume declaration if function exists.
29823         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29824         if it exists. Don't clobber ac_cv_func_timegm.
29825
29826 2010-04-03  Bruno Haible  <bruno@clisp.org>
29827
29828         time_r: Fix C++ test error on mingw.
29829         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29830         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29831         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29832         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29833         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29834
29835 2010-04-03  Bruno Haible  <bruno@clisp.org>
29836
29837         time_r: Minor updates.
29838         * modules/time_r (Description): Mention the provided functions.
29839         * lib/time_r.c: Don't include <string.h>.
29840         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29841         * doc/posix-functions/localtime_r.texi: Likewise.
29842
29843 2010-04-03  Bruno Haible  <bruno@clisp.org>
29844
29845         time: Fix regression introduced on 2010-03-08.
29846         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29847         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29848
29849 2010-04-03  Jim Meyering  <meyering@redhat.com>
29850
29851         maint.mk: don't silently disable project-specific syntax-check rules
29852         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29853         that they need to convert their project-specific syntax-check rules
29854         to use the new _sc_search_regexp.
29855
29856 2010-04-03  Bruno Haible  <bruno@clisp.org>
29857
29858         fchdir: Fix regression introduced on 2010-03-08.
29859         * lib/unistd.in.h (fchdir): Fix declaration.
29860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29862         REPLACE_FCHDIR.
29863         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29864         REPLACE_FCHDIR.
29865
29866 2010-04-03  Bruno Haible  <bruno@clisp.org>
29867
29868         getpagesize: Fix C++ test error on mingw.
29869         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29870         system does not declare the function.
29871         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29872         declared.
29873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29874         HAVE_DECL_GETPAGESIZE.
29875         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29876
29877 2010-04-03  Bruno Haible  <bruno@clisp.org>
29878
29879         stdio: Make C++ tests work on mingw.
29880         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29881         does not declare the function.
29882
29883 2010-04-03  Bruno Haible  <bruno@clisp.org>
29884
29885         ftello: Fix C++ test error on mingw.
29886         * lib/stdio.in.h (ftello): Use modern idiom.
29887         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29888         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29889         is missing and that it needs to be replaced.
29890         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29892         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29893
29894 2010-04-03  Bruno Haible  <bruno@clisp.org>
29895
29896         fseeko: Fix C++ test error on mingw.
29897         * lib/stdio.in.h (fseeko): Use modern idiom.
29898         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29899         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29900         is missing and that it needs to be replaced.
29901         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29903         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29904
29905 2010-04-03  Bruno Haible  <bruno@clisp.org>
29906
29907         mkstemp: Fix C++ test error on mingw.
29908         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29909         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29910         function is missing and that it needs to be replaced.
29911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29912         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29913
29914 2010-04-03  Bruno Haible  <bruno@clisp.org>
29915
29916         stpncpy: Fix C++ test error on mingw.
29917         * lib/string.in.h (stpncpy): Use modern idiom.
29918         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29919         function is missing and that it needs to be replaced.
29920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29921         REPLACE_STPNCPY.
29922         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29923
29924 2010-04-03  Bruno Haible  <bruno@clisp.org>
29925
29926         sys_stat: Fix C++ test error on mingw.
29927         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29928         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29929
29930 2010-04-03  Bruno Haible  <bruno@clisp.org>
29931
29932         pty: Update doc.
29933         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29934
29935 2010-04-03  Bruno Haible  <bruno@clisp.org>
29936
29937         unistd: Fix C++ test error on mingw.
29938         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29939
29940 2010-04-03  Bruno Haible  <bruno@clisp.org>
29941
29942         Update doc regarding mingw.
29943         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29944         * doc/glibc-functions/login_tty.texi: Likewise.
29945         * doc/glibc-functions/forkpty.texi: Likewise.
29946
29947 2010-04-03  Bruno Haible  <bruno@clisp.org>
29948
29949         stdlib: Avoid compilation failure of c-strtold on mingw.
29950         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29951
29952 2010-04-03  Bruno Haible  <bruno@clisp.org>
29953
29954         locale: Make C++ tests work on Cygwin and mingw.
29955         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29956         cannot provide the function.
29957         Reported by Simon Josefsson.
29958
29959 2010-04-03  Bruno Haible  <bruno@clisp.org>
29960
29961         localename: Port to MacOS X 10.6.
29962         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29963         memory layout of the locales in MacOS X 10.6 as well.
29964         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29965
29966 2010-04-02  Bruno Haible  <bruno@clisp.org>
29967
29968         gnulib-tool: Ensure that long-running tests are executed last.
29969         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29970         running tests after the one for the other tests.
29971
29972 2010-04-02  Bruno Haible  <bruno@clisp.org>
29973
29974         gnulib-tool: Ensure the tests in the main directory are executed first.
29975         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29976         start with the current directory.
29977
29978 2010-04-02  Bruno Haible  <bruno@clisp.org>
29979
29980         Tests for module 'havelib', moved here from GNU gettext.
29981         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29982         modifications.
29983         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29984         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29985         with modifications.
29986         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29987         modifications.
29988         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29989         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29990         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29991         with modifications.
29992         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29993         with modifications.
29994         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29995         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29996         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29997         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29998         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29999         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30000         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30001         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30002         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30003         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30004         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30005         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30006         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30007         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30008         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30009         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30010         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30011         with modifications.
30012         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30013         with modifications.
30014         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30015         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30016         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30017         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30018         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30019         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30020         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30021         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30022         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30023         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30024         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30025         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30026         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30027         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30028         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30029         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30030         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30031         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30032         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30033         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30034         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30035         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30036         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30037         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30038         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30039         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30040         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30041         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30042         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30043         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30044         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30045         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30046         * tests/havelib/rpathx/rpathx.c: New file, from
30047         gettext/autoconf-lib-link.
30048         * tests/havelib/rpathx/Makefile.am: New file, from
30049         gettext/autoconf-lib-link.
30050         * tests/havelib/rpathx/configure.ac: New file, from
30051         gettext/autoconf-lib-link with modifications.
30052         * tests/havelib/rpathy/rpathy.c: New file, from
30053         gettext/autoconf-lib-link.
30054         * tests/havelib/rpathy/Makefile.am: New file, from
30055         gettext/autoconf-lib-link.
30056         * tests/havelib/rpathy/configure.ac: New file, from
30057         gettext/autoconf-lib-link with modifications.
30058         * tests/havelib/rpathz/rpathz.c: New file, from
30059         gettext/autoconf-lib-link.
30060         * tests/havelib/rpathz/Makefile.am: New file, from
30061         gettext/autoconf-lib-link.
30062         * tests/havelib/rpathz/configure.ac: New file, from
30063         gettext/autoconf-lib-link with modifications.
30064         * tests/havelib/rpathlx/usex.c: New file, from
30065         gettext/autoconf-lib-link.
30066         * tests/havelib/rpathlx/Makefile.am: New file, from
30067         gettext/autoconf-lib-link.
30068         * tests/havelib/rpathlx/configure.ac: New file, from
30069         gettext/autoconf-lib-link with modifications.
30070         * tests/havelib/rpathly/usey.c: New file, from
30071         gettext/autoconf-lib-link.
30072         * tests/havelib/rpathly/Makefile.am: New file, from
30073         gettext/autoconf-lib-link.
30074         * tests/havelib/rpathly/configure.ac: New file, from
30075         gettext/autoconf-lib-link with modifications.
30076         * tests/havelib/rpathlz/usez.c: New file, from
30077         gettext/autoconf-lib-link.
30078         * tests/havelib/rpathlz/Makefile.am: New file, from
30079         gettext/autoconf-lib-link.
30080         * tests/havelib/rpathlz/configure.ac: New file, from
30081         gettext/autoconf-lib-link with modifications.
30082         * tests/havelib/rpathlyx/usey.c: New file, from
30083         gettext/autoconf-lib-link.
30084         * tests/havelib/rpathlyx/Makefile.am: New file, from
30085         gettext/autoconf-lib-link.
30086         * tests/havelib/rpathlyx/configure.ac: New file, from
30087         gettext/autoconf-lib-link with modifications.
30088         * tests/havelib/rpathlzyx/usez.c: New file, from
30089         gettext/autoconf-lib-link.
30090         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30091         gettext/autoconf-lib-link.
30092         * tests/havelib/rpathlzyx/configure.ac: New file, from
30093         gettext/autoconf-lib-link with modifications.
30094         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30095         with modifications.
30096
30097 2010-04-02  Bruno Haible  <bruno@clisp.org>
30098
30099         gnulib-tool: Create distributed built sources also for the tests.
30100         * gnulib-tool (func_create_testdir): Also generate distributed built
30101         sources in the tests directory.
30102
30103 2010-04-02  Bruno Haible  <bruno@clisp.org>
30104
30105         gnulib-tool: Obey user's environment variables.
30106         * gnulib-tool (func_create_testdir): When creating built sources,
30107         respect the environment variables for autoconf, automake, etc. given by
30108         the user.
30109
30110 2010-04-02  Bruno Haible  <bruno@clisp.org>
30111
30112         gnulib-tool: Provide the value of --m4-base to modules.
30113         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30114         of gl_m4_base.
30115
30116 2010-04-02  Eric Blake  <eblake@redhat.com>
30117
30118         maint.mk: fix some fallout
30119         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30120         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30121
30122 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30123
30124         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30125         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30126         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30127         (sc_cast_of_x_alloc_return_value): Likewise.
30128         (sc_cast_of_alloca_return_value): Likewise.
30129         (sc_space_tab): Likewise.
30130         (sc_prohibit_atoi_atof): Likewise.
30131         (sc_prohibit_magic_number_exit): Likewise.
30132         (sc_error_exit_success): Likewise.
30133         (sc_file_system): Likewise.
30134         (sc_prohibit_have_config_h): Likewise.
30135         (sc_require_config_h): Likewise.
30136         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30137         (sc_obsolete_symbols): Likewise.
30138         (sc_changelog): Likewise.
30139         (sc_program_name): Likewise.
30140         (sc_the_the): Likewise.
30141         (sc_trailing_blank): Likewise.
30142         (sc_two_space_separator_in_usage): Likewise.
30143         (sc_useless_cpp_parens): Likewise.
30144         (sc_GPL_version): Likewise.
30145         (sc_GFDL_version): Likewise.
30146         (sc_texinfo_acronym): Likewise.
30147         (sc_prohibit_cvs_keyword): Likewise.
30148         (sc_prohibit_stat_st_blocks): Likewise.
30149         (sc_prohibit_S_IS_definition): Likewise.
30150         (sc_redundant_const): Likewise.
30151         (sc_makefile_TAB_only_indentation): Likewise.
30152         (sc_m4_quote_check): Likewise.
30153         (sc_makefile_path_separator_check): Likewise.
30154         (sc_copyright_check): Likewise.
30155         (sc_Wundef_boolean): Likewise.
30156         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30157
30158         maint.mk: match 0 or more whitespace-before-function-call '('
30159         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30160         that have zero or two-and-more spaces between the function name
30161         and the open parenthesis.
30162         (sc_error_message_warn_fatal): Likewise.
30163         (sc_error_message_uppercase): Likewise.
30164         (sc_error_message_period): Likewise.
30165
30166 2010-03-31  Eric Blake  <eblake@redhat.com>
30167
30168         maint.mk: check for [ as well as test
30169         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30170         Based on a libvirt report by Matthias Bolte.
30171
30172         gnumakefile: don't squelch _version output
30173         * top/GNUmakefile (_version): Create one-shot dependency rather
30174         than using $(shell) when version must be regenerated.
30175         (_autoreconf): Run verbosely, by default.
30176
30177         sys_time: avoid compiler warnings
30178         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30179         unconditional, fixing regression from 2010-03-29.
30180         Reported by Simon Josefsson.
30181
30182 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30183
30184         maint.mk: s/_header_without_use/_sc_header_without_use/
30185         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30186         (sc_prohibit_assert_without_use): Use the new name.
30187         (sc_prohibit_close_stream_without_use): Likewise.
30188         (sc_prohibit_getopt_without_use): Likewise.
30189         (sc_prohibit_quotearg_without_use): Likewise.
30190         (sc_prohibit_quote_without_use): Likewise.
30191         (sc_prohibit_long_options_without_use): Likewise.
30192         (sc_prohibit_inttostr_without_use): Likewise.
30193         (sc_prohibit_ignore_value_without_use): Likewise.
30194         (sc_prohibit_error_without_use): Likewise.
30195         (sc_prohibit_xalloc_without_use): Likewise.
30196         (sc_prohibit_hash_without_use): Likewise.
30197         (sc_prohibit_hash_pjw_without_use): Likewise.
30198         (sc_prohibit_safe_read_without_use): Likewise.
30199         (sc_prohibit_argmatch_without_use): Likewise.
30200         (sc_prohibit_canonicalize_without_use): Likewise.
30201         (sc_prohibit_root_dev_ino_without_use): Likewise.
30202         (sc_prohibit_openat_without_use): Likewise.
30203         (sc_prohibit_c_ctype_without_use): Likewise.
30204         (sc_prohibit_signal_without_use): Likewise.
30205         (sc_prohibit_intprops_without_use): Likewise.
30206
30207 2010-03-30  Eric Blake  <eblake@redhat.com>
30208
30209         maint: improve module indicators
30210         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30211         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30212         columns, and avoid extra macro expansion.
30213
30214         fdopendir: work around FreeBSD bug
30215         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30216         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30217         * modules/dirent (Makefile.am): Substitute it.
30218         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30219         declaration.
30220         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30221         fix.
30222         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30223
30224 2010-03-29  Bruno Haible  <bruno@clisp.org>
30225
30226         Emit #pragma system_header after the inclusion guard, not before.
30227         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30228         guard that spans the entire file, not before. This enables an
30229         optimization in GCC's preprocessor.
30230         * lib/ctype.in.h: Likewise.
30231         * lib/dirent.in.h: Likewise.
30232         * lib/errno.in.h: Likewise.
30233         * lib/float.in.h: Likewise.
30234         * lib/getopt.in.h: Likewise.
30235         * lib/iconv.in.h: Likewise.
30236         * lib/langinfo.in.h: Likewise.
30237         * lib/locale.in.h: Likewise.
30238         * lib/math.in.h: Likewise.
30239         * lib/netdb.in.h: Likewise.
30240         * lib/netinet_in.in.h: Likewise.
30241         * lib/pty.in.h: Likewise.
30242         * lib/sched.in.h: Likewise.
30243         * lib/se-selinux.in.h: Likewise.
30244         * lib/search.in.h: Likewise.
30245         * lib/spawn.in.h: Likewise.
30246         * lib/stdarg.in.h: Likewise.
30247         * lib/stdint.in.h: Likewise.
30248         * lib/string.in.h: Likewise.
30249         * lib/strings.in.h: Likewise.
30250         * lib/sys_file.in.h: Likewise.
30251         * lib/sys_ioctl.in.h: Likewise.
30252         * lib/sys_time.in.h: Likewise.
30253         * lib/sys_times.in.h: Likewise.
30254         * lib/sys_utsname.in.h: Likewise.
30255         * lib/sys_wait.in.h: Likewise.
30256         * lib/sysexits.in.h: Likewise.
30257         * lib/wctype.in.h: Likewise.
30258
30259 2010-03-28  James Youngman  <jay@gnu.org>
30260
30261         save-cwd: don't leak a file descriptor when the caller execs.
30262         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30263         saved file descriptor.
30264         * modules/save-cwd (Depends-on): Depend on cloexec.
30265
30266 2010-03-29  Bruno Haible  <bruno@clisp.org>
30267
30268         Remove vestiges of fts-lgpl module.
30269         * lib/fts_.h: Assume GNULIB_FTS is 1.
30270         * lib/fts.c: Likewise.
30271         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30272
30273 2010-03-28  Bruno Haible  <bruno@clisp.org>
30274
30275         Fix definition of tests witness macro.
30276         * gnulib-tool (func_import): Fix definition of witness macro.
30277
30278 2010-03-28  Bruno Haible  <bruno@clisp.org>
30279
30280         Fix ioctl's protoype on glibc systems.
30281         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30282         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30283         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30284         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30285         signature. If not, arrange to replace the ioctl function.
30286         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30287         REPLACE_IOCTL.
30288         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30289         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30290         Reported by Ludovic Courtès <ludo@gnu.org>.
30291
30292 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30293
30294         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30295         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30296         made it so grep -r --include=GLOB* ... did not work.
30297
30298 2010-03-26  Jim Meyering  <meyering@redhat.com>
30299             Eric Blake  <eblake@redhat.com>
30300
30301         maint.mk: prohibit use of test's -o and -a operators
30302         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30303
30304 2010-03-28  Bruno Haible  <bruno@clisp.org>
30305
30306         Remove unused GNULIB_XYZ macro definitions.
30307         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30308         invocation.
30309
30310 2010-03-28  Bruno Haible  <bruno@clisp.org>
30311
30312         Mark privileged tests modules.
30313         * modules/idpriv-drop-tests (Status): New section.
30314         * modules/idpriv-droptemp-tests (Status): New section.
30315
30316 2010-03-28  Bruno Haible  <bruno@clisp.org>
30317
30318         Split C++ tests into separate tests modules.
30319         * modules/dirent-c++-tests: New file, extracted from
30320         modules/dirent-tests.
30321         * modules/dirent-tests: Depend on it.
30322         * modules/fcntl-h-c++-tests: New file, extracted from
30323         modules/fcntl-h-tests.
30324         * modules/fcntl-h-tests: Depend on it.
30325         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30326         * modules/glob-tests: Depend on it.
30327         * modules/iconv-h-c++-tests: New file, extracted from
30328         modules/iconv-h-tests.
30329         * modules/iconv-h-tests: Depend on it.
30330         * modules/langinfo-c++-tests: New file, extracted from
30331         modules/langinfo-tests.
30332         * modules/langinfo-tests: Depend on it.
30333         * modules/locale-c++-tests: New file, extracted from
30334         modules/locale-tests.
30335         * modules/locale-tests: Depend on it.
30336         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30337         * modules/math-tests: Depend on it.
30338         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30339         * modules/pty-tests: Depend on it.
30340         * modules/search-c++-tests: New file, extracted from
30341         modules/search-tests.
30342         * modules/search-tests: Depend on it.
30343         * modules/signal-c++-tests: New file, extracted from
30344         modules/signal-tests.
30345         * modules/signal-tests: Depend on it.
30346         * modules/spawn-c++-tests: New file, extracted from
30347         modules/spawn-tests.
30348         * modules/spawn-tests: Depend on it.
30349         * modules/stdio-c++-tests: New file, extracted from
30350         modules/stdio-tests.
30351         * modules/stdio-tests: Depend on it.
30352         * modules/stdlib-c++-tests: New file, extracted from
30353         modules/stdlib-tests.
30354         * modules/stdlib-tests: Depend on it.
30355         * modules/string-c++-tests: New file, extracted from
30356         modules/string-tests.
30357         * modules/string-tests: Depend on it.
30358         * modules/sys_ioctl-c++-tests: New file, extracted from
30359         modules/sys_ioctl-tests.
30360         * modules/sys_ioctl-tests: Depend on it.
30361         * modules/sys_select-c++-tests: New file, extracted from
30362         modules/sys_select-tests.
30363         * modules/sys_select-tests: Depend on it.
30364         * modules/sys_socket-c++-tests: New file, extracted from
30365         modules/sys_socket-tests.
30366         * modules/sys_socket-tests: Depend on it.
30367         * modules/sys_stat-c++-tests: New file, extracted from
30368         modules/sys_stat-tests.
30369         * modules/sys_stat-tests: Depend on it.
30370         * modules/sys_time-c++-tests: New file, extracted from
30371         modules/sys_time-tests.
30372         * modules/sys_time-tests: Depend on it.
30373         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30374         * modules/time-tests: Depend on it.
30375         * modules/unistd-c++-tests: New file, extracted from
30376         modules/unistd-tests.
30377         * modules/unistd-tests: Depend on it.
30378         * modules/wchar-c++-tests: New file, extracted from
30379         modules/wchar-tests.
30380         * modules/wchar-tests: Depend on it.
30381         * modules/wctype-c++-tests: New file, extracted from
30382         modules/wctype-tests.
30383         * modules/wctype-tests: Depend on it.
30384         Reported by Simon Josefsson.
30385
30386 2010-03-28  Bruno Haible  <bruno@clisp.org>
30387
30388         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30389         * gnulib-tool (func_exists_module): New function, extracted from
30390         func_verify_module.
30391         (func_verify_module): Use it.
30392         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30393         'foo' only if 'foo' exists.
30394         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30395         module.
30396
30397 2010-03-28  Bruno Haible  <bruno@clisp.org>
30398
30399         gnulib-tool: Add support for special categories of tests.
30400         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30401         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30402         (func_usage): Document them.
30403         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30404         inc_unportable_tests, inc_all_tests): New variables.
30405         (func_acceptable): Consider these variables.
30406         (func_modules_transitive_closure): Make it work when the 'Status' field
30407         consists of multiple words.
30408         (func_import): Store and restore the values of inc_cxx_tests,
30409         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30410         inc_all_tests in gnulib-comp.m4.
30411         (func_create_testdir): Set inc_all_tests to true.
30412         * doc/gnulib.texi (Extra tests modules): New section.
30413         Suggested by Jim Meyering.
30414
30415 2010-03-28  Bruno Haible  <bruno@clisp.org>
30416
30417         ansi-c++-opt: Allow turning off the C++ build by default.
30418         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30419         gl_CXX_CHOICE_DEFAULT_NO is defined.
30420         Requested by Eric Blake.
30421
30422 2010-03-28  Bruno Haible  <bruno@clisp.org>
30423
30424         unistd: Avoid #define replacements in C++ mode.
30425         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30426         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30427         setsockopt, shutdown, select): In C++, attach a warning to the function
30428         if possible, rather than #defining the symbol to a dysfunctional alias.
30429         Reported by John W. Eaton <jwe@gnu.org>.
30430
30431 2010-03-28  Bruno Haible  <bruno@clisp.org>
30432
30433         Fix link errors on mingw.
30434         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30435         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30436         $(LIBSOCKET).
30437         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30438         $(LIBSOCKET).
30439
30440 2010-03-28  Bruno Haible  <bruno@clisp.org>
30441             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30442
30443         lib-ignore: Determine different options for different compilers.
30444         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30445         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30446         Add comments.
30447         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30448         * NEWS: Mention the change.
30449
30450 2010-03-27  Bruno Haible  <bruno@clisp.org>
30451
30452         Remove unused GNULIB_XYZ macro definitions.
30453         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30454         * modules/fseek (configure.ac): Likewise.
30455         * modules/ioctl (configure.ac): Likewise.
30456         * modules/open (configure.ac): Likewise.
30457         * modules/stdlib-safer (configure.ac): Likewise.
30458
30459 2010-03-27  Bruno Haible  <bruno@clisp.org>
30460
30461         Add a remark about certain modules.
30462         * modules/malloc (Comment): New section.
30463         * modules/realloc (Comment): Likewise.
30464         * modules/sigpipe (Comment): Likewise.
30465
30466 2010-03-27  Bruno Haible  <bruno@clisp.org>
30467
30468         Resolve conflict between the two kinds of module indicators.
30469         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30470         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30471         * modules/canonicalize (configure.ac): Invoke
30472         gl_MODULE_INDICATOR_FOR_TESTS.
30473         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30474         GNULIB_XYZ.
30475         * tests/test-dirent-c++.cc: Likewise.
30476         * tests/test-dirent-safer.c: Likewise.
30477         * tests/test-dup2.c: Likewise.
30478         * tests/test-fchdir.c: Likewise.
30479         * tests/test-fcntl-h-c++.cc: Likewise.
30480         * tests/test-getopt.c: Likewise.
30481         * tests/test-getopt.h: Likewise.
30482         * tests/test-langinfo-c++.cc: Likewise.
30483         * tests/test-locale-c++.cc: Likewise.
30484         * tests/test-math-c++.cc: Likewise.
30485         * tests/test-pty-c++.cc: Likewise.
30486         * tests/test-search-c++.cc: Likewise.
30487         * tests/test-signal-c++.cc: Likewise.
30488         * tests/test-spawn-c++.cc: Likewise.
30489         * tests/test-stdio-c++.cc: Likewise.
30490         * tests/test-stdlib-c++.cc: Likewise.
30491         * tests/test-string-c++.cc: Likewise.
30492         * tests/test-sys_ioctl-c++.cc: Likewise.
30493         * tests/test-sys_select-c++.cc: Likewise.
30494         * tests/test-sys_socket-c++.cc: Likewise.
30495         * tests/test-sys_stat-c++.cc: Likewise.
30496         * tests/test-sys_time-c++.cc: Likewise.
30497         * tests/test-time-c++.cc: Likewise.
30498         * tests/test-unistd-c++.cc: Likewise.
30499         * tests/test-wchar-c++.cc: Likewise.
30500         * tests/uninorm/test-u8-nfc.c: Likewise.
30501         * tests/uninorm/test-u8-nfd.c: Likewise.
30502         * tests/uninorm/test-u8-nfkc.c: Likewise.
30503         * tests/uninorm/test-u8-nfkd.c: Likewise.
30504         * tests/uninorm/test-u16-nfc.c: Likewise.
30505         * tests/uninorm/test-u16-nfd.c: Likewise.
30506         * tests/uninorm/test-u16-nfkc.c: Likewise.
30507         * tests/uninorm/test-u16-nfkd.c: Likewise.
30508         * tests/uninorm/test-u32-nfc.c: Likewise.
30509         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30510         * tests/uninorm/test-u32-nfd.c: Likewise.
30511         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30512         * tests/uninorm/test-u32-nfkc.c: Likewise.
30513         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30514         * tests/uninorm/test-u32-nfkd.c: Likewise.
30515         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30516         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30517
30518 2010-03-27  Bruno Haible  <bruno@clisp.org>
30519
30520         Distinguish two kinds of module indicators.
30521         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30522         gl_MODULE_INDICATOR.
30523         (gl_MODULE_INDICATOR): New macro.
30524         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30525         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30526         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30527         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30528         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30529         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30530         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30531         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30532         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30533         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30534         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30535         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30536         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30537         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30538         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30539         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30540         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30541         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30542         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30543         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30544         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30545         * modules/cloexec (configure.ac): Likewise.
30546         * modules/getopt-gnu (configure.ac): Likewise.
30547         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30548         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30549         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30550         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30551
30552 2010-03-27  Bruno Haible  <bruno@clisp.org>
30553
30554         New module description field 'Comment'.
30555         * gnulib-tool: New option --extract-comment.
30556         (func_usage): Document it.
30557         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30558         (func_get_comment): New function.
30559         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30560
30561 2010-03-27  Bruno Haible  <bruno@clisp.org>
30562
30563         Addendum to 2010-02-07 commit.
30564         * gnulib-tool (func_usage): Document --extract-applicability option.
30565
30566 2010-03-27  Bruno Haible  <bruno@clisp.org>
30567
30568         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30569         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30570         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30571         rather than link errors.
30572
30573 2010-03-27  Bruno Haible  <bruno@clisp.org>
30574
30575         Avoid side effects from tests-related modules on the compilation of lib.
30576         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30577         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30578         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30579         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30580         macro.
30581         (func_import): Define a witness macro. Assign it a value that depends
30582         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30583         tests-related modules.
30584         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30585         Reported by Jim Meyering.
30586
30587 2010-03-27  Bruno Haible  <bruno@clisp.org>
30588
30589         Factorize common .m4 code.
30590         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30591         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30592         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30593         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30594         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30595         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30596         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30597         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30598         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30599         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30600         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30601         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30602         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30603         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30604         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30605         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30606         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30607         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30608         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30609         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30610         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30611         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30612         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30613         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30614         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30615         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30616         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30617         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30618         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30619         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30620         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30621         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30622
30623 2010-03-27  Bruno Haible  <bruno@clisp.org>
30624
30625         Fix a compilation error on Cygwin with g++ >= 4.3.
30626         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30627         if it is undefined or if we alias it to chmod.
30628         (lstat): Don't warn about the use of this function if it is undefined
30629         or if we alias it to stat.
30630         Reported by Simon Josefsson.
30631
30632 2010-03-27  Bruno Haible  <bruno@clisp.org>
30633
30634         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30635         * modules/getlogin (configure.ac): Update.
30636
30637         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30638         * modules/getlogin_r (configure.ac): Update.
30639
30640         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30641         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30642         * modules/inet_ntop (configure.ac): Update.
30643
30644         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30645         * modules/inet_pton (configure.ac): Update.
30646
30647         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30648         * modules/mbslen (configure.ac): Update.
30649
30650         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30651         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30652         * modules/forkpty (configure.ac): Update.
30653         * modules/openpty (configure.ac): Update.
30654
30655 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30656
30657         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30658         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30659
30660 2010-03-25  Eric Blake  <eblake@redhat.com>
30661
30662         maint: use pragma consistently across replacement headers
30663         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30664         * lib/dirent.in.h (system_header): Likewise.
30665         * lib/errno.in.h (system_header): Likewise.
30666         * lib/float.in.h (system_header): Likewise.
30667         * lib/getopt.in.h (system_header): Likewise.
30668         * lib/iconv.in.h (system_header): Likewise.
30669         * lib/inttypes.in.h (system_header): Likewise.
30670         * lib/langinfo.in.h (system_header): Likewise.
30671         * lib/locale.in.h (system_header): Likewise.
30672         * lib/math.in.h (system_header): Likewise.
30673         * lib/netdb.in.h (system_header): Likewise.
30674         * lib/netinet_in.in.h (system_header): Likewise.
30675         * lib/pty.in.h (system_header): Likewise.
30676         * lib/sched.in.h (system_header): Likewise.
30677         * lib/se-selinux.in.h (system_header): Likewise.
30678         * lib/search.in.h (system_header): Likewise.
30679         * lib/spawn.in.h (system_header): Likewise.
30680         * lib/stdarg.in.h (system_header): Likewise.
30681         * lib/stdint.in.h (system_header): Likewise.
30682         * lib/string.in.h (system_header): Likewise.
30683         * lib/strings.in.h (system_header): Likewise.
30684         * lib/sys_file.in.h (system_header): Likewise.
30685         * lib/sys_ioctl.in.h (system_header): Likewise.
30686         * lib/sys_socket.in.h (system_header): Likewise.
30687         * lib/sys_times.in.h (system_header): Likewise.
30688         * lib/sys_utsname.in.h (system_header): Likewise.
30689         * lib/sys_wait.in.h (system_header): Likewise.
30690         * lib/sysexits.in.h (system_header): Likewise.
30691         * lib/unistd.in.h (system_header): Likewise.
30692         * lib/wctype.in.h (system_header): Likewise.
30693
30694         arpa/inet: fix mingw compilation warning
30695         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30696         Reported by Matthew Bolte.
30697
30698 2010-03-25  Bruno Haible  <bruno@clisp.org>
30699
30700         Avoid collision between gnulib wrapper and libintl wrapper.
30701         * lib/printf.c (printf): Don't define if a printf wrapper is already
30702         defined in intl/printf.c.
30703         Reported by Michel Boaventura <michel@michelboaventura.com>.
30704
30705 2010-03-25  Bruno Haible  <bruno@clisp.org>
30706
30707         Use ANSI C.
30708         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30709
30710 2010-03-25  Bruno Haible  <bruno@clisp.org>
30711
30712         Minor formatting changes.
30713         * lib/acosl.c: Insert space before function argument list.
30714         * lib/argz.c: Likewise.
30715         * lib/asinl.c: Likewise.
30716         * lib/expl.c: Likewise.
30717         * lib/gen-uni-tables.c: Likewise.
30718         * lib/gettext.h: Likewise.
30719         * lib/glthread/lock.h: Likewise.
30720         * lib/tanl.c: Likewise.
30721         * lib/uniname/uniname.c: Likewise.
30722         * tests/test-idpriv-drop.c: Likewise.
30723         * tests/test-idpriv-droptemp.c: Likewise.
30724         * tests/test-lock.c: Likewise.
30725         * tests/test-tls.c: Likewise.
30726         * lib/argp-help.c: Insert space before function-like macro argument
30727         list.
30728         * lib/memcmp.c: Likewise.
30729         * tests/test-base64.c: Likewise.
30730         * lib/localename.c: Insert space before sizeof's argument list.
30731         * lib/safe-alloc.h: Likewise.
30732         * lib/file-set.h: Insert space before macro argument list.
30733         * tests/test-argp.c: Likewise.
30734         * lib/argp-namefrob.h: Insert space before function parameter list.
30735         * lib/getaddrinfo.c: Likewise.
30736         * lib/netdb.in.h: Likewise.
30737         * lib/parse-duration.h: Likewise.
30738         * lib/parse-duration.c: Likewise.
30739         * lib/poll.c: Likewise.
30740         * lib/select.c: Likewise.
30741         * lib/trim.h: Likewise.
30742         * tests/test-usleep.c: Likewise.
30743         * lib/ldexpl.c: Insert space before function parameter list and before
30744         function argument list.
30745         * lib/logl.c: Likewise.
30746         * lib/sqrtl.c: Likewise.
30747         * lib/trim.c: Likewise.
30748         * lib/cosl.c: Use GNU style indentation. Insert space before function
30749         argument list.
30750         * lib/sinl.c: Likewise.
30751         * lib/tsearch.c: Insert space after 'for'.
30752         Reported by Jim Meyering.
30753
30754 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30755
30756         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30757         config header before grepping, as it's not present before
30758         autoreconf/configure are run.  Reported by Simon Josefsson.
30759
30760 2010-03-23  Bruno Haible  <bruno@clisp.org>
30761
30762         pt_chown: Make it work with automake < 1.11.
30763         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30764         Reported by Simon Josefsson.
30765
30766 2010-03-23  Bruno Haible  <bruno@clisp.org>
30767
30768         pt_chown: Don't depend on GPLed modules.
30769         * lib/pt_chown.c: Don't include idpriv.h.
30770         (main): Don't drop privileges.
30771         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30772         Reported by Simon Josefsson.
30773
30774 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30775
30776         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30777         suggestions from karl@freefriends.org (Karl Berry).
30778
30779 2010-03-22  Eric Blake  <eblake@redhat.com>
30780
30781         gethostname: further tweaks
30782         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30783         are overriding gethostname.
30784         Suggested by Bruno Haible.
30785
30786 2010-03-21  Bruno Haible  <bruno@clisp.org>
30787
30788         Fix comments.
30789         * lib/forkpty.c (rpl_forkpty): Fix comment.
30790         * lib/openpty.c (rpl_openpty): Likewise.
30791         Reported by Eric Blake.
30792
30793 2010-03-22  Eric Blake  <eblake@redhat.com>
30794
30795         gethostname: fix build on mingw
30796         * lib/unistd.in.h (includes): Work around fact that mingw
30797         <winsock2.h> re-includes <unistd.h>, by avoiding any
30798         redeclarations if we are being included by <winsock2.h>.
30799         Reported by Matthias Bolte.
30800
30801 2010-03-21  Bruno Haible  <bruno@clisp.org>
30802
30803         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30804         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30805         modifications.
30806         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30807         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30808         provide the replacement.
30809         * modules/forkpty (Depends-on): Add openpty, login_tty.
30810         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30811         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30812         * doc/glibc-functions/forkpty.texi: More supported platforms.
30813         * config/srclist.txt: Add forkpty.c (commented).
30814
30815 2010-03-21  Bruno Haible  <bruno@clisp.org>
30816
30817         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30818         (Makefile.am): Verify that PTY_LIB is defined.
30819
30820         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30821
30822 2010-03-21  Bruno Haible  <bruno@clisp.org>
30823
30824         Tests for module 'login_tty'.
30825         * modules/login_tty-tests: New file.
30826         * tests/test-login_tty.c: New file.
30827
30828         New module 'login_tty'.
30829         * lib/login_tty.c: New file.
30830         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30831         * modules/login_tty: New file.
30832         * doc/glibc-functions/login_tty.texi: Mention the new module.
30833
30834 2010-03-21  Bruno Haible  <bruno@clisp.org>
30835
30836         login_tty: Documentation.
30837         * doc/glibc-functions/login_tty.texi: New file.
30838         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30839
30840 2010-03-21  Bruno Haible  <bruno@clisp.org>
30841
30842         pty: Consistent macro naming.
30843         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30844         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30845         * modules/pty (configure.ac): Update.
30846
30847 2010-03-21  Bruno Haible  <bruno@clisp.org>
30848
30849         Tests for openpty: Make stricter.
30850         * tests/test-openpty.c (main): Add test of canonical processing and
30851         erase.
30852         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30853
30854         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30855         * lib/openpty.c (openpty): New replacement function.
30856         * lib/pty.in.h: Include <termios.h>.
30857         (openpty): Update declaration. Add comments.
30858         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30859         is not declared, arrange to provide the replacement. Check for _getpty
30860         and posix_openpt.
30861         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30862         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30863         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30864         * modules/pty-tests (test_pty_c___LDADD): New variable.
30865         * doc/glibc-functions/openpty.texi: More supported platforms.
30866
30867 2010-03-21  Bruno Haible  <bruno@clisp.org>
30868
30869         setenv: Tweaks.
30870         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30871         the test program.
30872         * doc/posix-functions/setenv.texi: Update platforms list.
30873
30874 2010-03-21  Bruno Haible  <bruno@clisp.org>
30875
30876         New module 'unlockpt'.
30877         * lib/unlockpt.c: New file, from glibc with modifications.
30878         * m4/unlockpt.m4: New file.
30879         * modules/unlockpt: New file.
30880         * lib/stdlib.in.h (unlockpt): New declaration.
30881         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30882         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30883         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30884         HAVE_UNLOCKPT.
30885         * doc/posix-functions/unlockpt.texi: Mention the new module.
30886         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30887         * config/srclist.txt: Add unlockpt.c (commented).
30888
30889 2010-03-21  Jim Meyering  <meyering@redhat.com>
30890
30891         maint.mk: prohibit inclusion of "intprops.h" without use
30892         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30893
30894 2010-03-21  Bruno Haible  <bruno@clisp.org>
30895
30896         New module 'grantpt'.
30897         * lib/grantpt.c: New file, from glibc with modifications.
30898         * m4/grantpt.m4: New file.
30899         * modules/grantpt: New file.
30900         * lib/stdlib.in.h (grantpt): New declaration.
30901         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30902         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30903         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30904         HAVE_GRANTPT.
30905         * doc/posix-functions/grantpt.texi: Mention the new module.
30906         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30907         * config/srclist.txt: Add grantpt.c (commented).
30908
30909 2010-03-21  Bruno Haible  <bruno@clisp.org>
30910
30911         New module 'pt_chown'.
30912         * lib/pt_chown.c: New file, from glibc with modifications.
30913         * lib/pty-private.h: New file, from glibc with modifications.
30914         * modules/pt_chown: New file.
30915         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30916
30917 2010-03-21  Bruno Haible  <bruno@clisp.org>
30918
30919         Tests for module 'ptsname'.
30920         * modules/ptsname-tests: New file.
30921         * tests/test-ptsname.c: New file.
30922
30923         New module 'ptsname'.
30924         * lib/ptsname.c: New file, from glibc with modifications.
30925         * m4/ptsname.m4: New file.
30926         * modules/ptsname: New file.
30927         * lib/stdlib.in.h (ptsname): New declaration.
30928         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30929         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30930         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30931         HAVE_PTSNAME.
30932         * doc/posix-functions/ptsname.texi: Mention the new module.
30933         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30934         * config/srclist.txt: Add ptsname.c (commented).
30935
30936 2010-03-21  Bruno Haible  <bruno@clisp.org>
30937
30938         Tests for module 'ttyname_r'.
30939         * modules/ttyname_r-tests: New file.
30940         * tests/test-ttyname_r.c: New file.
30941
30942         New module 'ttyname_r'.
30943         * lib/ttyname_r.c: New file.
30944         * m4/ttyname_r.m4: New file.
30945         * modules/ttyname_r: New file.
30946         * lib/unistd.in.h (ttyname_r): New declaration.
30947         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30948         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30949         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30950         HAVE_TTYNAME_R.
30951         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30952         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30953
30954 2010-03-20  Bruno Haible  <bruno@clisp.org>
30955
30956         signal: Undefine macro definitions in C++ mode.
30957         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30958         sigfillset): Undefine macro definitions from the system header in C++
30959         mode.
30960         Reported by John W. Eaton <jwe@gnu.org>.
30961
30962 2010-03-20  Bruno Haible  <bruno@clisp.org>
30963
30964         Ensure no #include statements inside extern "C" { ... }.
30965         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30966         contain #include statements.
30967         * lib/time.in.h: Likewise.
30968
30969 2010-03-20  Bruno Haible  <bruno@clisp.org>
30970
30971         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30972         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30973         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30974         Reported by John W. Eaton <jwe@gnu.org>.
30975
30976 2010-03-20  Bruno Haible  <bruno@clisp.org>
30977
30978         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30979         Reported by Jim Meyering.
30980
30981 2010-03-20  Bruno Haible  <bruno@clisp.org>
30982
30983         pipe: Set errno upon failure.
30984         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30985         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30986         errno value in error message.
30987
30988 2010-03-20  Bruno Haible  <bruno@clisp.org>
30989             Jim Meyering  <meyering@redhat.com>
30990
30991         lchown: Avoid "unused variable" warning.
30992         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30993
30994 2010-03-20  Bruno Haible  <bruno@clisp.org>
30995
30996         Work around unlink() bug on MacOS X 10.5.6.
30997         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30998         attempting to unlink a parent directory.
30999         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31000         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31001         activate for the replacement function.
31002         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31003
31004 2010-03-20  Bruno Haible  <bruno@clisp.org>
31005
31006         Fix link errors on Solaris 8.
31007         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31008         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31009
31010 2010-03-19  Jim Meyering  <meyering@redhat.com>
31011
31012         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31013         The _LIBC implementation of build_range_exp correctly honors the
31014         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31015         However, the non-_LIBC implementation would ignore that syntax-bit
31016         flag and return REG_ERANGE unconditionally.
31017         This change makes it honor that flag.
31018         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31019         Make two pointer parameters "const".
31020         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31021         (parse_bracket_exp): Update caller.
31022
31023         regex.m4: correct the reversed range endpoint ([b-a]) test
31024         * m4/regex.m4: When requiring that [b-a] evoke failure,
31025         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31026         test pass once again for x86-based systems.
31027
31028 2010-03-19  Bruno Haible  <bruno@clisp.org>
31029
31030         scandir: Fix link error on Solaris 8.
31031         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31032         macros.
31033
31034 2010-03-19  Bruno Haible  <bruno@clisp.org>
31035
31036         getusershell: Fix documentation.
31037         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31038         module.
31039         * doc/glibc-functions/setusershell.texi: Likewise.
31040
31041         getusershell: Provide declaration, missing on Solaris 9.
31042         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31043         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31044         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31045         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31047         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31048         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31049         HAVE_GETUSERSHELL.
31050         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31051
31052 2010-03-19  Bruno Haible  <bruno@clisp.org>
31053
31054         wctype: Provide iswblank function.
31055         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31056         exists and is fine.
31057         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31058         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31059         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31060         * doc/posix-functions/iswblank.texi: Update.
31061
31062 2010-03-19  Bruno Haible  <bruno@clisp.org>
31063
31064         Tests of module 'pty' in C++ mode.
31065         * modules/pty-tests: New file.
31066         * tests/test-pty-c++.cc: New file.
31067         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31068
31069 2010-03-19  Eric Blake  <eblake@redhat.com>
31070
31071         logb: fix documentation
31072         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31073         1.5 declaration bug.
31074
31075         forkpty, openpty: prefer glibc's const-safe prototype
31076         * lib/forkpty.c (rpl_forkpty): New file.
31077         * lib/openpty.c (rpl_openpty): Likewise.
31078         * modules/forkpty (Files): Distribute it.
31079         * modules/openpty (Files): Likewise.
31080         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31081         check...
31082         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31083         replacement for for non-const BSD signature.
31084         * modules/pty (Makefile.am): Substitute witnesses.
31085         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31086         * tests/test-forkpty.c: Update signature check.
31087         * tests/test-openpty.c: Likewise.
31088         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31089         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31090
31091         forkpty, openpty: split functions into new modules
31092         * modules/pty (Makefile.am): Substitute new witnesses.
31093         (Libraries): Move library detection...
31094         * modules/forkpty: ...into new module.
31095         * modules/openpty: Another new module.
31096         * modules/pty-tests: Rename and split...
31097         * modules/forkpty-tests: ...to this...
31098         * modules/openpty-tests: ...and this.
31099         * tests/test-pty.c: Rename and split...
31100         * tests/test-forkpty.c: ...to this...
31101         * tests/test-openpty.c: ...and this.
31102         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31103         (gl_PTY): Split library searching...
31104         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31105         (gl_FORKPTY, gl_OPENPTY): New macros.
31106         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31107         * NEWS: Mention the split.
31108         * MODULES.html.sh (Misc): Document the modules.
31109         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31110         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31111
31112         pty: improve replacement header
31113         * lib/pty.in.h: New file.
31114         * modules/pty (Files): Ship it.
31115         (Makefile.am): Always build replacement.
31116         * m4/pty.m4: Rename...
31117         * m4/pty_h.m4: ...to this.
31118         (gl_PTY): Modernize setting of witness macros; update check of
31119         forkpty to take proper advantage of cache.
31120         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31121
31122         getopt: avoid compiler warning
31123         * lib/getopt.c (attribute_hidden): Remove unused macro.
31124
31125 2010-03-18  Bruno Haible  <bruno@clisp.org>
31126
31127         Fix link errors on Solaris 8.
31128         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31129         * modules/search-tests (test_search_c___LDADD): Likewise.
31130         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31131         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31132         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31133         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31134         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31135         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31136         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31137
31138 2010-03-18  Bruno Haible  <bruno@clisp.org>
31139
31140         Fix bug introduced on 2010-03-14.
31141         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31142         (gl_SPAWN_H): Require it.
31143         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31144         Reported by Simon Josefsson.
31145
31146 2010-03-18  Bruno Haible  <bruno@clisp.org>
31147
31148         Fix typo introduced on 2009-12-31.
31149         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31150         posix_spawn_file_actions_adddup2.
31151
31152 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31153         and Eric Blake  <eblake@redhat.com>
31154
31155         test-vc-list-files-git: make more robust
31156         * tests/test-vc-list-files-git.sh: Unset problematic environment
31157         variables.  Chain commands together.
31158
31159 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31160
31161         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31162         `AC_CHECK_DECL' invocation.
31163
31164 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31165
31166         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31167         appears before executable statements. Suggested by Petr Sumbera
31168         <Petr.Sumbera@Sun.COM>.
31169
31170 2010-03-14  Bruno Haible  <bruno@clisp.org>
31171
31172         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31173         portability problems. Instead use a simpler test.
31174         (main): Check that invalid arguments are rejected only on Linux.
31175
31176 2010-03-14  Bruno Haible  <bruno@clisp.org>
31177
31178         Fix bug introduced on 2009-12-31.
31179         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31180         gl_PREREQ_SYS_H_WINSOCK2 always.
31181         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31182         SYS_SOCKET_H variable.
31183         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31184         Update comments.
31185         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31186         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31187         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31188         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31189         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31190
31191 2010-03-14  Bruno Haible  <bruno@clisp.org>
31192
31193         Fix values returned by sinl, cosl.
31194         * lib/trigl.h: Add specification comments.
31195         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31196         that combines the values from the precomputed table with the values of
31197         the Chebyshev polynomials.
31198
31199 2010-03-14  Bruno Haible  <bruno@clisp.org>
31200
31201         Fix compilation error when modules 'posix_spawn[p]' are not used.
31202         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31203         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31204
31205 2010-03-14  Bruno Haible  <bruno@clisp.org>
31206
31207         Fix compilation error on mingw when module 'time_r' is not used.
31208         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31209         is 1.
31210         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31211         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31212         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31213         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31214
31215 2010-03-14  Bruno Haible  <bruno@clisp.org>
31216
31217         Fix compilation error with Sun C.
31218         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31219         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31220         instead of GCC specific ULONG_LONG_MAX.
31221         * lib/xstrtoll.c: Likewise.
31222         * lib/xstrtoull.c: Likewise.
31223
31224 2010-03-13  Bruno Haible  <bruno@clisp.org>
31225
31226         Allow the user to disable C++ code and tests.
31227         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31228         (gl_PROG_ANSI_CXX): Require it.
31229
31230 2010-03-13  Bruno Haible  <bruno@clisp.org>
31231
31232         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31233         cases.
31234
31235 2010-03-13  Bruno Haible  <bruno@clisp.org>
31236
31237         Test that gnulib does not break the standard C++ headers.
31238         * tests/test-locale-c++2.cc: New file.
31239         * modules/locale-tests (Files): Add it.
31240         (Makefile.am): Compile it for test-locale-c++.
31241         * tests/test-math-c++2.cc: New file.
31242         * modules/math-tests (Files): Add it.
31243         (Makefile.am): Compile it for test-math-c++.
31244         * tests/test-signal-c++2.cc: New file.
31245         * modules/signal-tests (Files): Add it.
31246         (Makefile.am): Compile it for test-signal-c++.
31247         * tests/test-stdio-c++2.cc: New file.
31248         * modules/stdio-tests (Files): Add it.
31249         (Makefile.am): Compile it for test-stdio-c++.
31250         * tests/test-stdlib-c++2.cc: New file.
31251         * modules/stdlib-tests (Files): Add it.
31252         (Makefile.am): Compile it for test-stdlib-c++.
31253         * tests/test-string-c++2.cc: New file.
31254         * modules/string-tests (Files): Add it.
31255         (Makefile.am): Compile it for test-string-c++.
31256         * tests/test-time-c++2.cc: New file.
31257         * modules/time-tests (Files): Add it.
31258         (Makefile.am): Compile it for test-time-c++.
31259         Reported by John W. Eaton <jwe@gnu.org>.
31260
31261 2010-03-13  Bruno Haible  <bruno@clisp.org>
31262
31263         * gnulib-tool (func_usage): Clarify which options are available for
31264         --create-testdir and --create-megatestdir.
31265
31266 2010-03-13  Bruno Haible  <bruno@clisp.org>
31267
31268         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31269         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31270         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31271         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31272         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31273         when appropriate.
31274         Reported by Jim Meyering.
31275
31276 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31277
31278         * gnulib-tool (func_import): Explain origin of code.
31279
31280 2010-03-12  Bruno Haible  <bruno@clisp.org>
31281
31282         Fix problem with automake's definition of CXXLINK.
31283         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31284         Reported by Simon Josefsson and Ludovic Courtès.
31285
31286 2010-03-12  Bruno Haible  <bruno@clisp.org>
31287
31288         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31289         stable releases.
31290
31291 2010-03-11  Bruno Haible  <bruno@clisp.org>
31292
31293         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31294         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31295         whether the system provides one variant or multiple variants of the
31296         function.
31297         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31298         C++ compilers.
31299         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31300         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31301         Reported by Jim Meyering.
31302
31303 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31304
31305         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31306
31307 2010-03-08  Bruno Haible  <bruno@clisp.org>
31308
31309         gnulib-tool: Add support for --libtool in --create-testdir.
31310         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31311         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31312
31313 2010-03-08  Eric Blake  <eblake@redhat.com>
31314
31315         gnulib-tool.texi: mention possibility of git submodule
31316         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31317         submodules.
31318         * doc/.gitignore: Ignore another generated file.
31319
31320 2010-03-08  Karl Berry  <karl@gnu.org>
31321
31322         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31323         of committing gnulib files while skipping others.
31324
31325 2010-03-07  Bruno Haible  <bruno@clisp.org>
31326
31327         Tests of module 'wctype' in C++ mode.
31328         * tests/test-wctype-c++.cc: New file.
31329         * modules/wctype-tests (Files): Add it and tests/signature.h.
31330         (Depends-on): Add ansi-c++-opt.
31331         (Makefile.am): Arrange to compile and run test-wctype-c++.
31332
31333         Tests of module 'wchar' in C++ mode.
31334         * tests/test-wchar-c++.cc: New file.
31335         * modules/wchar-tests (Files): Add it and tests/signature.h.
31336         (Depends-on): Add ansi-c++-opt.
31337         (Makefile.am): Arrange to compile and run test-wchar-c++.
31338         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31339         gl_MODULE_INDICATOR.
31340
31341         Tests of module 'unistd' in C++ mode.
31342         * tests/test-unistd-c++.cc: New file.
31343         * modules/unistd-tests (Files): Add it and tests/signature.h.
31344         (Depends-on): Add ansi-c++-opt.
31345         (Makefile.am): Arrange to compile and run test-unistd-c++.
31346         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31347         gl_MODULE_INDICATOR.
31348
31349         Tests of module 'time' in C++ mode.
31350         * tests/test-time-c++.cc: New file.
31351         * modules/time-tests (Files): Add it and tests/signature.h.
31352         (Depends-on): Add ansi-c++-opt.
31353         (Makefile.am): Arrange to compile and run test-time-c++.
31354         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31355
31356         Tests of module 'sys_time' in C++ mode.
31357         * tests/test-sys_time-c++.cc: New file.
31358         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31359         (Depends-on): Add ansi-c++-opt.
31360         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31361         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31362         gl_MODULE_INDICATOR.
31363
31364         Tests of module 'sys_stat' in C++ mode.
31365         * tests/test-sys_stat-c++.cc: New file.
31366         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31367         (Depends-on): Add ansi-c++-opt.
31368         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31369         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31370         gl_MODULE_INDICATOR.
31371
31372         Tests of module 'sys_socket' in C++ mode.
31373         * tests/test-sys_socket-c++.cc: New file.
31374         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31375         (Depends-on): Add ansi-c++-opt.
31376         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31377         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31378         gl_MODULE_INDICATOR.
31379
31380         Tests of module 'sys_select' in C++ mode.
31381         * tests/test-sys_select-c++.cc: New file.
31382         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31383         (Depends-on): Add ansi-c++-opt.
31384         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31385         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31386         gl_MODULE_INDICATOR.
31387
31388         Tests of module 'sys_ioctl' in C++ mode.
31389         * tests/test-sys_ioctl-c++.cc: New file.
31390         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31391         (Depends-on): Add ansi-c++-opt.
31392         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31393         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31394         gl_MODULE_INDICATOR.
31395
31396         Tests of module 'string' in C++ mode.
31397         * tests/test-string-c++.cc: New file.
31398         * modules/string-tests (Files): Add it and tests/signature.h.
31399         (Depends-on): Add ansi-c++-opt.
31400         (Makefile.am): Arrange to compile and run test-string-c++.
31401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31402         gl_MODULE_INDICATOR.
31403
31404         Tests of module 'stdlib' in C++ mode.
31405         * tests/test-stdlib-c++.cc: New file.
31406         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31407         (Depends-on): Add ansi-c++-opt.
31408         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31409         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31410         gl_MODULE_INDICATOR.
31411
31412         Tests of module 'stdio' in C++ mode.
31413         * tests/test-stdio-c++.cc: New file.
31414         * modules/stdio-tests (Files): Add it and tests/signature.h.
31415         (Depends-on): Add ansi-c++-opt.
31416         (Makefile.am): Arrange to compile and run test-stdio-c++.
31417         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31418         gl_MODULE_INDICATOR.
31419
31420         Tests of module 'spawn' in C++ mode.
31421         * tests/test-spawn-c++.cc: New file.
31422         * modules/spawn-tests (Files): Add it and tests/signature.h.
31423         (Depends-on): Add ansi-c++-opt.
31424         (Makefile.am): Arrange to compile and run test-spawn-c++.
31425         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31426         gl_MODULE_INDICATOR.
31427
31428         Tests of module 'signal' in C++ mode.
31429         * tests/test-signal-c++.cc: New file.
31430         * modules/signal-tests (Files): Add it and tests/signature.h.
31431         (Depends-on): Add ansi-c++-opt.
31432         (Makefile.am): Arrange to compile and run test-signal-c++.
31433         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31434         gl_MODULE_INDICATOR.
31435
31436         Tests of module 'search' in C++ mode.
31437         * tests/test-search-c++.cc: New file.
31438         * modules/search-tests (Files): Add it and tests/signature.h.
31439         (Depends-on): Add ansi-c++-opt.
31440         (Makefile.am): Arrange to compile and run test-search-c++.
31441         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31442         gl_MODULE_INDICATOR.
31443
31444         Tests of module 'math' in C++ mode.
31445         * tests/test-math-c++.cc: New file.
31446         * modules/math-tests (Files): Add it and tests/signature.h.
31447         (Depends-on): Add ansi-c++-opt.
31448         (Makefile.am): Arrange to compile and run test-math-c++.
31449         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31450
31451         Tests of module 'locale' in C++ mode.
31452         * tests/test-locale-c++.cc: New file.
31453         * modules/locale-tests (Files): Add it and tests/signature.h.
31454         (Depends-on): Add ansi-c++-opt.
31455         (Makefile.am): Arrange to compile and run test-locale-c++.
31456         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31457         gl_MODULE_INDICATOR.
31458
31459         Tests of module 'langinfo' in C++ mode.
31460         * tests/test-langinfo-c++.cc: New file.
31461         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31462         (Depends-on): Add ansi-c++-opt.
31463         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31464         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31465         gl_MODULE_INDICATOR.
31466
31467         Tests of module 'iconv-h' in C++ mode.
31468         * tests/test-iconv-h-c++.cc: New file.
31469         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31470         (Depends-on): Add ansi-c++-opt.
31471         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31472
31473         Tests of module 'glob' in C++ mode.
31474         * tests/test-glob-c++.cc: New file.
31475         * modules/glob-tests (Files): Add it.
31476         (Depends-on): Add ansi-c++-opt.
31477         (Makefile.am): Arrange to compile and run test-glob-c++.
31478
31479         Tests of module 'fcntl-h' in C++ mode.
31480         * tests/test-fcntl-h-c++.cc: New file.
31481         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31482         (Depends-on): Add ansi-c++-opt.
31483         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31484         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31485         gl_MODULE_INDICATOR.
31486
31487         Tests of module 'dirent' in C++ mode.
31488         * tests/test-dirent-c++.cc: New file.
31489         * modules/dirent-tests (Files): Add it and tests/signature.h.
31490         (Depends-on): Add ansi-c++-opt.
31491         (Makefile.am): Arrange to compile and run test-dirent-c++.
31492         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31493         gl_MODULE_INDICATOR.
31494
31495         New module 'ansi-c++-opt'.
31496         * modules/ansi-c++-opt: New file.
31497         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31498
31499         Document C++ namespace mode.
31500         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31501
31502         wctype: Avoid #define replacements in C++ mode.
31503         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31504         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31505         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31506         In C++, define a namespaced alias symbol.
31507         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31508         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31509         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31510         rule.
31511
31512         wchar: Avoid #define replacements in C++ mode.
31513         * lib/wchar.in.h: Include c++defs.h.
31514         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31515         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31516         symbol.
31517         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31518         * modules/wchar (Depends-on): Add c++defs.
31519         (Makefile.am): Update wchar.h rule.
31520
31521         unistd: Avoid #define replacements in C++ mode.
31522         * lib/unistd.in.h: Include c++defs.h.
31523         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31524         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31525         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31526         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31527         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31528         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31529         symbol.
31530         (environ): Update.
31531         * modules/unistd (Depends-on): Add c++defs.
31532         (Makefile.am): Update unistd.h rule.
31533
31534         time: Avoid #define replacements in C++ mode.
31535         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31536         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31537         define a namespaced alias symbol.
31538         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31539         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31540         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31541         * modules/time (Depends-on): Add c++defs, warn-on-use.
31542         (Makefile.am): Update time.h rule.
31543         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31544         * modules/nanosleep (configure.ac): Likewise.
31545         * modules/strptime (configure.ac): Likewise.
31546         * modules/timegm (configure.ac): Likewise.
31547
31548         sys_time: Avoid #define replacements in C++ mode.
31549         * lib/sys_time.in.h: Include c++defs.h.
31550         (gettimeofday): In C++, define a namespaced alias symbol.
31551         * modules/sys_time (Depends-on): Add c++defs.
31552         (Makefile.am): Update sys/time.h rule.
31553
31554         sys_stat: Avoid #define replacements in C++ mode.
31555         * lib/sys_stat.in.h: Include c++defs.h.
31556         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31557         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31558         namespaced alias symbol.
31559         In C++, define a namespaced alias symbol.
31560         * modules/sys_stat (Depends-on): Add c++defs.
31561         (Makefile.am): Update sys/stat.h rule.
31562
31563         sys_socket: Avoid #define replacements in C++ mode.
31564         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31565         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31566         definitions also when the system has a <sys/socket.h>.
31567         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31568         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31569         In C++, define a namespaced alias symbol.
31570         * modules/sys_socket (Depends-on): Add c++defs.
31571         (Makefile.am): Update sys/socket.h rule.
31572
31573         sys_select: Avoid #define replacements in C++ mode.
31574         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31575         definitions also when the system has a <sys/select.h>.
31576         (select): In C++, define a namespaced alias symbol.
31577         * modules/sys_select (Depends-on): Add c++defs.
31578         (Makefile.am): Update sys/select.h rule.
31579
31580         sys_ioctl: Avoid #define replacements in C++ mode.
31581         * lib/sys_ioctl.in.h: Include c++defs.h.
31582         (ioctl): In C++, define a namespaced alias symbol.
31583         * modules/sys_ioctl (Depends-on): Add c++defs.
31584         (Makefile.am): Update sys/ioctl.h rule.
31585
31586         string: Avoid #define replacements in C++ mode.
31587         * lib/string.in.h: Include c++defs.h.
31588         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31589         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31590         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31591         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31592         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31593         * modules/string (Depends-on): Add c++defs.
31594         (Makefile.am): Update string.h rule.
31595
31596         stdlib: Avoid #define replacements in C++ mode.
31597         * lib/stdlib.in.h: Include c++defs.h.
31598         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31599         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31600         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31601         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31602         symbol.
31603         * modules/stdlib (Depends-on): Add c++defs.
31604         (Makefile.am): Update stdlib.h rule.
31605
31606         stdio: Avoid #define replacements in C++ mode.
31607         * lib/stdio.in.h: Include c++defs.h.
31608         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31609         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31610         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31611         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31612         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31613         namespaced alias symbol.
31614         * modules/stdio (Depends-on): Add c++defs.
31615         (Makefile.am): Update stdio.h rule.
31616
31617         spawn: Avoid #define replacements in C++ mode.
31618         * lib/spawn.in.h: Include c++defs.h.
31619         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31620         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31621         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31622         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31623         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31624         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31625         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31626         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31627         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31628         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31629         In C++, define a namespaced alias symbol.
31630         * modules/spawn (Depends-on): Add c++defs.
31631         (Makefile.am): Update spawn.h rule.
31632
31633         signal: Avoid #define replacements in C++ mode.
31634         * lib/signal.in.h: Include c++defs.h.
31635         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31636         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31637         namespaced alias symbol.
31638         * modules/signal (Depends-on): Add c++defs.
31639         (Makefile.am): Update signal.h rule.
31640
31641         search: Avoid #define replacements in C++ mode.
31642         * lib/search.in.h: Include c++defs.h.
31643         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31644         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31645         symbol.
31646         * modules/search (Depends-on): Add c++defs.
31647         (Makefile.am): Update search.h rule.
31648
31649         math: Avoid #define replacements in C++ mode.
31650         * lib/math.in.h: Include c++defs.h.
31651         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31652         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31653         trunc, truncl): In C++, define a namespaced alias symbol.
31654         * modules/math (Depends-on): Add c++defs.
31655         (Makefile.am): Update math.h rule.
31656
31657         locale: Avoid #define replacements in C++ mode.
31658         * lib/locale.in.h: Include c++defs.h.
31659         (duplocale): In C++, define a namespaced alias symbol.
31660         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31661         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31662         * modules/locale (Depends-on): Add c++defs.
31663         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31664
31665         langinfo: Avoid #define replacements in C++ mode.
31666         * lib/langinfo.in.h: Include c++defs.h.
31667         (nl_langinfo): In C++, define a namespaced alias symbol.
31668         * modules/langinfo (Depends-on): Add c++defs.
31669         (Makefile.am): Update langinfo.h rule.
31670
31671         iconv-h: Avoid #define replacements in C++ mode.
31672         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31673         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31674         symbol.
31675         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31676         whenever iconv is present.
31677         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31678         (Makefile.am): Update iconv.h rule.
31679
31680         glob: Avoid #define replacements in C++ mode.
31681         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31682         (_gl_glob_errfunc_fn): New type.
31683         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31684         symbol.
31685         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31686         (Makefile.am): Update glob.h rule.
31687
31688         fcntl-h: Avoid #define replacements in C++ mode.
31689         * lib/fcntl.in.h: Include c++defs.h.
31690         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31691         * modules/fcntl-h (Depends-on): Add c++defs.
31692         (Makefile.am): Update fcntl.h rule.
31693
31694         dirent: Avoid #define replacements in C++ mode.
31695         * lib/dirent.in.h: Include c++defs.h.
31696         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31697         namespaced alias symbol.
31698         (dirfd): Update declaration.
31699         * modules/dirent (Depends-on): Add c++defs.
31700         (Makefile.am): Update dirent.h rule.
31701
31702         ctype: Make it usable in C++ code.
31703         * lib/ctype.in.h: Include c++defs.h.
31704         (isblank): Declare as extern "C".
31705         * modules/ctype (Depends-on): Add c++defs.
31706         (Makefile.am): Update ctype.h rule.
31707
31708         New module 'c++defs'.
31709         * modules/c++defs: New file.
31710         * build-aux/c++defs.h: New file.
31711         Reported by John W. Eaton <jwe@gnu.org>.
31712
31713 2010-03-07  Bruno Haible  <bruno@clisp.org>
31714
31715         logb: Provide missing declaration for Cygwin.
31716         * lib/math.in.h (logb): New declaration.
31717         * m4/logb.m4: New file.
31718         * modules/logb (Files): Add m4/logb.m4.
31719         (Depends-on): Add math.
31720         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31721         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31723         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31724         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31725
31726 2010-03-07  Bruno Haible  <bruno@clisp.org>
31727
31728         Fix test-cond link error.
31729         * tests/test-cond.c: Include <stdio.h>.
31730
31731 2010-03-07  Bruno Haible  <bruno@clisp.org>
31732
31733         Fix test-dirent-safer link error.
31734         * modules/dirent-safer-tests (Makefile.am): Define
31735         test_dirent_safer_LDADD.
31736
31737 2010-03-07  Bruno Haible  <bruno@clisp.org>
31738
31739         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31740         among default module list.
31741
31742 2010-03-07  Bruno Haible  <bruno@clisp.org>
31743
31744         Fix link error on platforms with GNU libiconv.
31745         * modules/unistr/u8-strcoll-tests (Makefile): Define
31746         test_u8_strcoll_LDADD.
31747         * modules/unistr/u16-strcoll-tests (Makefile): Define
31748         test_u16_strcoll_LDADD.
31749         * modules/unistr/u32-strcoll-tests (Makefile): Define
31750         test_u32_strcoll_LDADD.
31751
31752 2010-03-07  Bruno Haible  <bruno@clisp.org>
31753
31754         Use POSIX declarations for socket functions.
31755         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31756         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31757         rpl_sendto): Change declaration to match POSIX.
31758         * lib/connect.c (rpl_connect): Likewise.
31759         * lib/accept.c (rpl_accept): Likewise.
31760         * lib/bind.c (rpl_bind): Likewise.
31761         * lib/getpeername.c (rpl_getpeername): Likewise.
31762         * lib/getsockname.c (rpl_getsockname): Likewise.
31763         * lib/recv.c (rpl_recv): Likewise.
31764         * lib/send.c (rpl_send): Likewise.
31765         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31766         * lib/sendto.c (rpl_sendto): Likewise.
31767
31768 2010-03-06  Bruno Haible  <bruno@clisp.org>
31769
31770         Clarify access, euidaccess, faccessat.
31771         * doc/posix-functions/faccessat.texi: Mention security problem under
31772         "Other problems", not "Portability problems".
31773         * doc/posix-functions/access.texi: Likewise. Mention a related security
31774         problem.
31775         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31776         * lib/euidaccess.c: Add comments about platforms.
31777         * lib/unistd.in.h (access, euidaccess): Add warnings.
31778
31779 2010-03-07  Bruno Haible  <bruno@clisp.org>
31780
31781         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31782         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31783         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31784         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31785         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31786         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31787         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31788         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31789         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31790         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31791         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31792         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31793         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31794         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31795         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31796         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31797         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31798         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31799         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31800         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31801         Likewise.
31802         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31803         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31804         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31805         Likewise.
31806         * tests/test-spawn.c (main): Make it work when
31807         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31808
31809 2010-03-07  Bruno Haible  <bruno@clisp.org>
31810
31811         Fix incorrect Makefile.am generation in German locale.
31812         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31813         Execute sed command with character range in C locale.
31814
31815 2010-03-06  Bruno Haible  <bruno@clisp.org>
31816
31817         Tests for module 'iconv-h'.
31818         * modules/iconv-h-tests: New file.
31819         * tests/test-iconv-h.c: New file.
31820
31821         New module 'iconv-h'.
31822         * modules/iconv-h: New file.
31823         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31824         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31825         (configure.ac): Remove gl_ICONV_H.
31826         (Makefile.am): Remove rule for iconv.h.
31827
31828 2010-03-06  Bruno Haible  <bruno@clisp.org>
31829
31830         More consistent naming of *.m4 files.
31831         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31832         * modules/wctype (Files): Update.
31833
31834         More consistent naming of *.m4 files.
31835         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31836         * modules/wchar (Files): Update.
31837
31838 2010-03-06  Jim Meyering  <meyering@redhat.com>
31839
31840         euidaccess: relax license to LGPLv2+
31841         * modules/euidaccess (License): Relax to LGPLv2+.
31842
31843 2010-03-06  Bruno Haible  <bruno@clisp.org>
31844
31845         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31846         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31847         (Makefile.am): Augment lib_SOURCES instead.
31848
31849 2010-03-04  Jim Meyering  <meyering@redhat.com>
31850
31851         utime: remove obsolete module
31852         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31853         unnecessary for years, and has been marked as obsolete for 10 months.
31854         * modules/utime: Remove file.
31855         * lib/utime.c: Remove file.
31856         * m4/utime.m4: Remove file.
31857         * m4/utimes-null.m4: Remove file.
31858         * doc/posix-functions/utime.texi (utime): Remove reference to
31859         the module.  Move the sole "fixed by gnulib" item into the
31860         "problems not fixed by Gnulib" list.
31861         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31862
31863 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31864
31865         * modules/exit (License): Relax license to LGPLv2+.
31866         (Status): Mark as obsolete.
31867         * NEWS: Mention deprecated 'exit' module.
31868         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31869         of now obsolete 'exit'.
31870
31871 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31872
31873         fts-lgpl: remove unused module
31874         * modules/fts-lgpl: Remove.
31875         * MODULES.html.sh (func_all_modules): Adjust.
31876         * check-module (find_included_lib_files): Adjust.
31877         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31878
31879 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31880
31881         copy-acl: enhance Solaris ACL error handling
31882         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31883         * lib/set-mode-acl.c (qset_acl): Likewise.
31884
31885 2010-03-02  Bruno Haible  <bruno@clisp.org>
31886
31887         spawn: Don't override the system defined values on FreeBSD 8.
31888         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31889         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31890         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31891         if HAVE_POSIX_SPAWN is 1.
31892         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31893
31894 2010-03-01  Bruno Haible  <bruno@clisp.org>
31895
31896         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31897         regarding Automake.
31898
31899 2010-02-25  Bruno Haible  <bruno@clisp.org>
31900
31901         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31902         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31903         setting, not afterwards.
31904         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31905
31906 2010-02-24  Eric Blake  <eblake@redhat.com>
31907
31908         bootstrap, git-version-gen: use timestamp
31909         * build-aux/git-version-gen (scriptversion): Force UTC.
31910         * build-aux/bootstrap (scriptversion): New variable.
31911
31912         bootstrap: allow older git
31913         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31914         older than 1.6.4.  Requested by the libvirt project.
31915
31916 2010-02-23  Eric Blake  <eblake@redhat.com>
31917
31918         warn-on-use: work with old autoconf
31919         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31920         AS_VAR semantics of autoconf 2.60.
31921         Reported by Bruno Haible.
31922
31923         bootstrap: improve some comments
31924         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31925         clarification comments.
31926
31927         gettimeofday: provide correct function
31928         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31929         when replacement is declared, otherwise provide gettimeofday.
31930         Reported by Michael Goffioul.
31931
31932 2010-02-23  Jim Meyering  <meyering@redhat.com>
31933
31934         lib-ignore: relax license to "unlimited", not LGPLv2+
31935         * modules/lib-ignore (License): Relax to "unlimited".
31936
31937 2010-02-23  Jim Meyering  <meyering@redhat.com>
31938
31939         lib-ignore: relax license to LGPLv2+
31940         * modules/lib-ignore (License): Relax to LGPLv2+.
31941
31942 2010-02-22  Eric Blake  <eblake@redhat.com>
31943
31944         lseek: avoid bash 3.2 broken pipe bug
31945         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31946         warning from bash 3.2.
31947         Reported by Ben Pfaff, with analysis from Bruno Haible.
31948
31949         bootstrap: support non-FSF copyright holder
31950         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31951         bootstrap.conf override of COPYRIGHT_HOLDER.
31952         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31953
31954         bootstrap: interoperate with gettext 0.14.1
31955         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31956
31957         bootstrap: allow for alternate submodule location
31958         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31959         hardcoding submodule location.
31960         (gnulib_mk): Allow direct use of Makefile.am.
31961
31962         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31963         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31964         rather than reconfiguring where the submodule points.
31965
31966         gettimeofday: restore support for platforms that lack function
31967         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31968         replacement if function is missing.
31969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31970         * modules/sys_time (Makefile.am): Substitute it.
31971         * lib/sys_time.in.h (gettimeofday): Check it.
31972         Reported by Michael Goffioul.
31973
31974 2010-02-21  Bruno Haible  <bruno@clisp.org>
31975
31976         * lib/stdio.in.h (obstack_printf): Fix typo.
31977
31978 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31979
31980         vc-list-files: use bzr ls's -R option
31981         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31982         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31983
31984 2010-02-21  Jim Meyering  <meyering@redhat.com>
31985
31986         init.sh: fix EXEEXT shims to work also for names like test-prog
31987         * tests/init.sh: Re-exec a better shell, when needed.
31988         If the current shell lacks support for posix $(...), an init.sh-using
31989         test will now try to find a shell that supports that.  If EXEEXT is
31990         nonempty, we also require support for hyphen-in-alias-name and shell
31991         substitutions like ${var#glob}.  Failure to find such a shell results
31992         in a skipped test.
31993
31994 2010-02-21  Bruno Haible  <bruno@clisp.org>
31995
31996         Really work around around "broken pipe" error message from bash 3.2.
31997         * gnulib-tool (func_reset_sigpipe): Remove function.
31998         (echo): In bash 3.2, define to a function that uses printf.
31999         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32000
32001 2010-02-20  Bruno Haible  <bruno@clisp.org>
32002
32003         Restore support for automake 1.9.6 with autoconf 2.61.
32004         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32005         Reported by James Youngman <jay@gnu.org>.
32006
32007 2010-02-20  Bruno Haible  <bruno@clisp.org>
32008
32009         Improve *printf warning condition.
32010         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32011         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32012         and the function is overridden due to SIGPIPE emulation.
32013
32014 2010-02-20  Bruno Haible  <bruno@clisp.org>
32015
32016         * lib/stdio.in.h: Tweak comments.
32017
32018 2010-02-19  Bruno Haible  <bruno@clisp.org>
32019
32020         Make it easier to find modules. New gnulib-tool option '--find'.
32021         * gnulib-tool: New option --find.
32022         (func_usage): Document it.
32023         (func_sanitize_modulelist): New function, extracted from
32024         func_all_modules.
32025         (func_all_modules): Invoke it.
32026         * doc/gnulib-tool.texi (Which modules?): New node.
32027
32028 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32029
32030         * lib/sys_select.in.h: Provide select replacement even if
32031         sys/select.h exists on a system, for Interix.
32032
32033 2010-02-18  Jim Meyering  <meyering@redhat.com>
32034
32035         init.sh: don't use $(...) just yet
32036         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32037         to accommodate e.g., Solaris' /bin/sh.
32038
32039 2010-02-17  Bruno Haible  <bruno@clisp.org>
32040
32041         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32042         Reported by Ludovic Courtès <ludo@gnu.org>.
32043
32044 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32045
32046         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32047         linking with -lintl.
32048
32049 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32050
32051         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32052         if not provided by the system's netdb.h.  Reported by
32053         ludo@gnu.org (Ludovic Courtès).
32054
32055 2010-02-15  Jim Meyering  <meyering@redhat.com>
32056
32057         init.sh: improve portability and efficiency
32058         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32059         "dummy" in a for loop.
32060         Use '!', not '^' to select the complement of a character set used
32061         in a "case" statement.
32062         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32063         Suggestions from Eric Blake.
32064
32065         init.sh: automatically accommodate programs with the .exe suffix
32066         Automatically arrange for an invocation of "prog" to execute the
32067         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32068         may use the simpler "prog", yet still work when built on a system
32069         that requires specifying the added suffix.
32070         Do this by constructing a function named "prog" that invokes
32071         "prog.exe" for each .exe file in selected directories.
32072         * tests/init.sh (find_exe_basenames_): New function.
32073         (create_exe_shim_functions_): New function.
32074         (path_prepend_): Use it.
32075
32076         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32077         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32078         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32079
32080 2010-02-14  Jim Meyering  <meyering@redhat.com>
32081
32082         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32083         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32084         (sc_prohibit_hash_pjw_without_use): New rule.
32085
32086         maint.mk: allow the default upload destination dir to be overridden
32087         * top/maint.mk (upload_dest_dir_): Define with a default that
32088         preserves the status quo.
32089         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32090         Reported by Peter Simons.
32091
32092         maint.mk: prohibit inclusion of "hash.h" without_use
32093         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32094
32095 2010-02-10  Jim Meyering  <meyering@redhat.com>
32096
32097         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32098         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32099
32100 2010-02-09  Eric Blake  <ebb9@byu.net>
32101         and Bruno Haible  <bruno@clisp.org>
32102
32103         obstack-printf-posix: ensure declaration
32104         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32105         extracted from gl_FUNC_OBSTACK_PRINTF.
32106         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32107         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32108         Likewise.
32109         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32110         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32111         0.
32112
32113 2010-02-08  Bruno Haible  <bruno@clisp.org>
32114
32115         gnulib-tool: Fix typo in 2010-02-07 commit.
32116         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32117         Reported by Eric Blake.
32118
32119 2010-02-07  Bruno Haible  <bruno@clisp.org>
32120
32121         gnulib-tool: Fix up caching patches.
32122         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32123         option --no-cache. Use associative arrays when supported by the shell.
32124         (sed_comments): New variable.
32125         (modcache): Renamed from do_cache.
32126         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32127         abbreviate unnecessarily.
32128         (have_associative): New variable.
32129         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32130         way also for ksh and zsh.
32131         (func_init_sed_convert_to_cache_statements): New function, extracted
32132         from func_cache_lookup_module. Add support for associative arrays.
32133         Don't set the c_MODULE_cached variable here. Ignore all lines before
32134         the first field header. Remove only the final newline, not all trailing
32135         newlines. Support empty fields correctly. Limit the use of 'eval' to
32136         assignments.
32137         (func_get_description, func_get_status, func_get_notice,
32138         func_get_applicability, func_get_filelist, func_get_dependencies,
32139         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32140         func_get_automake_snippet, func_get_include_directive,
32141         func_get_link_directive, func_get_license, func_get_maintainer):
32142         Update documentation. List the unoptimized code first. Add support for
32143         associative arrays. Limit the use of 'eval' to assignments.
32144         (func_get_applicability): Undo stylistic pessimisations.
32145         (func_get_automake_snippet, func_get_include_directive): Reduce code
32146         duplication.
32147         (func_modules_transitive_closure, func_modules_add_dummy,
32148         func_modules_notice, func_modules_to_filelist, func_add_file,
32149         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32150         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32151         func_create_testdir, func_create_megatestdir): Update documentation.
32152
32153 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32154
32155         * gnulib-tool (func_cache_lookup_module): Store the module name
32156         belonging to the cache variable; error out if two different
32157         module names map to the same cache variable name.
32158
32159 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32160
32161         gnulib-tool: Make caching optional.
32162         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32163         Update matching short versions of --no-changelog.
32164         (func_usage): Update.
32165         (sed_extract_cache_prog): Renamed from ...
32166         (sed_extract_prog): ... this; revert to old extraction script.
32167         (func_get_description, func_get_status)
32168         (func_get_notice, func_get_applicability, func_get_filelist)
32169         (func_get_dependencies, func_get_autoconf_early_snippet)
32170         (func_get_autoconf_snippet, func_get_automake_snippet)
32171         (func_get_include_directive, func_get_link_directive)
32172         (func_get_license, func_get_maintainer): If $do_cache is false,
32173         use old, non-caching extraction scripts.
32174         Suggestion by Bruno Haible.
32175
32176 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32177
32178         gnulib-tool: cache module metainformation.
32179         * gnulib-tool (sed_extract_prog): Match newline before each
32180         header, and rewrite header to a shell variable suffix.
32181         (func_cache_var, func_cache_lookup_module): New functions,
32182         to turn a module name into a cache variable prefix, and to
32183         look up and cache module metainformation.
32184         (func_get_description, func_get_status)
32185         (func_get_notice, func_get_applicability, func_get_filelist)
32186         (func_get_dependencies, func_get_autoconf_early_snippet)
32187         (func_get_autoconf_snippet, func_get_automake_snippet)
32188         (func_get_include_directive, func_get_link_directive)
32189         (func_get_license, func_get_maintainer): Use
32190         func_cache_lookup_module.
32191
32192 2010-02-07  Bruno Haible  <bruno@clisp.org>
32193
32194         fnctl: Fix missing dependency.
32195         * modules/fcntl (Depends-on): Add getdtablesize.
32196         Reported by John W. Eaton <jwe@gnu.org>.
32197
32198 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32199
32200         Argp: fix recognition of short alias options.
32201
32202         * lib/argp-parse.c (convert_options): Fix improper use of
32203         `|' between character values.
32204         * tests/test-argp.c (group1_option): New alias option
32205         --read (-r).
32206         (group1_parser): Special handling for 'r'.
32207         (test15): New test case.
32208         (test_fun): Add test15.
32209         * tests/test-argp-2.sh: Update expected --help and --usage
32210         outputs.
32211
32212 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32213
32214         * tests/test-argp.c: Fix indentation.
32215
32216 2010-02-04  Eric Blake  <ebb9@byu.net>
32217
32218         gettimeofday: expose type of second argument
32219         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32220         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32221         * tests/test-gettimeofday.c: Use it to silence warning.
32222         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32223         the issue.
32224
32225 2010-02-03  Jim Meyering  <meyering@redhat.com>
32226
32227         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32228         * lib/regcomp.c (TYPE_SIGNED): Define.
32229         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32230
32231         regcomp.c: avoid a new -Wshadow warning
32232         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32233
32234 2010-02-01  Jim Meyering  <meyering@redhat.com>
32235
32236         removing useless parentheses in cpp #define directives
32237         For motivation, see commit c0221df4, "define STREQ(a,b)
32238         consistently, removing useless parentheses"
32239         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32240         * lib/mountlist.c (MNT_IGNORE): Likewise.
32241         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32242
32243 2010-02-01  Eric Blake  <ebb9@byu.net>
32244
32245         sys_time: use link-warning
32246         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32247         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32248         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32249         * modules/sys_time (Depends-on): Add warn-on-use.
32250         (Makefile.am): Always build replacement.
32251         (configure.ac): Update substitutions.
32252         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32253         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32254         bother with SYS_TIME_H.
32255         * modules/gettimeofday (configure.ac): Declare indicator.
32256         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32257         in use.
32258
32259         closein-tests: silence compiler warning
32260         * tests/test-closein.c (main): Ignore fread result.
32261         * modules/closein-tests (Depends-on): Add ignore-value.
32262
32263         tests: silence warning about system return
32264         * tests/test-areadlink-with-size.c (main): Ignore system result.
32265         * tests/test-areadlink.c (main): Likewise.
32266         * tests/test-areadlinkat-with-size.c (main): Likewise.
32267         * tests/test-areadlinkat.c (main): Likewise.
32268         * tests/test-canonicalize-lgpl.c (main): Likewise.
32269         * tests/test-canonicalize.c (main): Likewise.
32270         * tests/test-chown.c (main): Likewise.
32271         * tests/test-fchownat.c (main): Likewise.
32272         * tests/test-fdutimensat.c (main): Likewise.
32273         * tests/test-fstatat.c (main): Likewise.
32274         * tests/test-futimens.c (main): Likewise.
32275         * tests/test-lchown.c (main): Likewise.
32276         * tests/test-link.c (main): Likewise.
32277         * tests/test-linkat.c (main): Likewise.
32278         * tests/test-lstat.c (main): Likewise.
32279         * tests/test-mkdir.c (main): Likewise.
32280         * tests/test-mkdirat.c (main): Likewise.
32281         * tests/test-mkfifo.c (main): Likewise.
32282         * tests/test-mkfifoat.c (main): Likewise.
32283         * tests/test-mknod.c (main): Likewise.
32284         * tests/test-readlink.c (main): Likewise.
32285         * tests/test-remove.c (main): Likewise.
32286         * tests/test-rename.c (main): Likewise.
32287         * tests/test-renameat.c (main): Likewise.
32288         * tests/test-rmdir.c (main): Likewise.
32289         * tests/test-symlink.c (main): Likewise.
32290         * tests/test-symlinkat.c (main): Likewise.
32291         * tests/test-unlink.c (main): Likewise.
32292         * tests/test-unlinkat.c (main): Likewise.
32293         * tests/test-utimens.c (main): Likewise.
32294         * tests/test-utimensat.c (main): Likewise.
32295         * modules/areadlink-tests (Depends-on): Add ignore-value.
32296         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32297         * modules/areadlinkat-tests (Depends-on): Likewise.
32298         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32299         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32300         * modules/canonicalize-tests (Depends-on): Likewise.
32301         * modules/chown-tests (Depends-on): Likewise.
32302         * modules/fdutimensat-tests (Depends-on): Likewise.
32303         * modules/futimens-tests (Depends-on): Likewise.
32304         * modules/lchown-tests (Depends-on): Likewise.
32305         * modules/link-tests (Depends-on): Likewise.
32306         * modules/linkat-tests (Depends-on): Likewise.
32307         * modules/lstat-tests (Depends-on): Likewise.
32308         * modules/mkdir-tests (Depends-on): Likewise.
32309         * modules/mkfifo-tests (Depends-on): Likewise.
32310         * modules/mkfifoat-tests (Depends-on): Likewise.
32311         * modules/mknod-tests (Depends-on): Likewise.
32312         * modules/openat-tests (Depends-on): Likewise.
32313         * modules/readlink-tests (Depends-on): Likewise.
32314         * modules/remove-tests (Depends-on): Likewise.
32315         * modules/rename-tests (Depends-on): Likewise.
32316         * modules/renameat-tests (Depends-on): Likewise.
32317         * modules/rmdir-tests (Depends-on): Likewise.
32318         * modules/symlink-tests (Depends-on): Likewise.
32319         * modules/symlinkat-tests (Depends-on): Likewise.
32320         * modules/unlink-tests (Depends-on): Likewise.
32321         * modules/utimens-tests (Depends-on): Likewise.
32322         * modules/utimensat-tests (Depends-on): Likewise.
32323
32324 2010-01-31  Bruno Haible  <bruno@clisp.org>
32325
32326         Perform the same test for many <math.h> functions.
32327         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32328         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32329         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32330         of gl_MATHFUNC.
32331         * modules/acos (configure.ac): Likewise.
32332         * modules/asin (configure.ac): Likewise.
32333         * modules/atan (configure.ac): Likewise.
32334         * modules/atan2 (configure.ac): Likewise.
32335         * modules/cbrt (configure.ac): Likewise.
32336         * modules/copysign (configure.ac): Likewise.
32337         * modules/cos (configure.ac): Likewise.
32338         * modules/cosh (configure.ac): Likewise.
32339         * modules/erf (configure.ac): Likewise.
32340         * modules/erfc (configure.ac): Likewise.
32341         * modules/exp (configure.ac): Likewise.
32342         * modules/fmod (configure.ac): Likewise.
32343         * modules/hypot (configure.ac): Likewise.
32344         * modules/j0 (configure.ac): Likewise.
32345         * modules/j1 (configure.ac): Likewise.
32346         * modules/jn (configure.ac): Likewise.
32347         * modules/lgamma (configure.ac): Likewise.
32348         * modules/log (configure.ac): Likewise.
32349         * modules/log10 (configure.ac): Likewise.
32350         * modules/log1p (configure.ac): Likewise.
32351         * modules/pow (configure.ac): Likewise.
32352         * modules/remainder (configure.ac): Likewise.
32353         * modules/sin (configure.ac): Likewise.
32354         * modules/sinh (configure.ac): Likewise.
32355         * modules/tan (configure.ac): Likewise.
32356         * modules/tanh (configure.ac): Likewise.
32357         * modules/y0 (configure.ac): Likewise.
32358         * modules/y1 (configure.ac): Likewise.
32359         * modules/yn (configure.ac): Likewise.
32360         Suggested by Paolo Bonzini.
32361
32362 2010-01-31  Bruno Haible  <bruno@clisp.org>
32363
32364         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32365
32366 2010-01-31  Bruno Haible  <bruno@clisp.org>
32367
32368         Work around getdelim() bug on FreeBSD 8.0.
32369         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32370         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32371         not work.
32372         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32373         is 1.
32374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32375         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32376         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32377         a non-zero size.
32378         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32379
32380 2010-01-31  Bruno Haible  <bruno@clisp.org>
32381
32382         Work around getline() bug on FreeBSD 8.0.
32383         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32384         and a non-zero size.
32385         * tests/test-getline.c (main): Likewise.
32386         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32387         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32388
32389 2010-01-28  Eric Blake  <ebb9@byu.net>
32390
32391         regex: fix build failure
32392         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32393         platforms.
32394
32395 2010-01-28  Jim Meyering  <meyering@redhat.com>
32396
32397         regex: do not ignore memory allocation failure
32398         * lib/regex_internal.c (create_cd_newstate): Detect
32399         re_node_set_init_copy failure.   Extracted from glibc commit
32400         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32401
32402         regex: sync more white-space changes from libc
32403         * lib/regex_internal.c: White-space only changes.
32404         * lib/regexec.c: Likewise.
32405
32406         regex: add many uses of __attribute_warn_unused_result__
32407         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32408         * lib/regexec.c: Likewise.
32409         Extracted from a messy glibc commit.
32410
32411         regcomp.c: spelling and merge-artifact from glibc
32412         * lib/regcomp.c: Merge remainder of glibc's
32413         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32414
32415         regcomp.c: sync white-space changes from glibc
32416         * lib/regcomp.c: Merge to accommodate white space
32417         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32418
32419         regcomp.c: do not ignore internal return values
32420         * lib/regcomp.c: Do not ignore internal return values.
32421         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32422         but without its white-space changes and spelling fixes.
32423
32424         regex_internal.h: define __attribute_warn_unused_result__
32425         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32426
32427         maint: add a syntax-check rule to check for vulnerable Makefile.in
32428         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32429
32430 2010-01-27  Jim Meyering  <meyering@redhat.com>
32431
32432         ncftpput-ftp: clean up spaces
32433         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32434         Remove trailing blanks.
32435
32436 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32437
32438         * build-aux/git-version-gen: Fix copyright statement.
32439         * build-aux/gnupload: Likewise.
32440         * tests/test-arcfour.c: Likewise.
32441         * tests/test-arctwo.c: Likewise.
32442         * tests/test-count-one-bits.c: Likewise.
32443         * tests/test-crc.c: Likewise.
32444         * tests/test-des.c: Likewise.
32445         * tests/test-gc-arcfour.c: Likewise.
32446         * tests/test-gc-arctwo.c: Likewise.
32447         * tests/test-gc-des.c: Likewise.
32448         * tests/test-gc-hmac-md5.c: Likewise.
32449         * tests/test-gc-hmac-sha1.c: Likewise.
32450         * tests/test-gc-md2.c: Likewise.
32451         * tests/test-gc-md4.c: Likewise.
32452         * tests/test-gc-md5.c: Likewise.
32453         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32454         * tests/test-gc-rijndael.c: Likewise.
32455         * tests/test-gc-sha1.c: Likewise.
32456         * tests/test-gc.c: Likewise.
32457         * tests/test-gethostname.c: Likewise.
32458         * tests/test-gettimeofday.c: Likewise.
32459         * tests/test-hash.c: Likewise.
32460         * tests/test-hmac-md5.c: Likewise.
32461         * tests/test-hmac-sha1.c: Likewise.
32462         * tests/test-md2.c: Likewise.
32463         * tests/test-md4.c: Likewise.
32464         * tests/test-md5.c: Likewise.
32465         * tests/test-memchr.c: Likewise.
32466         * tests/test-memchr2.c: Likewise.
32467         * tests/test-memcmp.c: Likewise.
32468         * tests/test-memmem.c: Likewise.
32469         * tests/test-memrchr.c: Likewise.
32470         * tests/test-rawmemchr.c: Likewise.
32471         * tests/test-read-file.c: Likewise.
32472         * tests/test-rijndael.c: Likewise.
32473         * tests/test-sockets.c: Likewise.
32474         * tests/test-strchrnul.c: Likewise.
32475         * tests/test-strstr.c: Likewise.
32476         * tests/test-strtod.c: Likewise.
32477         * build-aux/ncftpput-ftp: Likewise.
32478
32479 2010-01-26  Eric Blake  <ebb9@byu.net>
32480
32481         ignore-value: update recommended header name
32482         * modules/ignore-value (Include): Only use <> for headers that
32483         exist in glibc.
32484
32485 2010-01-26  Jim Meyering  <meyering@redhat.com>
32486
32487         test-userspec.c: avoid compiler warnings
32488         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32489         and "initialization discards qualifiers..." warnings.
32490         Put the first "uid" in its own scope, and make char* members "const".
32491
32492 2010-01-25  Bruno Haible  <bruno@clisp.org>
32493
32494         gnulib-tool: Make warning diagnostics consistent.
32495         * gnulib-tool (func_warning): New function.
32496         Use it everywhere where gnulib-tool produces output to stderr and it is
32497         not a fatal error.
32498
32499 2010-01-25  Bruno Haible  <bruno@clisp.org>
32500
32501         Fix test dependencies.
32502         * modules/xstrtol-tests (Depends-on): Add inttypes.
32503         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32504
32505 2010-01-25 Pádraig Brady <P@draigBrady.com>
32506
32507         syntax-check: detect incorrect boolean macro values in config.h
32508         * modules/maintainer-makefile (configure.ac): Parameterize the location
32509         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32510         The logic is from Eric Blake and the location indicated by Jim Meyering.
32511         Note the more natural CONFIG_HEADER name is prohibited by automake
32512         for backwards compatibility reasons.
32513         * top/maint.mk (sc_Wundef_boolean): New rule.
32514
32515 2010-01-25  Jim Meyering  <meyering@redhat.com>
32516
32517         bootstrap: detect MacOS 10.6's shasum, too
32518         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32519         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32520
32521 2010-01-23  Jim Meyering  <meyering@redhat.com>
32522
32523         xstrtoll: new module
32524         * modules/xstrtoll: New file.
32525         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32526         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32527         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32528         ./configure fails if you use this module and lack "long long".
32529         * modules/xstrtoll-tests: New module.
32530         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32531         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32532         new init.sh-based test framework.
32533
32534 2010-01-24  Bruno Haible  <bruno@clisp.org>
32535
32536         Tests for module 'yn'.
32537         * modules/yn-tests: New file.
32538         * tests/test-yn.c: New file.
32539
32540         Tests for module 'y1'.
32541         * modules/y1-tests: New file.
32542         * tests/test-y1.c: New file.
32543
32544         Tests for module 'y0'.
32545         * modules/y0-tests: New file.
32546         * tests/test-y0.c: New file.
32547
32548         Tests for module 'tanh'.
32549         * modules/tanh-tests: New file.
32550         * tests/test-tanh.c: New file.
32551
32552         Tests for module 'tan'.
32553         * modules/tan-tests: New file.
32554         * tests/test-tan.c: New file.
32555
32556         Tests for module 'sqrt'.
32557         * modules/sqrt-tests: New file.
32558         * tests/test-sqrt.c: New file.
32559
32560         Tests for module 'sinh'.
32561         * modules/sinh-tests: New file.
32562         * tests/test-sinh.c: New file.
32563
32564         Tests for module 'sin'.
32565         * modules/sin-tests: New file.
32566         * tests/test-sin.c: New file.
32567
32568         Tests for module 'rint'.
32569         * modules/rint-tests: New file.
32570         * tests/test-rint.c: New file.
32571
32572         Tests for module 'remainder'.
32573         * modules/remainder-tests: New file.
32574         * tests/test-remainder.c: New file.
32575
32576         Tests for module 'pow'.
32577         * modules/pow-tests: New file.
32578         * tests/test-pow.c: New file.
32579
32580         Tests for module 'nextafter'.
32581         * modules/nextafter-tests: New file.
32582         * tests/test-nextafter.c: New file.
32583
32584         Tests for module 'modf'.
32585         * modules/modf-tests: New file.
32586         * tests/test-modf.c: New file.
32587
32588         Tests for module 'logb'.
32589         * modules/logb-tests: New file.
32590         * tests/test-logb.c: New file.
32591
32592         Tests for module 'log1p'.
32593         * modules/log1p-tests: New file.
32594         * tests/test-log1p.c: New file.
32595
32596         Tests for module 'log10'.
32597         * modules/log10-tests: New file.
32598         * tests/test-log10.c: New file.
32599
32600         Tests for module 'log'.
32601         * modules/log-tests: New file.
32602         * tests/test-log.c: New file.
32603
32604         Tests for module 'lgamma'.
32605         * modules/lgamma-tests: New file.
32606         * tests/test-lgamma.c: New file.
32607
32608         Tests for module 'ldexp'.
32609         * modules/ldexp-tests: New file.
32610         * tests/test-ldexp.c: New file.
32611
32612         Tests for module 'jn'.
32613         * modules/jn-tests: New file.
32614         * tests/test-jn.c: New file.
32615
32616         Tests for module 'j1'.
32617         * modules/j1-tests: New file.
32618         * tests/test-j1.c: New file.
32619
32620         Tests for module 'j0'.
32621         * modules/j0-tests: New file.
32622         * tests/test-j0.c: New file.
32623
32624         Tests for module 'hypot'.
32625         * modules/hypot-tests: New file.
32626         * tests/test-hypot.c: New file.
32627
32628         Tests for module 'fmod'.
32629         * modules/fmod-tests: New file.
32630         * tests/test-fmod.c: New file.
32631
32632         Tests for module 'fabs'.
32633         * modules/fabs-tests: New file.
32634         * tests/test-fabs.c: New file.
32635
32636         Tests for module 'exp'.
32637         * modules/exp-tests: New file.
32638         * tests/test-exp.c: New file.
32639
32640         Tests for module 'erfc'.
32641         * modules/erfc-tests: New file.
32642         * tests/test-erfc.c: New file.
32643
32644         Tests for module 'erf'.
32645         * modules/erf-tests: New file.
32646         * tests/test-erf.c: New file.
32647
32648         Tests for module 'cosh'.
32649         * modules/cosh-tests: New file.
32650         * tests/test-cosh.c: New file.
32651
32652         Tests for module 'cos'.
32653         * modules/cos-tests: New file.
32654         * tests/test-cos.c: New file.
32655
32656         Tests for module 'copysign'.
32657         * modules/copysign-tests: New file.
32658         * tests/test-copysign.c: New file.
32659
32660         Tests for module 'cbrt'.
32661         * modules/cbrt-tests: New file.
32662         * tests/test-cbrt.c: New file.
32663
32664         Tests for module 'atan2'.
32665         * modules/atan2-tests: New file.
32666         * tests/test-atan2.c: New file.
32667
32668         Tests for module 'atan'.
32669         * modules/atan-tests: New file.
32670         * tests/test-atan.c: New file.
32671
32672         Tests for module 'asin'.
32673         * modules/asin-tests: New file.
32674         * tests/test-asin.c: New file.
32675
32676         Tests for module 'acos'.
32677         * modules/acos-tests: New file.
32678         * tests/test-acos.c: New file.
32679
32680 2010-01-24  Bruno Haible  <bruno@clisp.org>
32681
32682         Fix tests for common <math.h> functions.
32683         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32684         code snippet that references the function pointer, rather than merely
32685         calling the function. Substitute the FUNC_LIBM variable.
32686         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32687         * modules/acos (configure.ac): Likewise.
32688         * modules/asin (configure.ac): Likewise.
32689         * modules/atan (configure.ac): Likewise.
32690         * modules/atan2 (configure.ac): Likewise.
32691         * modules/cbrt (configure.ac): Likewise.
32692         * modules/copysign (configure.ac): Likewise.
32693         * modules/cos (configure.ac): Likewise.
32694         * modules/cosh (configure.ac): Likewise.
32695         * modules/erf (configure.ac): Likewise.
32696         * modules/erfc (configure.ac): Likewise.
32697         * modules/exp (configure.ac): Likewise.
32698         * modules/fabs (configure.ac): Likewise.
32699         * modules/fmod (configure.ac): Likewise.
32700         * modules/hypot (configure.ac): Likewise.
32701         * modules/j0 (configure.ac): Likewise.
32702         * modules/j1 (configure.ac): Likewise.
32703         * modules/jn (configure.ac): Likewise.
32704         * modules/ldexp (configure.ac): Likewise.
32705         * modules/lgamma (configure.ac): Likewise.
32706         * modules/log (configure.ac): Likewise.
32707         * modules/log10 (configure.ac): Likewise.
32708         * modules/log1p (configure.ac): Likewise.
32709         * modules/logb (configure.ac): Likewise.
32710         * modules/modf (configure.ac): Likewise.
32711         * modules/nextafter (configure.ac): Likewise.
32712         * modules/pow (configure.ac): Likewise.
32713         * modules/remainder (configure.ac): Likewise.
32714         * modules/rint (configure.ac): Likewise.
32715         * modules/sin (configure.ac): Likewise.
32716         * modules/sinh (configure.ac): Likewise.
32717         * modules/tan (configure.ac): Likewise.
32718         * modules/tanh (configure.ac): Likewise.
32719         * modules/y0 (configure.ac): Likewise.
32720         * modules/y1 (configure.ac): Likewise.
32721         * modules/yn (configure.ac): Likewise.
32722
32723 2010-01-24  Bruno Haible  <bruno@clisp.org>
32724
32725         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32726         * tests/test-acosl.c (x): New variable.
32727         (main): Store argument in x and fetch it from x.
32728         * tests/test-asinl.c (x): New variable.
32729         (main): Store argument in x and fetch it from x.
32730         * tests/test-atanl.c (x): New variable.
32731         (main): Store argument in x and fetch it from x.
32732         * tests/test-cosl.c (x): New variable.
32733         (main): Store argument in x and fetch it from x.
32734         * tests/test-expl.c (x): New variable.
32735         (main): Store argument in x and fetch it from x.
32736         * tests/test-logl.c (x): New variable.
32737         (main): Store argument in x and fetch it from x.
32738         * tests/test-sinl.c (x): New variable.
32739         (main): Store argument in x and fetch it from x.
32740         * tests/test-sqrtl.c (x): New variable.
32741         (main): Store argument in x and fetch it from x.
32742         * tests/test-tanl.c (x): New variable.
32743         (main): Store argument in x and fetch it from x.
32744
32745 2010-01-24  Bruno Haible  <bruno@clisp.org>
32746
32747         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32748         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32749         assignments to the initial TESTS_ENVIRONMENT.
32750         * doc/gnulib.texi (Unit test modules): Document it.
32751         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32752         TESTS_ENVIRONMENT.
32753         * modules/btowc-tests (Makefile.am): Likewise.
32754         * modules/c-stack-tests (Makefile.am): Likewise.
32755         * modules/c-strcase-tests (Makefile.am): Likewise.
32756         * modules/copy-file-tests (Makefile.am): Likewise.
32757         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32758         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32759         * modules/mbrtowc-tests (Makefile.am): Likewise.
32760         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32761         * modules/mbscasestr-tests (Makefile.am): Likewise.
32762         * modules/mbschr-tests (Makefile.am): Likewise.
32763         * modules/mbscspn-tests (Makefile.am): Likewise.
32764         * modules/mbsinit-tests (Makefile.am): Likewise.
32765         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32766         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32767         * modules/mbspbrk-tests (Makefile.am): Likewise.
32768         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32769         * modules/mbsrchr-tests (Makefile.am): Likewise.
32770         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32771         * modules/mbsspn-tests (Makefile.am): Likewise.
32772         * modules/mbsstr-tests (Makefile.am): Likewise.
32773         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32774         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32775         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32776         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32777         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32778         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32779         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32780         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32781         * modules/wcrtomb-tests (Makefile.am): Likewise.
32782         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32783         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32784         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32785         assignments from TESTS_ENVIRONMENT.
32786         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32787         augmentation.
32788         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32789         * modules/atexit-tests (Makefile.am): Likewise.
32790         * modules/binary-io-tests (Makefile.am): Likewise.
32791         * modules/closein-tests (Makefile.am): Likewise.
32792         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32793         * modules/exclude-tests (Makefile.am): Likewise.
32794         * modules/fflush-tests (Makefile.am): Likewise.
32795         * modules/fpending-tests (Makefile.am): Likewise.
32796         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32797         * modules/freadahead-tests (Makefile.am): Likewise.
32798         * modules/freadptr-tests (Makefile.am): Likewise.
32799         * modules/freadseek-tests (Makefile.am): Likewise.
32800         * modules/fseek-tests (Makefile.am): Likewise.
32801         * modules/fseeko-tests (Makefile.am): Likewise.
32802         * modules/ftell-tests (Makefile.am): Likewise.
32803         * modules/ftello-tests (Makefile.am): Likewise.
32804         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32805         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32806         * modules/lseek-tests (Makefile.am): Likewise.
32807         * modules/parse-duration-tests (Makefile.am): Likewise.
32808         * modules/perror-tests (Makefile.am): Likewise.
32809         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32810         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32811         * modules/pipe-tests (Makefile.am): Likewise.
32812         * modules/pread-tests (Makefile.am): Likewise.
32813         * modules/printf-posix-tests (Makefile.am): Likewise.
32814         * modules/select-tests (Makefile.am): Likewise.
32815         * modules/sigpipe-tests (Makefile.am): Likewise.
32816         * modules/tsearch-tests (Makefile.am): Likewise.
32817         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32818         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32819         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32820         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32821         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32822         * modules/version-etc-tests (Makefile.am): Likewise.
32823         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32824         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32825         * modules/xalloc-die-tests (Makefile.am): Likewise.
32826         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32827         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32828         * modules/xstrtol-tests (Makefile.am): Likewise.
32829         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32830         * modules/yesno-tests (Makefile.am): Likewise.
32831         Suggested by Jim Meyering.
32832
32833 2010-01-24  Bruno Haible  <bruno@clisp.org>
32834
32835         More documentation.
32836         * doc/gnulib.texi (Writing modules): New chapter.
32837         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32838         the new chapter.
32839
32840 2010-01-24  Jim Meyering  <meyering@redhat.com>
32841
32842         maint.mk: do not prepend "./" after filtering
32843         * top/maint.mk (_prepend_srcdir_prefix): New variable
32844         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32845         "./" when $(srcdir) is ".".
32846
32847         define STREQ(a,b) consistently, removing useless parentheses
32848         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32849         since the only risk is that "a" or "b" contains an unparenthesized
32850         comma, but if either did that, STREQ would have 3 or more arguments.
32851         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32852         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32853         * lib/hash-triple.c (STREQ): Likewise.
32854         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32855         * lib/getugroups.c (STREQ): Likewise.
32856
32857 2010-01-23  Jim Meyering  <meyering@redhat.com>
32858
32859         maint.mk: fix syntax-check in a non-srcdir build directory
32860         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32861         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32862
32863 2010-01-22  Jim Meyering  <meyering@redhat.com>
32864
32865         userspec: add unit tests
32866         * tests/test-userspec.c: New file.
32867         * modules/userspec-tests: Likewise.
32868
32869 2010-01-21  Jim Meyering  <meyering@redhat.com>
32870
32871         maint.mk: handle source file names containing "." robustly
32872         * top/maint.mk (_dot_escaped_srcdir): Define.
32873         (VC_LIST): Use it in LHS of sed substitution.
32874
32875 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32876
32877         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32878         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32879         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32880         from a non-srcdir build.
32881
32882 2010-01-20  Eric Blake  <ebb9@byu.net>
32883
32884         warn-on-use: use instead of link-warning
32885         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32886         * modules/unistd (Depends-on, Makefile.am): Likewise.
32887         * modules/arpa_inet (Depends-on): Replace link-warning with
32888         warn-on-use.
32889         (Makefile.am): Update rules accordingly.
32890         * modules/ctype (Depends-on, Makefile.am): Likewise.
32891         * modules/dirent (Depends-on, Makefile.am): Likewise.
32892         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32893         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32894         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32895         * modules/locale (Depends-on, Makefile.am): Likewise.
32896         * modules/math (Depends-on, Makefile.am): Likewise.
32897         * modules/search (Depends-on, Makefile.am): Likewise.
32898         * modules/signal (Depends-on, Makefile.am): Likewise.
32899         * modules/spawn (Depends-on, Makefile.am): Likewise.
32900         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32901         * modules/string (Depends-on, Makefile.am): Likewise.
32902         * modules/strings (Depends-on, Makefile.am): Likewise.
32903         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32904         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32905         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32906         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32907         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32908         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32909         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32910         * modules/wchar (Depends-on, Makefile.am): Likewise.
32911         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32912         should be poisoned.
32913         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32914         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32915         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32916         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32917         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32918         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32919         * m4/math_h.m4 (gl_MATH_H): Likewise.
32920         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32921         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32922         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32923         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32924         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32925         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32926         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32927         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32928         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32929         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32930         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32931         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32932         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32933         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32934         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32935         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32936         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32937         GL_LINK_WARNING.
32938         * lib/ctype.in.h: Likewise.
32939         * lib/dirent.in.h: Likewise.
32940         * lib/fcntl.in.h: Likewise.
32941         * lib/inttypes.in.h: Likewise.
32942         * lib/langinfo.in.h: Likewise.
32943         * lib/locale.in.h: Likewise.
32944         * lib/math.in.h: Likewise.
32945         * lib/search.in.h: Likewise.
32946         * lib/signal.in.h: Likewise.
32947         * lib/spawn.in.h: Likewise.
32948         * lib/stdio.in.h: Likewise.
32949         * lib/stdlib.in.h: Likewise.
32950         * lib/string.in.h: Likewise.
32951         * lib/strings.in.h: Likewise.
32952         * lib/sys_file.in.h: Likewise.
32953         * lib/sys_ioctl.in.h: Likewise.
32954         * lib/sys_select.in.h: Likewise.
32955         * lib/sys_socket.in.h: Likewise.
32956         * lib/sys_stat.in.h: Likewise.
32957         * lib/sys_times.in.h: Likewise.
32958         * lib/sys_utsname.in.h: Likewise.
32959         * lib/unistd.in.h: Likewise.
32960         * lib/wchar.in.h: Likewise.
32961
32962 2010-01-20  Bruno Haible  <bruno@clisp.org>
32963
32964         Avoid duplicate -lm.
32965         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32966         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32967         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32968         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32969         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32970         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32971         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32972         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32973         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32974         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32975         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32976         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32977         Reported by Paolo Bonzini.
32978
32979 2010-01-19  Bruno Haible  <bruno@clisp.org>
32980
32981         langinfo, nl_langinfo: Relicense under LGPLv2+.
32982         * modules/langinfo (License): Change to LGPLv2+.
32983         * modules/nl_langinfo (License): Likewise.
32984         Patch by David Lutterkort <lutter@redhat.com>.
32985
32986 2010-01-19  Bruno Haible  <bruno@clisp.org>
32987
32988         Avoid compilation error with cc on OSF/1 5.1.
32989         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32990         statement, not before.
32991         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32992
32993 2010-01-18  Bruno Haible  <bruno@clisp.org>
32994
32995         Avoid a link error due to the __printf__ symbol.
32996         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32997         and 2.6.x.
32998         (__format__, __printf__): Remove definitions.
32999         * lib/argp-fmtstream.h: Likewise.
33000         * lib/argp.h: Likewise.
33001         * lib/error.h: Likewise.
33002         * lib/vasnprintf.h: Likewise.
33003         * lib/xprintf.h: Likewise.
33004         * lib/xvasprintf.h: Likewise.
33005         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33006
33007 2010-01-18  Bruno Haible  <bruno@clisp.org>
33008
33009         Tests for module 'tanl'.
33010         * modules/tanl-tests: New file.
33011         * tests/test-tanl.c: New file.
33012
33013         Tests for module 'sqrtl'.
33014         * modules/sqrtl-tests: New file.
33015         * tests/test-sqrtl.c: New file.
33016
33017         Tests for module 'sinl'.
33018         * modules/sinl-tests: New file.
33019         * tests/test-sinl.c: New file.
33020
33021         Tests for module 'logl'.
33022         * modules/logl-tests: New file.
33023         * tests/test-logl.c: New file.
33024
33025         Tests for module 'expl'.
33026         * modules/expl-tests: New file.
33027         * tests/test-expl.c: New file.
33028
33029         Tests for module 'cosl'.
33030         * modules/cosl-tests: New file.
33031         * tests/test-cosl.c: New file.
33032
33033         Tests for module 'atanl'.
33034         * modules/atanl-tests: New file.
33035         * tests/test-atanl.c: New file.
33036
33037         Tests for module 'asinl'.
33038         * modules/asinl-tests: New file.
33039         * tests/test-asinl.c: New file.
33040
33041         Tests for module 'acosl'.
33042         * modules/acosl-tests: New file.
33043         * tests/test-acosl.c: New file.
33044
33045         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33046         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33047         tanl): Use the standard gnulib idiom.
33048         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33049         * lib/sinl.c: Likewise.
33050         * lib/tanl.c: Don't include trigl.c.
33051         (kernel_tanl): Make static.
33052         * lib/sincosl.c: Include trigl.h first.
33053         * lib/trigl.c: Likewise.
33054         * m4/acosl.m4: New file.
33055         * m4/asinl.m4: New file.
33056         * m4/atanl.m4: New file.
33057         * m4/cosl.m4: New file.
33058         * m4/expl.m4: New file.
33059         * m4/logl.m4: New file.
33060         * m4/sinl.m4: New file.
33061         * m4/sqrtl.m4: New file.
33062         * m4/tanl.m4: New file.
33063         * m4/mathl.m4: Remove file.
33064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33065         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33066         Don't initialize GNULIB_MATHL.
33067         * modules/acosl: New file.
33068         * modules/asinl: New file.
33069         * modules/atanl: New file.
33070         * modules/cosl: New file.
33071         * modules/expl: New file.
33072         * modules/logl: New file.
33073         * modules/sinl: New file.
33074         * modules/sqrtl: New file.
33075         * modules/tanl: New file.
33076         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33077         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33078         substitute GNULIB_MATHL.
33079         * modules/mathl: Rewritten.
33080         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33081         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33082         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33083         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33084         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33085         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33086         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33087         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33088         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33089
33090 2010-01-18  Bruno Haible  <bruno@clisp.org>
33091
33092         sqrt: Make gl_FUNC_SQRT requirable.
33093         * m4/sqrt.m4: New file.
33094         * modules/sqrt (Files): Add it.
33095         (configure.ac): Invoke gl_FUNC_SQRT.
33096
33097 2010-01-18  Bruno Haible  <bruno@clisp.org>
33098
33099         New modules for common <math.h> functions.
33100         * m4/mathfunc.m4: New file.
33101         * modules/acos: New file.
33102         * modules/asin: New file.
33103         * modules/atan: New file.
33104         * modules/atan2: New file.
33105         * modules/cbrt: New file.
33106         * modules/copysign: New file.
33107         * modules/cos: New file.
33108         * modules/cosh: New file.
33109         * modules/erf: New file.
33110         * modules/erfc: New file.
33111         * modules/exp: New file.
33112         * modules/fabs: New file.
33113         * modules/fmod: New file.
33114         * modules/hypot: New file.
33115         * modules/j0: New file.
33116         * modules/j1: New file.
33117         * modules/jn: New file.
33118         * modules/ldexp: New file.
33119         * modules/lgamma: New file.
33120         * modules/log: New file.
33121         * modules/log10: New file.
33122         * modules/log1p: New file.
33123         * modules/logb: New file.
33124         * modules/modf: New file.
33125         * modules/nextafter: New file.
33126         * modules/pow: New file.
33127         * modules/remainder: New file.
33128         * modules/rint: New file.
33129         * modules/sin: New file.
33130         * modules/sinh: New file.
33131         * modules/sqrt: New file.
33132         * modules/tan: New file.
33133         * modules/tanh: New file.
33134         * modules/y0: New file.
33135         * modules/y1: New file.
33136         * modules/yn: New file.
33137         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33138         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33139         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33140         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33141         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33142         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33143         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33144         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33145         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33146         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33147         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33148         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33149         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33150         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33151         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33152         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33153         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33154         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33155         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33156         * doc/posix-functions/log.texi: Mention the 'log' module.
33157         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33158         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33159         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33160         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33161         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33162         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33163         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33164         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33165         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33166         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33167         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33168         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33169         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33170         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33171         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33172         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33173
33174 2010-01-18  Jim Meyering  <meyering@redhat.com>
33175
33176         ignore-value: relax license to LGPLv2+
33177         * modules/ignore-value (License): Relax to LGPLv2+.
33178
33179         getdate: don't leak when TZ contains two or more '"'s
33180         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33181         double quote in TZ after the first one.
33182
33183         readtokens: do not leak internal token_lengths buffer
33184         * lib/readtokens.c (readtokens): Free the local, lengths,
33185         when the supplied "token_lengths" parameter is NULL.
33186
33187 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33188
33189         Fix a couple of missing LIBTHREAD link failures on AIX.
33190         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33191         $(LIBTHREAD).
33192         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33193
33194         Link test-poll against INET_PTON_LIB.
33195         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33196         for inet_pton on Solaris 10.
33197
33198 2010-01-17  Bruno Haible  <bruno@clisp.org>
33199
33200         unistdio/*-sprintf: Fix typo in module description.
33201         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33202         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33203         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33204         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33205         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33206         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33207         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33208         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33209
33210 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33211
33212         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33213         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33214         variables in shell case patterns, for AIX and HP-UX ksh.
33215
33216         Split large sed scripts, for HP-UX sed.
33217         * modules/stdio: Split sed scripts around 50 sed commands,
33218         to avoid HP-UX limit of 99 commands, in the near future.
33219         * modules/string: Likewise.
33220         * modules/unistd: Likewise.
33221
33222         gnulib-tool: avoid writing in the current directory.
33223         * gnulib-tool (func_emit_lib_Makefile_am)
33224         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33225         not in the current directory, so concurrent gnulib-tool
33226         instances do not interfere.
33227
33228 2010-01-16  Jim Meyering  <meyering@redhat.com>
33229
33230         doc: update users.txt
33231         * users.txt: Add grep.
33232         (diffutils, gzip): Update URLs.
33233
33234 2010-01-12  Bruno Haible  <bruno@clisp.org>
33235
33236         posix_spawn: Avoid test failure on Cygwin.
33237         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33238         characters.
33239         Reported by Simon Josefsson.
33240
33241 2010-01-12  Bruno Haible  <bruno@clisp.org>
33242
33243         * tests/test-cond.c (main): When skipping the test, show the reason.
33244
33245 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33246
33247         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33248
33249 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33250
33251         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33252         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33253
33254 2010-01-12  Eric Blake  <ebb9@byu.net>
33255
33256         build: guarantee AS_VAR_IF
33257         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33258         (gl_AS_VAR_IF): Move...
33259         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33260         Reported by Simon Josefsson.
33261
33262 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33263
33264         * lib/stdio.in.h: Fix typo.
33265
33266 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33267
33268         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33269         libgpg-error.
33270
33271 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33272
33273         * tests/test-xalloc-die.sh: Use $EXEEXT.
33274
33275 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33276             Bruno Haible  <bruno@clisp.org>
33277
33278         getlogin, getlogin_r: Avoid test failure.
33279         * tests/test-getlogin.c: Include <stdio.h>.
33280         (main): Skip the test when the function fails because stdin is not a
33281         tty.
33282         * tests/test-getlogin_r.c: Include <stdio.h>.
33283         (main): Skip the test when the function fails because stdin is not a
33284         tty.
33285
33286 2010-01-11  Eric Blake  <ebb9@byu.net>
33287
33288         tests: avoid more large file warnings
33289         * tests/test-fflush.c: Avoid warning about ftell use.
33290         * tests/test-fseek.c: Avoid warning about fseek use.
33291
33292 2010-01-10  Bruno Haible  <bruno@clisp.org>
33293
33294         nproc: Work better on Linux when /proc and /sys are not mounted.
33295         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33296         as lower bound when, on glibc/Linux systems,
33297         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33298         Suggested by Pádraig Brady <P@draigbrady.com>.
33299         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33300
33301         nproc: Refactor.
33302         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33303         extracted from num_processors.
33304         (num_processors): Call it.
33305
33306 2010-01-11  Jim Meyering  <meyering@redhat.com>
33307
33308         utimecmp: avoid new warning from upcoming gcc-4.5.0
33309         * lib/utimecmp.c (BILLION): Define using #define rather than an
33310         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33311
33312 2010-01-11  Eric Blake  <ebb9@byu.net>
33313
33314         math: add portability warnings for classification macros
33315         * modules/math (Depends-on): Add warn-on-use.
33316         (Makefile.am): Provide new substitutions.
33317         * m4/math_h.m4 (gl_MATH_H): Require inline.
33318         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33319         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33320         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33321         implement warnings.
33322
33323         unistd: warn on use of environ without module
33324         * modules/unistd (Depends-on): Add warn-on-use.
33325         (Makefile.am): Provide new substitutions.
33326         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33327         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33328
33329         stdio: warn on suspicious uses
33330         * modules/stdio (Depends-on): Add warn-on-use.
33331         (Makefile.am): Provide new substitutions.
33332         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33333         fseeko.
33334         * lib/stdio.in.h (gets): Always warn on use.
33335         (fseek, ftell): Adjust when warnings are issued, and honor
33336         _GL_NO_LARGE_FILES as a way to silence the warning.
33337         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33338         any warning about large file offsets.
33339         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33340         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33341         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33342         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33343         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33344         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33345         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33346         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33347
33348         warn-on-use: new module
33349         * modules/warn-on-use: New file.
33350         * build-aux/warn-on-use.h: Likewise.
33351         * m4/warn-on-use.m4: Likewise.
33352         * MODULES.html.sh (Support for building): Mention it.
33353
33354 2010-01-10  Bruno Haible  <bruno@clisp.org>
33355
33356         Tests for module 'unistr/u32-strdup'.
33357         * modules/unistr/u32-strdup-tests: New file.
33358         * tests/unistr/test-u32-strdup.c: New file.
33359
33360         Tests for module 'unistr/u16-strdup'.
33361         * modules/unistr/u16-strdup-tests: New file.
33362         * tests/unistr/test-u16-strdup.c: New file.
33363
33364         Tests for module 'unistr/u8-strdup'.
33365         * modules/unistr/u8-strdup-tests: New file.
33366         * tests/unistr/test-u8-strdup.c: New file.
33367         * tests/unistr/test-strdup.h: New file.
33368
33369         Tests for module 'unistr/u32-strncmp'.
33370         * modules/unistr/u32-strncmp-tests: New file.
33371         * tests/unistr/test-u32-strncmp.c: New file.
33372
33373         Tests for module 'unistr/u16-strncmp'.
33374         * modules/unistr/u16-strncmp-tests: New file.
33375         * tests/unistr/test-u16-strncmp.c: New file.
33376
33377         Tests for module 'unistr/u8-strncmp'.
33378         * modules/unistr/u8-strncmp-tests: New file.
33379         * tests/unistr/test-u8-strncmp.c: New file.
33380         * tests/unistr/test-strncmp.h: New file.
33381
33382         Tests for module 'unistr/u32-strcoll'.
33383         * modules/unistr/u32-strcoll-tests: New file.
33384         * tests/unistr/test-u32-strcoll.c: New file.
33385
33386         Tests for module 'unistr/u16-strcoll'.
33387         * modules/unistr/u16-strcoll-tests: New file.
33388         * tests/unistr/test-u16-strcoll.c: New file.
33389
33390         Tests for module 'unistr/u8-strcoll'.
33391         * modules/unistr/u8-strcoll-tests: New file.
33392         * tests/unistr/test-u8-strcoll.c: New file.
33393
33394         Tests for module 'unistr/u32-strcmp'.
33395         * modules/unistr/u32-strcmp-tests: New file.
33396         * tests/unistr/test-u32-strcmp.c: New file.
33397         * tests/unistr/test-u32-strcmp.h: New file.
33398
33399         Tests for module 'unistr/u16-strcmp'.
33400         * modules/unistr/u16-strcmp-tests: New file.
33401         * tests/unistr/test-u16-strcmp.c: New file.
33402         * tests/unistr/test-u16-strcmp.h: New file.
33403
33404         Tests for module 'unistr/u8-strcmp'.
33405         * modules/unistr/u8-strcmp-tests: New file.
33406         * tests/unistr/test-u8-strcmp.c: New file.
33407         * tests/unistr/test-u8-strcmp.h: New file.
33408         * tests/unistr/test-strcmp.h: New file.
33409
33410         Tests for module 'unistr/u32-strncat'.
33411         * modules/unistr/u32-strncat-tests: New file.
33412         * tests/unistr/test-u32-strncat.c: New file.
33413
33414         Tests for module 'unistr/u16-strncat'.
33415         * modules/unistr/u16-strncat-tests: New file.
33416         * tests/unistr/test-u16-strncat.c: New file.
33417
33418         Tests for module 'unistr/u8-strncat'.
33419         * modules/unistr/u8-strncat-tests: New file.
33420         * tests/unistr/test-u8-strncat.c: New file.
33421         * tests/unistr/test-strncat.h: New file.
33422
33423         Tests for module 'unistr/u32-strcat'.
33424         * modules/unistr/u32-strcat-tests: New file.
33425         * tests/unistr/test-u32-strcat.c: New file.
33426
33427         Tests for module 'unistr/u16-strcat'.
33428         * modules/unistr/u16-strcat-tests: New file.
33429         * tests/unistr/test-u16-strcat.c: New file.
33430
33431         Tests for module 'unistr/u8-strcat'.
33432         * modules/unistr/u8-strcat-tests: New file.
33433         * tests/unistr/test-u8-strcat.c: New file.
33434         * tests/unistr/test-strcat.h: New file.
33435
33436         Tests for module 'unistr/u32-stpncpy'.
33437         * modules/unistr/u32-stpncpy-tests: New file.
33438         * tests/unistr/test-u32-stpncpy.c: New file.
33439
33440         Tests for module 'unistr/u16-stpncpy'.
33441         * modules/unistr/u16-stpncpy-tests: New file.
33442         * tests/unistr/test-u16-stpncpy.c: New file.
33443
33444         Tests for module 'unistr/u8-stpncpy'.
33445         * modules/unistr/u8-stpncpy-tests: New file.
33446         * tests/unistr/test-u8-stpncpy.c: New file.
33447         * tests/unistr/test-stpncpy.h: New file.
33448
33449         Tests for module 'unistr/u32-strncpy'.
33450         * modules/unistr/u32-strncpy-tests: New file.
33451         * tests/unistr/test-u32-strncpy.c: New file.
33452
33453         Tests for module 'unistr/u16-strncpy'.
33454         * modules/unistr/u16-strncpy-tests: New file.
33455         * tests/unistr/test-u16-strncpy.c: New file.
33456
33457         Tests for module 'unistr/u8-strncpy'.
33458         * modules/unistr/u8-strncpy-tests: New file.
33459         * tests/unistr/test-u8-strncpy.c: New file.
33460         * tests/unistr/test-strncpy.h: New file.
33461
33462         Tests for module 'unistr/u32-stpcpy'.
33463         * modules/unistr/u32-stpcpy-tests: New file.
33464         * tests/unistr/test-u32-stpcpy.c: New file.
33465
33466         Tests for module 'unistr/u16-stpcpy'.
33467         * modules/unistr/u16-stpcpy-tests: New file.
33468         * tests/unistr/test-u16-stpcpy.c: New file.
33469
33470         Tests for module 'unistr/u8-stpcpy'.
33471         * modules/unistr/u8-stpcpy-tests: New file.
33472         * tests/unistr/test-u8-stpcpy.c: New file.
33473         * tests/unistr/test-stpcpy.h: New file.
33474
33475         Tests for module 'unistr/u32-strcpy'.
33476         * modules/unistr/u32-strcpy-tests: New file.
33477         * tests/unistr/test-u32-strcpy.c: New file.
33478
33479         Tests for module 'unistr/u16-strcpy'.
33480         * modules/unistr/u16-strcpy-tests: New file.
33481         * tests/unistr/test-u16-strcpy.c: New file.
33482
33483         Tests for module 'unistr/u8-strcpy'.
33484         * modules/unistr/u8-strcpy-tests: New file.
33485         * tests/unistr/test-u8-strcpy.c: New file.
33486         * tests/unistr/test-strcpy.h: New file.
33487
33488         Tests for module 'unistr/u32-strnlen'.
33489         * modules/unistr/u32-strnlen-tests: New file.
33490         * tests/unistr/test-u32-strnlen.c: New file.
33491
33492         Tests for module 'unistr/u16-strnlen'.
33493         * modules/unistr/u16-strnlen-tests: New file.
33494         * tests/unistr/test-u16-strnlen.c: New file.
33495
33496         Tests for module 'unistr/u8-strnlen'.
33497         * modules/unistr/u8-strnlen-tests: New file.
33498         * tests/unistr/test-u8-strnlen.c: New file.
33499         * tests/unistr/test-strnlen.h: New file.
33500
33501         Tests for module 'unistr/u32-strlen'.
33502         * modules/unistr/u32-strlen-tests: New file.
33503         * tests/unistr/test-u32-strlen.c: New file.
33504
33505         Tests for module 'unistr/u16-strlen'.
33506         * modules/unistr/u16-strlen-tests: New file.
33507         * tests/unistr/test-u16-strlen.c: New file.
33508
33509         Tests for module 'unistr/u8-strlen'.
33510         * modules/unistr/u8-strlen-tests: New file.
33511         * tests/unistr/test-u8-strlen.c: New file.
33512
33513         Tests for module 'unistr/u32-prev'.
33514         * modules/unistr/u32-prev-tests: New file.
33515         * tests/unistr/test-u32-prev.c: New file.
33516
33517         Tests for module 'unistr/u16-prev'.
33518         * modules/unistr/u16-prev-tests: New file.
33519         * tests/unistr/test-u16-prev.c: New file.
33520
33521         Tests for module 'unistr/u8-prev'.
33522         * modules/unistr/u8-prev-tests: New file.
33523         * tests/unistr/test-u8-prev.c: New file.
33524
33525         Tests for module 'unistr/u32-next'.
33526         * modules/unistr/u32-next-tests: New file.
33527         * tests/unistr/test-u32-next.c: New file.
33528
33529         Tests for module 'unistr/u16-next'.
33530         * modules/unistr/u16-next-tests: New file.
33531         * tests/unistr/test-u16-next.c: New file.
33532
33533         Tests for module 'unistr/u8-next'.
33534         * modules/unistr/u8-next-tests: New file.
33535         * tests/unistr/test-u8-next.c: New file.
33536
33537         Tests for module 'unistr/u32-strmbtouc'.
33538         * modules/unistr/u32-strmbtouc-tests: New file.
33539         * tests/unistr/test-u32-strmbtouc.c: New file.
33540
33541         Tests for module 'unistr/u16-strmbtouc'.
33542         * modules/unistr/u16-strmbtouc-tests: New file.
33543         * tests/unistr/test-u16-strmbtouc.c: New file.
33544
33545         Tests for module 'unistr/u8-strmbtouc'.
33546         * modules/unistr/u8-strmbtouc-tests: New file.
33547         * tests/unistr/test-u8-strmbtouc.c: New file.
33548
33549         Tests for module 'unistr/u32-strmblen'.
33550         * modules/unistr/u32-strmblen-tests: New file.
33551         * tests/unistr/test-u32-strmblen.c: New file.
33552
33553         Tests for module 'unistr/u16-strmblen'.
33554         * modules/unistr/u16-strmblen-tests: New file.
33555         * tests/unistr/test-u16-strmblen.c: New file.
33556
33557         Tests for module 'unistr/u8-strmblen'.
33558         * modules/unistr/u8-strmblen-tests: New file.
33559         * tests/unistr/test-u8-strmblen.c: New file.
33560
33561         Tests for module 'unistr/u32-cpy-alloc'.
33562         * modules/unistr/u32-cpy-alloc-tests: New file.
33563         * tests/unistr/test-u32-cpy-alloc.c: New file.
33564
33565         Tests for module 'unistr/u16-cpy-alloc'.
33566         * modules/unistr/u16-cpy-alloc-tests: New file.
33567         * tests/unistr/test-u16-cpy-alloc.c: New file.
33568
33569         Tests for module 'unistr/u8-cpy-alloc'.
33570         * modules/unistr/u8-cpy-alloc-tests: New file.
33571         * tests/unistr/test-u8-cpy-alloc.c: New file.
33572         * tests/unistr/test-cpy-alloc.h: New file.
33573
33574         Tests for module 'unistr/u32-mbsnlen'.
33575         * modules/unistr/u32-mbsnlen-tests: New file.
33576         * tests/unistr/test-u32-mbsnlen.c: New file.
33577
33578         Tests for module 'unistr/u16-mbsnlen'.
33579         * modules/unistr/u16-mbsnlen-tests: New file.
33580         * tests/unistr/test-u16-mbsnlen.c: New file.
33581
33582         Tests for module 'unistr/u8-mbsnlen'.
33583         * modules/unistr/u8-mbsnlen-tests: New file.
33584         * tests/unistr/test-u8-mbsnlen.c: New file.
33585
33586         Tests for module 'unistr/u32-chr'.
33587         * modules/unistr/u32-chr-tests: New file.
33588         * tests/unistr/test-u32-chr.c: New file.
33589
33590         Tests for module 'unistr/u16-chr'.
33591         * modules/unistr/u16-chr-tests: New file.
33592         * tests/unistr/test-u16-chr.c: New file.
33593
33594         Tests for module 'unistr/u8-chr'.
33595         * modules/unistr/u8-chr-tests: New file.
33596         * tests/unistr/test-u8-chr.c: New file.
33597         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33598
33599         Tests for module 'unistr/u32-cmp2'.
33600         * modules/unistr/u32-cmp2-tests: New file.
33601         * tests/unistr/test-u32-cmp2.c: New file.
33602
33603         Tests for module 'unistr/u16-cmp2'.
33604         * modules/unistr/u16-cmp2-tests: New file.
33605         * tests/unistr/test-u16-cmp2.c: New file.
33606
33607         Tests for module 'unistr/u8-cmp2'.
33608         * modules/unistr/u8-cmp2-tests: New file.
33609         * tests/unistr/test-u8-cmp2.c: New file.
33610         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33611
33612         Tests for module 'unistr/u32-cmp'.
33613         * modules/unistr/u32-cmp-tests: New file.
33614         * tests/unistr/test-u32-cmp.c: New file.
33615
33616         Tests for module 'unistr/u16-cmp'.
33617         * modules/unistr/u16-cmp-tests: New file.
33618         * tests/unistr/test-u16-cmp.c: New file.
33619
33620         Tests for module 'unistr/u8-cmp'.
33621         * modules/unistr/u8-cmp-tests: New file.
33622         * tests/unistr/test-u8-cmp.c: New file.
33623         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33624
33625         Tests for module 'unistr/u32-set'.
33626         * modules/unistr/u32-set-tests: New file.
33627         * tests/unistr/test-u32-set.c: New file.
33628
33629         Tests for module 'unistr/u16-set'.
33630         * modules/unistr/u16-set-tests: New file.
33631         * tests/unistr/test-u16-set.c: New file.
33632
33633         Tests for module 'unistr/u8-set'.
33634         * modules/unistr/u8-set-tests: New file.
33635         * tests/unistr/test-u8-set.c: New file.
33636         * tests/unistr/test-set.h: New file.
33637
33638         Tests for module 'unistr/u32-move'.
33639         * modules/unistr/u32-move-tests: New file.
33640         * tests/unistr/test-u32-move.c: New file.
33641
33642         Tests for module 'unistr/u16-move'.
33643         * modules/unistr/u16-move-tests: New file.
33644         * tests/unistr/test-u16-move.c: New file.
33645
33646         Tests for module 'unistr/u8-move'.
33647         * modules/unistr/u8-move-tests: New file.
33648         * tests/unistr/test-u8-move.c: New file.
33649         * tests/unistr/test-move.h: New file.
33650
33651         Tests for module 'unistr/u32-cpy'.
33652         * modules/unistr/u32-cpy-tests: New file.
33653         * tests/unistr/test-u32-cpy.c: New file.
33654
33655         Tests for module 'unistr/u16-cpy'.
33656         * modules/unistr/u16-cpy-tests: New file.
33657         * tests/unistr/test-u16-cpy.c: New file.
33658
33659         Tests for module 'unistr/u8-cpy'.
33660         * modules/unistr/u8-cpy-tests: New file.
33661         * tests/unistr/test-u8-cpy.c: New file.
33662         * tests/unistr/test-cpy.h: New file.
33663
33664 2010-01-09  Bruno Haible  <bruno@clisp.org>
33665
33666         Tests for module 'unistr/u32-uctomb'.
33667         * modules/unistr/u32-uctomb-tests: New file.
33668         * tests/unistr/test-u32-uctomb.c: New file.
33669
33670         Tests for module 'unistr/u16-uctomb'.
33671         * modules/unistr/u16-uctomb-tests: New file.
33672         * tests/unistr/test-u16-uctomb.c: New file.
33673
33674         Tests for module 'unistr/u8-uctomb'.
33675         * modules/unistr/u8-uctomb-tests: New file.
33676         * tests/unistr/test-u8-uctomb.c: New file.
33677
33678         Tests for module 'unistr/u32-mbtoucr'.
33679         * modules/unistr/u32-mbtoucr-tests: New file.
33680         * tests/unistr/test-u32-mbtoucr.c: New file.
33681
33682         Tests for module 'unistr/u16-mbtoucr'.
33683         * modules/unistr/u16-mbtoucr-tests: New file.
33684         * tests/unistr/test-u16-mbtoucr.c: New file.
33685
33686         Tests for module 'unistr/u8-mbtoucr'.
33687         * modules/unistr/u8-mbtoucr-tests: New file.
33688         * tests/unistr/test-u8-mbtoucr.c: New file.
33689
33690         Tests for module 'unistr/u32-mbtouc'.
33691         * modules/unistr/u32-mbtouc-tests: New file.
33692         * tests/unistr/test-u32-mbtouc.c: New file.
33693
33694         Tests for module 'unistr/u16-mbtouc'.
33695         * modules/unistr/u16-mbtouc-tests: New file.
33696         * tests/unistr/test-u16-mbtouc.c: New file.
33697
33698         Tests for module 'unistr/u8-mbtouc'.
33699         * modules/unistr/u8-mbtouc-tests: New file.
33700         * tests/unistr/test-u8-mbtouc.c: New file.
33701
33702         Tests for module 'unistr/u32-mbtouc-unsafe'.
33703         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33704         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33705         * tests/unistr/test-u32-mbtouc.h: New file.
33706
33707         Tests for module 'unistr/u16-mbtouc-unsafe'.
33708         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33709         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33710         * tests/unistr/test-u16-mbtouc.h: New file.
33711
33712         Tests for module 'unistr/u8-mbtouc-unsafe'.
33713         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33714         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33715         * tests/unistr/test-u8-mbtouc.h: New file.
33716
33717         Tests for module 'unistr/u32-mblen'.
33718         * modules/unistr/u32-mblen-tests: New file.
33719         * tests/unistr/test-u32-mblen.c: New file.
33720
33721         Tests for module 'unistr/u16-mblen'.
33722         * modules/unistr/u16-mblen-tests: New file.
33723         * tests/unistr/test-u16-mblen.c: New file.
33724
33725         Tests for module 'unistr/u8-mblen'.
33726         * modules/unistr/u8-mblen-tests: New file.
33727         * tests/unistr/test-u8-mblen.c: New file.
33728
33729         Tests for module 'unistr/u32-to-u16'.
33730         * modules/unistr/u32-to-u16-tests: New file.
33731         * tests/unistr/test-u32-to-u16.c: New file.
33732
33733         Tests for module 'unistr/u32-to-u8'.
33734         * modules/unistr/u32-to-u8-tests: New file.
33735         * tests/unistr/test-u32-to-u8.c: New file.
33736
33737         Tests for module 'unistr/u16-to-u32'.
33738         * modules/unistr/u16-to-u32-tests: New file.
33739         * tests/unistr/test-u16-to-u32.c: New file.
33740
33741         Tests for module 'unistr/u16-to-u8'.
33742         * modules/unistr/u16-to-u8-tests: New file.
33743         * tests/unistr/test-u16-to-u8.c: New file.
33744
33745         Tests for module 'unistr/u8-to-u32'.
33746         * modules/unistr/u8-to-u32-tests: New file.
33747         * tests/unistr/test-u8-to-u32.c: New file.
33748
33749         Tests for module 'unistr/u8-to-u16'.
33750         * modules/unistr/u8-to-u16-tests: New file.
33751         * tests/unistr/test-u8-to-u16.c: New file.
33752
33753         Tests for module 'unistr/u32-check'.
33754         * modules/unistr/u32-check-tests: New file.
33755         * tests/unistr/test-u32-check.c: New file.
33756
33757         Tests for module 'unistr/u16-check'.
33758         * modules/unistr/u16-check-tests: New file.
33759         * tests/unistr/test-u16-check.c: New file.
33760
33761         Tests for module 'unistr/u8-check'.
33762         * modules/unistr/u8-check-tests: New file.
33763         * tests/unistr/test-u8-check.c: New file.
33764
33765         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33766         (category_equals): New function.
33767         (main): Add more tests.
33768         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33769
33770         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33771
33772 2010-01-10  Bruno Haible  <bruno@clisp.org>
33773
33774         unistr/u*-strcoll: Try harder to distinguish different strings.
33775         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33776         compare s1 and s2 to see if they are different.
33777
33778 2010-01-10  Bruno Haible  <bruno@clisp.org>
33779
33780         unistr/u*-stpncpy: Fix the return value.
33781         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33782         description of the return value consistent with stpncpy in glibc.
33783         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33784         written non-NUL unit.
33785
33786 2010-01-10  Bruno Haible  <bruno@clisp.org>
33787
33788         unistr/u*-next: Add missing dependencies.
33789         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33790         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33791         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33792
33793 2010-01-10  Bruno Haible  <bruno@clisp.org>
33794
33795         unistr/u8-mbsnlen: Fix return value for incomplete character.
33796         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33797         u8_mblen.
33798         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33799         Remove unistr/u8-mblen.
33800         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33801         u16_mblen.
33802         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33803         Remove unistr/u16-mblen.
33804
33805 2010-01-10  Bruno Haible  <bruno@clisp.org>
33806
33807         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33808         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33809         Reported by Brian Gough <bjg@gnu.org> and
33810         Chris Clayton <chris2553@googlemail.com> via
33811         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33812
33813 2010-01-09  Bruno Haible  <bruno@clisp.org>
33814
33815         unistr/u16-to-u32: Reject invalid input.
33816         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33817         u16_mbtouc.
33818         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33819         Remove unistr/u16-mbtouc.
33820
33821         unistr/u16-to-u8: Reject invalid input.
33822         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33823         u16_mbtouc.
33824         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33825         Remove unistr/u16-mbtouc.
33826
33827         unistr/u8-to-u32: Reject invalid input.
33828         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33829         u8_mbtouc.
33830         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33831         Remove unistr/u8-mbtouc.
33832
33833         unistr/u8-to-u16: Reject invalid input.
33834         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33835         u8_mbtouc.
33836         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33837         Remove unistr/u8-mbtouc.
33838
33839 2010-01-09  Bruno Haible  <bruno@clisp.org>
33840
33841         Tests for module 'getlogin'.
33842         * modules/getlogin-tests: New file.
33843         * tests/test-getlogin.c: New file.
33844
33845         New module 'getlogin'.
33846         * lib/unistd.in.h (getlogin): New declaration.
33847         * lib/getlogin.c: New file.
33848         * m4/getlogin.m4: New file.
33849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33850         HAVE_GETLOGIN.
33851         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33852         HAVE_GETLOGIN.
33853         * modules/getlogin: New file.
33854         * doc/posix-functions/getlogin.texi: Mention the new module.
33855         Reported by John W. Eaton <jwe@gnu.org>.
33856
33857 2010-01-09  Bruno Haible  <bruno@clisp.org>
33858
33859         getlogin_r: Support for native Windows.
33860         * lib/getlogin_r.c: Include <windows.h>
33861         (getlogin_r): Implement for native Windows.
33862         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33863         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33864         via John W. Eaton <jwe@gnu.org>.
33865
33866 2010-01-09  Bruno Haible  <bruno@clisp.org>
33867
33868         getlogin_r: Small fixes.
33869         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33870         succeeds.
33871         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33872         before testing whether getlogin_r is declared. No need to set
33873         HAVE_DECL_GETLOGIN_R to 1.
33874         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33875
33876 2010-01-09  Bruno Haible  <bruno@clisp.org>
33877
33878         * lib/unistd.in.h (getlogin_r): Add comment.
33879
33880 2010-01-09  Bruno Haible  <bruno@clisp.org>
33881
33882         Tests for module 'getlogin_r'.
33883         * modules/getlogin_r-tests: New file.
33884         * tests/test-getlogin_r.c: New file.
33885
33886 2010-01-09  Jim Meyering  <meyering@redhat.com>
33887
33888         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33889         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33890         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33891
33892 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33893
33894         * lib/dup2.c (rpl_dup2): Improve comment.
33895
33896 2010-01-08  Eric Blake  <ebb9@byu.net>
33897
33898         maint.mk: allow packages to add makefile @@ exceptions
33899         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33900         (sc_makefile_check): Rename...
33901         (sc_makefile_at_at_check): ...to this, and use hook.
33902
33903         dup2: work around mingw bug
33904         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33905         Reported by Simon Josefsson.
33906
33907 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33908
33909         glob: Fix C++ compilation.
33910         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33911         C++.
33912
33913 2010-01-07  Bruno Haible  <bruno@clisp.org>
33914
33915         Fix indentation of wctype.in.h, broken since 2007-01-06.
33916         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33917
33918 2010-01-07  Bruno Haible  <bruno@clisp.org>
33919
33920         mbslen: Avoid collision with system function.
33921         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33922         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33923         * m4/mbslen.m4: New file.
33924         * modules/mbslen (Files): Add it.
33925         (configure.ac): Invoke gl_MBSLEN.
33926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33927         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33928         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33929         via Ian Beckwith <ianb@erislabs.net>.
33930
33931 2010-01-07  Bruno Haible  <bruno@clisp.org>
33932
33933         dirent: Document the last fix.
33934         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33935
33936 2010-01-07  Bruno Haible  <bruno@clisp.org>
33937
33938         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33939         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33940         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33941         va_list are defined.
33942         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33943         Reported by Eric Blake.
33944
33945 2010-01-07  Bruno Haible  <bruno@clisp.org>
33946
33947         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33948         * modules/xlist (Depends-on): Add 'list',
33949         * modules/xoset (Depends-on): Add 'oset'.
33950         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33951
33952 2010-01-07  Bruno Haible  <bruno@clisp.org>
33953
33954         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33955         * doc/posix-functions/strncasecmp.texi: Likewise.
33956
33957 2010-01-07  Bruno Haible  <bruno@clisp.org>
33958
33959         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33960
33961 2010-01-07  John W. Eaton  <jwe@octave.org>
33962
33963         wctype: allow C++ use
33964         * lib/wctype.in.h: Add extern "C" block for C++.
33965
33966 2010-01-06  Eric Blake  <ebb9@byu.net>
33967
33968         maint.mk: detect incorrect GFDL usage
33969         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33970
33971 2010-01-06  Jim Meyering  <meyering@redhat.com>
33972         and Eric Blake  <ebb9@byu.net>
33973
33974         maint.mk: ignore multi-line copyright in NEWS
33975         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33976
33977 2010-01-06  Eric Blake  <ebb9@byu.net>
33978
33979         select: add missing dependency
33980         * modules/select-tests (Depends-on): Move sockets dependency...
33981         * modules/select (Depends-on): ...here.
33982         Reported by Ian Beckwith.
33983
33984         doc: regenerate INSTALL
33985         * doc/INSTALL: Reflect recent autoconf update.
33986         * doc/INSTALL.ISO: Likewise.
33987         * doc/INSTALL.UTF-8: Likewise.
33988
33989         pread: fix compilation on glibc
33990         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33991         Reported by Ralf Wildenhues.
33992
33993         dirent: fix test failure
33994         * lib/dirent.in.h (includes): Guarantee ino_t.
33995         Reported by Ralf Wildenhues.
33996
33997 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33998
33999         linkat, renameat: avoid bad free
34000         * lib/at-func2.c (at_func2): Fix typo.
34001         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34002
34003 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34004
34005         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34006         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34007         to avoid failure of symlink test later.
34008
34009 2010-01-06  Eric Blake  <ebb9@byu.net>
34010
34011         stdio, unistd: guarantee ssize_t
34012         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34013         2008 are exposed when needed.
34014         * lib/stdio.in.h (includes): Likewise.
34015         Reported by Ralf Wildenhues.
34016
34017 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34018
34019         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34020         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34021         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34022
34023 2010-01-06  Jim Meyering  <meyering@redhat.com>
34024
34025         readtokens: this module *does* require xalloc.h
34026         It uses only functions that were omitted by the old syntax-check rule.
34027         * lib/readtokens.c: Include "xalloc.h" once again.
34028         * modules/readtokens (Depends-on): Add xalloc.
34029         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34030
34031 2010-01-05  Eric Blake  <ebb9@byu.net>
34032
34033         maint: support 'make announcement' from a VPATH build
34034         * top/maint.mk (announcement): Look for correct NEWS file.
34035
34036 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34037
34038         utimens (fdutimens): ignore a negative FD, per contract
34039         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34040         when we have a valid file descriptor.  Otherwise, using a brand
34041         new glibc (with just-patched futimens that now fails with EBADF)
34042         would cause this function to fail with ENOSYS.
34043         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34044         See also http://bugzilla.redhat.com/552320.
34045
34046 2010-01-05  Eric Blake  <ebb9@byu.net>
34047
34048         strcase: document what it provides
34049         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34050         gnulib module.
34051         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34052         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34053
34054 2010-01-05  Jim Meyering  <meyering@redhat.com>
34055
34056         maint: remove useless inclusions of "xalloc.h"
34057         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34058         * lib/readtokens.c: Likewise.
34059         * lib/same.c: Likewise.
34060         * modules/getloadavg (Depends-on): Remove xalloc.
34061         * modules/readtokens: Likewise.
34062         * modules/same: Likewise.
34063
34064         maint.mk: include 4 more function names in alloca.h-checking regexp
34065         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34066         regexp.  Before, we would give a false-positive (saying alloca.h
34067         is included unnecessarily) when the only uses involved omitted symbols.
34068
34069         xalloc.h: use consistent formatting
34070         * lib/xalloc.h: Move declarations to start in the first column.
34071
34072 2010-01-05  Eric Blake  <ebb9@byu.net>
34073
34074         mkdir: avoid xalloc
34075         * lib/mkdir.c (includes): Drop unused header.
34076         Reported by John W. Eaton.
34077
34078 2010-01-04  Jim Meyering  <meyering@redhat.com>
34079
34080         nl_langinfo: avoid configure-time syntax error
34081         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34082         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34083         the empty string.  Don't let that provoke a shell syntax error.
34084
34085         regcomp, regexec, fnmatch: avoid array bounds read error
34086         * lib/regcomp.c (build_equiv_class): From glibc:
34087         Use only the low 24 bits of a findidx return value as an index
34088         into the weights array.  Patch by Ulrich Drepper:
34089         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34090         * lib/regexec.c (check_node_accept_bytes): Likewise.
34091         * lib/fnmatch_loop.c (FCT): Likewise.
34092
34093         regcomp: skip collseq lookup when there are no rules
34094         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34095         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34096
34097         regcomp: recognize ill-formed { } expressions
34098         * lib/regcomp.c (parse_dup_op): From glibc:
34099         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34100
34101         regcomp: fix typo in comment
34102         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34103         s/satisfy/satisfies/.
34104
34105         regcomp: sync from glibc: remove dead store
34106         * lib/regcomp.c (duplicate_node_closure): Remove useless
34107         search_duplicated_node call and dead store.
34108
34109         regcomp: sync from glibc; always use nl_langinfo
34110         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34111         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34112         * modules/regex (Depends-on): Add nl_langinfo.
34113
34114 2010-01-04  Eric Blake  <ebb9@byu.net>
34115
34116         fdopendir: fix configure test
34117         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34118
34119 2010-01-01  Bruno Haible  <bruno@clisp.org>
34120
34121         wchar: Remove unused configure check.
34122         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34123
34124 2010-01-01  Eric Blake  <ebb9@byu.net>
34125
34126         headers: make check of system header explicit
34127         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34128         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34129         ourselves.
34130         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34132         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34133         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34134         internals.
34135         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34136         missing.
34137         Suggested by Bruno Haible.
34138
34139 2010-01-01  Jim Meyering  <meyering@redhat.com>
34140
34141         ChangeLog: tweak to eliminate unnecessary copyright line
34142         * ChangeLog: Remove a copyright line that was mistakenly updated
34143         by today's update-copyright run.  Reported by Eric Blake.
34144
34145         test-update-copyright: don't let envvar setting cause test failure
34146         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34147
34148 2010-01-01  Bruno Haible  <bruno@clisp.org>
34149
34150         localename: Avoid gcc warning.
34151         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34152         function if it is not used.
34153
34154 2010-01-01  Jim Meyering  <meyering@redhat.com>
34155
34156         update nearly all FSF copyright year lists to include 2010
34157         Use the same procedure as for 2009, outlined in
34158         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34159
34160         version-etc: set COPYRIGHT_YEAR to 2010
34161         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34162
34163 2009-12-31  Eric Blake  <ebb9@byu.net>
34164
34165         doc: correct availability of cygwin 1.5.x getopt
34166         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34167         variables.
34168         * doc/posix-functions/opterr.texi (opterr): Likewise.
34169         * doc/posix-functions/optind.texi (optind): Likewise.
34170         * doc/posix-functions/optopt.texi (optopt): Likewise.
34171         * doc/posix-functions/tzname.texi (tzname): Likewise.
34172
34173         openat: update maintainer
34174         * modules/openat (Maintainer): Add myself.
34175
34176         utimens: avoid shadowing warning
34177         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34178         buffers into one, to avoid shadowing, as well as avoiding a
34179         redundant stat.
34180         Reported by Jim Meyering.
34181
34182         test-dup2: avoid compiler warning
34183         * tests/test-dup2.c (is_inheritable): Only define if used.
34184
34185 2010-01-01  Bruno Haible  <bruno@clisp.org>
34186
34187         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34188         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34189         defined, use wctomb instead of wcrtomb.
34190
34191 2010-01-01  Bruno Haible  <bruno@clisp.org>
34192
34193         iconv: Reject native Solaris iconv.
34194         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34195         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34196
34197 2009-12-31  Bruno Haible  <bruno@clisp.org>
34198
34199         * tests/test-signal.c (main): Remove test of 'SIG'.
34200
34201 2009-12-31  Bruno Haible  <bruno@clisp.org>
34202
34203         spawn: Fix incomplete fix.
34204         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34205         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34206         warnings for GNULIB_POSIXCHECK again.
34207         Reported by Eric Blake.
34208
34209 2009-12-31  Bruno Haible  <bruno@clisp.org>
34210
34211         Avoid namespace pollution on glibc systems.
34212         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34213         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34214         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34215         glibc systems.
34216
34217 2009-12-31  Bruno Haible  <bruno@clisp.org>
34218
34219         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34220         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34221         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34222         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34223         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34224         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34225         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34226
34227 2009-12-31  Bruno Haible  <bruno@clisp.org>
34228
34229         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34230         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34231         afterwards.
34232
34233 2009-12-31  Bruno Haible  <bruno@clisp.org>
34234
34235         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34236         SYS_UTSNAME_H.
34237
34238 2009-12-31  Bruno Haible  <bruno@clisp.org>
34239
34240         spawn: Fix misapplied patch.
34241         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34242         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34243         warnings for GNULIB_POSIXCHECK.
34244
34245 2009-12-31  Bruno Haible  <bruno@clisp.org>
34246
34247         times: Update after sys_times changed.
34248         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34249         * modules/times (Files): Add it.
34250         (configure.ac): Invoke gl_FUNC_TIMES.
34251
34252 2009-12-31  Bruno Haible  <bruno@clisp.org>
34253
34254         Use AC_C_INLINE where necessary.
34255         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34256         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34257         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34258         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34259         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34260         * m4/mbiter.m4 (gl_MBITER): Likewise.
34261         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34262         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34263         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34264         * modules/u64 (configure.ac): Likewise.
34265
34266 2009-12-31  Bruno Haible  <bruno@clisp.org>
34267
34268         Use AC_C_INLINE instead of module 'inline' where possible.
34269         * modules/inline (Description): Clarify purpose.
34270         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34271         * modules/count-one-bits (Depends-on): Remove inline.
34272         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34273         * modules/openat (Depends-on): Remove inline.
34274         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34275         instead of depending on module 'inline'.
34276         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34277         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34278         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34279         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34280         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34281         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34282         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34283         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34284         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34285         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34286         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34287         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34288         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34289         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34290         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34291         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34292         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34293         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34294         Likewise.
34295         * modules/unictype/property-ascii-hex-digit (Depends-on,
34296         configure.ac): Likewise.
34297         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34298         configure.ac): Likewise.
34299         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34300         configure.ac): Likewise.
34301         * modules/unictype/property-bidi-block-separator (Depends-on,
34302         configure.ac): Likewise.
34303         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34304         configure.ac): Likewise.
34305         * modules/unictype/property-bidi-common-separator (Depends-on,
34306         configure.ac): Likewise.
34307         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34308         Likewise.
34309         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34310         configure.ac): Likewise.
34311         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34312         configure.ac): Likewise.
34313         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34314         configure.ac): Likewise.
34315         * modules/unictype/property-bidi-european-digit (Depends-on,
34316         configure.ac): Likewise.
34317         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34318         configure.ac): Likewise.
34319         * modules/unictype/property-bidi-left-to-right (Depends-on,
34320         configure.ac): Likewise.
34321         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34322         configure.ac): Likewise.
34323         * modules/unictype/property-bidi-other-neutral (Depends-on,
34324         configure.ac): Likewise.
34325         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34326         Likewise.
34327         * modules/unictype/property-bidi-segment-separator (Depends-on,
34328         configure.ac): Likewise.
34329         * modules/unictype/property-bidi-whitespace (Depends-on,
34330         configure.ac): Likewise.
34331         * modules/unictype/property-combining (Depends-on, configure.ac):
34332         Likewise.
34333         * modules/unictype/property-composite (Depends-on, configure.ac):
34334         Likewise.
34335         * modules/unictype/property-currency-symbol (Depends-on,
34336         configure.ac): Likewise.
34337         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34338         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34339         Likewise.
34340         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34341         configure.ac): Likewise.
34342         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34343         Likewise.
34344         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34345         Likewise.
34346         * modules/unictype/property-extender (Depends-on, configure.ac):
34347         Likewise.
34348         * modules/unictype/property-format-control (Depends-on, configure.ac):
34349         Likewise.
34350         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34351         Likewise.
34352         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34353         Likewise.
34354         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34355         Likewise.
34356         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34357         Likewise.
34358         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34359         Likewise.
34360         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34361         Likewise.
34362         * modules/unictype/property-id-start (Depends-on, configure.ac):
34363         Likewise.
34364         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34365         Likewise.
34366         * modules/unictype/property-ids-binary-operator (Depends-on,
34367         configure.ac): Likewise.
34368         * modules/unictype/property-ids-trinary-operator (Depends-on,
34369         configure.ac): Likewise.
34370         * modules/unictype/property-ignorable-control (Depends-on,
34371         configure.ac): Likewise.
34372         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34373         Likewise.
34374         * modules/unictype/property-join-control (Depends-on, configure.ac):
34375         Likewise.
34376         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34377         Likewise.
34378         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34379         Likewise.
34380         * modules/unictype/property-logical-order-exception (Depends-on,
34381         configure.ac): Likewise.
34382         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34383         Likewise.
34384         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34385         * modules/unictype/property-non-break (Depends-on, configure.ac):
34386         Likewise.
34387         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34388         Likewise.
34389         * modules/unictype/property-numeric (Depends-on, configure.ac):
34390         Likewise.
34391         * modules/unictype/property-other-alphabetic (Depends-on,
34392         configure.ac): Likewise.
34393         * modules/unictype/property-other-default-ignorable-code-point
34394         (Depends-on, configure.ac): Likewise.
34395         * modules/unictype/property-other-grapheme-extend (Depends-on,
34396         configure.ac): Likewise.
34397         * modules/unictype/property-other-id-continue (Depends-on,
34398         configure.ac): Likewise.
34399         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34400         Likewise.
34401         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34402         Likewise.
34403         * modules/unictype/property-other-math (Depends-on, configure.ac):
34404         Likewise.
34405         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34406         Likewise.
34407         * modules/unictype/property-paired-punctuation (Depends-on,
34408         configure.ac): Likewise.
34409         * modules/unictype/property-paragraph-separator (Depends-on,
34410         configure.ac): Likewise.
34411         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34412         Likewise.
34413         * modules/unictype/property-pattern-white-space (Depends-on,
34414         configure.ac): Likewise.
34415         * modules/unictype/property-private-use (Depends-on, configure.ac):
34416         Likewise.
34417         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34418         Likewise.
34419         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34420         Likewise.
34421         * modules/unictype/property-radical (Depends-on, configure.ac):
34422         Likewise.
34423         * modules/unictype/property-sentence-terminal (Depends-on,
34424         configure.ac): Likewise.
34425         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34426         Likewise.
34427         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34428         * modules/unictype/property-terminal-punctuation (Depends-on,
34429         configure.ac): Likewise.
34430         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34431         Likewise.
34432         * modules/unictype/property-unassigned-code-value (Depends-on,
34433         configure.ac): Likewise.
34434         * modules/unictype/property-unified-ideograph (Depends-on,
34435         configure.ac): Likewise.
34436         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34437         Likewise.
34438         * modules/unictype/property-variation-selector (Depends-on,
34439         configure.ac): Likewise.
34440         * modules/unictype/property-white-space (Depends-on, configure.ac):
34441         Likewise.
34442         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34443         Likewise.
34444         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34445         Likewise.
34446         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34447         Likewise.
34448         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34449         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34450         Likewise.
34451
34452 2009-12-31  Bruno Haible  <bruno@clisp.org>
34453
34454         Remove unnecessary AC_C_INLINE invocation.
34455         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34456         since 2009-08-21.
34457
34458 2009-12-31  Jim Meyering  <meyering@redhat.com>
34459
34460         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34461         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34462         With this change, we can all remove the gpg_key_ID = ... definition
34463         from our respective cfg.mk files.
34464
34465         maint.mk: create announcement template in ~/, not in /tmp
34466         * top/maint.mk (emit_upload_commands): Adjust.
34467         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34468         Remove temporary file, .ci-msg.
34469
34470 2009-12-31  Eric Blake  <ebb9@byu.net>
34471
34472         link-warning: always build headers with link warnings
34473         * modules/arpa_inet (Makefile.am): Always build replacement
34474         header.
34475         * modules/ctype (Makefile.am): Likewise.
34476         * modules/dirent (Makefile.am): Likewise.
34477         * modules/inttypes (Makefile.am): Likewise.
34478         * modules/langinfo (Makefile.am): Likewise.
34479         * modules/locale (Makefile.am): Likewise.
34480         * modules/spawn (Makefile.am): Likewise.
34481         * modules/sys_file (Makefile.am): Likewise.
34482         * modules/sys_ioctl (Makefile.am): Likewise.
34483         * modules/sys_select (Makefile.am): Likewise.
34484         * modules/sys_socket (Makefile.am): Likewise.
34485         * modules/sys_times (Makefile.am): Likewise.
34486         * modules/sys_utsname (Makefile.am): Likewise.
34487         * modules/sys_wait (Makefile.am): Likewise.
34488         * modules/wchar (Makefile.am): Likewise.
34489         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34490         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34491         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34492         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34493         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34494         Likewise.
34495         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34496         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34497         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34498         Likewise.
34499         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34500         Likewise.
34501         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34502         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34503         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34504         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34505         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34506         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34507         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34508         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34509         (gl_WCHAR_H_DEFAULTS): Likewise.
34510
34511 2009-12-31  Eric Blake  <ebb9@byu.net>
34512
34513         signal, spawn: use link warnings
34514         * lib/signal.in.h (sigset_t): Make unconditional.
34515         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34516         (sigpending, sigprocmask, sigaction): Add link warnings.
34517         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34518         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34519         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34520         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34521         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34522         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34523         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34524         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34525         (posix_spawn_file_actions_destroy)
34526         (posix_spawn_file_actions_addopen)
34527         (posix_spawn_file_actions_addclose)
34528         (posix_spawn_file_actions_adddup2): Likewise.
34529         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34530         * tests/test-signal.c (main): Enhance test.
34531
34532         spawn: improve wrapper support
34533         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34534         (gl_SPAWN_H_DEFAULTS): New defaults.
34535         * modules/spawn (Makefile.am): Substitute them.
34536         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34537         Only declare if missing or broken.
34538
34539         sys_times, sys_utsname: use include_next
34540         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34541         header.
34542         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34543         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34544         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34545         * modules/sys_times (Depends-on): Add include_next.
34546         (Makefile.am): Substitute additional values.
34547         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34548         * lib/sys_times.in.h (includes): Include native header, if
34549         available.
34550         * lib/sys_utsname.in.h (includes): Likewise.
34551         * tests/test-sys_times.c (main): Enhance test.
34552
34553         fdutimensat: revert prior patch
34554         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34555         utimens.h.
34556         Reported by Bruno Haible.
34557
34558 2009-12-30  Eric Blake  <ebb9@byu.net>
34559
34560         sys_wait: drop link-warning dependency
34561         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34562         link-warning efforts.
34563         * lib/sys_wait.in.h: Likewise.
34564
34565         fdutimensat: remove bogus dependency
34566         * modules/fdutimensat (Depends-on): Drop inline.
34567
34568         unistd: fix typo
34569         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34570
34571 2009-12-30  Bruno Haible  <bruno@clisp.org>
34572
34573         Fix compilation error with Solaris cc.
34574         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34575         * lib/unicase/u16-is-invariant.c: Likewise.
34576         * lib/unicase/u32-is-invariant.c: Likewise.
34577         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34578
34579 2009-12-30  Bruno Haible  <bruno@clisp.org>
34580
34581         Fix test crash.
34582         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34583         locales.
34584         Reported by Simon Josefsson <simon@josefsson.org>.
34585
34586 2009-12-30  Bruno Haible  <bruno@clisp.org>
34587
34588         Fix compilation error on most platforms.
34589         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34590         Reported by Simon Josefsson <simon@josefsson.org>
34591         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34592
34593 2009-12-30  Eric Blake  <ebb9@byu.net>
34594
34595         futimens, utimensat: work around ntfs-3g bug
34596         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34597         a ctime bug is present, and expand workaround to cover ntfs-3g.
34598         * lib/utimens.c (fdutimens, lutimens): Likewise.
34599         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34600         (validate_timespec): Adjust return value.
34601         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34602         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34603         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34604
34605 2009-12-29  Eric Blake  <ebb9@byu.net>
34606
34607         link-warning: make usage consistent
34608         * modules/ctype (Depends-on): Add link-warning.
34609         (Makefile.am): Update rules accordingly.
34610         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34611         * modules/locale (Depends-on, Makefile.am): Likewise.
34612         * modules/sys_file (Makefile.am): Likewise.
34613         * modules/getopt-posix (Makefile.am): Delete unused link warning
34614         efforts.
34615         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34616         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34617         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34618         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34619
34620         stdio: remove unused variables
34621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34622         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34623         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34624
34625         tests: test more substitute headers
34626         * modules/ctype-tests: New file.
34627         * modules/dirent-tests: Likewise.
34628         * modules/spawn-tests: Likewise.
34629         * modules/sys_file-tests: Likewise.
34630         * modules/sys_ioctl-tests: Likewise.
34631         * modules/sys_wait-tests: Likewise.
34632         * tests/test-ctype.c: Likewise.
34633         * tests/test-dirent.c: Likewise.
34634         * tests/test-spawn.c: Likewise.
34635         * tests/test-sys_file.c: Likewise.
34636         * tests/test-sys_ioctl.c: Likewise.
34637         * tests/test-sys_wait.c: Likewise.
34638         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34639         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34640         whether or not flock is in use.
34641
34642         tests: remove License section from module
34643         * modules/arpa_inet-tests: Remove unneeded section.
34644         * modules/byteswap-tests: Likewise.
34645         * modules/ceilf-tests: Likewise.
34646         * modules/ceill-tests: Likewise.
34647         * modules/crypto/des-tests: Likewise.
34648         * modules/crypto/gc-arcfour-tests: Likewise.
34649         * modules/crypto/gc-arctwo-tests: Likewise.
34650         * modules/crypto/gc-des-tests: Likewise.
34651         * modules/crypto/gc-hmac-md5-tests: Likewise.
34652         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34653         * modules/crypto/gc-md2-tests: Likewise.
34654         * modules/crypto/gc-md4-tests: Likewise.
34655         * modules/crypto/gc-md5-tests: Likewise.
34656         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34657         * modules/crypto/gc-rijndael-tests: Likewise.
34658         * modules/crypto/gc-sha1-tests: Likewise.
34659         * modules/crypto/gc-tests: Likewise.
34660         * modules/crypto/md2-tests: Likewise.
34661         * modules/crypto/md4-tests: Likewise.
34662         * modules/fcntl-h-tests: Likewise.
34663         * modules/floorf-tests: Likewise.
34664         * modules/floorl-tests: Likewise.
34665         * modules/frexp-nolibm-tests: Likewise.
34666         * modules/frexp-tests: Likewise.
34667         * modules/frexpl-nolibm-tests: Likewise.
34668         * modules/frexpl-tests: Likewise.
34669         * modules/getaddrinfo-tests: Likewise.
34670         * modules/inttypes-tests: Likewise.
34671         * modules/isfinite-tests: Likewise.
34672         * modules/isinf-tests: Likewise.
34673         * modules/ldexpl-tests: Likewise.
34674         * modules/locale-tests: Likewise.
34675         * modules/math-tests: Likewise.
34676         * modules/netdb-tests: Likewise.
34677         * modules/netinet_in-tests: Likewise.
34678         * modules/printf-frexp-tests: Likewise.
34679         * modules/printf-frexpl-tests: Likewise.
34680         * modules/priv-set-tests: Likewise.
34681         * modules/random_r-tests: Likewise.
34682         * modules/round-tests: Likewise.
34683         * modules/roundf-tests: Likewise.
34684         * modules/roundl-tests: Likewise.
34685         * modules/search-tests: Likewise.
34686         * modules/select-tests: Likewise.
34687         * modules/signal-tests: Likewise.
34688         * modules/stdbool-tests: Likewise.
34689         * modules/stddef-tests: Likewise.
34690         * modules/stdint-tests: Likewise.
34691         * modules/stdio-tests: Likewise.
34692         * modules/stdlib-tests: Likewise.
34693         * modules/string-tests: Likewise.
34694         * modules/strings-tests: Likewise.
34695         * modules/sys_select-tests: Likewise.
34696         * modules/sys_socket-tests: Likewise.
34697         * modules/sys_stat-tests: Likewise.
34698         * modules/sys_time-tests: Likewise.
34699         * modules/sys_utsname-tests: Likewise.
34700         * modules/sysexits-tests: Likewise.
34701         * modules/time-tests: Likewise.
34702         * modules/trunc-tests: Likewise.
34703         * modules/truncf-tests: Likewise.
34704         * modules/truncl-tests: Likewise.
34705         * modules/tsearch-tests: Likewise.
34706         * modules/unistd-tests: Likewise.
34707         * modules/wchar-tests: Likewise.
34708         * modules/wctype-tests: Likewise.
34709
34710         tests: fix license on several tests
34711         * tests/test-des.c: Update to GPLv3+.
34712         * tests/test-flock.c: Likewise.
34713         * tests/test-fsync.c: Likewise.
34714         * tests/test-futimens.h: Likewise.
34715         * tests/test-gc-arcfour.c: Likewise.
34716         * tests/test-gc-arctwo.c: Likewise.
34717         * tests/test-gc-des.c: Likewise.
34718         * tests/test-gc-hmac-md5.c: Likewise.
34719         * tests/test-gc-hmac-sha1.c: Likewise.
34720         * tests/test-gc-md2.c: Likewise.
34721         * tests/test-gc-md4.c: Likewise.
34722         * tests/test-gc-md5.c: Likewise.
34723         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34724         * tests/test-gc-rijndael.c: Likewise.
34725         * tests/test-gc-sha1.c: Likewise.
34726         * tests/test-gc.c: Likewise.
34727         * tests/test-getcwd.c: Likewise.
34728         * tests/test-link.c: Likewise.
34729         * tests/test-link.h: Likewise.
34730         * tests/test-lutimens.h: Likewise.
34731         * tests/test-md2.c: Likewise.
34732         * tests/test-md4.c: Likewise.
34733         * tests/test-mkdir.h: Likewise.
34734         * tests/test-rename.c: Likewise.
34735         * tests/test-rename.h: Likewise.
34736         * tests/test-safe-alloc.c: Likewise.
34737         * tests/test-utimens-common.h: Likewise.
34738         * tests/test-utimens.h: Likewise.
34739
34740         maint: sync license texts
34741         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34742         * doc/gpl-3.0.texi: Revert copyright year update.
34743         * doc/lgpl-3.0.texi: Likewise.
34744
34745 2009-12-29  Jim Meyering  <meyering@redhat.com>
34746
34747         update nearly all FSF copyright year lists to include 2009
34748         The files named by the following are exempted:
34749             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34750               test -f "$dst" && { echo "$dst"; continue; }
34751               test -d "$dst" || continue
34752               echo "$dst"/$(basename "$src")
34753             done > exempt
34754             git ls-files tests/unictype >> exempt
34755         In the remaining files, convert to all-interval notation if
34756         - there is already at least one year interval like 2000-2003
34757         - the file is maintained by me
34758         - the file is in lib/uni*/, where that style already prevails
34759         Otherwise, use update-copyright's default.
34760
34761 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34762         and Eric Blake  <ebb9@byu.net>
34763
34764         tests: don't require debug system() to pass
34765         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34766         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34767         * tests/test-unlink.h (test_unlink_func): Likewise.
34768         * tests/test-fstatat.c (main): ...into callers.
34769         * tests/test-lstat.c (main): Likewise.
34770         * tests/test-rmdir.c (main): Likewise.
34771         * tests/test-unlink.c (main): Likewise.
34772         * tests/test-unlinkat.c (main): Likewise.
34773         * tests/test-areadlink-with-size.c (main): Don't require a
34774         debug-only system call to pass, aiding cross-testing to mingw.
34775         * tests/test-areadlink.c (main): Likewise.
34776         * tests/test-areadlinkat-with-size.c (main): Likewise.
34777         * tests/test-areadlinkat.c (main): Likewise.
34778         * tests/test-canonicalize-lgpl.c (main): Likewise.
34779         * tests/test-canonicalize.c (main): Likewise.
34780         * tests/test-chown.c (main): Likewise.
34781         * tests/test-fchownat.c (main): Likewise.
34782         * tests/test-lchown.c (main): Likewise.
34783         * tests/test-fdutimensat.c (main): Likewise.
34784         * tests/test-futimens.c (main): Likewise.
34785         * tests/test-link.c (main): Likewise.
34786         * tests/test-linkat.c (main): Likewise.
34787         * tests/test-mkdir.c (main): Likewise.
34788         * tests/test-mkdirat.c (main): Likewise.
34789         * tests/test-mkfifo.c (main): Likewise.
34790         * tests/test-mkfifoat.c (main): Likewise.
34791         * tests/test-mknod.c (main): Likewise.
34792         * tests/test-readlink.c (main): Likewise.
34793         * tests/test-remove.c (main): Likewise.
34794         * tests/test-rename.c (main): Likewise.
34795         * tests/test-renameat.c (main): Likewise.
34796         * tests/test-symlink.c (main): Likewise.
34797         * tests/test-symlinkat.c (main): Likewise.
34798         * tests/test-utimens.c (main): Likewise.
34799         * tests/test-utimensat.c (main): Likewise.
34800
34801 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34802
34803         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34804         on $(UNUSED_PARAMETER_H) to avoid build failure.
34805
34806 2009-12-28  Jim Meyering  <meyering@redhat.com>
34807
34808         update-copyright: you may specify a max. line length other than 72
34809         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34810
34811         maint: use consistent FSF copyright line syntax
34812         * lib/posixtm.c: Add missing comma in FSF copyright line.
34813         * lib/posixtm.h: Likewise.
34814         * lib/getugroups.c: Add missing ", Inc.".
34815
34816         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34817         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34818         FSF copyright line.  Remove trailing blanks.
34819
34820 2009-12-28  Eric Blake  <ebb9@byu.net>
34821
34822         test-dup2: reduce dependencies
34823         * modules/cloexec (Configure.ac): Set witness.
34824         * modules/dup2-tests (Depends-on): Drop cloexec.
34825         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34826         not present.
34827         Suggested by Bruno Haible.
34828
34829 2009-12-26  Bruno Haible  <bruno@clisp.org>
34830
34831         Remove an unneeded dependency.
34832         * modules/fseterr (Depends-on): Remove dup2.
34833
34834 2009-12-26  Eric Blake  <ebb9@byu.net>
34835
34836         tests: use macros.h in more places
34837         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34838         (ASSERT_STREAM): Provide default of stderr.
34839         * tests/test-dirent-safer.c: Include macros.h, using alternate
34840         stream for assertions.
34841         * tests/test-dup-safer.c: Likewise.
34842         * tests/test-freopen-safer.c: Likewise.
34843         * tests/test-getopt.c: Likewise.
34844         * tests/test-openat-safer.c: Likewise.
34845         * tests/test-pipe.c: Likewise.
34846         * tests/test-popen-safer.c: Likewise.
34847         * modules/dirent-safer-tests (Files): Include macros.h.
34848         * modules/unistd-safer-tests (Files): Likewise.
34849         * modules/freopen-safer-tests (Files): Likewise.
34850         * modules/getopt-posix-tests (Files): Likewise.
34851         * modules/openat-safer-tests (Files): Likewise.
34852         * modules/pipe-tests (Files): Likewise.
34853
34854 2009-12-26  Bruno Haible  <bruno@clisp.org>
34855
34856         javacomp: Portability fix.
34857         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34858         that it also works on Solaris.
34859
34860 2009-12-26  Bruno Haible  <bruno@clisp.org>
34861
34862         localename: Fix storage allocation of gl_locale_name_thread's result.
34863         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34864         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34865         all platforms that have 'uselocale'.
34866         (gl_locale_name_thread_unsafe): New function, extracted from
34867         gl_locale_name_thread.
34868         (gl_locale_name_thread): Call struniq on all platforms that have
34869         'uselocale'.
34870         * tests/test-localename.c (test_locale_name_thread): Check that the
34871         resulting strings are permanently allocated.
34872         * modules/localename-tests (Depends-on): Add strdup.
34873
34874 2009-12-26  Bruno Haible  <bruno@clisp.org>
34875
34876         * tests/test-localename.c (categories): Fill in the strings.
34877
34878 2009-12-26  Jim Meyering  <meyering@redhat.com>
34879
34880         isdir: complete the removal of m4/isdir.m4
34881         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34882
34883         isdir: clean up, since at least grep still uses it
34884         * lib/isdir.c: Include "isdir.h".
34885         (S_ISDIR): Remove now-unneeded definition.
34886         * modules/isdir (Files): Add lib/isdir.h.
34887         * lib/isdir.h: New file, with declaration.
34888         * m4/isdir.m4: Remove file -- unneeded.
34889
34890 2009-12-25  Bruno Haible  <bruno@clisp.org>
34891
34892         selinux-h: Make generated .h files standalone.
34893         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34894         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34895         * lib/se-selinux.in.h: Likewise.
34896         * modules/selinux-h (Depends-on): Add unused-parameter.
34897         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34898         selinux/selinux.h and selinux/context.h.
34899         Suggested by Eric Blake.
34900
34901 2009-12-25  Bruno Haible  <bruno@clisp.org>
34902
34903         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34904         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34905         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34906         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34907         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34908
34909 2009-12-24  Bruno Haible  <bruno@clisp.org>
34910
34911         openat: Fix warning.
34912         * lib/openat-proc.c: Include <unistd.h>.
34913
34914 2009-12-24  Bruno Haible  <bruno@clisp.org>
34915
34916         New module 'unused-parameter'.
34917         * build-aux/unused-parameter.h: New file, extracted from earlier
34918         gnulib-common.m4.
34919         * modules/unused-parameter: New file.
34920         * lib/unistr.h: Include unused-parameter.h.
34921         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34922         _GL_UNUSED.
34923         * modules/unistr/base (Depends-on): Add unused-parameter.
34924
34925 2009-12-24  Bruno Haible  <bruno@clisp.org>
34926
34927         Add missing dependencies to 'extensions' module.
34928         * m4/extensions.m4: Add comment.
34929         * modules/accept4 (Depends-on): Add extensions.
34930         * modules/dup3 (Depends-on): Likewise.
34931         * modules/fcntl (Depends-on): Likewise.
34932         * modules/futimens (Depends-on): Likewise.
34933         * modules/mknod (Depends-on): Likewise.
34934         * modules/pipe2 (Depends-on): Likewise.
34935         * modules/stat-time (Depends-on): Likewise.
34936         * modules/strcasestr-simple (Depends-on): Likewise.
34937         * modules/strsignal (Depends-on): Likewise.
34938         * modules/utimensat (Depends-on): Likewise.
34939         * modules/localcharset (Depends-on): Likewise. Needed because of
34940         gl_FCNTL_O_FLAGS.
34941         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34942         AC_TYPE_MBSTATE_T.
34943         * modules/wcsnrtombs (Depends-on): Likewise.
34944         * modules/wcsrtombs (Depends-on): Likewise.
34945
34946 2009-12-24  Bruno Haible  <bruno@clisp.org>
34947
34948         binary-io: Avoid gcc warning due to SET_BINARY.
34949         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34950         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34951
34952 2009-12-24  Bruno Haible  <bruno@clisp.org>
34953
34954         Avoid future namespace pollution on glibc systems.
34955         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34956         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34957         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34958         glibc systems.
34959
34960 2009-12-24  Bruno Haible  <bruno@clisp.org>
34961
34962         Refactor common macros used in tests.
34963         * tests/macros.h: New file.
34964         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34965         and/or <stdlib.h>, if appropriate.
34966         (ASSERT, SIZEOF): Remove macros.
34967         * tests/test-areadlink-with-size.c: Likewise.
34968         * tests/test-areadlinkat.c: Likewise.
34969         * tests/test-areadlinkat-with-size.c: Likewise.
34970         * tests/test-argmatch.c: Likewise.
34971         * tests/test-argv-iter.c: Likewise.
34972         * tests/test-array-mergesort.c: Likewise.
34973         * tests/test-array_list.c: Likewise.
34974         * tests/test-array_oset.c: Likewise.
34975         * tests/test-avltree_list.c: Likewise.
34976         * tests/test-avltree_oset.c: Likewise.
34977         * tests/test-avltreehash_list.c: Likewise.
34978         * tests/test-base64.c: Likewise.
34979         * tests/test-binary-io.c: Likewise.
34980         * tests/test-bitrotate.c: Likewise.
34981         * tests/test-btowc.c: Likewise.
34982         * tests/test-byteswap.c: Likewise.
34983         * tests/test-c-ctype.c: Likewise.
34984         * tests/test-c-stack.c: Likewise.
34985         * tests/test-c-strcasecmp.c: Likewise.
34986         * tests/test-c-strcasestr.c: Likewise.
34987         * tests/test-c-strncasecmp.c: Likewise.
34988         * tests/test-c-strstr.c: Likewise.
34989         * tests/test-canonicalize-lgpl.c: Likewise.
34990         * tests/test-canonicalize.c: Likewise.
34991         * tests/test-carray_list.c: Likewise.
34992         * tests/test-ceilf1.c: Likewise.
34993         * tests/test-ceilf2.c: Likewise.
34994         * tests/test-ceill.c: Likewise.
34995         * tests/test-chown.c: Likewise.
34996         * tests/test-cloexec.c: Likewise.
34997         * tests/test-copy-acl.c: Likewise.
34998         * tests/test-copy-file.c: Likewise.
34999         * tests/test-count-one-bits.c: Likewise.
35000         * tests/test-dprintf-posix.c: Likewise.
35001         * tests/test-dup2.c: Likewise.
35002         * tests/test-dup3.c: Likewise.
35003         * tests/test-duplocale.c: Likewise.
35004         * tests/test-fbufmode.c: Likewise.
35005         * tests/test-fchdir.c: Likewise.
35006         * tests/test-fchownat.c: Likewise.
35007         * tests/test-fcntl-safer.c: Likewise.
35008         * tests/test-fcntl.c: Likewise.
35009         * tests/test-fdopendir.c: Likewise.
35010         * tests/test-fdutimensat.c: Likewise.
35011         * tests/test-fflush2.c: Likewise.
35012         * tests/test-file-has-acl.c: Likewise.
35013         * tests/test-filevercmp.c: Likewise.
35014         * tests/test-flock.c: Likewise.
35015         * tests/test-floorf1.c: Likewise.
35016         * tests/test-floorf2.c: Likewise.
35017         * tests/test-floorl.c: Likewise.
35018         * tests/test-fnmatch.c: Likewise.
35019         * tests/test-fopen.h: Likewise.
35020         * tests/test-fpending.c: Likewise.
35021         * tests/test-fprintf-posix.c: Likewise.
35022         * tests/test-fpurge.c: Likewise.
35023         * tests/test-freadable.c: Likewise.
35024         * tests/test-freadahead.c: Likewise.
35025         * tests/test-freading.c: Likewise.
35026         * tests/test-freadptr.c: Likewise.
35027         * tests/test-freadptr2.c: Likewise.
35028         * tests/test-freadseek.c: Likewise.
35029         * tests/test-freopen.c: Likewise.
35030         * tests/test-frexp.c: Likewise.
35031         * tests/test-frexpl.c: Likewise.
35032         * tests/test-fseek.c: Likewise.
35033         * tests/test-fseeko.c: Likewise.
35034         * tests/test-fstatat.c: Likewise.
35035         * tests/test-fstrcmp.c: Likewise.
35036         * tests/test-fsync.c: Likewise.
35037         * tests/test-ftell.c: Likewise.
35038         * tests/test-ftello.c: Likewise.
35039         * tests/test-func.c: Likewise.
35040         * tests/test-futimens.c: Likewise.
35041         * tests/test-fwritable.c: Likewise.
35042         * tests/test-fwriting.c: Likewise.
35043         * tests/test-getcwd.c: Likewise.
35044         * tests/test-getdate.c: Likewise.
35045         * tests/test-getdelim.c: Likewise.
35046         * tests/test-getdtablesize.c: Likewise.
35047         * tests/test-getgroups.c: Likewise.
35048         * tests/test-getline.c: Likewise.
35049         * tests/test-getndelim2.c: Likewise.
35050         * tests/test-glob.c: Likewise.
35051         * tests/test-hash.c: Likewise.
35052         * tests/test-i-ring.c: Likewise.
35053         * tests/test-iconv-utf.c: Likewise.
35054         * tests/test-iconv.c: Likewise.
35055         * tests/test-idpriv-drop.c: Likewise.
35056         * tests/test-idpriv-droptemp.c: Likewise.
35057         * tests/test-inet_ntop.c: Likewise.
35058         * tests/test-inet_pton.c: Likewise.
35059         * tests/test-isblank.c: Likewise.
35060         * tests/test-isfinite.c: Likewise.
35061         * tests/test-isinf.c: Likewise.
35062         * tests/test-isnan.c: Likewise.
35063         * tests/test-isnand.h: Likewise.
35064         * tests/test-isnanf.h: Likewise.
35065         * tests/test-isnanl.h: Likewise.
35066         * tests/test-lchown.c: Likewise.
35067         * tests/test-ldexpl.c: Likewise.
35068         * tests/test-link.c: Likewise.
35069         * tests/test-linkat.c: Likewise.
35070         * tests/test-linked_list.c: Likewise.
35071         * tests/test-linkedhash_list.c: Likewise.
35072         * tests/test-localename.c: Likewise.
35073         * tests/test-lseek.c: Likewise.
35074         * tests/test-lstat.c: Likewise.
35075         * tests/test-mbmemcasecmp.c: Likewise.
35076         * tests/test-mbmemcasecoll.c: Likewise.
35077         * tests/test-mbrtowc.c: Likewise.
35078         * tests/test-mbscasecmp.c: Likewise.
35079         * tests/test-mbscasestr1.c: Likewise.
35080         * tests/test-mbscasestr2.c: Likewise.
35081         * tests/test-mbscasestr3.c: Likewise.
35082         * tests/test-mbscasestr4.c: Likewise.
35083         * tests/test-mbschr.c: Likewise.
35084         * tests/test-mbscspn.c: Likewise.
35085         * tests/test-mbsinit.c: Likewise.
35086         * tests/test-mbsncasecmp.c: Likewise.
35087         * tests/test-mbsnrtowcs.c: Likewise.
35088         * tests/test-mbspbrk.c: Likewise.
35089         * tests/test-mbspcasecmp.c: Likewise.
35090         * tests/test-mbsrchr.c: Likewise.
35091         * tests/test-mbsrtowcs.c: Likewise.
35092         * tests/test-mbsspn.c: Likewise.
35093         * tests/test-mbsstr1.c: Likewise.
35094         * tests/test-mbsstr2.c: Likewise.
35095         * tests/test-mbsstr3.c: Likewise.
35096         * tests/test-memchr.c: Likewise.
35097         * tests/test-memchr2.c: Likewise.
35098         * tests/test-memcmp.c: Likewise.
35099         * tests/test-memmem.c: Likewise.
35100         * tests/test-memrchr.c: Likewise.
35101         * tests/test-mkdir.c: Likewise.
35102         * tests/test-mkdirat.c: Likewise.
35103         * tests/test-mkfifo.c: Likewise.
35104         * tests/test-mkfifoat.c: Likewise.
35105         * tests/test-mknod.c: Likewise.
35106         * tests/test-nanosleep.c: Likewise.
35107         * tests/test-nl_langinfo.c: Likewise.
35108         * tests/test-obstack-printf.c: Likewise.
35109         * tests/test-open.c: Likewise.
35110         * tests/test-openat.c: Likewise.
35111         * tests/test-pipe-filter-gi1.c: Likewise.
35112         * tests/test-pipe-filter-gi2-main.c: Likewise.
35113         * tests/test-pipe-filter-ii1.c: Likewise.
35114         * tests/test-pipe-filter-ii2-main.c: Likewise.
35115         * tests/test-pipe2.c: Likewise.
35116         * tests/test-popen.h: Likewise.
35117         * tests/test-posixtm.c: Likewise.
35118         * tests/test-pread.c: Likewise.
35119         * tests/test-printf-frexp.c: Likewise.
35120         * tests/test-printf-frexpl.c: Likewise.
35121         * tests/test-printf-posix.c: Likewise.
35122         * tests/test-priv-set.c: Likewise.
35123         * tests/test-quotearg.c: Likewise.
35124         * tests/test-random_r.c: Likewise.
35125         * tests/test-rawmemchr.c: Likewise.
35126         * tests/test-rbtree_list.c: Likewise.
35127         * tests/test-rbtree_oset.c: Likewise.
35128         * tests/test-rbtreehash_list.c: Likewise.
35129         * tests/test-readlink.c: Likewise.
35130         * tests/test-remove.c: Likewise.
35131         * tests/test-rename.c: Likewise.
35132         * tests/test-renameat.c: Likewise.
35133         * tests/test-rmdir.c: Likewise.
35134         * tests/test-round1.c: Likewise.
35135         * tests/test-roundf1.c: Likewise.
35136         * tests/test-roundl.c: Likewise.
35137         * tests/test-safe-alloc.c: Likewise.
35138         * tests/test-sameacls.c: Likewise.
35139         * tests/test-set-mode-acl.c: Likewise.
35140         * tests/test-setenv.c: Likewise.
35141         * tests/test-sigaction.c: Likewise.
35142         * tests/test-signbit.c: Likewise.
35143         * tests/test-sleep.c: Likewise.
35144         * tests/test-snprintf-posix.c: Likewise.
35145         * tests/test-snprintf.c: Likewise.
35146         * tests/test-sprintf-posix.c: Likewise.
35147         * tests/test-stat-time.c: Likewise.
35148         * tests/test-stat.c: Likewise.
35149         * tests/test-strcasestr.c: Likewise.
35150         * tests/test-strchrnul.c: Likewise.
35151         * tests/test-strerror.c: Likewise.
35152         * tests/test-striconv.c: Likewise.
35153         * tests/test-striconveh.c: Likewise.
35154         * tests/test-striconveha.c: Likewise.
35155         * tests/test-strsignal.c: Likewise.
35156         * tests/test-strstr.c: Likewise.
35157         * tests/test-strtod.c: Likewise.
35158         * tests/test-strverscmp.c: Likewise.
35159         * tests/test-symlink.c: Likewise.
35160         * tests/test-symlinkat.c: Likewise.
35161         * tests/test-trunc1.c: Likewise.
35162         * tests/test-trunc2.c: Likewise.
35163         * tests/test-truncf1.c: Likewise.
35164         * tests/test-truncf2.c: Likewise.
35165         * tests/test-truncl.c: Likewise.
35166         * tests/test-uname.c: Likewise.
35167         * tests/test-unlink.c: Likewise.
35168         * tests/test-unlinkat.c: Likewise.
35169         * tests/test-unsetenv.c: Likewise.
35170         * tests/test-usleep.c: Likewise.
35171         * tests/test-utimens.c: Likewise.
35172         * tests/test-utimensat.c: Likewise.
35173         * tests/test-vasnprintf-posix.c: Likewise.
35174         * tests/test-vasnprintf-posix2.c: Likewise.
35175         * tests/test-vasnprintf.c: Likewise.
35176         * tests/test-vasprintf-posix.c: Likewise.
35177         * tests/test-vasprintf.c: Likewise.
35178         * tests/test-vdprintf-posix.c: Likewise.
35179         * tests/test-vfprintf-posix.c: Likewise.
35180         * tests/test-vprintf-posix.c: Likewise.
35181         * tests/test-vsnprintf-posix.c: Likewise.
35182         * tests/test-vsnprintf.c: Likewise.
35183         * tests/test-vsprintf-posix.c: Likewise.
35184         * tests/test-wcrtomb.c: Likewise.
35185         * tests/test-wcsnrtombs.c: Likewise.
35186         * tests/test-wcsrtombs.c: Likewise.
35187         * tests/test-wctype.c: Likewise.
35188         * tests/test-wcwidth.c: Likewise.
35189         * tests/test-xfprintf-posix.c: Likewise.
35190         * tests/test-xmemdup0.c: Likewise.
35191         * tests/test-xprintf-posix.c: Likewise.
35192         * tests/test-xvasprintf.c: Likewise.
35193         * tests/unicase/test-locale-language.c: Likewise.
35194         * tests/unicase/test-mapping-part1.h: Likewise.
35195         * tests/unicase/test-predicate-part1.h: Likewise.
35196         * tests/unicase/test-u8-casecmp.c: Likewise.
35197         * tests/unicase/test-u8-casecoll.c: Likewise.
35198         * tests/unicase/test-u8-casefold.c: Likewise.
35199         * tests/unicase/test-u8-is-cased.c: Likewise.
35200         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35201         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35202         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35203         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35204         * tests/unicase/test-u8-tolower.c: Likewise.
35205         * tests/unicase/test-u8-totitle.c: Likewise.
35206         * tests/unicase/test-u8-toupper.c: Likewise.
35207         * tests/unicase/test-u16-casecmp.c: Likewise.
35208         * tests/unicase/test-u16-casecoll.c: Likewise.
35209         * tests/unicase/test-u16-casefold.c: Likewise.
35210         * tests/unicase/test-u16-is-cased.c: Likewise.
35211         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35212         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35213         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35214         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35215         * tests/unicase/test-u16-tolower.c: Likewise.
35216         * tests/unicase/test-u16-totitle.c: Likewise.
35217         * tests/unicase/test-u16-toupper.c: Likewise.
35218         * tests/unicase/test-u32-casecmp.c: Likewise.
35219         * tests/unicase/test-u32-casecoll.c: Likewise.
35220         * tests/unicase/test-u32-casefold.c: Likewise.
35221         * tests/unicase/test-u32-is-cased.c: Likewise.
35222         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35223         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35224         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35225         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35226         * tests/unicase/test-u32-tolower.c: Likewise.
35227         * tests/unicase/test-u32-totitle.c: Likewise.
35228         * tests/unicase/test-u32-toupper.c: Likewise.
35229         * tests/unicase/test-ulc-casecmp.c: Likewise.
35230         * tests/unicase/test-ulc-casecoll.c: Likewise.
35231         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35232         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35233         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35234         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35235         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35236         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35237         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35238         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35239         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35240         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35241         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35242         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35243         * tests/unictype/test-bidi_byname.c: Likewise.
35244         * tests/unictype/test-bidi_name.c: Likewise.
35245         * tests/unictype/test-bidi_of.c: Likewise.
35246         * tests/unictype/test-bidi_test.c: Likewise.
35247         * tests/unictype/test-block_list.c: Likewise.
35248         * tests/unictype/test-block_of.c: Likewise.
35249         * tests/unictype/test-block_test.c: Likewise.
35250         * tests/unictype/test-categ_and.c: Likewise.
35251         * tests/unictype/test-categ_and_not.c: Likewise.
35252         * tests/unictype/test-categ_byname.c: Likewise.
35253         * tests/unictype/test-categ_name.c: Likewise.
35254         * tests/unictype/test-categ_none.c: Likewise.
35255         * tests/unictype/test-categ_of.c: Likewise.
35256         * tests/unictype/test-categ_or.c: Likewise.
35257         * tests/unictype/test-categ_test_withtable.c: Likewise.
35258         * tests/unictype/test-combining.c: Likewise.
35259         * tests/unictype/test-decdigit.c: Likewise.
35260         * tests/unictype/test-digit.c: Likewise.
35261         * tests/unictype/test-mirror.c: Likewise.
35262         * tests/unictype/test-numeric.c: Likewise.
35263         * tests/unictype/test-pr_byname.c: Likewise.
35264         * tests/unictype/test-pr_test.c: Likewise.
35265         * tests/unictype/test-predicate-part1.h: Likewise.
35266         * tests/unictype/test-scripts.c: Likewise.
35267         * tests/unictype/test-sy_c_ident.c: Likewise.
35268         * tests/unictype/test-sy_java_ident.c: Likewise.
35269         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35270         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35271         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35272         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35273         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35274         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35275         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35276         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35277         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35278         * tests/uninorm/test-compat-decomposition.c: Likewise.
35279         * tests/uninorm/test-composition.c: Likewise.
35280         * tests/uninorm/test-decomposing-form.c: Likewise.
35281         * tests/uninorm/test-decomposition.c: Likewise.
35282         * tests/uninorm/test-u8-nfc.c: Likewise.
35283         * tests/uninorm/test-u8-nfd.c: Likewise.
35284         * tests/uninorm/test-u8-nfkc.c: Likewise.
35285         * tests/uninorm/test-u8-nfkd.c: Likewise.
35286         * tests/uninorm/test-u8-normcmp.c: Likewise.
35287         * tests/uninorm/test-u8-normcoll.c: Likewise.
35288         * tests/uninorm/test-u16-nfc.c: Likewise.
35289         * tests/uninorm/test-u16-nfd.c: Likewise.
35290         * tests/uninorm/test-u16-nfkc.c: Likewise.
35291         * tests/uninorm/test-u16-nfkd.c: Likewise.
35292         * tests/uninorm/test-u16-normcmp.c: Likewise.
35293         * tests/uninorm/test-u16-normcoll.c: Likewise.
35294         * tests/uninorm/test-u32-nfc.c: Likewise.
35295         * tests/uninorm/test-u32-nfd.c: Likewise.
35296         * tests/uninorm/test-u32-nfkc.c: Likewise.
35297         * tests/uninorm/test-u32-nfkd.c: Likewise.
35298         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35299         * tests/uninorm/test-u32-normcmp.c: Likewise.
35300         * tests/uninorm/test-u32-normcoll.c: Likewise.
35301         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35302         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35303         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35304         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35305         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35306         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35307         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35308         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35309         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35310         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35311         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35312         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35313         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35314         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35315         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35316         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35317         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35318         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35319         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35320         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35321         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35322         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35323         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35324         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35325         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35326         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35327         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35328         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35329         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35330         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35331         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35332         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35333         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35334         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35335         * tests/uniwidth/test-u8-width.c: Likewise.
35336         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35337         * tests/uniwidth/test-u16-width.c: Likewise.
35338         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35339         * tests/uniwidth/test-u32-width.c: Likewise.
35340         * tests/uniwidth/test-uc_width.c: Likewise.
35341         * tests/uniwidth/test-uc_width2.c: Likewise.
35342         * modules/acl-tests (Files): Add tests/macros.h.
35343         * modules/areadlink-tests (Files): Likewise.
35344         * modules/areadlink-with-size-tests (Files): Likewise.
35345         * modules/areadlinkat-tests (Files): Likewise.
35346         * modules/areadlinkat-with-size-tests (Files): Likewise.
35347         * modules/argmatch-tests (Files): Likewise.
35348         * modules/argv-iter-tests (Files): Likewise.
35349         * modules/array-list-tests (Files): Likewise.
35350         * modules/array-mergesort-tests (Files): Likewise.
35351         * modules/array-oset-tests (Files): Likewise.
35352         * modules/avltree-list-tests (Files): Likewise.
35353         * modules/avltree-oset-tests (Files): Likewise.
35354         * modules/avltreehash-list-tests (Files): Likewise.
35355         * modules/base64-tests (Files): Likewise.
35356         * modules/binary-io-tests (Files): Likewise.
35357         * modules/bitrotate-tests (Files): Likewise.
35358         * modules/btowc-tests (Files): Likewise.
35359         * modules/byteswap-tests (Files): Likewise.
35360         * modules/c-ctype-tests (Files): Likewise.
35361         * modules/c-stack-tests (Files): Likewise.
35362         * modules/c-strcase-tests (Files): Likewise.
35363         * modules/c-strcasestr-tests (Files): Likewise.
35364         * modules/c-strstr-tests (Files): Likewise.
35365         * modules/canonicalize-lgpl-tests (Files): Likewise.
35366         * modules/canonicalize-tests (Files): Likewise.
35367         * modules/carray-list-tests (Files): Likewise.
35368         * modules/ceilf-tests (Files): Likewise.
35369         * modules/ceill-tests (Files): Likewise.
35370         * modules/chown-tests (Files): Likewise.
35371         * modules/cloexec-tests (Files): Likewise.
35372         * modules/copy-file-tests (Files): Likewise.
35373         * modules/count-one-bits-tests (Files): Likewise.
35374         * modules/dprintf-posix-tests (Files): Likewise.
35375         * modules/dup2-tests (Files): Likewise.
35376         * modules/dup3-tests (Files): Likewise.
35377         * modules/duplocale-tests (Files): Likewise.
35378         * modules/fbufmode-tests (Files): Likewise.
35379         * modules/fchdir-tests (Files): Likewise.
35380         * modules/fcntl-safer-tests (Files): Likewise.
35381         * modules/fcntl-tests (Files): Likewise.
35382         * modules/fdopendir-tests (Files): Likewise.
35383         * modules/fdutimensat-tests (Files): Likewise.
35384         * modules/fflush-tests (Files): Likewise.
35385         * modules/filevercmp-tests (Files): Likewise.
35386         * modules/flock-tests (Files): Likewise.
35387         * modules/floorf-tests (Files): Likewise.
35388         * modules/floorl-tests (Files): Likewise.
35389         * modules/fnmatch-tests (Files): Likewise.
35390         * modules/fopen-safer-tests (Files): Likewise.
35391         * modules/fopen-tests (Files): Likewise.
35392         * modules/fpending-tests (Files): Likewise.
35393         * modules/fprintf-posix-tests (Files): Likewise.
35394         * modules/fpurge-tests (Files): Likewise.
35395         * modules/freadable-tests (Files): Likewise.
35396         * modules/freadahead-tests (Files): Likewise.
35397         * modules/freading-tests (Files): Likewise.
35398         * modules/freadptr-tests (Files): Likewise.
35399         * modules/freadseek-tests (Files): Likewise.
35400         * modules/freopen-tests (Files): Likewise.
35401         * modules/frexp-nolibm-tests (Files): Likewise.
35402         * modules/frexp-tests (Files): Likewise.
35403         * modules/frexpl-nolibm-tests (Files): Likewise.
35404         * modules/frexpl-tests (Files): Likewise.
35405         * modules/fseek-tests (Files): Likewise.
35406         * modules/fseeko-tests (Files): Likewise.
35407         * modules/fstrcmp-tests (Files): Likewise.
35408         * modules/fsync-tests (Files): Likewise.
35409         * modules/ftell-tests (Files): Likewise.
35410         * modules/ftello-tests (Files): Likewise.
35411         * modules/func-tests (Files): Likewise.
35412         * modules/futimens-tests (Files): Likewise.
35413         * modules/fwritable-tests (Files): Likewise.
35414         * modules/fwriting-tests (Files): Likewise.
35415         * modules/getcwd-tests (Files): Likewise.
35416         * modules/getdate-tests (Files): Likewise.
35417         * modules/getdelim-tests (Files): Likewise.
35418         * modules/getdtablesize-tests (Files): Likewise.
35419         * modules/getgroups-tests (Files): Likewise.
35420         * modules/getline-tests (Files): Likewise.
35421         * modules/getndelim2-tests (Files): Likewise.
35422         * modules/glob-tests (Files): Likewise.
35423         * modules/hash-tests (Files): Likewise.
35424         * modules/i-ring-tests (Files): Likewise.
35425         * modules/iconv-tests (Files): Likewise.
35426         * modules/iconv_open-utf-tests (Files): Likewise.
35427         * modules/idpriv-drop-tests (Files): Likewise.
35428         * modules/idpriv-droptemp-tests (Files): Likewise.
35429         * modules/inet_ntop-tests (Files): Likewise.
35430         * modules/inet_pton-tests (Files): Likewise.
35431         * modules/isblank-tests (Files): Likewise.
35432         * modules/isfinite-tests (Files): Likewise.
35433         * modules/isinf-tests (Files): Likewise.
35434         * modules/isnan-tests (Files): Likewise.
35435         * modules/isnand-nolibm-tests (Files): Likewise.
35436         * modules/isnand-tests (Files): Likewise.
35437         * modules/isnanf-nolibm-tests (Files): Likewise.
35438         * modules/isnanf-tests (Files): Likewise.
35439         * modules/isnanl-nolibm-tests (Files): Likewise.
35440         * modules/isnanl-tests (Files): Likewise.
35441         * modules/lchown-tests (Files): Likewise.
35442         * modules/ldexpl-tests (Files): Likewise.
35443         * modules/link-tests (Files): Likewise.
35444         * modules/linkat-tests (Files): Likewise.
35445         * modules/linked-list-tests (Files): Likewise.
35446         * modules/linkedhash-list-tests (Files): Likewise.
35447         * modules/localename-tests (Files): Likewise.
35448         * modules/lseek-tests (Files): Likewise.
35449         * modules/lstat-tests (Files): Likewise.
35450         * modules/mbmemcasecmp-tests (Files): Likewise.
35451         * modules/mbmemcasecoll-tests (Files): Likewise.
35452         * modules/mbrtowc-tests (Files): Likewise.
35453         * modules/mbscasecmp-tests (Files): Likewise.
35454         * modules/mbscasestr-tests (Files): Likewise.
35455         * modules/mbschr-tests (Files): Likewise.
35456         * modules/mbscspn-tests (Files): Likewise.
35457         * modules/mbsinit-tests (Files): Likewise.
35458         * modules/mbsncasecmp-tests (Files): Likewise.
35459         * modules/mbsnrtowcs-tests (Files): Likewise.
35460         * modules/mbspbrk-tests (Files): Likewise.
35461         * modules/mbspcasecmp-tests (Files): Likewise.
35462         * modules/mbsrchr-tests (Files): Likewise.
35463         * modules/mbsrtowcs-tests (Files): Likewise.
35464         * modules/mbsspn-tests (Files): Likewise.
35465         * modules/mbsstr-tests (Files): Likewise.
35466         * modules/memchr-tests (Files): Likewise.
35467         * modules/memchr2-tests (Files): Likewise.
35468         * modules/memcmp-tests (Files): Likewise.
35469         * modules/memmem-tests (Files): Likewise.
35470         * modules/memrchr-tests (Files): Likewise.
35471         * modules/mkdir-tests (Files): Likewise.
35472         * modules/mkfifo-tests (Files): Likewise.
35473         * modules/mkfifoat-tests (Files): Likewise.
35474         * modules/mknod-tests (Files): Likewise.
35475         * modules/nanosleep-tests (Files): Likewise.
35476         * modules/nl_langinfo-tests (Files): Likewise.
35477         * modules/obstack-printf-tests (Files): Likewise.
35478         * modules/open-tests (Files): Likewise.
35479         * modules/openat-tests (Files): Likewise.
35480         * modules/pipe-filter-gi-tests (Files): Likewise.
35481         * modules/pipe-filter-ii-tests (Files): Likewise.
35482         * modules/pipe2-tests (Files): Likewise.
35483         * modules/popen-safer-tests (Files): Likewise.
35484         * modules/popen-tests (Files): Likewise.
35485         * modules/posixtm-tests (Files): Likewise.
35486         * modules/pread-tests (Files): Likewise.
35487         * modules/printf-frexp-tests (Files): Likewise.
35488         * modules/printf-frexpl-tests (Files): Likewise.
35489         * modules/printf-posix-tests (Files): Likewise.
35490         * modules/priv-set-tests (Files): Likewise.
35491         * modules/quotearg-tests (Files): Likewise.
35492         * modules/random_r-tests (Files): Likewise.
35493         * modules/rawmemchr-tests (Files): Likewise.
35494         * modules/rbtree-list-tests (Files): Likewise.
35495         * modules/rbtree-oset-tests (Files): Likewise.
35496         * modules/rbtreehash-list-tests (Files): Likewise.
35497         * modules/readlink-tests (Files): Likewise.
35498         * modules/remove-tests (Files): Likewise.
35499         * modules/rename-tests (Files): Likewise.
35500         * modules/renameat-tests (Files): Likewise.
35501         * modules/rmdir-tests (Files): Likewise.
35502         * modules/round-tests (Files): Likewise.
35503         * modules/roundf-tests (Files): Likewise.
35504         * modules/roundl-tests (Files): Likewise.
35505         * modules/safe-alloc-tests (Files): Likewise.
35506         * modules/setenv-tests (Files): Likewise.
35507         * modules/sigaction-tests (Files): Likewise.
35508         * modules/signbit-tests (Files): Likewise.
35509         * modules/sleep-tests (Files): Likewise.
35510         * modules/snprintf-posix-tests (Files): Likewise.
35511         * modules/snprintf-tests (Files): Likewise.
35512         * modules/sprintf-posix-tests (Files): Likewise.
35513         * modules/stat-tests (Files): Likewise.
35514         * modules/stat-time-tests (Files): Likewise.
35515         * modules/strcasestr-tests (Files): Likewise.
35516         * modules/strchrnul-tests (Files): Likewise.
35517         * modules/strerror-tests (Files): Likewise.
35518         * modules/striconv-tests (Files): Likewise.
35519         * modules/striconveh-tests (Files): Likewise.
35520         * modules/striconveha-tests (Files): Likewise.
35521         * modules/strsignal-tests (Files): Likewise.
35522         * modules/strstr-tests (Files): Likewise.
35523         * modules/strtod-tests (Files): Likewise.
35524         * modules/strverscmp-tests (Files): Likewise.
35525         * modules/symlink-tests (Files): Likewise.
35526         * modules/symlinkat-tests (Files): Likewise.
35527         * modules/trunc-tests (Files): Likewise.
35528         * modules/truncf-tests (Files): Likewise.
35529         * modules/truncl-tests (Files): Likewise.
35530         * modules/uname-tests (Files): Likewise.
35531         * modules/unicase/cased-tests (Files): Likewise.
35532         * modules/unicase/ignorable-tests (Files): Likewise.
35533         * modules/unicase/locale-language-tests (Files): Likewise.
35534         * modules/unicase/tolower-tests (Files): Likewise.
35535         * modules/unicase/totitle-tests (Files): Likewise.
35536         * modules/unicase/toupper-tests (Files): Likewise.
35537         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35538         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35539         * modules/unicase/u8-casefold-tests (Files): Likewise.
35540         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35541         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35542         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35543         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35544         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35545         * modules/unicase/u8-tolower-tests (Files): Likewise.
35546         * modules/unicase/u8-totitle-tests (Files): Likewise.
35547         * modules/unicase/u8-toupper-tests (Files): Likewise.
35548         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35549         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35550         * modules/unicase/u16-casefold-tests (Files): Likewise.
35551         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35552         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35553         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35554         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35555         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35556         * modules/unicase/u16-tolower-tests (Files): Likewise.
35557         * modules/unicase/u16-totitle-tests (Files): Likewise.
35558         * modules/unicase/u16-toupper-tests (Files): Likewise.
35559         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35560         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35561         * modules/unicase/u32-casefold-tests (Files): Likewise.
35562         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35563         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35564         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35565         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35566         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35567         * modules/unicase/u32-tolower-tests (Files): Likewise.
35568         * modules/unicase/u32-totitle-tests (Files): Likewise.
35569         * modules/unicase/u32-toupper-tests (Files): Likewise.
35570         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35571         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35572         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35573         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35574         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35575         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35576         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35577         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35578         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35579         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35580         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35581         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35582         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35583         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35584         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35585         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35586         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35587         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35588         * modules/unictype/block-list-tests (Files): Likewise.
35589         * modules/unictype/block-of-tests (Files): Likewise.
35590         * modules/unictype/block-test-tests (Files): Likewise.
35591         * modules/unictype/category-C-tests (Files): Likewise.
35592         * modules/unictype/category-Cc-tests (Files): Likewise.
35593         * modules/unictype/category-Cf-tests (Files): Likewise.
35594         * modules/unictype/category-Cn-tests (Files): Likewise.
35595         * modules/unictype/category-Co-tests (Files): Likewise.
35596         * modules/unictype/category-Cs-tests (Files): Likewise.
35597         * modules/unictype/category-L-tests (Files): Likewise.
35598         * modules/unictype/category-Ll-tests (Files): Likewise.
35599         * modules/unictype/category-Lm-tests (Files): Likewise.
35600         * modules/unictype/category-Lo-tests (Files): Likewise.
35601         * modules/unictype/category-Lt-tests (Files): Likewise.
35602         * modules/unictype/category-Lu-tests (Files): Likewise.
35603         * modules/unictype/category-M-tests (Files): Likewise.
35604         * modules/unictype/category-Mc-tests (Files): Likewise.
35605         * modules/unictype/category-Me-tests (Files): Likewise.
35606         * modules/unictype/category-Mn-tests (Files): Likewise.
35607         * modules/unictype/category-N-tests (Files): Likewise.
35608         * modules/unictype/category-Nd-tests (Files): Likewise.
35609         * modules/unictype/category-Nl-tests (Files): Likewise.
35610         * modules/unictype/category-No-tests (Files): Likewise.
35611         * modules/unictype/category-P-tests (Files): Likewise.
35612         * modules/unictype/category-Pc-tests (Files): Likewise.
35613         * modules/unictype/category-Pd-tests (Files): Likewise.
35614         * modules/unictype/category-Pe-tests (Files): Likewise.
35615         * modules/unictype/category-Pf-tests (Files): Likewise.
35616         * modules/unictype/category-Pi-tests (Files): Likewise.
35617         * modules/unictype/category-Po-tests (Files): Likewise.
35618         * modules/unictype/category-Ps-tests (Files): Likewise.
35619         * modules/unictype/category-S-tests (Files): Likewise.
35620         * modules/unictype/category-Sc-tests (Files): Likewise.
35621         * modules/unictype/category-Sk-tests (Files): Likewise.
35622         * modules/unictype/category-Sm-tests (Files): Likewise.
35623         * modules/unictype/category-So-tests (Files): Likewise.
35624         * modules/unictype/category-Z-tests (Files): Likewise.
35625         * modules/unictype/category-Zl-tests (Files): Likewise.
35626         * modules/unictype/category-Zp-tests (Files): Likewise.
35627         * modules/unictype/category-Zs-tests (Files): Likewise.
35628         * modules/unictype/category-and-not-tests (Files): Likewise.
35629         * modules/unictype/category-and-tests (Files): Likewise.
35630         * modules/unictype/category-byname-tests (Files): Likewise.
35631         * modules/unictype/category-name-tests (Files): Likewise.
35632         * modules/unictype/category-none-tests (Files): Likewise.
35633         * modules/unictype/category-of-tests (Files): Likewise.
35634         * modules/unictype/category-or-tests (Files): Likewise.
35635         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35636         * modules/unictype/combining-class-tests (Files): Likewise.
35637         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35638         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35639         * modules/unictype/ctype-blank-tests (Files): Likewise.
35640         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35641         * modules/unictype/ctype-digit-tests (Files): Likewise.
35642         * modules/unictype/ctype-graph-tests (Files): Likewise.
35643         * modules/unictype/ctype-lower-tests (Files): Likewise.
35644         * modules/unictype/ctype-print-tests (Files): Likewise.
35645         * modules/unictype/ctype-punct-tests (Files): Likewise.
35646         * modules/unictype/ctype-space-tests (Files): Likewise.
35647         * modules/unictype/ctype-upper-tests (Files): Likewise.
35648         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35649         * modules/unictype/decimal-digit-tests (Files): Likewise.
35650         * modules/unictype/digit-tests (Files): Likewise.
35651         * modules/unictype/mirror-tests (Files): Likewise.
35652         * modules/unictype/numeric-tests (Files): Likewise.
35653         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35654         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35655         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35656         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35657         Likewise.
35658         * modules/unictype/property-bidi-block-separator-tests (Files):
35659         Likewise.
35660         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35661         Likewise.
35662         * modules/unictype/property-bidi-common-separator-tests (Files):
35663         Likewise.
35664         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35665         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35666         Likewise.
35667         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35668         Likewise.
35669         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35670         Likewise.
35671         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35672         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35673         Likewise.
35674         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35675         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35676         Likewise.
35677         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35678         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35679         * modules/unictype/property-bidi-segment-separator-tests (Files):
35680         Likewise.
35681         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35682         * modules/unictype/property-byname-tests (Files): Likewise.
35683         * modules/unictype/property-combining-tests (Files): Likewise.
35684         * modules/unictype/property-composite-tests (Files): Likewise.
35685         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35686         * modules/unictype/property-dash-tests (Files): Likewise.
35687         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35688         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35689         Likewise.
35690         * modules/unictype/property-deprecated-tests (Files): Likewise.
35691         * modules/unictype/property-diacritic-tests (Files): Likewise.
35692         * modules/unictype/property-extender-tests (Files): Likewise.
35693         * modules/unictype/property-format-control-tests (Files): Likewise.
35694         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35695         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35696         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35697         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35698         * modules/unictype/property-hyphen-tests (Files): Likewise.
35699         * modules/unictype/property-id-continue-tests (Files): Likewise.
35700         * modules/unictype/property-id-start-tests (Files): Likewise.
35701         * modules/unictype/property-ideographic-tests (Files): Likewise.
35702         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35703         * modules/unictype/property-ids-trinary-operator-tests (Files):
35704         Likewise.
35705         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35706         * modules/unictype/property-iso-control-tests (Files): Likewise.
35707         * modules/unictype/property-join-control-tests (Files): Likewise.
35708         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35709         * modules/unictype/property-line-separator-tests (Files): Likewise.
35710         * modules/unictype/property-logical-order-exception-tests (Files):
35711         Likewise.
35712         * modules/unictype/property-lowercase-tests (Files): Likewise.
35713         * modules/unictype/property-math-tests (Files): Likewise.
35714         * modules/unictype/property-non-break-tests (Files): Likewise.
35715         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35716         * modules/unictype/property-numeric-tests (Files): Likewise.
35717         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35718         * modules/unictype/property-other-default-ignorable-code-point-tests
35719         (Files): Likewise.
35720         * modules/unictype/property-other-grapheme-extend-tests (Files):
35721         Likewise.
35722         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35723         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35724         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35725         * modules/unictype/property-other-math-tests (Files): Likewise.
35726         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35727         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35728         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35729         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35730         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35731         * modules/unictype/property-private-use-tests (Files): Likewise.
35732         * modules/unictype/property-punctuation-tests (Files): Likewise.
35733         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35734         * modules/unictype/property-radical-tests (Files): Likewise.
35735         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35736         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35737         * modules/unictype/property-space-tests (Files): Likewise.
35738         * modules/unictype/property-terminal-punctuation-tests (Files):
35739         Likewise.
35740         * modules/unictype/property-test-tests (Files): Likewise.
35741         * modules/unictype/property-titlecase-tests (Files): Likewise.
35742         * modules/unictype/property-unassigned-code-value-tests (Files):
35743         Likewise.
35744         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35745         * modules/unictype/property-uppercase-tests (Files): Likewise.
35746         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35747         * modules/unictype/property-white-space-tests (Files): Likewise.
35748         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35749         * modules/unictype/property-xid-start-tests (Files): Likewise.
35750         * modules/unictype/property-zero-width-tests (Files): Likewise.
35751         * modules/unictype/scripts-tests (Files): Likewise.
35752         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35753         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35754         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35755         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35756         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35757         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35758         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35759         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35760         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35761         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35762         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35763         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35764         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35765         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35766         * modules/uninorm/composition-tests (Files): Likewise.
35767         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35768         * modules/uninorm/decomposition-tests (Files): Likewise.
35769         * modules/uninorm/filter-tests (Files): Likewise.
35770         * modules/uninorm/nfc-tests (Files): Likewise.
35771         * modules/uninorm/nfd-tests (Files): Likewise.
35772         * modules/uninorm/nfkc-tests (Files): Likewise.
35773         * modules/uninorm/nfkd-tests (Files): Likewise.
35774         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35775         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35776         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35777         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35778         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35779         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35780         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35781         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35782         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35783         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35784         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35785         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35786         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35787         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35788         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35789         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35790         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35791         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35792         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35793         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35794         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35795         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35796         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35797         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35798         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35799         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35800         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35801         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35802         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35803         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35804         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35805         * modules/uniwidth/u8-width-tests (Files): Likewise.
35806         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35807         * modules/uniwidth/u16-width-tests (Files): Likewise.
35808         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35809         * modules/uniwidth/u32-width-tests (Files): Likewise.
35810         * modules/uniwidth/width-tests (Files): Likewise.
35811         * modules/unlink-tests (Files): Likewise.
35812         * modules/unsetenv-tests (Files): Likewise.
35813         * modules/usleep-tests (Files): Likewise.
35814         * modules/utimens-tests (Files): Likewise.
35815         * modules/utimensat-tests (Files): Likewise.
35816         * modules/vasnprintf-posix-tests (Files): Likewise.
35817         * modules/vasnprintf-tests (Files): Likewise.
35818         * modules/vasprintf-posix-tests (Files): Likewise.
35819         * modules/vasprintf-tests (Files): Likewise.
35820         * modules/vdprintf-posix-tests (Files): Likewise.
35821         * modules/vfprintf-posix-tests (Files): Likewise.
35822         * modules/vprintf-posix-tests (Files): Likewise.
35823         * modules/vsnprintf-posix-tests (Files): Likewise.
35824         * modules/vsnprintf-tests (Files): Likewise.
35825         * modules/vsprintf-posix-tests (Files): Likewise.
35826         * modules/wcrtomb-tests (Files): Likewise.
35827         * modules/wcsnrtombs-tests (Files): Likewise.
35828         * modules/wcsrtombs-tests (Files): Likewise.
35829         * modules/wctype-tests (Files): Likewise.
35830         * modules/wcwidth-tests (Files): Likewise.
35831         * modules/xmemdup0-tests (Files): Likewise.
35832         * modules/xprintf-posix-tests (Files): Likewise.
35833         * modules/xvasprintf-tests (Files): Likewise.
35834
35835 2009-12-24  Eric Blake  <ebb9@byu.net>
35836
35837         test-nanosleep: fix typo
35838         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35839         patch.
35840         Reported by Bruno Haible.
35841
35842 2009-12-24  Bruno Haible  <bruno@clisp.org>
35843
35844         Reduce namespace pollution on glibc systems.
35845         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35846         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35847         systems.
35848         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35849         <getopt.h> on glibc systems.
35850         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35851         systems.
35852         * lib/fcntl.c: Include <unistd.h> here instead.
35853
35854 2009-12-24  Bruno Haible  <bruno@clisp.org>
35855
35856         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35857
35858 2009-12-24  Eric Blake  <ebb9@byu.net>
35859
35860         tests: add signature checks
35861         * tests/signature.h (SIGNATURE_CHECK): New file.
35862         * modules/atexit-tests (Files): Use it.
35863         * modules/btowc-tests (Files): Likewise.
35864         * modules/canonicalize-lgpl-tests (Files): Likewise.
35865         * modules/ceilf-tests (Files): Likewise.
35866         * modules/ceill-tests (Files): Likewise.
35867         * modules/chown-tests (Files): Likewise.
35868         * modules/dprintf-posix-tests (Files): Likewise.
35869         * modules/dup2-tests (Files): Likewise.
35870         * modules/dup3-tests (Files): Likewise.
35871         * modules/duplocale-tests (Files): Likewise.
35872         * modules/fchdir-tests (Files): Likewise.
35873         * modules/fcntl-tests (Files): Likewise.
35874         * modules/fdopendir-tests (Files): Likewise.
35875         * modules/fflush-tests (Files): Likewise.
35876         * modules/flock-tests (Files): Likewise.
35877         * modules/floorf-tests (Files): Likewise.
35878         * modules/floorl-tests (Files): Likewise.
35879         * modules/fnmatch-tests (Files): Likewise.
35880         * modules/fopen-tests (Files): Likewise.
35881         * modules/fprintf-posix-tests (Files): Likewise.
35882         * modules/freopen-tests (Files): Likewise.
35883         * modules/frexp-nolibm-tests (Files): Likewise.
35884         * modules/frexp-tests (Files): Likewise.
35885         * modules/frexpl-nolibm-tests (Files): Likewise.
35886         * modules/frexpl-tests (Files): Likewise.
35887         * modules/fseek-tests (Files): Likewise.
35888         * modules/fseeko-tests (Files): Likewise.
35889         * modules/fsync-tests (Files): Likewise.
35890         * modules/ftell-tests (Files): Likewise.
35891         * modules/ftello-tests (Files): Likewise.
35892         * modules/futimens-tests (Files): Likewise.
35893         * modules/getaddrinfo-tests (Files): Likewise.
35894         * modules/getcwd-tests (Files): Likewise.
35895         * modules/getdelim-tests (Files): Likewise.
35896         * modules/getdtablesize-tests (Files): Likewise.
35897         * modules/getgroups-tests (Files): Likewise.
35898         * modules/gethostname-tests (Files): Likewise.
35899         * modules/getline-tests (Files): Likewise.
35900         * modules/getopt-posix-tests (Files): Likewise.
35901         * modules/gettimeofday-tests (Files): Likewise.
35902         * modules/glob-tests (Files): Likewise.
35903         * modules/iconv-tests (Files): Likewise.
35904         * modules/inet_ntop-tests (Files): Likewise.
35905         * modules/inet_pton-tests (Files): Likewise.
35906         * modules/isblank-tests (Files): Likewise.
35907         * modules/lchown-tests (Files): Likewise.
35908         * modules/ldexpl-tests (Files): Likewise.
35909         * modules/link-tests (Files): Likewise.
35910         * modules/linkat-tests (Files): Likewise.
35911         * modules/lseek-tests (Files): Likewise.
35912         * modules/lstat-tests (Files): Likewise.
35913         * modules/mbrtowc-tests (Files): Likewise.
35914         * modules/mbsinit-tests (Files): Likewise.
35915         * modules/mbsnrtowcs-tests (Files): Likewise.
35916         * modules/mbsrtowcs-tests (Files): Likewise.
35917         * modules/memchr-tests (Files): Likewise.
35918         * modules/memcmp-tests (Files): Likewise.
35919         * modules/memmem-tests (Files): Likewise.
35920         * modules/memrchr-tests (Files): Likewise.
35921         * modules/mkdir-tests (Files): Likewise.
35922         * modules/mkfifo-tests (Files): Likewise.
35923         * modules/mkfifoat-tests (Files): Likewise.
35924         * modules/mknod-tests (Files): Likewise.
35925         * modules/nanosleep-tests (Files): Likewise.
35926         * modules/nl_langinfo-tests (Files): Likewise.
35927         * modules/obstack-printf-tests (Files): Likewise.
35928         * modules/open-tests (Files): Likewise.
35929         * modules/openat-tests (Files): Likewise.
35930         * modules/perror-tests (Files): Likewise.
35931         * modules/pipe2-tests (Files): Likewise.
35932         * modules/poll-tests (Files): Likewise.
35933         * modules/popen-tests (Files): Likewise.
35934         * modules/posix_spawn-tests (Files): Likewise.
35935         * modules/posix_spawnp-tests (Files): Likewise.
35936         * modules/pread-tests (Files): Likewise.
35937         * modules/printf-posix-tests (Files): Likewise.
35938         * modules/pty-tests (Files): Likewise.
35939         * modules/random_r-tests (Files): Likewise.
35940         * modules/rawmemchr-tests (Files): Likewise.
35941         * modules/readlink-tests (Files): Likewise.
35942         * modules/remove-tests (Files): Likewise.
35943         * modules/rename-tests (Files): Likewise.
35944         * modules/renameat-tests (Files): Likewise.
35945         * modules/rmdir-tests (Files): Likewise.
35946         * modules/round-tests (Files): Likewise.
35947         * modules/roundf-tests (Files): Likewise.
35948         * modules/roundl-tests (Files): Likewise.
35949         * modules/select-tests (Files): Likewise.
35950         * modules/setenv-tests (Files): Likewise.
35951         * modules/sigaction-tests (Files): Likewise.
35952         * modules/sleep-tests (Files): Likewise.
35953         * modules/snprintf-posix-tests (Files): Likewise.
35954         * modules/snprintf-tests (Files): Likewise.
35955         * modules/sprintf-posix-tests (Files): Likewise.
35956         * modules/stat-tests (Files): Likewise.
35957         * modules/strcasestr-tests (Files): Likewise.
35958         * modules/strchrnul-tests (Files): Likewise.
35959         * modules/strerror-tests (Files): Likewise.
35960         * modules/strsignal-tests (Files): Likewise.
35961         * modules/strstr-tests (Files): Likewise.
35962         * modules/strtod-tests (Files): Likewise.
35963         * modules/strverscmp-tests (Files): Likewise.
35964         * modules/symlink-tests (Files): Likewise.
35965         * modules/symlinkat-tests (Files): Likewise.
35966         * modules/times-tests (Files): Likewise.
35967         * modules/trunc-tests (Files): Likewise.
35968         * modules/truncf-tests (Files): Likewise.
35969         * modules/truncl-tests (Files): Likewise.
35970         * modules/tsearch-tests (Files): Likewise.
35971         * modules/uname-tests (Files): Likewise.
35972         * modules/unlink-tests (Files): Likewise.
35973         * modules/unsetenv-tests (Files): Likewise.
35974         * modules/usleep-tests (Files): Likewise.
35975         * modules/utimensat-tests (Files): Likewise.
35976         * modules/vasprintf-tests (Files): Likewise.
35977         * modules/vdprintf-posix-tests (Files): Likewise.
35978         * modules/vfprintf-posix-tests (Files): Likewise.
35979         * modules/vprintf-posix-tests (Files): Likewise.
35980         * modules/vsnprintf-posix-tests (Files): Likewise.
35981         * modules/vsnprintf-tests (Files): Likewise.
35982         * modules/vsprintf-posix-tests (Files): Likewise.
35983         * modules/wcrtomb-tests (Files): Likewise.
35984         * modules/wcsnrtombs-tests (Files): Likewise.
35985         * modules/wcsrtombs-tests (Files): Likewise.
35986         * modules/wcwidth-tests (Files): Likewise.
35987         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35988         * tests/test-isinf.c (isinf): Likewise.
35989         * tests/test-isnan.c (isnan): Likewise.
35990         * tests/test-signbit.c (signbit): Likewise.
35991         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35992         declaration, either as macro or with correct signature.
35993         (select): Ensure function under test is declared with correct
35994         signature in correct header.
35995         * tests/test-atexit.c (atexit): Likewise.
35996         * tests/test-btowc.c (btowc): Likewise.
35997         * tests/test-canonicalize-lgpl.c (realpath)
35998         (canonicalize_file_name): Likewise.
35999         * tests/test-ceilf1.c (ceilf): Likewise.
36000         * tests/test-ceill.c (ceill): Likewise.
36001         * tests/test-chown.c (chown): Likewise.
36002         * tests/test-dprintf-posix.c (dprintf): Likewise.
36003         * tests/test-dup2.c (dup2): Likewise.
36004         * tests/test-dup3.c (dup3): Likewise.
36005         * tests/test-duplocale.c (duplocale): Likewise.
36006         * tests/test-fchdir.c (fchdir): Likewise.
36007         * tests/test-fchownat.c (fchownat): Likewise.
36008         * tests/test-fcntl.c (fcntl): Likewise.
36009         * tests/test-fdopendir.c (fdopendir): Likewise.
36010         * tests/test-fflush.c (fflush): Likewise.
36011         * tests/test-flock.c (flock): Likewise.
36012         * tests/test-floorf1.c (floorf): Likewise.
36013         * tests/test-floorl.c (floorl): Likewise.
36014         * tests/test-fnmatch.c (fnmatch): Likewise.
36015         * tests/test-fopen.c (fopen): Likewise.
36016         * tests/test-fprintf-posix.c (fprintf): Likewise.
36017         * tests/test-freopen.c (freopen): Likewise.
36018         * tests/test-frexp.c (frexp): Likewise.
36019         * tests/test-frexpl.c (frexpl): Likewise.
36020         * tests/test-fseek.c (fseek): Likewise.
36021         * tests/test-fseeko.c (fseeko): Likewise.
36022         * tests/test-fstatat.c (fstatat): Likewise.
36023         * tests/test-fsync.c (fsync): Likewise.
36024         * tests/test-ftell.c (ftell): Likewise.
36025         * tests/test-ftello.c (ftello): Likewise.
36026         * tests/test-futimens.c (futimens): Likewise.
36027         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36028         (gai_strerror): Likewise.
36029         * tests/test-getcwd.c (getcwd): Likewise.
36030         * tests/test-getdelim.c (getdelim): Likewise.
36031         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36032         * tests/test-getgroups.c (getgroups): Likewise.
36033         * tests/test-gethostname.c (gethostname): Likewise.
36034         * tests/test-getline.c (getline): Likewise.
36035         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36036         Likewise.
36037         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36038         * tests/test-glob.c (glob, globfree): Likewise.
36039         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36040         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36041         * tests/test-inet_pton.c (inet_pton): Likewise.
36042         * tests/test-isblank.c (isblank): Likewise.
36043         * tests/test-lchown.c (lchown): Likewise.
36044         * tests/test-ldexpl.c (ldexpl): Likewise.
36045         * tests/test-link.c (link): Likewise.
36046         * tests/test-linkat.c (linkat): Likewise.
36047         * tests/test-lseek.c (lseek): Likewise.
36048         * tests/test-lstat.c (lstat): Likewise.
36049         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36050         * tests/test-mbsinit.c (mbsinit): Likewise.
36051         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36052         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36053         * tests/test-memchr.c (memchr): Likewise.
36054         * tests/test-memcmp.c (memcmp): Likewise.
36055         * tests/test-memmem.c (memmem): Likewise.
36056         * tests/test-memrchr.c (memrchr): Likewise.
36057         * tests/test-mkdir.c (mkdir): Likewise.
36058         * tests/test-mkdirat.c (mkdirat): Likewise.
36059         * tests/test-mkfifo.c (mkfifo): Likewise.
36060         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36061         * tests/test-mknod.c (mknod): Likewise.
36062         * tests/test-nanosleep.c (nanosleep): Likewise.
36063         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36064         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36065         Likewise.
36066         * tests/test-open.c (open): Likewise.
36067         * tests/test-openat.c (openat): Likewise.
36068         * tests/test-perror.c (perror): Likewise.
36069         * tests/test-pipe2.c (pipe2): Likewise.
36070         * tests/test-poll.c (poll): Likewise.
36071         * tests/test-popen.c (popen, pclose): Likewise.
36072         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36073         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36074         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36075         (posix_spawn_file_actions_destroy)
36076         (posix_spawn_file_actions_addclose)
36077         (posix_spawn_file_actions_addopen)
36078         (posix_spawn_file_actions_adddup2): Likewise.
36079         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36080         * tests/test-pread.c (pread): Likewise.
36081         * tests/test-printf-posix.c (printf): Likewise.
36082         * tests/test-pty.c (openpty, forkpty): Likewise.
36083         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36084         (random_r): Likewise.
36085         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36086         * tests/test-readlink.c (readlink): Likewise.
36087         * tests/test-remove.c (remove): Likewise.
36088         * tests/test-rename.c (rename): Likewise.
36089         * tests/test-renameat.c (renameat): Likewise.
36090         * tests/test-rmdir.c (rmdir): Likewise.
36091         * tests/test-round1.c (round): Likewise.
36092         * tests/test-roundf1.c (roundf): Likewise.
36093         * tests/test-roundl.c (roundl): Likewise.
36094         * tests/test-setenv.c (setenv): Likewise.
36095         * tests/test-sigaction.c (sigaction): Likewise.
36096         * tests/test-sleep.c (sleep): Likewise.
36097         * tests/test-snprintf.c (snprintf): Likewise.
36098         * tests/test-sprintf-posix.c (sprintf): Likewise.
36099         * tests/test-stat.c (stat): Likewise.
36100         * tests/test-stpncpy.c (stpncpy): Likewise.
36101         * tests/test-strcasestr.c (strcasestr): Likewise.
36102         * tests/test-strchrnul.c (strchrnul): Likewise.
36103         * tests/test-strerror.c (strerror): Likewise.
36104         * tests/test-strsignal.c (strsignal): Likewise.
36105         * tests/test-strstr.c (strstr): Likewise.
36106         * tests/test-strtod.c (strtod): Likewise.
36107         * tests/test-strverscmp.c (strverscmp): Likewise.
36108         * tests/test-symlink.c (symlink): Likewise.
36109         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36110         * tests/test-times.c (times): Likewise.
36111         * tests/test-trunc1.c (trunc): Likewise.
36112         * tests/test-truncf1.c (truncf): Likewise.
36113         * tests/test-truncl.c (truncl): Likewise.
36114         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36115         Likewise.
36116         * tests/test-uname.c (uname): Likewise.
36117         * tests/test-unlink.c (unlink): Likewise.
36118         * tests/test-unlinkat.c (unlinkat): Likewise.
36119         * tests/test-unsetenv.c (unsetenv): Likewise.
36120         * tests/test-usleep.c (usleep): Likewise.
36121         * tests/test-utimensat.c (utimensat): Likewise.
36122         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36123         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36124         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36125         * tests/test-vprintf-posix.c (vprintf): Likewise.
36126         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36127         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36128         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36129         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36130         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36131         * tests/test-wcwidth.c (wcwidth): Likewise.
36132
36133         build: pull in conditional headers during GNULIB_POSIXCHECK
36134         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36135         definitions from any conditionally-included headers.
36136         * lib/stdlib.in.h (includes): Likewise.
36137         * lib/unistd.in.h (includes): Likewise.
36138
36139 2009-12-24  Bruno Haible  <bruno@clisp.org>
36140
36141         * tests/test-argv-iter.c: Include header file being tested immediately
36142         after config.h.
36143         * tests/test-base64.c: Likewise.
36144         * tests/test-flock.c: Likewise.
36145         * tests/test-fsync.c: Likewise.
36146         * tests/test-getdate.c: Likewise.
36147         * tests/test-getndelim2.c: Likewise.
36148         * tests/test-isfinite.c: Likewise.
36149         * tests/test-isinf.c: Likewise.
36150         * tests/test-strerror.c: Likewise.
36151         * tests/test-strsignal.c: Likewise.
36152
36153 2009-12-23  Eric Blake  <ebb9@byu.net>
36154
36155         unistd: work around cygwin bug
36156         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36157         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36158         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36159
36160 2009-12-23  Bruno Haible  <bruno@clisp.org>
36161
36162         localename: More tests.
36163         * tests/test-localename.c (SIZEOF): New macro.
36164         (categories): New variable.
36165         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36166         test_locale_name_default): Add test w.r.t. thread locale.
36167         (test_locale_name_thread): New function.
36168         (main): Invoke it.
36169
36170         localename: Make aware of thread locale.
36171         * lib/localename.h (gl_locale_name_thread): New declaration.
36172         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36173         behaviour with respect to thread locale.
36174         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36175         <langinfo.h>, glthread/lock.h.
36176         (SIZE_BITS): New macro.
36177         (string_hash): New function.
36178         (struct hash_node): New type.
36179         (HASH_TABLE_SIZE): New macro.
36180         (struniq_hash_table, struniq_lock): New variables.
36181         (struniq): New function.
36182         (gl_locale_name_thread): New function.
36183         (gl_locale_name): Invoke it.
36184         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36185         * modules/localename (Depends-on): Add lock.
36186         Reported by Mike Gran <spk121@yahoo.com>.
36187
36188 2009-12-23  Eric Blake  <ebb9@byu.net>
36189
36190         va-args: new module
36191         * modules/va-args: New file.
36192         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36193         * MODULES.html.sh (Core language properties): Mention it.
36194
36195         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36196         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36197         named alias for __attribute__((__unused__)).
36198         * lib/chown.c: Update client.
36199         * lib/fchmodat.c: Likewise.
36200         * lib/fts.c: Likewise.
36201         * lib/getdate.y: Likewise.
36202         * lib/getgroups.c: Likewise.
36203         * lib/getopt.c: Likewise.
36204         * lib/getugroups.c: Likewise.
36205         * lib/mkdir.c: Likewise.
36206         * lib/mkfifo.c: Likewise.
36207         * lib/mkfifoat.c: Likewise.
36208         * lib/mknod.c: Likewise.
36209         * lib/mknodat.c: Likewise.
36210         * lib/readlink.c: Likewise.
36211         * lib/se-context.in.h: Likewise.
36212         * lib/se-selinux.in.h: Likewise.
36213         * lib/sockets.c: Likewise.
36214         * lib/symlink.c: Likewise.
36215         * lib/symlinkat.c: Likewise.
36216         * lib/unicodeio.c: Likewise.
36217         * lib/unistr.h: Likewise.
36218         * tests/test-areadlink.c: Likewise.
36219         * tests/test-areadlinkat.c: Likewise.
36220         * tests/test-filenamecat.c: Likewise.
36221         * tests/test-fseeko.c: Likewise.
36222         * tests/test-ftello.c: Likewise.
36223         * tests/test-getdate.c: Likewise.
36224         * tests/test-getgroups.c: Likewise.
36225         * tests/test-gethostname.c: Likewise.
36226         * tests/test-quotearg.c: Likewise.
36227         * tests/test-version-etc.c: Likewise.
36228         * tests/test-xalloc-die.c: Likewise.
36229         * tests/test-xfprintf-posix.c: Likewise.
36230         * tests/test-xprintf-posix.c: Likewise.
36231         * tests/test-xvasprintf.c: Likewise.
36232
36233         tests: avoid compiler warnings
36234         * tests/test-fcntl.c (main): Delete unused parameters.
36235         * tests/test-freopen-safer.c (main): Likewise.
36236         * tests/test-xalloc-die.c (main): Mark unused parameters.
36237         * tests/test-fseeko.c (main): Likewise.
36238         * tests/test-ftello.c (main): Likewise.
36239         * tests/test-nanosleep.c (main): Avoid declaration warning.
36240         * tests/test-sleep.c (main): Likewise.
36241         * tests/test-unsetenv.c (main): Silence warning about string
36242         literal.
36243         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36244
36245 2009-12-23  Bruno Haible  <bruno@clisp.org>
36246
36247         * tests/test-localename.c (test_locale_name): New function, extracted
36248         from main. Also test mixed situations.
36249         (test_locale_name_posix, test_locale_name_environ,
36250         test_locale_name_default): New functions.
36251         (main): Invoke them all.
36252         * modules/localename-tests (configure.ac): Test for newlocale.
36253
36254 2009-12-23  Bruno Haible  <bruno@clisp.org>
36255
36256         unistd: Ensure getcwd gets declared before being overridden.
36257         * lib/unistd.in.h: Conditionally include <io.h>.
36258
36259 2009-12-22  Bruno Haible  <bruno@clisp.org>
36260
36261         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36262         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36263         (gl_WCHAR_H): Invoke it.
36264         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36265         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36266         Reported by Karl Berry <karl@freefriends.org>.
36267
36268 2009-12-22  Eric Blake  <ebb9@byu.net>
36269
36270         math, unistd: avoid redundant includes
36271         * lib/math.in.h (isnan): No need to re-include <math.h>.
36272         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36273
36274         getsubopt: work around cygwin bug
36275         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36276         avoid conflicting with system getsubopt.
36277         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36278         bug.
36279
36280         getopt: synchronize from glibc
36281         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36282         parameter order.  Adjust all callers.
36283         (_getopt_internal_r, main): Adjust quoting in error messages.
36284         Drop considerations for outdated POSIX 1003.2 error message.
36285         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36286         callers.
36287         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36288
36289         test-getopt: test stderr behavior
36290         * modules/getopt-posix-tests (Depends-on): Add dup2.
36291         * tests/test-getopt.c (ASSERT): Avoid stderr.
36292         (main): Move stderr to a temporary file.
36293         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36294         Instead, add parameter to inform caller if output occurred.
36295         (test_getopt): Adjust all existing tests to expect silence, and
36296         add new tests of leading ":".
36297         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36298         glibc shortcomings with leading "-:" or "+:" in optstring.
36299         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36300         Likewise.
36301         * doc/posix-functions/getopt.texi (getopt): Likewise.
36302
36303         test-getopt: enhance test
36304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36305         supports optind=0.
36306         * tests/test-getopt.c (OPTIND_MIN): Move...
36307         * tests/test-getopt.h (OPTIND_MIN): ...here.
36308         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36309         Require that optind=0 works, since modern BSD supports it in
36310         addition to optreset, and since coreutils expects it.
36311         (test_getopt_long_only): New test.
36312         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36313         glibc shortcomings with 'W;', and enforcement of optind=0.
36314         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36315         Likewise.
36316
36317 2009-12-21  Bruno Haible  <bruno@clisp.org>
36318
36319         localename: Improvements for MacOS X and Cygwin.
36320         * lib/localename.h (gl_locale_name_environ): New declaration.
36321         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36322         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36323         (gl_locale_name_posix): Invoke it.
36324         (gl_locale_name_default): Add comments. Use Windows native API also on
36325         Cygwin.
36326
36327 2009-12-21  Bruno Haible  <bruno@clisp.org>
36328
36329         Update list of Win32 locale ids.
36330         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36331         (LANG_SAMI): Renamed from LANG_SAAMI.
36332         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36333         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36334         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36335         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36336         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36337         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36338         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36339         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36340         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36341         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36342         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36343         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36344         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36345         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36346         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36347         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36348         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36349         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36350         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36351         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36352         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36353         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36354         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36355         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36356         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36357         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36358         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36359         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36360         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36361         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36362         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36363         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36364         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36365         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36366         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36367         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36368         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36369         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36370         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36371         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36372         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36373         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36374         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36375         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36376         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36377         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36378         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36379         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36380         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36381         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36382         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36383         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36384         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36385         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36386         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36387         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36388         Add more languages and countries for Sami, Sorbian. Add more countries
36389         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36390         for Pashto. Change country for Syriac, Tswana.
36391
36392 2009-12-21  Eric Blake  <ebb9@byu.net>
36393
36394         test-utimens: avoid spurious failure
36395         * tests/test-chown.h (nap): Factor...
36396         * tests/nap.h: ...into new file.
36397         * tests/test-lchown.h (nap): Avoid duplication.
36398         * tests/test-utimens-common.h (nap): Use shared implementation,
36399         necessary on file systems with 1-second resolution.
36400         * modules/chown-tests (Files): Include new file.
36401         * modules/fdutimensat-tests (Files): Likewise.
36402         * modules/futimens-tests (Files): Likewise.
36403         * modules/lchown-tests (Files): Likewise.
36404         * modules/openat-tests (Files): Likewise.
36405         * modules/utimens-tests (Files): Likewise.
36406         * modules/utimensat-tests (Files): Likewise.
36407
36408 2009-12-19  Eric Blake  <ebb9@byu.net>
36409
36410         futimens, utimensat: work around Linux bug
36411         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36412         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36413         * lib/utimensat.c (rpl_utimensat): Work around it.
36414         * lib/futimens.c (rpl_futimens): Adjust comment.
36415
36416         utimens: work around Linux ctime bug
36417         * lib/utimens.c (detect_ctime_bug): New helper function.
36418         (update_timespec): Differentiate between workaround needed for
36419         this bug vs. what is needed for systems that lack utimensat.
36420         (fdutimens, lutimens): Work around bug.
36421
36422         utimens: check for ctime update
36423         * tests/test-utimens-common.h (check_ctime): Define.
36424         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36425         * tests/test-futimens.h (test_futimens): Likewise.
36426         * tests/test-lutimens.h (test_lutimens): Likewise.
36427         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36428         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36429
36430 2009-12-19  Bruno Haible  <bruno@clisp.org>
36431
36432         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36433         * tests/test-dprintf-posix2.sh: New file.
36434         * tests/test-dprintf-posix2.c: New file.
36435         * modules/dprintf-posix-tests (Files): Add them.
36436         (configure.ac): Check for getrlimit and setrlimit.
36437         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36438
36439 2009-12-19  Bruno Haible  <bruno@clisp.org>
36440
36441         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36442         * tests/test-fprintf-posix3.sh: New file.
36443         * tests/test-fprintf-posix3.c: New file.
36444         * modules/fprintf-posix-tests (Files): Add them.
36445         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36446
36447 2009-12-19  Eric Blake  <ebb9@byu.net>
36448
36449         dirfd: fix prototype
36450         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36451         * lib/dirfd.c (dirfd): Likewise.
36452
36453         canonicalize: reduce memory usage
36454         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36455         allocation to size.
36456         Reported by Solar Designer <solar@openwall.com>.
36457
36458 2009-12-19  Bruno Haible  <bruno@clisp.org>
36459
36460         New module attribute 'Applicability'.
36461         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36462         * gnulib-tool: New option --extract-applicability.
36463         (func_usage): Document it.
36464         (sed_extract_prog): Recognize it.
36465         (func_get_applicability): New function.
36466         (func_import): Generalize handling of 'link-warning' module.
36467         * modules/link-warning (Applicability): New section.
36468         * modules/arg-nonnull (Applicability): New section.
36469         Repoted by Simon Josefsson <simon@josefsson.org>.
36470
36471 2009-12-19  Bruno Haible  <bruno@clisp.org>
36472
36473         fflush: tweak
36474         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36475         * lib/fseeko.c (rpl_fseeko): Likewise.
36476
36477 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36478
36479         * lib/gl_list.h: Fix typo in comment.
36480
36481 2009-12-16  Eric Blake  <ebb9@byu.net>
36482
36483         fcntl: use to simplify other modules
36484         * modules/cloexec (Depends-on): Add fcntl.
36485         * modules/fchdir (Depends-on): Likewise.
36486         * modules/fd-safer-flag (Depends-on): Likewise.
36487         * modules/unistd-safer (Depends-on): Likewise.
36488         * modules/dup3 (configure.ac): Set module indicator.
36489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36490         missing.
36491         * lib/fchdir.c (_gl_register_dup): Fix comment.
36492         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36493         * lib/dup-safer.c (dup_safer): Likewise.
36494         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36495         * lib/dup3.c (dup3): Likewise.
36496         * tests/test-fchdir.c (main): Enhance test.
36497         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36498
36499         fcntl: port portions of fcntl to mingw
36500         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36501         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36502         replacement for mingw.
36503         * modules/fcntl (Description): Update.
36504         (Depends-on): Add dup2.
36505         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36506         * modules/fcntl-h (Makefile.am): Substitute it.
36507         * lib/fcntl.in.h (fcntl): Update declaration.
36508         (F_DUPFD, F_GETFD): New macros, when needed.
36509         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36510         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36511         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36512         we now guarantee.
36513
36514         fcntl: work around cygwin bug in F_DUPFD
36515         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36516         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36517         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36518         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36519         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36520
36521         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36522         * modules/fcntl (Files): List new files.
36523         (configure.ac): Run a test.
36524         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36525         * lib/fcntl.c (rpl_fcntl): Likewise.
36526         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36527         (gl_FCNTL_H): Always replace fcntl.h.
36528         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36529         * lib/fcntl.in.h (fcntl): Declare replacement.
36530         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36531         needed, plus a witness.
36532         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36533         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36534         * tests/test-fcntl.c: New file.
36535         * modules/fcntl-tests: Likewise.
36536
36537         binary-io: avoid potential compilation warning
36538         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36539         directives.
36540
36541         fflush: avoid compilation error on NetBSD
36542         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36543         between off_t and fpos_t, since the latter is sometimes a struct.
36544         * lib/fseeko.c (rpl_fseeko): Likewise.
36545         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36546
36547 2009-12-15  Eric Blake  <ebb9@byu.net>
36548
36549         fcntl-h, stdio, sys_ioctl: fix declarations
36550         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36551         function must not take arguments.
36552         * lib/sys_ioctl.in.h (ioctl): Likewise.
36553         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36554         (open): Add a link warning.
36555
36556 2009-12-15  Jim Meyering  <meyering@redhat.com>
36557
36558         areadlink, areadlink-with-size: relax license to LGPLv2+
36559         * modules/areadlink (License): Relax to LGPLv2+.
36560         * modules/areadlink-with-size (License): Likewise.
36561
36562 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36563             Bruno Haible  <bruno@clisp.org>
36564
36565         *printf: Fix memory leak.
36566         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36567         * lib/vfprintf.c (vfprintf): Likewise.
36568         * lib/dprintf.c (dprintf): Likewise.
36569         * lib/vdprintf.c (vdprintf): Likewise.
36570
36571 2009-12-14  Eric Blake  <ebb9@byu.net>
36572
36573         accept4: adjust module dependencies
36574         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36575
36576         utimens: one more try at avoiding compiler warning
36577         * lib/utimens.c (lutimens): Lower scope of result.
36578
36579 2009-12-13  Bruno Haible  <bruno@clisp.org>
36580
36581         Move the malloc checking from module 'list' to new module 'xlist'.
36582         * modules/xlist: New file.
36583         * lib/gl_xlist.h: New file.
36584         * lib/gl_xlist.c: New file.
36585         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36586         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36587         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36588         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36589         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36590         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36591         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36592         gl_sortedlist_nx_add): New declarations.
36593         (struct gl_list_implementation): Rename and change methods accordingly.
36594         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36595         (gl_list_nx_create): Renamed from gl_list_create.
36596         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36597         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36598         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36599         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36600         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36601         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36602         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36603         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36604         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36605         gl_list_create_empty.
36606         (gl_list_nx_create): Renamed from gl_list_create.
36607         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36608         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36609         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36610         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36611         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36612         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36613         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36614         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36615         * lib/gl_array_list.c: Don't include xalloc.h.
36616         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36617         NULL upon out-of-memory.
36618         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36619         out-of-memory.
36620         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36621         Change return type to 'int'.
36622         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36623         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36624         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36625         upon out-of-memory.
36626         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36627         upon out-of-memory.
36628         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36629         upon out-of-memory.
36630         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36631         upon out-of-memory.
36632         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36633         out-of-memory.
36634         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36635         Update.
36636         (gl_array_list_implementation): Update.
36637         * lib/gl_carray_list.c: Don't include xalloc.h.
36638         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36639         Return NULL upon out-of-memory.
36640         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36641         out-of-memory.
36642         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36643         Change return type to 'int'.
36644         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36645         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36646         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36647         upon out-of-memory.
36648         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36649         upon out-of-memory.
36650         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36651         out-of-memory.
36652         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36653         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36654         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36655         Update.
36656         (gl_carray_list_implementation): Update.
36657         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36658         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36659         gl_linked_create_empty. Return NULL upon out-of-memory.
36660         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36661         out-of-memory.
36662         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36663         Change return type to 'int'. Return -1 upon out-of-memory.
36664         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36665         out-of-memory.
36666         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36667         upon out-of-memory.
36668         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36669         upon out-of-memory.
36670         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36671         NULL upon out-of-memory.
36672         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36673         upon out-of-memory.
36674         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36675         out-of-memory.
36676         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36677         Update.
36678         * lib/gl_linked_list.c: Don't include xalloc.h.
36679         (gl_linked_list_implementation): Update.
36680         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36681         (add_to_bucket): Change return type to 'int'.
36682         (gl_linkedhash_list_implementation): Update.
36683         * lib/gl_anytree_list1.h (free_subtree): New function.
36684         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36685         gl_tree_create_empty. Return NULL upon out-of-memory.
36686         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36687         Change return type to 'int'. Return -1 upon out-of-memory.
36688         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36689         out-of-memory.
36690         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36691         (gl_tree_remove_node): New function, moved here from
36692         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36693         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36694         Update.
36695         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36696         malloc, not xmalloc. Return NULL upon out-of-memory.
36697         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36698         out-of-memory.
36699         (gl_tree_remove_node_from_tree): New function, extracted from
36700         gl_tree_remove_node.
36701         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36702         upon out-of-memory.
36703         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36704         out-of-memory.
36705         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36706         upon out-of-memory.
36707         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36708         upon out-of-memory.
36709         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36710         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36711         not xmalloc. Return NULL upon out-of-memory.
36712         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36713         out-of-memory.
36714         (gl_tree_remove_node_from_tree): New function, extracted from
36715         gl_tree_remove_node.
36716         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36717         upon out-of-memory.
36718         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36719         out-of-memory.
36720         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36721         upon out-of-memory.
36722         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36723         upon out-of-memory.
36724         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36725         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36726         gl_anytree_list1.h before gl_anyavltree_list2.h.
36727         (gl_avltree_list_implementation): Update.
36728         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36729         gl_anytree_list1.h before gl_anyavltree_list2.h.
36730         (gl_rbtree_list_implementation): Update.
36731         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36732         Change return type to 'int'. Return -1 upon out-of-memory. Use
36733         __builtin_expect.
36734         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36735         (gl_avltreehash_list_implementation): Update.
36736         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36737         (gl_rbtreehash_list_implementation): Update.
36738         * modules/array-list (Depends-on): Remove xalloc.
36739         * modules/carray-list (Depends-on): Likewise.
36740         * modules/linked-list (Depends-on): Likewise.
36741         * modules/linkedhash-list (Depends-on): Likewise.
36742         * modules/avltree-list (Depends-on): Likewise.
36743         * modules/rbtree-list (Depends-on): Likewise.
36744         * modules/avltreehash-list (Depends-on): Likewise.
36745         * modules/rbtreehash-list (Depends-on): Likewise.
36746
36747         * modules/xsublist: New file.
36748         * lib/gl_xsublist.h: New file.
36749         * lib/gl_xsublist.c: New file.
36750         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36751         (gl_sublist_nx_create): New declaration.
36752         * lib/gl_sublist.c: Don't include xalloc.h.
36753         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36754         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36755         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36756         Change return type to 'int'. Return -1 upon out-of-memory.
36757         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36758         upon out-of-memory.
36759         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36760         NULL upon out-of-memory.
36761         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36762         upon out-of-memory.
36763         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36764         NULL upon out-of-memory.
36765         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36766         NULL upon out-of-memory.
36767         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36768         upon out-of-memory.
36769         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36770         (gl_sublist_list_implementation): Update.
36771         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36772         upon out-of-memory.
36773         * modules/sublist (Depends-on): Remove xalloc.
36774
36775         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36776         * tests/test-carray_list.c: Likewise.
36777         * tests/test-linked_list.c: Likewise.
36778         * tests/test-linkedhash_list.c: Likewise.
36779         * tests/test-avltree_list.c: Likewise.
36780         * tests/test-rbtree_list.c: Likewise.
36781         * tests/test-avltreehash_list.c: Likewise.
36782         * tests/test-rbtreehash_list.c: Likewise.
36783         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36784         * modules/carray-list-tests (Makefile.am): Likewise.
36785         * modules/linked-list-tests (Makefile.am): Likewise.
36786         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36787         * modules/avltree-list-tests (Makefile.am): Likewise.
36788         * modules/rbtree-list-tests (Makefile.am): Likewise.
36789         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36790         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36791
36792         * NEWS: Mention the changes.
36793
36794         * lib/clean-temp.c: Include gl_xlist.h.
36795         * modules/clean-temp (Depends-on): Add xlist.
36796
36797         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36798         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36799
36800         * tests/test-array_oset.c: Include gl_xlist.h.
36801         * modules/array-oset-tests (Depends-on): Add xlist.
36802
36803         Reported by José E. Marchesi <jemarch@gnu.org>.
36804
36805 2009-12-13  Bruno Haible  <bruno@clisp.org>
36806
36807         Move the malloc checking from module 'oset' to new module 'xoset'.
36808         * modules/xoset: New file.
36809         * lib/gl_xoset.h: New file.
36810         * lib/gl_xoset.c: New file.
36811         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36812         declarations.
36813         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36814         (struct gl_oset_implementation): Rename and change methods accordingly.
36815         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36816         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36817         'int'. Mark as __warn_unused_result__.
36818         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36819         gl_oset_create_empty.
36820         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36821         'int'.
36822         * lib/gl_array_oset.c: Don't include xalloc.h.
36823         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36824         malloc, not xmalloc.
36825         (grow): Change return type to 'int'. Don't call xalloc_die.
36826         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36827         to 'int'.
36828         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36829         'int'.
36830         (gl_array_oset_implementation): Update.
36831         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36832         gl_tree_create_empty.
36833         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36834         'int'.
36835         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36836         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36837         xmalloc.
36838         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36839         not xmalloc.
36840         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36841         xmalloc.
36842         (gl_avltree_oset_implementation): Update.
36843         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36844         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36845         xmalloc.
36846         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36847         not xmalloc.
36848         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36849         xmalloc.
36850         (gl_rbtree_oset_implementation): Update.
36851         * modules/array-oset (Depends-on): Remove xalloc.
36852         * modules/avltree-oset (Depends-on): Likewise.
36853         * modules/rbtree-oset (Depends-on): Likewise.
36854         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36855         * tests/test-avltree_oset.c: Likewise.
36856         * tests/test-rbtree_oset.c: Likewise.
36857         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36858         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36859         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36860         * NEWS: Mention the change.
36861
36862 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36863
36864         maint.mk: allow a project to override release-prep commands
36865         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36866         commands into a new rule.
36867         (release-prep): New rule.
36868         (release-prep-hook): New overridable variable.
36869
36870 2009-12-13  Bruno Haible  <bruno@clisp.org>
36871
36872         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36873
36874 2009-12-13  Jim Meyering  <meyering@redhat.com>
36875
36876         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36877         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36878
36879 2009-12-12  Bruno Haible  <bruno@clisp.org>
36880
36881         duplocale: Tweak.
36882         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36883
36884 2009-12-12  Karl Berry  <karl@gnu.org>
36885
36886         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36887
36888 2009-12-12  Bruno Haible  <bruno@clisp.org>
36889
36890         * m4/po.m4: Undo incorrect untabification.
36891
36892 2009-12-12  Bruno Haible  <bruno@clisp.org>
36893
36894         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36895         * modules/c-strtod (Depends-on): Add locale.
36896         * modules/c-strtold (Depends-on): Likewise.
36897
36898 2009-12-12  Bruno Haible  <bruno@clisp.org>
36899
36900         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36901
36902 2009-12-11  Eric Blake  <ebb9@byu.net>
36903
36904         setenv: relax requirement in light of POSIX ruling
36905         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36906         not NULL.
36907         * tests/test-setenv.c (main): Relax test.
36908         * tests/test-unsetenv.c (main): Likewise.
36909         * doc/posix-functions/setenv.texi (setenv): Document this.
36910         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36911
36912 2009-12-11  Bruno Haible  <bruno@clisp.org>
36913
36914         New module 'fd-safer-flag'.
36915         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36916         * lib/dup-safer.c (dup_safer_flag): Remove function.
36917         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36918         * lib/fd-safer.c (fd_safer_flag): Remove function.
36919         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36920         * modules/cloexec (configure.ac): Drop indicator macro.
36921         * modules/fd-safer-flag: New file.
36922         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36923         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36924         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36925
36926 2009-12-11  Bruno Haible  <bruno@clisp.org>
36927
36928         Tests for module 'nl_langinfo'.
36929         * modules/nl_langinfo-tests: New file.
36930         * tests/test-nl_langinfo.sh: New file.
36931         * tests/test-nl_langinfo.c: New file.
36932
36933         New module 'nl_langinfo'.
36934         * lib/nl_langinfo.c: New file.
36935         * m4/nl_langinfo.m4: New file.
36936         * modules/nl_langinfo: New file.
36937         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36938
36939 2009-12-11  Bruno Haible  <bruno@clisp.org>
36940
36941         Tests for module 'langinfo'.
36942         * modules/langinfo-tests: New file.
36943         * tests/test-langinfo.c: New file.
36944
36945         New module 'langinfo'.
36946         * lib/langinfo.in.h: New file.
36947         * m4/langinfo_h.m4: New file.
36948         * modules/langinfo: New file.
36949         * doc/posix-headers/langinfo.texi: Mention the new module.
36950
36951 2009-12-11  Bruno Haible  <bruno@clisp.org>
36952
36953         * lib/config.charset: Untabify.
36954
36955 2009-12-11  Bruno Haible  <bruno@clisp.org>
36956
36957         * modules/unistd-safer (configure.ac): Drop indicator macro.
36958
36959 2009-12-11  Bruno Haible  <bruno@clisp.org>
36960
36961         Move pipe2-safer code to its own file.
36962         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36963         * lib/pipe-safer.c (pipe2_safer): Remove function.
36964         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36965         (Makefile.am): Add it to lib_SOURCES.
36966
36967 2009-12-10  Bruno Haible  <bruno@clisp.org>
36968
36969         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36970
36971 2009-12-10  Bruno Haible  <bruno@clisp.org>
36972
36973         Declare which arguments expect non-NULL values, for GCC and clang.
36974         * build-aux/arg-nonnull.h: New file.
36975         * modules/arg-nonnull: New file.
36976         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36977         (inet_ntop, inet_pton): Use it.
36978         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36979         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36980         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36981         (open, openat): Use it.
36982         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36983         (fnmatch): Use it.
36984         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36985         (getopt, getopt_long, getopt_long_only): Use it.
36986         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36987         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36988         Use it.
36989         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36990         (iconv_open): Use it.
36991         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36992         (strtoimax, strtoumax): Use it.
36993         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36994         (duplocale): Use it.
36995         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36996         (frexp, frexpl): Use it.
36997         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36998         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36999         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37000         (tsearch, tfind, tdelete, twalk): Use it.
37001         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37002         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37003         sigpending): Use it.
37004         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37005         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37006         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37007         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37008         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37009         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37010         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37011         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37012         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37013         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37014         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37015         Use it.
37016         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37017         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37018         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37019         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37020         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37021         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37022         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37023         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37024         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37025         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37026         strtoull, unsetenv): Use it.
37027         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37028         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37029         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37030         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37031         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37032         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37033         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37034         (strcasecmp, strncasecmp): Use it.
37035         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37036         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37037         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37038         rpl_setsockopt): Use it.
37039         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37040         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37041         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37042         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37043         (gettimeofday): Use it.
37044         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37045         (times): Use it.
37046         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37047         (uname): Use it.
37048         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37049         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37050         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37051         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37052         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37053         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37054         unlinkat, write): Use it.
37055         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37056         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37057         * lib/argv-iter.h: Include arg-nonnull.h.
37058         (_ATTRIBUTE_NONNULL_): Remove macro.
37059         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37060         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37061         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37062         optimization.
37063         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37064         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37065         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37066         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37067         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37068         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37069         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37070         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37071         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37072         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37073         * modules/dirent (Depends-on): Add arg-nonnull.
37074         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37075         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37076         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37077         * modules/fnmatch (Depends-on): Add arg-nonnull.
37078         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37079         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37080         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37081         * modules/glob (Depends-on): Add arg-nonnull.
37082         (Makefile.am): Insert arg-nonnull.h into glob.h.
37083         * modules/iconv_open (Depends-on): Add arg-nonnull.
37084         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37085         * modules/inttypes (Depends-on): Add arg-nonnull.
37086         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37087         * modules/locale (Depends-on): Add arg-nonnull.
37088         (Makefile.am): Insert arg-nonnull.h into locale.h.
37089         * modules/math (Depends-on): Add arg-nonnull.
37090         (Makefile.am): Insert arg-nonnull.h into math.h.
37091         * modules/netdb (Depends-on): Add arg-nonnull.
37092         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37093         * modules/search (Depends-on): Add arg-nonnull.
37094         (Makefile.am): Insert arg-nonnull.h into search.h.
37095         * modules/signal (Depends-on): Add arg-nonnull.
37096         (Makefile.am): Insert arg-nonnull.h into signal.h.
37097         * modules/spawn (Depends-on): Add arg-nonnull.
37098         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37099         * modules/stdio (Depends-on): Add arg-nonnull.
37100         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37101         * modules/stdlib (Depends-on): Add arg-nonnull.
37102         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37103         * modules/string (Depends-on): Add arg-nonnull.
37104         (Makefile.am): Insert arg-nonnull.h into string.h.
37105         * modules/strings (Depends-on): Add arg-nonnull.
37106         (Makefile.am): Insert arg-nonnull.h into strings.h.
37107         * modules/sys_socket (Depends-on): Add arg-nonnull.
37108         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37109         * modules/sys_stat (Depends-on): Add arg-nonnull.
37110         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37111         * modules/sys_time (Depends-on): Add arg-nonnull.
37112         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37113         * modules/sys_times (Depends-on): Add arg-nonnull.
37114         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37115         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37116         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37117         * modules/time (Depends-on): Add arg-nonnull.
37118         (Makefile.am): Insert arg-nonnull.h into time.h.
37119         * modules/unistd (Depends-on): Add arg-nonnull.
37120         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37121         * modules/wchar (Depends-on): Add arg-nonnull.
37122         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37123         * modules/argv-iter (Depends-on): Add arg-nonnull.
37124         * tests/test-canonicalize.c (null_ptr): New function.
37125         (main): Use it.
37126         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37127         (main): Use it.
37128         * tests/test-memmem.c (null_ptr): New function.
37129         (main): Use it.
37130         Reported by Jim Meyering.
37131
37132 2009-12-10  Bruno Haible  <bruno@clisp.org>
37133
37134         Use spaces for indentation, not tabs.
37135         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37136         * m4/*.m4: Untabify.
37137         * build-aux/*.h: Untabify.
37138         * tests/**/*.[hc]: Untabify.
37139         * README: New section "Indent with spaces, not TABs", based on
37140         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37141         * NEWS: Mention the change.
37142
37143 2009-12-10  Bruno Haible  <bruno@clisp.org>
37144
37145         pty test: Fix link error.
37146         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37147         test_pty_LDADD.
37148
37149 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37150
37151         * modules/pty: New file.
37152         * modules/pty-tests: New file.
37153         * m4/pty.m4: New file.
37154         * tests/test-pty.c: New file.
37155         * doc/glibc-headers/pty.texi: Modified.
37156         * doc/glibc-functions/forkpty.texi: Modified.
37157         * doc/glibc-functions/openpty.texi: Modified.
37158
37159 2009-12-10  Bruno Haible  <bruno@clisp.org>
37160
37161         Avoid syntax error in C++ mode.
37162         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37163
37164 2009-12-10  Bruno Haible  <bruno@clisp.org>
37165
37166         Use sed with option -e.
37167         * gnulib-tool (func_version, func_emit_copyright_notice,
37168         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37169         option -e to sed.
37170         * modules/link-warning (Makefile.am): Likewise.
37171
37172 2009-12-10  Jim Meyering  <meyering@redhat.com>
37173
37174         mgetgroups: do not write bytes beyond end of malloc'd buffer
37175         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37176         username, we call getgroups with a one-element-shorter buffer,
37177         but still told it the length was original, max_n_groups.
37178
37179 2009-12-09  Eric Blake  <ebb9@byu.net>
37180
37181         cloexec: relax license
37182         * modules/cloexec (Maintainer): Add myself.
37183         (License): Use LGPL, not GPL.
37184
37185         link-warning: optimize generation
37186         * modules/link-warning (Makefile.am): Reduce process usage.
37187
37188 2009-12-09  Bruno Haible  <bruno@clisp.org>
37189
37190         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37191         workaround was added on 2009-11-17.
37192
37193 2009-12-09  Jim Meyering  <meyering@redhat.com>
37194             Bruno Haible  <bruno@clisp.org>
37195
37196         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37197         * modules/link-warning (Makefile.am): Make the comment-removing sed
37198         command more robust in the face of bootstrap-prepended comment lines.
37199
37200 2009-12-09  Bruno Haible  <bruno@clisp.org>
37201
37202         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37203         most one group.
37204
37205 2009-12-09  Simon Josefsson <simon@josefsson.org>
37206             Bruno Haible  <bruno@clisp.org>
37207
37208         * build-aux/link-warning.h: Add copyright notice.
37209         * modules/link-warning (Makefile.am): Generate link-warning.h from
37210         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37211         * NEWS: Mention change in link-warning module.
37212         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37213         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37214         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37215         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37216         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37217         * modules/math (Makefile.am): Add dependency to math.h.
37218         * modules/search (Makefile.am): Add dependency to search.h.
37219         * modules/signal (Makefile.am): Add dependency to signal.h.
37220         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37221         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37222         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37223         * modules/string (Makefile.am): Add dependency to string.h.
37224         * modules/strings (Makefile.am): Add dependency to strings.h.
37225         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37226         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37227         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37228         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37229         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37230         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37231         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37232         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37233         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37234
37235 2009-12-09  Bruno Haible  <bruno@clisp.org>
37236
37237         fchdir: Optimize away rpl_fstat when possible.
37238         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37239         REPLACE_OPEN_DIRECTORY.
37240         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37241
37242 2009-12-09  Bruno Haible  <bruno@clisp.org>
37243
37244         * lib/fchdir.c: Update comment.
37245
37246 2009-12-09  Bruno Haible  <bruno@clisp.org>
37247
37248         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37249
37250 2009-12-08  Eric Blake  <ebb9@byu.net>
37251
37252         fchdir: avoid memory leak on re-registration.
37253         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37254
37255 2009-12-08  Jim Meyering  <meyering@redhat.com>
37256
37257         init.sh: avoid Solaris 10 /bin/sh portability problem
37258         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37259         sourced script:
37260           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37261           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37262           bar
37263         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37264         and two tests used that idiom.
37265         * tests/init.sh: Update suggested usage comments.
37266         (path_prepend_): New function, to be used in place
37267         of the --src-path=DIR option.
37268         (setup_): Move PATH-prepending code into path_prepend_.
37269         * tests/test-pread.sh: Adapt to new usage.
37270         * tests/test-xalloc-die.sh: Likewise.
37271
37272 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37273
37274         * doc/gnulib.texi (Glibc pty.h): Add.
37275         * doc/glibc-functions/forkpty.texi: Add.
37276         * doc/glibc-functions/openpty.texi: Add.
37277         Suggested by Bruno Haible.
37278
37279 2009-12-08  Eric Blake  <ebb9@byu.net>
37280
37281         fchdir: fix logic bugs
37282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37283         * tests/test-fchdir.c (main): Enhance test.
37284         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37285         is in use.
37286
37287         dup2: fix logic bugs
37288         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37289         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37290         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37291         exists.
37292         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37293
37294 2009-12-07  Eric Blake  <ebb9@byu.net>
37295
37296         unlink: fix m4 detection
37297         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37298
37299         unistd-safer: add unit test
37300         * modules/unistd-safer-tests: New file.
37301         * tests/test-dup-safer.c: Likewise.
37302         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37303         * tests/test-dup2.c (setmode): Likewise.
37304         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37305
37306         cloexec: preserve text vs. binary across dup_cloexec
37307         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37308         mode.
37309         * modules/dup2-tests (Depends-on): Add binary-io.
37310         * modules/cloexec-tests (Depends-on): Likewise.
37311         * tests/test-dup2.c (setmode, is_mode): New helpers.
37312         (main): Add tests that translation mode is preserved.
37313         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37314         Reported by Bruno Haible.
37315
37316         mgetgroups: reduce duplicate listings
37317         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37318         resulting array.
37319         * tests/test-chown.h (test_chown): Simplify client.
37320         * tests/test-lchown.h (test_lchown): Likewise.
37321
37322 2009-12-06  Bruno Haible  <bruno@clisp.org>
37323
37324         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37325         value.
37326
37327 2009-12-06  Bruno Haible  <bruno@clisp.org>
37328
37329         * lib/progname.c: Include stdio.h, stdlib.h.
37330         (set_program_name): Reject a NULL argument.
37331
37332 2009-12-05  Eric Blake  <ebb9@byu.net>
37333
37334         pipe2-safer: new module
37335         * modules/pipe2-safer: New file.
37336         * lib/unistd-safer.h (pipe2_safer): New prototype.
37337         * lib/unistd--.h (pipe2): New wrapper.
37338         * lib/pipe-safer.c (pipe2_safer): New function.
37339         * modules/pipe (Depends-on): Add pipe2-safer.
37340         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37341
37342         stdlib-safer: preserve cloexec flag for mkostemp[s]
37343         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37344         fd_safer_flag.
37345
37346         unistd-safer: allow preservation of cloexec status via flag
37347         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37348         prototypes.
37349         * lib/dup-safer.c (dup_safer_flag): New function.
37350         * lib/fd-safer.c (fd_safer_flag): Likewise.
37351         * modules/cloexec (configure.ac): Set witness.
37352
37353         test-dup2: enhance test
37354         * modules/dup2-tests (Depends-on): Add cloexec.
37355         * tests/test-dup2.c (main): Enhance test.
37356
37357         cloexec: add dup_cloexec
37358         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37359         header and comments.
37360         * lib/cloexec.c (set_cloexec_flag): Add comments.
37361         (dup_cloexec): New function, with mingw implementation borrowed
37362         from...
37363         * lib/w32spawn.h (dup_noinherit): ...here.
37364         * modules/execute (Depends-on): Add cloexec.
37365         * modules/pipe (Depends-on): Likewise.
37366         * modules/cloexec (Depends-on): Add dup2.
37367         * modules/cloexec-tests (Files): New file.
37368         * tests/test-cloexec.c: Likewise.
37369
37370         test-xalloc-die: fix test for mingw
37371         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37372         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37373         directory and .exe suffix off argv[0] output.
37374
37375         test-fseeko: fix test for mingw
37376         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37377         than undefining fseek, so test will pass on mingw.
37378
37379 2009-12-05  Bruno Haible  <bruno@clisp.org>
37380
37381         * lib/progname.h (set_program_name): Clarify specification.
37382         * lib/progname.c (set_program_name): Likewise.
37383         Reported by Jim Meyering.
37384
37385 2009-12-05  Jim Meyering  <meyering@redhat.com>
37386
37387         maint.mk: backslash-escape parens in default regexp
37388         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37389         backslash-escape the literal parentheses.
37390
37391         maint.mk: news-date-check: use grep -E
37392         * top/maint.mk (today): Define a Make variable, not a...
37393         (news-date-check): ...shell variable.
37394         (news-date-regexp): Use the Make variable.
37395         Use grep's -E option.  Change the failing diagnostic to mention
37396         the variable, $(news-date-regexp).
37397
37398 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37399
37400         maintainer-makefile: allow customization of NEWS entry format
37401         * top/maint.mk (news-date-regexp): New overridable variable.
37402         (news-date-check): Use it.
37403
37404 2009-12-04  Eric Blake  <ebb9@byu.net>
37405
37406         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37407         * lib/mgetgroups.h (xgetgroups): New prototype.
37408         * lib/mgetgroups.c (xgetgroups): New wrapper.
37409         (mgetgroups): Handle ENOSYS.
37410         * modules/mgetgroups (Depends-on): Add realloc.
37411         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37412
37413         mgetgroups: avoid argument promotion issues with -1
37414         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37415         for invalid gid_t.
37416         * tests/test-chown.h (getegid, test_chown): Likewise.
37417         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37418
37419 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37420
37421         exclude: Fix header file problems.
37422         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37423
37424 2009-12-01  Jim Meyering  <meyering@redhat.com>
37425
37426         fts: fts_open: do not let an empty string cause immediate failure
37427         This is required in support of GNU rm, for which the command
37428         "rm A '' B" must process and remove both A and B, in spite of
37429         the empty string argument.
37430         * lib/fts.c (fts_open): Do not let the presence of an empty string
37431         cause fts_open to fail immediately.  Most fts-using tools must be
37432         able to process all arguments, in order, and can be expected to
37433         diagnose such arguments themselves.
37434
37435 2009-11-30  Eric Blake  <ebb9@byu.net>
37436
37437         utimens: fix compilation error
37438         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37439         Declare variable at right scope.
37440
37441 2009-11-29  Jim Meyering  <meyering@redhat.com>
37442
37443         bootstrap: handle perl-5.11's changed --version output
37444         * build-aux/bootstrap (get_version): Handle perl separately,
37445         since perl-5.11's --version output is different.
37446
37447 2009-11-28  Jim Meyering  <meyering@redhat.com>
37448
37449         userspec: depend on the inttostr module, too
37450         * modules/userspec (Depends-on): Add inttostr.
37451
37452         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37453         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37454         number of MAXUID when it evaluates to (uid_t) -1.
37455         Likewise for group ID.  Reported by Matt McCutchen in
37456         <http://savannah.gnu.org/bugs/?28113>
37457
37458         userspec: reformat to use spaces, not TABs
37459         * lib/userspec.c: Expand TABs to spaces.
37460         Add Emacs' "indent-tabs-mode: nil" hint.
37461
37462 2009-11-27  Eric Blake  <ebb9@byu.net>
37463
37464         getopt-gnu: flush out another BSD bug
37465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37466         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37467         flush out BSD bug.
37468         * tests/test-getopt.h (test_getopt): End lists with NULL.
37469         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37470         (test_getopt_long_posix): Enhance test.
37471         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37472         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37473         getopt-gnu.
37474         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37475         Likewise.
37476
37477 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37478
37479         * modules/idpriv-droptemp-tests (Notice): Fix text.
37480
37481 2009-11-27  Jim Meyering  <meyering@redhat.com>
37482
37483         test-xalloc-die: avoid spurious failure due to libtool argv difference
37484         In a libtool-enabled project, this test would fail due to a difference
37485         in the emitted program name, e.g.,
37486         -test-xalloc-die: memory exhausted
37487         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37488         Use program to avoid that.
37489         * modules/xalloc-die-tests (Depends-on): Add progname.
37490         * tests/test-xalloc-die.c: Include progname.h".
37491         (program_name): Remove decl.
37492         (main): Call set_program_name.
37493         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37494
37495 2009-11-26  Richard Jones  <rjones@redhat.com>
37496
37497         w32sock: leave win32 error in place.
37498         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37499
37500 2009-11-26  Eric Blake  <ebb9@byu.net>
37501
37502         init.sh: suggest to use skip_ and fail_ functions in comments
37503         * tests/init.sh: Add a sentence.
37504
37505 2009-11-25  Bruno Haible  <bruno@clisp.org>
37506
37507         init.sh: add documentation in comments
37508         * tests/init.sh: Add some developer and user documentation.
37509
37510 2009-11-26  Jim Meyering  <meyering@redhat.com>
37511
37512         init.sh: accommodate even those who specify bogus srcdir manually
37513         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37514         configure-time tests to be sanitized, so that there is no need to
37515         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37516         (with no double quotes) suffices.  However, since tests may be
37517         invoked manually, and since you may explicitly set srcdir to the
37518         name of a directory containing spaces, do quote its uses here.
37519         * tests/test-pread.sh: Likewise.
37520         Suggested by Bruno Haible.
37521
37522         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37523         * tests/test-pread.sh: Write no data into the pipe, because
37524         test-pread actually reads none.  This avoids a diagnostic,
37525         "bash: echo: write error: Broken pipe", that arises in the unusual
37526         event something is ignoring SIGPIPE, and might be interpreted
37527         as some sort of failure.  Reported by Bruno Haible.
37528
37529 2009-11-25  Jim Meyering  <meyering@redhat.com>
37530
37531         test-pread: cover failure with ESPIPE and EINVAL
37532         * tests/test-pread.c (main): Test for failure, too.
37533         * tests/test-pread.sh: Invoke with stdin on a pipe.
37534         Suggested by Eric Blake.
37535
37536         pread: improvement and fix
37537         * modules/pread (Depends-on): Depend on lseek, for portability to
37538         e.g., mingw.  Suggested by Eric Blake.
37539         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37540
37541         unistd.in.h: correct declaration of pread
37542         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37543         Reported by Richard W.M. Jones.
37544
37545         test-pread.sh: distribute the test script
37546         * modules/pread-tests (Files): Include test-pread.sh.
37547
37548         test-pread.sh: clean up
37549         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37550         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37551         That is unnecessary, since it's always ".".
37552         Suggestion from Eric Blake.
37553
37554         test-pread.sh: make executable
37555         * tests/test-pread.sh: Set executable bit.
37556         Reported by Eric Blake.
37557
37558         correct typo in test-pread.sh
37559         * tests/test-pread.sh: Add #! line.
37560
37561         test pread
37562         * tests/test-pread.c: New file.
37563         * tests/test-pread.sh: Likewise.
37564         * modules/pread-tests: Likewise.
37565
37566         pread: new module
37567         * modules/pread: New file.
37568         * lib/unistd.in.h (pread): Define/declare.
37569         * lib/pread.c (pread): New file.
37570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37571         * modules/unistd (Makefile.am): Substitute witnesses.
37572         * doc/posix-functions/pread.texi (pread): Update.
37573         * MODULES.html.sh: Add pread.
37574
37575 2009-11-25  Jim Meyering  <meyering@redhat.com>
37576
37577         tests/init.sh: new file to be used via most *.sh tests
37578         * tests/init.sh: New file.
37579
37580 2009-11-25  Eric Blake  <ebb9@byu.net>
37581
37582         utimens: work around older Linux failure with symlinks
37583         * lib/utimens.c (lutimensat_works_really): New variable.
37584         (fdutimens, lutimens): Use it to manage kernels that support
37585         nanosecond times on files, but not on symlinks.
37586         Reported by OndÅ™ej Vašík.
37587
37588         utimes: fix configure grammar
37589         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37590
37591 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37592
37593         regex: Fix fastmap for multibyte character ranges.
37594         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37595         characters when a multibyte character range is included.
37596
37597 2009-11-22  Andy Wingo  <wingo@pobox.com>
37598
37599         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37600         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37601
37602 2009-11-24  Bruno Haible  <bruno@clisp.org>
37603
37604         doc: Most *_l functions exist in MacOS X 10.5.
37605         * doc/posix-functions/duplocale.texi: Update platforms list.
37606         * doc/posix-functions/freelocale.texi: Likewise.
37607         * doc/posix-functions/newlocale.texi: Likewise.
37608         * doc/posix-functions/uselocale.texi: Likewise.
37609         * doc/posix-functions/isalnum_l.texi: Likewise.
37610         * doc/posix-functions/isalpha_l.texi: Likewise.
37611         * doc/posix-functions/isblank_l.texi: Likewise.
37612         * doc/posix-functions/iscntrl_l.texi: Likewise.
37613         * doc/posix-functions/isdigit_l.texi: Likewise.
37614         * doc/posix-functions/isgraph_l.texi: Likewise.
37615         * doc/posix-functions/islower_l.texi: Likewise.
37616         * doc/posix-functions/isprint_l.texi: Likewise.
37617         * doc/posix-functions/ispunct_l.texi: Likewise.
37618         * doc/posix-functions/isspace_l.texi: Likewise.
37619         * doc/posix-functions/isupper_l.texi: Likewise.
37620         * doc/posix-functions/iswalnum_l.texi: Likewise.
37621         * doc/posix-functions/iswalpha_l.texi: Likewise.
37622         * doc/posix-functions/iswblank_l.texi: Likewise.
37623         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37624         * doc/posix-functions/iswctype_l.texi: Likewise.
37625         * doc/posix-functions/iswdigit_l.texi: Likewise.
37626         * doc/posix-functions/iswgraph_l.texi: Likewise.
37627         * doc/posix-functions/iswlower_l.texi: Likewise.
37628         * doc/posix-functions/iswprint_l.texi: Likewise.
37629         * doc/posix-functions/iswpunct_l.texi: Likewise.
37630         * doc/posix-functions/iswspace_l.texi: Likewise.
37631         * doc/posix-functions/iswupper_l.texi: Likewise.
37632         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37633         * doc/posix-functions/isxdigit_l.texi: Likewise.
37634         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37635         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37636         * doc/posix-functions/strcoll_l.texi: Likewise.
37637         * doc/posix-functions/strfmon_l.texi: Likewise.
37638         * doc/posix-functions/strftime_l.texi: Likewise.
37639         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37640         * doc/posix-functions/strxfrm_l.texi: Likewise.
37641         * doc/posix-functions/tolower_l.texi: Likewise.
37642         * doc/posix-functions/toupper_l.texi: Likewise.
37643         * doc/posix-functions/towctrans_l.texi: Likewise.
37644         * doc/posix-functions/towlower_l.texi: Likewise.
37645         * doc/posix-functions/towupper_l.texi: Likewise.
37646         * doc/posix-functions/wcscoll_l.texi: Likewise.
37647         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37648         * doc/posix-functions/wctrans_l.texi: Likewise.
37649         * doc/posix-functions/wctype_l.texi: Likewise.
37650         * doc/glibc-functions/strptime_l.texi: Likewise.
37651         * doc/glibc-functions/strtod_l.texi: Likewise.
37652         * doc/glibc-functions/strtof_l.texi: Likewise.
37653         * doc/glibc-functions/strtol_l.texi: Likewise.
37654         * doc/glibc-functions/strtold_l.texi: Likewise.
37655         * doc/glibc-functions/strtoll_l.texi: Likewise.
37656         * doc/glibc-functions/strtoul_l.texi: Likewise.
37657         * doc/glibc-functions/strtoull_l.texi: Likewise.
37658         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37659         * doc/glibc-functions/wcstod_l.texi: Likewise.
37660         * doc/glibc-functions/wcstof_l.texi: Likewise.
37661         * doc/glibc-functions/wcstol_l.texi: Likewise.
37662         * doc/glibc-functions/wcstold_l.texi: Likewise.
37663         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37664         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37665         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37666
37667 2009-11-24  Bruno Haible  <bruno@clisp.org>
37668
37669         duplocale: Fix logic bug.
37670         * lib/duplocale.c: Don't include <langinfo.h>.
37671         (_NL_LOCALE_NAME): Remove macro.
37672         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37673         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37674
37675 2009-11-23  Jim Meyering  <meyering@redhat.com>
37676
37677         test-update-copyright: don't hard-code /usr/bin/perl
37678         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37679         perl to print the current year.  Gilles Espinasse reported that
37680         the replaced use of perl was hard-coded as /usr/bin/perl.
37681
37682 2009-11-23  Bruno Haible  <bruno@clisp.org>
37683
37684         duplocale: Add support for glibc 2.3.x.
37685         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37686
37687 2009-11-22  Bruno Haible  <bruno@clisp.org>
37688
37689         vasnprintf: Tiny optimization.
37690         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37691         MacOS X.
37692
37693 2009-11-22  Bruno Haible  <bruno@clisp.org>
37694
37695         Tests for module 'duplocale'.
37696         * modules/duplocale-tests: New file.
37697         * tests/test-duplocale.c: New file.
37698
37699         New module 'duplocale'.
37700         * m4/duplocale.m4: New file.
37701         * lib/locale.in.h (duplocale): New declaration.
37702         * lib/duplocale.c: New file.
37703         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37704         gl_LOCALE_H_DEFAULTS): New macros.
37705         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37706         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37707         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37708         REPLACE_DUPLOCALE.
37709         * modules/duplocale: New file.
37710         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37711
37712 2009-11-22  Bruno Haible  <bruno@clisp.org>
37713
37714         * modules/locale-tests (configure.ac): Test for newlocale function.
37715         * tests/test-locale.c: When the system has extended locale functions,
37716         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37717
37718         locale: Make locale_t available when possible.
37719         * lib/locale.in.h: Include <xlocale.h> when it exists.
37720         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37721         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37722         * modules/locale (Depends-on): Add extensions.
37723         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37724         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37725
37726 2009-11-22  Bruno Haible  <bruno@clisp.org>
37727
37728         Add comments.
37729         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37730         invocation.
37731         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37732         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37733         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37734
37735 2009-11-22  Bruno Haible  <bruno@clisp.org>
37736
37737         error: account for the possibility of freopen (stdout).
37738         * lib/error.c: Include <unistd.h>.
37739         (flush_stdout): New function, extracted from error and error_at_line.
37740         Determine stdout's fd dynamically.
37741         (error, error_at_line): Invoke flush_stdout.
37742         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37743         * modules/error (Depends-on): Add unistd.
37744
37745 2009-11-22  Bruno Haible  <bruno@clisp.org>
37746
37747         diffseq: Add comment.
37748         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37749
37750 2009-11-22  Jim Meyering  <meyering@redhat.com>
37751
37752         c-stack: avoid defining an unused static function
37753         * lib/c-stack.c (find_stack_direction): Do not define this function
37754         when it will not be used.
37755
37756         diffseq: avoid spurious gcc warnings
37757         * lib/diffseq.h (IF_LINT2): Define.
37758         (compareseq): Use it to initialize two members of "part".
37759         This avoids two used-uninitialized warnings.
37760
37761 2009-11-21  Jim Meyering  <meyering@redhat.com>
37762
37763         c-stack: avoid "ignoring return value of `write'" warning
37764         * lib/c-stack.c: Include "ignore-value.h".
37765         (die): Explicitly ignore each write return value.
37766         * modules/c-stack (Depends-on): Add ignore-value.
37767
37768 2009-11-21  Bruno Haible  <bruno@clisp.org>
37769
37770         diffseq: reduce scope of variable 'best'.
37771         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37772         variable, earlier used for two different purposes.
37773
37774 2009-11-21  Jim Meyering  <meyering@redhat.com>
37775
37776         diffseq: remove useless assignment to "best"
37777         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37778         assignment.  At that point "best" is already guaranteed to be zero.
37779
37780 2009-11-20  Eric Blake  <ebb9@byu.net>
37781
37782         build: mention ftp redirector in release announcements
37783         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37784         values that used to come from cfg.mk; mention FTP redirect URL.
37785         * build-aux/announce-gen: Mention the mirror list.
37786         Suggested by Karl Berry.
37787
37788         nanosleep: improve port to mingw
37789         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37791         LIB_NANOSLEEP, but only when needed.
37792         * modules/select (Link): Document LIBSOCKET.
37793         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37794         enough.
37795
37796         nanosleep: work around cygwin bug
37797         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37798         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37799         bug.
37800         (getnow): Delete, not needed.
37801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37802         LIB_CLOCK_GETTIME.
37803         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37804         clock-time, gettime.
37805         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37806         bug.
37807         * modules/nanosleep-tests: New test.
37808         * tests/test-nanosleep.c: New file.
37809
37810         sleep: work around cygwin bug
37811         * lib/sleep.c (rpl_sleep): Work around the bug.
37812         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37813         (gl_PREREQ_SLEEP): Delete unused macro.
37814         * modules/sleep (Depends-on): Add verify.
37815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37816         * modules/unistd (Makefile.am): Substitute witness.
37817         * lib/unistd.in.h (sleep): Update prototype.
37818         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37819         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37820         * modules/sleep-tests (Depends-on): Check for alarm.
37821
37822 2009-11-20  Jim Meyering  <meyering@redhat.com>
37823
37824         maint.mk: improve sc_prohibit_magic_number_exit
37825         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37826         so it does not match uses like System.exit(1).
37827         Add comments showing how to correct all offenders.
37828
37829 2009-11-19  Eric Blake  <ebb9@byu.net>
37830
37831         xalloc-die-tests: add missing library
37832         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37833
37834         test-xvasprintf: silence compiler warnings
37835         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37836         empty string from gcc.
37837
37838 2009-11-19  Jim Meyering  <meyering@redhat.com>
37839
37840         xfreopen: new module, from coreutils
37841         * modules/xfreopen: New module.
37842         * lib/xfreopen.c: New file.
37843         * lib/xfreopen.h: New file.
37844         * MODULES.html.sh (File stream based Input/Output"): Add it.
37845
37846 2009-11-19  Eric Blake  <ebb9@byu.net>
37847
37848         manywarnings: depend on warnings
37849         * modules/manywarnings (Depends-on): Add warnings.
37850
37851         build: avoid compiler warnings
37852         * lib/select.c (rpl_select): Delete unused variable.
37853         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37854
37855 2009-11-18  Eric Blake  <ebb9@byu.net>
37856
37857         tests: avoid false negative with --with-packager
37858         * tests/test-version-etc.sh: Discard packager information.
37859         * tests/test-argp-version-etc-1.sh: Likewise.
37860         Reported by Mike Frysinger.
37861
37862         utimens: fix regression on Solaris
37863         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37864         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37865         can only change fd timestamps via futimesat.  Instead, use an
37866         additional witness macro to avoid BSD bug.
37867         Reported by Jim Meyering.
37868
37869 2009-11-17  Eric Blake  <ebb9@byu.net>
37870
37871         usleep: use it to simplify tests
37872         * modules/stat-time-tests (Depends-on): Add usleep.
37873         (configure.ac): Drop usleep check.
37874         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37875         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37876         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37877         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37878         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37879         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37880         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37881         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37882         Likewise.
37883         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37884         * tests/test-lchown.h (nap): Likewise.
37885         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37886         * tests/test-stat-time.c (nap): Likewise.
37887         * tests/test-utimens-common.h (nap): Update comments.
37888
37889         usleep: new module
37890         * modules/usleep: New file.
37891         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37892         * lib/usleep.c (usleep): Likewise.
37893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37894         * modules/unistd (Makefile.am): Substitute witnesses.
37895         * lib/unistd.in.h (usleep): Add declaration.
37896         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37897         * MODULES.html.sh (Date and time): Likewise.
37898         * modules/usleep-tests (Depends-on): New test.
37899         * tests/test-usleep.c: New file.
37900
37901         chown: work around OpenBSD bug
37902         * lib/chown.c (rpl_chown): Work around the bug.
37903         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37904         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37905         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37906         * modules/chown (Depends-on): Add stdbool.
37907         * modules/lchown (Depends-on): Likewise.
37908         * doc/posix-functions/chown.texi (chown): Document the bug.
37909         * doc/posix-functions/lchown.texi (lchown): Likewise.
37910         * tests/test-lchown.h (test_chown): Relax test.
37911
37912         mkstemp: avoid conflict with C++ keyword template
37913         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37914         * lib/mkostemp.c (mkostemp): Likewise.
37915         * lib/mkostemps.c (mkostemps): Likewise.
37916         * lib/mkstemp.c (mkstemp): Likewise.
37917         * lib/mkstemps.c (mkstemps): Likewise.
37918
37919         xalloc-die-tests: optimize
37920         * tests/test-xalloc-die.sh: Reduce number of processes.
37921
37922 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37923
37924         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37925         patch from ludo@gnu.org (Ludovic Courtès).
37926
37927 2009-11-17  Jim Meyering  <meyering@redhat.com>
37928
37929         version-etc: use proper license string
37930         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37931         * modules/version-etc-fsf: Likewise.
37932
37933 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37934
37935         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37936         printed to stdout.  Deal with EOL differences.
37937
37938 2009-11-17  Eric Blake  <ebb9@byu.net>
37939
37940         unsetenv: work around Solaris bug
37941         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37942         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37943         Reported by Jim Meyering.
37944
37945         vasnprintf: avoid compiler warnings
37946         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37947         variables.
37948         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37949
37950 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37951
37952         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37953         settings since xalloc-die is no longer the self test,
37954         xalloc-die.sh is.
37955
37956 2009-11-17  Jim Meyering  <meyering@redhat.com>
37957
37958         test-xalloc-die.sh: make the code agree with the commit log
37959         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37960         at the end, just in case you happen to have a test-xalloc-die
37961         program in some other PATH directory.
37962
37963         test-xalloc-die.sh: fix a portability bug
37964         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37965         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37966         Otherwise, argv[0] (as often seen in diagnostics) would be too
37967         system-dependent, sometimes with, and sometimes without the leading "./".
37968
37969         version-etc-fsf: relax license to LGPLv3+
37970         * modules/version-etc-fsf (License): Relax license.
37971
37972 2009-11-16  Eric Blake  <ebb9@byu.net>
37973
37974         xalloc-die-tests: avoid printing null pointer
37975         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37976         shell script.
37977         * tests/test-xalloc-die.c (program_name): Declare.
37978         * tests/test-xalloc-die.sh (tmpfiles): New file.
37979
37980         setenv, unsetenv: work around various bugs
37981         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37982         (setenv) [HAVE_SETENV]: Work around bugs.
37983         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37984         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37985         for bugs.
37986         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37987         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37989         * modules/stdlib (Makefile.am): Update substitutions.
37990         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37991         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37992         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37993         * modules/setenv-tests: New test.
37994         * modules/unsetenv-tests: Likewise.
37995         * tests/test-setenv.c: New file.
37996         * tests/test-unsetenv.c: Likewise.
37997
37998 2009-11-16  Jim Meyering  <meyering@redhat.com>
37999
38000         version-etc: relax license to LGPLv3+
38001         * modules/version-etc (License): Relax license.
38002
38003         better AC_REQUIRE expanded-before-required-warning avoidance
38004         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38005         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38006         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38007         which is no longer needed.
38008
38009 2009-11-16  Eric Blake  <ebb9@byu.net>
38010
38011         test-freading: clean up temporary file
38012         * tests/test-freading.c (main): Remove file on success, and use
38013         ASSERT more liberally.
38014         Reported by Jim Meyering.
38015
38016 2009-11-16  Jim Meyering  <meyering@redhat.com>
38017
38018         avoid new AC_REQUIRE expanded-before-required warnings
38019         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38020         merely using it.
38021         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38022         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38023
38024 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38025
38026         * tests/test-xalloc-die.c: New file.
38027         * modules/xalloc-die-tests: New file.
38028         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38029         XFAIL_TESTS so it can be appended by modules.
38030
38031 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38032
38033         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38034         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38035
38036 2009-11-14  Eric Blake  <ebb9@byu.net>
38037
38038         fnmatch: avoid compiler warning
38039         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38040         to silence compiler warning about mismatch signedness in ?:.
38041         Reported by Robert Millan.
38042
38043         intprops: add double-inclusion guard
38044         * lib/intprops.h: Allow idempotent includes.
38045         Suggested by Bruce Korb.
38046
38047         openat: detect Solaris fchownat bug
38048         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38049         penalizing glibc chownat when only lchownat is broken.
38050         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38051         trailing slash bugs.
38052         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38053         * modules/openat-tests (Files): Include more files.
38054         (Depends-on): Add mgetgroups, sleep, stat-time.
38055         (configure.ac): Add additional checks.
38056         (Makefile.am): Build new test.
38057         * tests/test-fchownat.c: New file.
38058
38059         lchown: detect Solaris and FreeBSD bug
38060         * lib/lchown.c (rpl_lchown): Work around bug.
38061         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38063         * modules/unistd (Makefile.am): Populate it.
38064         * lib/unistd.in.h (lchown): Update declaration.
38065         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38066         * modules/lchown-tests: New file.
38067         * tests/test-lchown.h (test_lchown): Likewise.
38068         * tests/test-lchown.c (main): Likewise.
38069
38070         chown: detect Solaris and FreeBSD bug
38071         * lib/chown.c (rpl_chown): Work around bug.
38072         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38073         (gl_PREREQ_CHOWN): Delete.
38074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38075         * modules/unistd (Makefile.am): Populate it.
38076         * lib/unistd.in.h (chown): Update declaration.
38077         * lib/lchown.c (chown): Update client.
38078         * modules/lchown (Depends-on): Add lstat.
38079         * doc/posix-functions/chown.texi (chown): Document the bug.
38080         * doc/posix-functions/getgroups.texi (getgroups): Document
38081         getgroups pitfall.
38082         * modules/chown-tests: New file.
38083         * tests/test-chown.h (test_chown): Likewise.
38084         * tests/test-chown.c (main): Likewise.
38085
38086 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38087
38088         gnulib-tool: correctly detect absence of m4 directories
38089         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38090
38091 2009-11-14  Jim Meyering  <meyering@redhat.com>
38092
38093         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38094         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38095
38096 2009-11-14  John W. Eaton  <jwe@gnu.org>
38097
38098         strftime.h: wrap funtion declaration in extern "C" block
38099         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38100
38101 2009-11-13  Eric Blake  <ebb9@byu.net>
38102
38103         getgroups: avoid compiler warning
38104         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38105
38106         getgroups: work around FreeBSD bug
38107         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38108         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38109         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38110         * tests/test-getgroups.c (main): Fix buffer overrun.
38111
38112         getgroups: avoid compilation failure
38113         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38114         * modules/getgroups (Depends-on): Add stdint.
38115
38116 2009-11-13  Jim Meyering  <meyering@redhat.com>
38117
38118         test-getgroups: avoid compilation failure
38119         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38120
38121 2009-11-13  Eric Blake  <ebb9@byu.net>
38122
38123         mgetgroups: new module, taken from coreutils
38124         * modules/mgetgroups: New file.
38125         * lib/mgetgroups.h: Likewise.
38126         * lib/mgetgroups.c (mgetgroups): Likewise.
38127         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38128         * MODULES.html.sh (Users and groups): Mention it.
38129
38130         getgroups: don't expose GETGROUPS_T to user
38131         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38132         an element at a time if GETGROUPS_T is wrong size.
38133         * lib/getugroups.h (getugroups): Change signature.
38134         * lib/unistd.in.h (getgroups): Likewise.
38135         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38136         signature needs fixing.
38137         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38138         AC_TYPE_GETGROUPS.
38139         * modules/group-member (Depends-on): Add getgroups.
38140         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38141         (group_member): Rely on getgroups replacement.
38142         * lib/getugroups.c (getugroups): Use gid_t.
38143         * tests/test-getgroups.c (main): Likewise.
38144         * NEWS: Mention the signature change.
38145         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38146         problem with signature.
38147         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38148         GETGROUPS_T is still useful for setgroups.
38149
38150         getgroups, getugroups: provide stubs for mingw
38151         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38152         * lib/getugroups.c (getugroups): Likewise.
38153         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38154         function.  Modernize replacement scheme.
38155         (gl_PREREQ_GETGROUPS): Delete.
38156         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38157         * modules/getgroups (configure.ac): Declare witness.
38158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38159         * modules/unistd (Depends-on): Substitute witness.
38160         * lib/unistd.in.h (getgroups): Declare replacement.
38161
38162         getgroups: avoid calling exit
38163         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38164         drop xalloc.
38165         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38166         dependencies.
38167         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38168         exiting, in the rare case of malloc failure.
38169
38170         getgroups: fix logic error
38171         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38172         has more than 20 groups.
38173         * modules/getgroups-tests: New test.
38174         * tests/test-getgroups.c: New file.
38175
38176 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38177
38178         * tests/test-base64.c: Improve.
38179
38180 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38181
38182         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38183         Blake <ebb9@byu.net>.
38184
38185 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38186
38187         * tests/test-xvasprintf.c: Add %s%s related checks.
38188
38189 2009-11-12  Eric Blake  <ebb9@byu.net>
38190
38191         version-etc: match standards.texi style
38192         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38193         and use <> only for URLs.
38194
38195 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38196
38197         fts: do not fail on a submount during traversal
38198         * lib/fts.c (fts_build): Read the stat info again after opening
38199         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38200         Original report at http://bugzilla.redhat.com/501848.
38201
38202 2009-11-12  Jim Meyering  <meyering@redhat.com>
38203
38204         bootstrap: sync from coreutils
38205         * build-aux/bootstrap (bootstrap_epilogue): New function.
38206         Use git_modules_config in one more place.  This make bootstrap's
38207         --gnulib-srcdir option more useful for testing.
38208
38209         bootstrap: generalize autoheader check
38210         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38211         AC_CONFIG_HEADERS.
38212
38213 2009-11-11  Eric Blake  <ebb9@byu.net>
38214
38215         mkfifoat: use new modules for Solaris and BSD bugs
38216         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38217         * lib/mkfifoat.c (mknodat): Split...
38218         * lib/mknodat.c (mknodat): ...into new file.
38219         * modules/mkfifoat (Files): Ship new file.
38220         (Depends-on): Add mkfifo, mknod.
38221         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38222         (Depends-on): Add symlink.
38223         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38224         redundant with test_mkfifo.h.
38225         (do_mkfifoat, do_mknodat): New helpers.
38226
38227         mknod: new module
38228         * modules/mknod: New file.
38229         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38230         * lib/mknod.c (mknod): Likewise.
38231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38232         defaults.
38233         * modules/sys_stat (Makefile.am): Substitute them.
38234         * lib/sys_stat.in.h (mknod): Declare replacement.
38235         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38236         Document it.
38237         * doc/posix-functions/mknod.texi (mknod): Likewise.
38238         * modules/mknod-tests: New test.
38239         * tests/test-mknod.c: Likewise.
38240
38241         mkfifo: new module
38242         * modules/mkfifo: New file.
38243         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38244         * lib/mkfifo.c (mkfifo): Likewise.
38245         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38246         defaults.
38247         * modules/sys_stat (Makefile.am): Substitute them.
38248         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38249         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38250         Document it.
38251         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38252         * modules/mkfifo-tests: New test.
38253         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38254         from test-mkfifoat.c.
38255         * tests/test-mkfifo.c: New file.
38256
38257         readlink: detect FreeBSD bug
38258         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38259         slash on symlink.
38260         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38261         * tests/test-readlink.h (test_readlink): Enhance test.
38262
38263         symlink: detect FreeBSD bug
38264         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38265         slash on symlink.
38266         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38267         * tests/test-symlink.h (test_symlink): Enhance test.
38268
38269 2009-11-10  Eric Blake  <ebb9@byu.net>
38270
38271         link: detect FreeBSD bug
38272         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38273         symlink.
38274         * doc/posix-functions/link.texi (link): Document the bug.
38275         * tests/test-link.h (test_link): Enhance test.
38276         * tests/test-linkat.c (main): Update caller.
38277
38278         unlink, remove: detect FreeBSD bug
38279         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38280         slash on symlink.
38281         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38282         * doc/posix-functions/remove.texi (remove): Likewise.
38283         * tests/test-unlink.h (test_unlink): Enhance test.
38284         * tests/test-remove.c (main): Likewise.
38285
38286 2009-11-09  Eric Blake  <ebb9@byu.net>
38287
38288         rename: detect FreeBSD bug
38289         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38290         slash on symlink.
38291         * modules/renameat-tests (Depends-on): Add filenamecat.
38292         * tests/test-rename.h (test_rename): Allow one more errno.
38293         * tests/test-renameat.c (main): Likewise.
38294         * doc/posix-functions/rename.texi (rename): Document the bug.
38295
38296         open: detect FreeBSD bug
38297         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38298         symlink.
38299         * doc/posix-functions/open.texi (open): Document the bug.
38300         * doc/posix-functions/utimes.texi (utimes): Likewise.
38301         * tests/test-open.h (test_open): Add parameters, and test symlink
38302         handling.
38303         * tests/test-open.c (main): Adjust caller.
38304         * tests/test-fcntl-safer.c (main): Likewise.
38305         * modules/open-tests (Depends-on): Add stdbool, symlink.
38306         * modules/fcntl-safer-tests (Depends-on): Likewise.
38307         * tests/test-openat.c (main): Add test-open tests.
38308
38309         stat: detect FreeBSD bug
38310         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38311         symlink.
38312         * doc/posix-functions/stat.texi (stat): Document the bug.
38313         * tests/test-stat.h (test_stat_func): Add argument.
38314         * tests/test-stat.c (main): Adjust caller.
38315         * tests/test-fstatat.c (main): Likewise.
38316         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38317         Reported by Jim Meyering.
38318
38319 2009-11-09  James Youngman  <jay@gnu.org>
38320
38321         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38322         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38323
38324 2009-11-08  Jim Meyering  <meyering@redhat.com>
38325
38326         utimens: remove invalid futimesat call
38327         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38328         It used the file descriptor of the target file as the DIR_FD
38329         parameter and NULL as the file name.  That caused failure with
38330         errno == EFAULT on FreeBSD-8.0-rc2
38331
38332 2009-11-07  Eric Blake  <ebb9@byu.net>
38333
38334         fflush, freadseek: use fseeko, not fseek
38335         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38336         (clear_ungetc_buffer): Avoid potential problems on large files.
38337         * lib/freadseek.c (freadseek): Likewise.
38338         * modules/freadseek (Depends-on): Add fseeko.
38339         * modules/fseek (configure.ac): Set a witness.
38340         * tests/test-fflush.c (main): Use fseeko.
38341         * tests/test-fpurge.c (fseek): Disable link warning.
38342         * tests/test-freadable.c (fseek): Likewise.
38343         * tests/test-freading.c (fseek): Likewise.
38344         * tests/test-fseeko.c (fseek): Likewise.
38345         * tests/test-ftell.c (fseek): Likewise.
38346         * tests/test-ftello.c (fseek): Likewise.
38347         * tests/test-fwritable.c (fseek): Likewise.
38348         * tests/test-fwriting.c (fseek): Likewise.
38349
38350 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38351
38352         * modules/memchr (Depends-on): Drop getpagesize dependency.
38353
38354 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38355
38356         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38357         Reported by Ludovic Courtès.
38358         * build-aux/pmccabe2html: Improve example usage.
38359         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38360
38361 2009-11-06  Jim Meyering  <meyering@redhat.com>
38362
38363         do-release-commit-and-tag: New module.
38364         Automate the release-commit and tag process.
38365         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38366         * modules/do-release-commit-and-tag: New file.
38367         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38368
38369 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38370
38371         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38372         because test-select.c uses inet_pton.
38373
38374 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38375
38376         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38377         GETADDRINFO_LIB.  Bump serial number.
38378         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38379         Suggested by Eric Blake <ebb9@byu.net>.
38380
38381 2009-11-05  Eric Blake  <ebb9@byu.net>
38382
38383         strtod: detect darwin bug
38384         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38385         Reported by Leo Davis.
38386
38387         freopen-safer: new module
38388         * modules/freopen-safer: New module.
38389         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38390         * lib/freopen-safer.c (freopen_safer): New file.
38391         * lib/stdio-safer.h (freopen_safer): New declaration.
38392         * lib/stdio--.h (freopen): New override.
38393         * MODULES.html.sh (File stream based Input/Output): Mention it.
38394         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38395         freopen-safer module.
38396         * doc/posix-functions/stderr.texi (stderr): Likewise.
38397         * doc/posix-functions/stdin.texi (stdin): Likewise.
38398         * doc/posix-functions/stdout.texi (stdout): Likewise.
38399         * modules/freopen-safer-tests: New test.
38400         * tests/test-reopen-safer.c: New file.
38401
38402 2009-11-05  Jim Meyering  <meyering@redhat.com>
38403
38404         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38405         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38406
38407 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38408
38409         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38410
38411 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38412
38413         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38414
38415 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38416
38417         Fix link error.
38418         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38419         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38420
38421 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38422
38423         * tests/test-func.c: Also test value of __func__.
38424
38425 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38426
38427         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38428         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38429
38430 2009-11-05  Bruno Haible  <bruno@clisp.org>
38431
38432         Fix link error.
38433         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38434         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38435         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38436
38437 2009-11-05  Bruno Haible  <bruno@clisp.org>
38438
38439         Tests for module 'inet_pton'.
38440         * modules/inet_pton-tests: New file.
38441         * tests/test-inet_pton.c: New file.
38442
38443 2009-11-05  Bruno Haible  <bruno@clisp.org>
38444
38445         Tests for module 'inet_ntop'.
38446         * modules/inet_ntop-tests: New file.
38447         * tests/test-inet_ntop.c: New file.
38448
38449 2009-11-04  Eric Blake  <ebb9@byu.net>
38450
38451         stdlib-safer: wrap all mkstemp variants
38452         * modules/mkostemp (configure.ac): Set witness.
38453         * modules/mkostemps (configure.ac): Likewise.
38454         * modules/mkstemps (configure.ac): Likewise.
38455         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38456         (mkstemps_safer): Wrap more functions.
38457         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38458         wrapping.
38459         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38460         (mkstemps_safer): Implement the wrappers.
38461
38462         mkstemps, mkostemps: new modules
38463         * modules/mkostemps: New module.
38464         * modules/mkstemps: Likewise.
38465         * lib/mkostemps.c (mkostemps): New file.
38466         * lib/mkstemps.c (mkstemps): Likewise.
38467         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38468         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38469         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38470         * modules/stdlib (Makefile.am): Substitute them.
38471         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38472         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38473         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38474         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38475         * MODULES.html.sh (File system functions): Mention them.
38476
38477         tempname: resync from glibc
38478         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38479         same values for __GT_FILE as glibc.  Abort even when assertions
38480         are disabled.
38481         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38482         match its value otherwise.  Allow idempotent inclusion.
38483         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38484         * lib/mkostemp.c (mkostemp): Likewise.
38485         * lib/mkstemp.c (mkstemp): Likewise.
38486         * lib/tmpfile.c (tmpfile): Likewise.
38487         * NEWS: Document this.
38488
38489         utimens: fix use of futimens on older Linux
38490         * lib/utimens.c (fdutimens): Use updated, rather than original,
38491         timespec to avoid bug in older Linux kernel.
38492         Reported by Simon Josefsson.
38493
38494 2009-11-04  Bruno Haible  <bruno@clisp.org>
38495
38496         Make num_processors more flexible and consistent.
38497         * lib/nproc.h (enum nproc_query): New type.
38498         (num_processors): Add a 'query' argument.
38499         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38500         (num_processors): Add a 'query' argument. Test the value of the
38501         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38502         mingw, count the number of CPUs available for the current process.
38503         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38504         Check for sched_getaffinity and sched_getaffinity_np.
38505         * modules/nproc (Depends-on): Add c-ctype, extensions.
38506         * NEWS: Mention the change.
38507
38508 2009-11-03  Bruno Haible  <bruno@clisp.org>
38509
38510         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38511
38512 2009-11-03  Jim Meyering  <meyering@redhat.com>
38513
38514         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38515         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38516         if it is defined.
38517
38518 2009-11-02  Eric Blake  <ebb9@byu.net>
38519
38520         mktime, timegm: share common declaration
38521         * lib/mktime-internal.h: New file.
38522         * lib/mktime.c: Use it rather than open-coding a declaration.
38523         * lib/timegm.c: Likewise.
38524         * modules/mktime (Files): Ship it.
38525         * modules/timegm (Files): Likewise.
38526         Suggested by Bruno Haible.
38527
38528         test-update-copyright: update test to match script changes
38529         * tests/test-update-copyright.sh: Avoid hard-coding perl
38530         location.  Don't update *.bak created by earlier runs.
38531
38532 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38533             Simon Josefsson  <simon@josefsson.org>
38534             Bruno Haible  <bruno@clisp.org>
38535
38536         Fix link error on Solaris 8.
38537         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38538         also in libnsl. Define also INET_PTON_LIB.
38539         * modules/inet_pton (Link): New section.
38540
38541 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38542             Bruno Haible  <bruno@clisp.org>
38543
38544         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38545         * modules/inet_ntop (Link): New section.
38546         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38547
38548 2009-11-02  Eric Blake  <ebb9@byu.net>
38549
38550         maint: avoid compiler warnings in m4 macros
38551         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38552         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38553
38554 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38555
38556         * m4/pmccabe2html.m4: Remove file.
38557         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38558         function.  Change maintainer.
38559         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38560         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38561         Courtès).
38562
38563 2009-10-31  Eric Blake  <ebb9@byu.net>
38564
38565         fseeko: fix m4 regression
38566         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38567         regression from 2009-10-27.
38568         Reported by Ralf Wildenhues.
38569
38570 2009-10-31  Jim Meyering  <meyering@redhat.com>
38571
38572         inttostr: aesthetics and improved (compile-time) safety
38573         Define inttype_is_signed rather than inttype_is_unsigned,
38574         since the sole use is via "#if inttype_is_signed".
38575         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38576         inttype_is_unsigned.
38577         * lib/offtostr.c (inttype_is_signed): Likewise.
38578         * lib/uinttostr.c (inttype_is_signed): Likewise.
38579         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38580         * lib/inttostr.c (inttostr): Use verify to cross-check the
38581         inttype_is_signed value and the signedness of the actual type.
38582         * modules/inttostr (Depends-on): Add verify.
38583
38584 2009-10-30  Eric Blake  <ebb9@byu.net>
38585
38586         build: avoid compiler warnings
38587         * lib/fchmodat.c (lchmod): Mark unused variables.
38588         * lib/getopt.c (_getopt_initialize): Likewise.
38589         * lib/mktime.c (__mktime_internal): Provide prototype.
38590         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38591         older gcc that do not understand #pragma GCC diagnostic.
38592         * lib/uinttostr.c (inttype_is_unsigned): Define.
38593         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38594
38595 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38596
38597         stat: fix compilation on AIX
38598         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38599         only see struct stat64.
38600
38601 2009-10-30  Eric Blake  <ebb9@byu.net>
38602
38603         exclude: make more robust
38604         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38605         rather than masking a coding bug.
38606         Suggested by Bruno Haible.
38607
38608 2009-10-30  Jim Meyering  <meyering@redhat.com>
38609
38610         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38611         Rather than putting #!/usr/bin/perl on the first line,
38612         start with a variant of what's recommended by "man perlrun" that
38613         invokes the first "perl" program from your shell's search path.
38614         * build-aux/gitlog-to-changelog: Replace #!... as above.
38615         Add a "Local Variables" perl mode setting.
38616         Prompted by a patch from Ludovic Courtès.
38617         Improved by Eric Blake.
38618         * build-aux/useless-if-before-free: Likewise.
38619         * build-aux/announce-gen: Likewise.
38620         * build-aux/update-copyright: Likewise.
38621
38622 2009-10-29  Eric Blake  <ebb9@byu.net>
38623
38624         filenamecat-lgpl: adjust clients
38625         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38626         filenamecat.
38627         * modules/renameat (Depends-on): Likewise.
38628
38629         filenamecat: split into filenamecat-lgpl
38630         * modules/filenamecat-lgpl: New module.
38631         * modules/filenamecat (Files): Move library-safe files into
38632         filenamecat-lgpl.
38633         (Depends-on): Add filenamecat-lgpl.
38634         (configure.ac): Declare witness.
38635         * lib/filenamecat.h (file_name_concat): Only declare when using
38636         GPL module.
38637         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38638         Move...
38639         * lib/filenamecat-lgpl.c: ...into new file.
38640         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38641         (gl_FILE_NAME_CONCAT): Use it.
38642         * MODULES.html.sh (File system functions): Mention new module.
38643
38644         argp: avoid memory leak
38645         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38646         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38647         base_name, since the latter malloc()s and can call exit().
38648         Leak introduced 2006-07-03.
38649
38650         dirname-lgpl: adjust clients that don't need full dirname
38651         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38652         * modules/filenamecat (Depends-on): Likewise.
38653         * modules/linkat (Depends-on): Likewise.
38654         * modules/mkancesdirs (Depends-on): Likewise.
38655         * modules/mkdir (Depends-on): Likewise.
38656         * modules/openat (Depends-on): Likewise.
38657         * modules/savewd (Depends-on): Likewise.
38658         * modules/rename (Depends-on): Likewise.
38659         (License): Relax license.
38660         * modules/mkdir-tests (Depends-on): Drop progname.
38661         (Makefile.am): Delete unneeded LDADD.
38662         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38663
38664         dirname: split into dirname-lgpl
38665         * modules/dirname-lgpl: New module.
38666         * modules/dirname (Files): Move library-safe files into
38667         dirname-lgpl.
38668         (Depends-on): Add dirname-lgpl.
38669         (configure.ac): Declare witness.
38670         * modules/double-slash-root (License): Relax license.
38671         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38672         module.
38673         * lib/dirname.c (dir_len, mdir_name): Move...
38674         * lib/dirname-lgpl.c: ...into new file.
38675         * lib/basename.c (last_component, base_len): Move...
38676         * lib/basename-lgpl.c: ...into new file.
38677         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38678         (gl_DIRNAME): Use it.
38679         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38680         Mention new module.
38681         * modules/dirname-tests (Depends-on): Add progname.
38682         * tests/test-dirname.c (program_name): Delete.
38683
38684         mkdir: make safe for libraries
38685         * modules/mkdir (Depends-on): Drop xalloc.
38686         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38687         exit.
38688
38689         tests: avoid some compiler warnings
38690         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38691         literals.
38692         * tests/test-memchr.c (main): Avoid type mismatch.
38693         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38694         * tests/test-base64.c (main): Likewise.
38695         * tests/test-getdelim.c (main): Likewise.
38696         * tests/test-gethostname.c (main): Likewise.
38697         * tests/test-getline.c (main): Likewise.
38698         * tests/test-netinet_in.c (main): Likewise.
38699         * tests/test-select.c (open_server_socket, main): Likewise.
38700         * tests/test-select-stdin.c (main): Likewise.
38701         * tests/test-sockets.c (main): Likewise.
38702         * tests/test-strsignal.c (main): Likewise.
38703         * tests/test-sys_select.c (main): Likewise.
38704         * tests/test-sys_socket.c (main): Likewise.
38705         * tests/test-u64.c (main): Likewise.
38706         * tests/test-xfprintf-posix.c (main): Likewise.
38707         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38708
38709         sockets: avoid compiler warning
38710         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38711
38712         maint: detect usage(1) and other suspicious exits
38713         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38714
38715 2009-10-29  Jim Meyering  <meyering@redhat.com>
38716
38717         timespec: long-to-int truncation could make timespec_cmp malfunction
38718         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38719         a multiple of 2^32 nanoseconds as no difference.
38720
38721 2009-10-28  Jim Meyering  <meyering@redhat.com>
38722
38723         fprintftime: wrap macro code argument in "do {...} while(0)"
38724         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38725         cpy macro must be a statement that can be followed by a semicolon.
38726         Now that the else clause contains a comment and is hence longer
38727         than one line, I require curly braces.  That in turn requires
38728         that we wrap this code block in the standard do...while(0).
38729
38730         fprintftime: remove stray semicolon from previous change
38731         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38732
38733         fprintftime: avoid a warning about ignored fwrite return value
38734         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38735         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38736         that is unsafe.
38737         * modules/fprintftime (Depends-on): Add ignore-value.
38738
38739         exclude: avoid an unwarranted warning
38740         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38741
38742 2009-10-27  Eric Blake  <ebb9@byu.net>
38743
38744         fseek: avoid compilation failure when fflush is replaced
38745         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38746         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38747         module is in use.
38748         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38749         module is not in use; since REPLACE_FSEEK worked otherwise.
38750         (GNULIB_FTELLO): Likewise for ftell.
38751         Reported by Ian Beckwith and others.
38752
38753 2009-10-27  Bruno Haible  <bruno@clisp.org>
38754
38755         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38756         Reported by Jim Meyering.
38757
38758 2009-10-27  Jim Meyering  <jim@meyering.net>
38759             Bruno Haible  <bruno@clisp.org>
38760
38761         Avoid warning despite dropping the return value of fwrite.
38762         * lib/unicodeio.c: Include ignore-value.h.
38763         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38764         * modules/unicodeio (Depends-on): Add ignore-value.
38765
38766 2009-10-26  Eric Blake  <ebb9@byu.net>
38767
38768         areadlinkat: fix fallback path
38769         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38770         pointer and zero.
38771
38772 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38773
38774         Use a better IO block size for modern systems
38775         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38776         * lib/md2.c: Likewise.
38777         * lib/md4.c: Likewise.
38778         * lib/md5.c: Likewise.
38779         * lib/sha1.c: Likewise.
38780         * lib/sha256.c: Likewise.
38781         * lib/sha512.c: Likewise.
38782
38783 2009-10-22  Eric Blake  <ebb9@byu.net>
38784
38785         tests: avoid several compiler warnings
38786         * tests/test-getcwd.c (main): Avoid buffer underflow.
38787         * tests/test-getdate.c (main): String literals are not safe with
38788         putenv, so use setenv.  Declare unused argument.
38789         * modules/getdate-tests (Depends-on): Add setenv.
38790         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38791         problems with string literals in char *.
38792         * tests/test-hash.c (main): Avoid shadowing declaration.
38793         (insert_new): Treat string literals as char const *.
38794         * tests/test-getopt.h (test_getopt): Likewise.
38795         (getopt_loop): Alter types to minimize casting elsewhere.
38796         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38797         (test_getopt_long_posix): Likewise.
38798         (do_getopt_long): Add wrapper to minimize casting.
38799         * tests/test-atexit.c (clear_temp_file): Use void.
38800         * tests/test-areadlink-with-size.c (main): Declare unused
38801         arguments.
38802         * tests/test-areadlink.c (main): Likewise.
38803         * tests/test-areadlinkat-with-size.c (main): Likewise.
38804         * tests/test-areadlinkat.c (main): Likewise.
38805         * tests/test-canonicalize-lgpl.c (main): Likewise.
38806         * tests/test-canonicalize.c (main): Likewise.
38807         * tests/test-dirent-safer.c (main): Likewise.
38808         * tests/test-dirname.c (main): Likewise.
38809         * tests/test-dup2.c (main): Likewise.
38810         * tests/test-fchdir.c (main): Likewise.
38811         * tests/test-fcntl-h.c (main): Likewise.
38812         * tests/test-fcntl-safer.c (main): Likewise.
38813         * tests/test-fdopendir.c (main): Likewise.
38814         * tests/test-fdutimensat.c (main): Likewise.
38815         * tests/test-fflush.c (main): Likewise.
38816         * tests/test-filenamecat.c (main): Likewise.
38817         * tests/test-filevercmp.c (main): Likewise.
38818         * tests/test-fopen-safer.c (main): Likewise.
38819         * tests/test-fopen.c (main): Likewise.
38820         * tests/test-fpending.c (main): Likewise.
38821         * tests/test-fpurge.c (main): Likewise.
38822         * tests/test-freading.c (main): Likewise.
38823         * tests/test-fstatat.c (main): Likewise.
38824         * tests/test-fsync.c (main): Likewise.
38825         * tests/test-futimens.c (main): Likewise.
38826         * tests/test-getndelim2.c (main): Likewise.
38827         * tests/test-gettimeofday.c (main): Likewise.
38828         * tests/test-getopt.c (main): Likewise.
38829         * tests/test-i-ring.c (main): Likewise.
38830         * tests/test-inttypes.c (main): Likewise.
38831         * tests/test-link.c (main): Likewise.
38832         * tests/test-lstat.c (main): Likewise.
38833         * tests/test-math.c (main): Likewise.
38834         * tests/test-md5.c (main): Likewise.
38835         * tests/test-memchr2.c (main): Likewise.
38836         * tests/test-memrchr.c (main): Likewise.
38837         * tests/test-mkdir.c (main): Likewise.
38838         * tests/test-mkdirat.c (main): Likewise.
38839         * tests/test-mkfifoat.c (main): Likewise.
38840         * tests/test-open.c (main): Likewise.
38841         * tests/test-openat-safer.c (main): Likewise.
38842         * tests/test-openat.c (main): Likewise.
38843         * tests/test-quotearg.c (main): Likewise.
38844         * tests/test-rawmemchr.c (main): Likewise.
38845         * tests/test-readlink.c (main): Likewise.
38846         * tests/test-remove.c (main): Likewise.
38847         * tests/test-rename.c (main): Likewise.
38848         * tests/test-renameat.c (main): Likewise.
38849         * tests/test-rmdir.c (main): Likewise.
38850         * tests/test-sha1.c (main): Likewise.
38851         * tests/test-signal.c (main): Likewise.
38852         * tests/test-sigaction.c (main): Likewise.
38853         * tests/test-stat.c (main): Likewise.
38854         * tests/test-stat-time.c (main): Likewise.
38855         * tests/test-stddef.c (main): Likewise.
38856         * tests/test-stdint.c (main): Likewise.
38857         * tests/test-stdio.c (main): Likewise.
38858         * tests/test-stdlib.c (main): Likewise.
38859         * tests/test-strchrnul.c (main): Likewise.
38860         * tests/test-strerror.c (main): Likewise.
38861         * tests/test-string.c (main): Likewise.
38862         * tests/test-strtod.c (main): Likewise.
38863         * tests/test-strverscmp.c (main): Likewise.
38864         * tests/test-symlink.c (main): Likewise.
38865         * tests/test-symlinkat.c (main): Likewise.
38866         * tests/test-sys_stat.c (main): Likewise.
38867         * tests/test-sys_time.c (main): Likewise.
38868         * tests/test-time.c (main): Likewise.
38869         * tests/test-unistd.c (main): Likewise.
38870         * tests/test-unlink.c (main): Likewise.
38871         * tests/test-unlinkat.c (main): Likewise.
38872         * tests/test-utimens.c (main): Likewise.
38873         * tests/test-utimensat.c (main): Likewise.
38874         * tests/test-version-etc.c (main): Likewise.
38875         * tests/test-wchar.c (main): Likewise.
38876         * tests/test-wctype.c (main): Likewise.
38877         * tests/test-xprintf-posix.c (main): Likewise.
38878         * tests/test-posixtm.c (main): Likewise.
38879         (STREQ): Delete unused macro.
38880         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38881         shadowed variables.
38882         * tests/test-memchr.c (main): Likewise.
38883
38884 2009-10-21  Eric Blake  <ebb9@byu.net>
38885
38886         areadlinkat: avoid failure on older glibc
38887         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38888         rather than mis-comparing 0 against FUNC_RESULT of char*.
38889
38890 2009-10-21  Bruno Haible  <bruno@clisp.org>
38891
38892         * modules/stpncpy (License): Relicense under LGPLv2+.
38893         Reported by David Lutterkort <lutter@redhat.com>.
38894
38895 2009-10-20  Eric Blake  <ebb9@byu.net>
38896
38897         utimensat: work around Solaris 9 bug
38898         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38899         has trailing slash bugs.
38900         * tests/test-lutimens.h (test_lutimens): Enhance test.
38901         * tests/test-utimens.h (test_utimens): Likewise.
38902         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38903         * doc/posix-functions/utimes.texi (utimes): Likewise.
38904         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38905         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38906         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38907         * doc/posix-functions/futimens.texi (futimens): Likewise.
38908
38909         fdutimensat: new module
38910         * modules/fdutimensat: New file.
38911         * lib/fdutimensat.c (fdutimensat): Likewise.
38912         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38913         * MODULES.html.sh (File system functions): Mention module.
38914         * modules/fdutimensat-tests: New test.
38915         * tests/test-fdutimensat.c: Likewise.
38916
38917         doc: regenerate INSTALL
38918         * doc/INSTALL: Reflect recent autoconf update.
38919         * doc/INSTALL.ISO: Likewise.
38920         * doc/INSTALL.UTF-8: Likewise.
38921
38922 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38923
38924         acl: warn if ACL support is not detected
38925         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38926
38927 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38928
38929         * lib/nproc.h: Add extern "C" block for C++.
38930
38931 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38932             Bruno Haible  <bruno@clisp.org>
38933
38934         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38935         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38936         * doc/posix-functions/isalpha.texi: Likewise.
38937         * doc/posix-functions/isblank.texi: Likewise.
38938         * doc/posix-functions/iscntrl.texi: Likewise.
38939         * doc/posix-functions/isdigit.texi: Likewise.
38940         * doc/posix-functions/isgraph.texi: Likewise.
38941         * doc/posix-functions/islower.texi: Likewise.
38942         * doc/posix-functions/isprint.texi: Likewise.
38943         * doc/posix-functions/ispunct.texi: Likewise.
38944         * doc/posix-functions/isspace.texi: Likewise.
38945         * doc/posix-functions/isupper.texi: Likewise.
38946         * doc/posix-functions/isxdigit.texi: Likewise.
38947
38948 2009-10-18  Bruno Haible  <bruno@clisp.org>
38949
38950         Tests for module 'isblank'.
38951         * modules/isblank-tests: New file.
38952         * tests/test-isblank.c: New file.
38953
38954         New module 'isblank'.
38955         * lib/isblank.c: New file.
38956         * m4/isblank.m4: New file.
38957         * modules/isblank: New file.
38958         * doc/posix-functions/isblank.texi: Mention the new module.
38959
38960 2009-10-18  Bruno Haible  <bruno@clisp.org>
38961
38962         New module 'ctype'.
38963         * lib/ctype.in.h: New file.
38964         * m4/ctype.m4: New file.
38965         * modules/ctype: New file.
38966         * doc/posix-headers/ctype.texi: Mention the new module.
38967
38968 2009-10-18  Jim Meyering  <meyering@redhat.com>
38969
38970         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38971         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38972         right after its initialization, rather than farther down.
38973         Keeping these in close proximity makes it easier to ensure
38974         that each such variable is initialized.  E.g.,
38975
38976             LIB_CLOCK_GETTIME=
38977             AC_SUBST([LIB_CLOCK_GETTIME])
38978
38979         This change also increments these serial numbers.
38980         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38981         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38983
38984 2009-10-18  Bruno Haible  <bruno@clisp.org>
38985
38986         Don't let environment variables perturb build.
38987         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38988         (gl_PREREQ_GETHRXTIME): ... not here.
38989
38990 2009-10-18  Bruno Haible  <bruno@clisp.org>
38991
38992         Avoid symlink attack in localcharset module.
38993         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38994         (O_NOFOLLOW): Define fallback.
38995         (get_charset_aliases): Don't open the file if it is a symbolic link.
38996         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38997         gl_FCNTL_H.
38998         (gl_FCNTL_H): Require it.
38999         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39000         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39001         Reported by Fergal Glynn <fglynn@veracode.com>.
39002
39003 2009-10-18  Bruno Haible  <bruno@clisp.org>
39004
39005         Implement nproc for mingw.
39006         * lib/nproc.c: Include <windows.h>
39007         (num_processors): On native Windows platforms, try GetSystemInfo.
39008
39009 2009-10-18  Bruno Haible  <bruno@clisp.org>
39010
39011         Implement nproc for IRIX.
39012         * lib/nproc.c: Include <sys/sysmp.h>.
39013         (num_processors): On IRIX systems, try sysmp.
39014         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39015
39016 2009-10-18  Bruno Haible  <bruno@clisp.org>
39017
39018         Implement nproc for HP-UX.
39019         * lib/nproc.c: Include <sys/pstat.h>
39020         (num_processors): On HP-UX systems, try pstat_getdynamic.
39021         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39022         pstat_getdynamic.
39023
39024 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39025             Bruno Haible  <bruno@clisp.org>
39026
39027         Implement nproc for NetBSD, OpenBSD.
39028         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39029         (ARRAY_SIZE): New macro.
39030         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39031         * m4/nproc.m4: New file.
39032         * modules/nproc (Files): Add m4/nproc.m4.
39033         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39034         (Makefile.am): Instead, augment lib_SOURCES.
39035
39036 2009-10-18  Bruno Haible  <bruno@clisp.org>
39037
39038         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39039         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39040         sys/param.h.
39041
39042 2009-10-16  Eric Blake  <ebb9@byu.net>
39043
39044         utimensat: new module
39045         * modules/utimensat: New file.
39046         * lib/utimensat.c (utimensat): Likewise.
39047         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39048         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39049         so we can work around Linux bugs.
39050         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39051         * modules/sys_stat (Makefile.am): Substitute them.
39052         * lib/sys_stat.in.h (utimensat): Declare it.
39053         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39054         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39055         * modules/utimensat-tests: New test.
39056         * tests/test-utimensat.c: Likewise.
39057
39058         utimens: let lutimens work on non-symlinks
39059         * lib/utimens.c (lutimens): Fall back to utimens rather than
39060         failing with ENOSYS, when file is not a symlink.
39061         (utimens): Reduce redirection.
39062         * tests/test-lutimens.h (test_lutimens): Update test to cover
39063         non-symlinks.
39064         * tests/test-utimens.h (test_utimens): Update test to cover
39065         symlinks.
39066         * tests/test-utimens.c (main): Update caller.
39067
39068         utimens: cache whether utimensat syscall works
39069         * lib/utimens.c (utimensat_works_really): New cache variable.
39070         (fdutimens, lutimens): Use it to avoid failing syscall.
39071
39072         test-stat-time, test-utimens: improve portability
39073         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39074         ext4 on alpha, and for cygwin.
39075         * tests/test-utimens-common.h: New file.
39076         (nap): Factor delays into single function.
39077         * tests/test-lutimens.h (test_lutimens): Use new header.
39078         * tests/test-futimens.h (test_futimens): Likewise.
39079         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39080         timestamps to occur from same machine, as was done previously for
39081         test_utimens.
39082         * modules/utimens-tests (Files): Ship new file.
39083         * modules/futimens-tests (Files): Likewise.
39084         Reported in part by Jim Meyering.
39085
39086         sys_stat: sort replacement declarations
39087         * lib/sys_stat.in.h: Sort declarations.
39088         * lib/futimens.c (futimens): Fix typo.
39089
39090 2009-10-15  Jim Meyering  <meyering@redhat.com>
39091
39092         don't let environment settings perturb build
39093         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39094         could cause a configure-time and/or build-time malfunction.
39095         Typically, a configure-time function-in-library test is performed
39096         via code like this:
39097
39098           LIB_VAR=
39099           AC_SUBST([LIB_VAR])
39100           prefix_saved_LIBS=$LIBS
39101             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39102                        [test "$ac_cv_search_FUNC" = "none required" ||
39103                         LIB_VAR=$ac_cv_search_FUNC])
39104           LIBS=$prefix_saved_LIBS
39105
39106         However, in each of the files affected by this change, the LIB_VAR=
39107         initialization was omitted.  Thus, when set in the environment, its
39108         value would propagate into generated Makefiles when FUNC is not found
39109         in LIB_NAME.
39110         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39111         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39112         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39113
39114 2009-10-14  Eric Blake  <ebb9@byu.net>
39115
39116         fchdir: avoid infinite recursion in mingw
39117         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39118         recursing.
39119
39120         test-stat-time: port to mingw
39121         * tests/test-stat-time.c (force_unlink): Return a value.
39122         (test_ctime) [W32]: Fix compilation error.
39123         (nap): Don't call usleep with too large an argument.  Use
39124         force_unlink.
39125         * doc/pastposix-functions/usleep.texi (usleep): Document the
39126         portability issue.
39127
39128 2009-10-13  Jim Meyering  <meyering@redhat.com>
39129
39130         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39131         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39132         * modules/pipe-filter-ii: Likewise.
39133         * modules/sys_socket-tests: Likewise.
39134         * modules/tsearch-tests: Likewise.
39135         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39136         (check): Depend on it.
39137
39138 2009-10-12  Eric Blake  <ebb9@byu.net>
39139
39140         utimens-tests: port to NFS file systems
39141         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39142         comparisons to avoid spurious failures from timestamp drift
39143         between NFS machines.
39144
39145 2009-10-12  Eric Blake  <ebb9@byu.net>
39146
39147         stat-time-tests: minor cleanups
39148         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39149         * tests/test-stat-time.c (nap): Separate assignment from call.
39150         Suggested by Paolo Bonzini and Bruno Haible.
39151
39152         sys_stat: guarantee struct timespec
39153         * lib/sys_stat.in.h (includes): Always include <time.h>
39154         * modules/sys_stat (Depends-on): Add time.
39155         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39156         mode_t permission values.
39157         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39158         get at subsecond timestamps.
39159
39160 2009-10-10  Eric Blake  <ebb9@byu.net>
39161
39162         futimens: new module
39163         * modules/futimens: New file.
39164         * lib/futimens.c (futimens): Likewise.
39165         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39166         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39167         we can work around Linux bugs.
39168         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39169         * modules/sys_stat (Makefile.am): Substitute them.
39170         * lib/sys_stat.in.h (futimens): Declare it.
39171         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39172         * doc/posix-functions/futimens.texi (futimens): Likewise.
39173         * modules/futimens-tests: New test.
39174         * tests/test-futimens.c: Likewise.
39175
39176         utimens: introduce fdutimens
39177         * lib/utimens.h (fdutimens): New prototype.
39178         * lib/utimens.c (gl_futimens): Move guts...
39179         (fdutimens): ...to new interface.
39180         * tests/test-utimens.c (do_fdutimens): Use it.
39181
39182         utimens: add UTIME_NOW and UTIME_OMIT support
39183         * lib/utimens.c (validate_timespec, update_timespec): New helper
39184         functions.
39185         (gl_futimens, lutimens): Use them.
39186         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39187         stdbool, sys_stat.
39188         (Link): Mention resulting library dependency.
39189         * modules/utimecmp (Link): Likewise.
39190         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39191         (Makefile.am): Pick up library dependency.
39192         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39193         definition.
39194         * tests/test-sys_stat.c: Test the definitions.
39195         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39196         * NEWS: Document library dependency.
39197
39198         utimecmp: support symlink timestamps
39199         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39200         hashing when possible.  Use pathconf when available.
39201         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39202         * modules/utimecmp (Depends-on): Add lstat.
39203
39204         utimens: add lutimens interface
39205         * lib/utimens.c (lutimens): New function.
39206         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39207         * lib/utimens.h (lutimens): Declare new interface.
39208         * tests/test-utimens.c (main): Enhance test.
39209         * tests/test-lutimens.h (test_lutimens): New file.
39210         * modules/utimens-tests (Files): Distribute it.
39211         (Depends-on): Add symlink.
39212         (configure.ac): Check for usleep.
39213
39214         utimens: validate futimens usage
39215         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39216         fewer syscalls on failure later on.  Avoid compiler warning on
39217         mingw.
39218         * modules/utimens (Depends-on): Add dup2.
39219
39220         utimens: add test
39221         * modules/utimens-tests: New test.
39222         * tests/test-utimens.h: New file.
39223         * tests/test-futimens.h: Likewise.
39224         * tests/test-utimens.c: Likewise.
39225
39226         doc: mention timestamp portability issues
39227         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39228         instead.
39229         * doc/posix-functions/utime.texi (utime): Likewise.
39230         * doc/posix-functions/utimes.texi (utimes): Likewise.
39231         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39232         instead.
39233         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39234         module.
39235         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39236         Mention weakness with symlink timestamps.
39237         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39238         to utimensat/futimens instead.
39239         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39240
39241         test-dup2: enhance test
39242         * tests/test-dup2.c (main): Also check AT_FDCWD.
39243
39244         test-stat-time: avoid more spurious failures
39245         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39246         xfs; and avoid race if the two timestamps cross quantization edge.
39247
39248         relocatable: prefer 'file system' over 'filesystem'
39249         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39250         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39251         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39252         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39253         * lib/relocatable.c (compute_curr_prefix): Likewise.
39254
39255 2009-10-10  Jim Meyering  <meyering@redhat.com>
39256
39257         stat-time-tests: check for the usleep function
39258         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39259
39260 2009-10-10  Bruno Haible  <bruno@clisp.org>
39261
39262         * modules/xnanosleep: Put the Link section after the Include section.
39263
39264 2009-10-09  Eric Blake  <ebb9@byu.net>
39265
39266         dup2: work around FreeBSD 6.1 bug
39267         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39268         * doc/posix-functions/dup2.texi (dup2): Document it.
39269         Reported by Nelson H. F. Beebe and Jim Meyering.
39270
39271         test-stat-time: port to buggy NFS clients
39272         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39273         (test_ctime): Also skip test if mtime and ctime are skewed.
39274
39275         maint: prefer 'file system' over 'filesystem'
39276         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39277         * doc/posix-functions/lstat.texi (lstat): Likewise.
39278         * lib/file-has-acl.c (file_has_acl): Likewise.
39279         * lib/fwriteerror.c [TEST]: Likewise.
39280         * tests/test-areadlink.h (test_areadlink): Likewise.
39281         * tests/test-areadlinkat-with-size.c (main): Likewise.
39282         * tests/test-areadlinkat.c (main): Likewise.
39283         * tests/test-canonicalize-lgpl.c (main): Likewise.
39284         * tests/test-canonicalize.c (main): Likewise.
39285         * tests/test-fstatat.c (main): Likewise.
39286         * tests/test-linkat.c (main): Likewise.
39287         * tests/test-lstat.h (test_lstat_func): Likewise.
39288         * tests/test-mkdir.h (test_mkdir): Likewise.
39289         * tests/test-readlink.h (test_readlink): Likewise.
39290         * tests/test-remove.c (main): Likewise.
39291         * tests/test-rename.h (test_rename): Likewise.
39292         * tests/test-renameat.c (main): Likewise.
39293         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39294         * tests/test-symlink.h (test_symlink): Likewise.
39295         * tests/test-symlinkat.c (main): Likewise.
39296         * tests/test-unlink.h (test_unlink_func): Likewise.
39297         * tests/test-unlinkat.c (main): Likewise.
39298
39299         maint: make realtime library usage explicit
39300         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39301         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39302         * modules/settime (Link): Likewise.
39303         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39304
39305         test-stat-time: speed up execution
39306         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39307         warning on mingw.
39308         (nap): New helper function.
39309         (prepare_test): Use it to reduce sleep time.
39310         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39311         execution.
39312         * modules/stat-time-tests (configure.ac): Check for usleep.
39313
39314 2009-10-09  Jim Meyering  <meyering@redhat.com>
39315
39316         selinux-h: always use getfilecon wrappers
39317         * lib/getfilecon.c: New file.
39318         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39319         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39320         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39321         (fgetfilecon): Provide a stub.
39322         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39323         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39324         file unconditionally.
39325         When <selinux/selinux.h> is found, arrange to use wrappers.
39326         * modules/selinux-h (Files): Add getfilecon.c.
39327         (Makefile.am): Substitute include-next-related bits
39328         into the now-always-generated selinux/selinux.h file.
39329         * doc/glibc-functions/lgetfilecon.texi: New file.
39330         * doc/glibc-functions/fgetfilecon.texi: New file.
39331         * doc/glibc-functions/getfilecon.texi: New file.
39332         * doc/glibc-functions/getfilecon-desc.texi: New file.
39333         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39334         which to pull in the new files.
39335         * MODULES.html.sh (Misc): Add selinux-h.
39336
39337 2009-10-08  Jim Meyering  <meyering@redhat.com>
39338
39339         unistd: fix comment typo
39340         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39341
39342 2009-10-08  Eric Blake  <ebb9@byu.net>
39343
39344         areadlink: use SIZE_MAX consistently
39345         * modules/areadlink (Depends-on): Add stdint.
39346         * modules/areadlink-with-size (Depends-on): Likewise.
39347         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39348         gives NULL; drop sys/types, since unistd gives size_t; and add
39349         stdint for SIZE_MAX.
39350         (SIZE_MAX): Rely on headers.
39351         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39352         and add stdint.
39353         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39354         (SIZE_MAX): Likewise.
39355         (INITIAL_BUF_SIZE): Turn into enum.
39356         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39357
39358 2009-10-08  Jim Meyering  <meyering@redhat.com>
39359
39360         areadlinkat: avoid compilation failure
39361         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39362         Fix typo in comment.
39363
39364 2009-10-07  Eric Blake  <ebb9@byu.net>
39365
39366         areadlinkat-with-size: new module
39367         * modules/areadlinkat-with-size: New module.
39368         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39369         * lib/areadlink.h (areadlinkat): Declare it.
39370         * MODULES.html.sh (File system functions): Mention it.
39371         * modules/areadlinkat-with-size-tests: New test.
39372         * tests/test-areadlinkat-with-size.c: New file.
39373
39374         xreadlinkat: new module
39375         * modules/xreadlinkat: New module.
39376         * lib/xreadlinkat.c (xreadlinkat): New file.
39377         * lib/xreadlink.h (xreadlinkat): Declare it.
39378         * MODULES.html.sh (File system functions): Mention it.
39379
39380         areadlinkat: new module
39381         * lib/at-func.c (FUNC_FAIL): New define.
39382         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39383         * modules/areadlinkat: New module.
39384         * lib/linkat.c (areadlinkat): Move...
39385         * lib/areadlinkat.c (areadlinkat): ...to new file.
39386         * lib/areadlink.h (areadlinkat): Declare it.
39387         * modules/linkat (Depends-on): Add areadlinkat.
39388         * MODULES.html.sh (File system functions): Mention it.
39389         * modules/areadlinkat-tests: New test.
39390         * tests/test-areadlinkat.c: New file.
39391
39392         areadlink, areadlink-with-size: add tests
39393         * modules/areadlink-tests: New test.
39394         * modules/areadlink-with-size-tests: Likewise.
39395         * tests/test-areadlink.h: New file.
39396         * tests/test-areadlink.c: Likewise.
39397         * tests/test-areadlink-with-size.c: Likewise.
39398
39399         maint: minor cleanups
39400         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39401         _UNUSED_PARAMETER_ instead.
39402         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39403         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39404         * modules/linkat-tests (Files): Distribute test-link.h.
39405
39406         openat, utimens: whitespace cleanup
39407         * lib/openat.c: Prefer space throughout, rather than mix of 8
39408         spaces vs. tabs.
39409         * lib/at-func.c: Likewise.
39410         * lib/utimens.c: Likewise.
39411
39412         openat: avoid using wrong fd
39413         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39414         working directory chooses same fd.
39415         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39416
39417         mkdir, mkdirat: fix cygwin 1.5.x bug
39418         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39419         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39420         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39421         bug.
39422         (gl_PREREQ_MKDIR): Delete unused macro.
39423         * modules/mkdir (Files): Track file rename.
39424         (configure.ac): Update macro name.
39425         * modules/openat (Depends-on): Add mkdir.
39426         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39427
39428         mkdir, mkdirat: add tests
39429         * modules/mkdir-tests: New test.
39430         * tests/test-mkdir.h: New file.
39431         * tests/test-mkdir.c: Likewise.
39432         * tests/test-mkdirat.c: Likewise.
39433         * modules/openat-tests (Files): Add new files.
39434         (Makefile.am): Run new test.
39435
39436 2009-10-06  Eric Blake  <ebb9@byu.net>
39437
39438         doc: tweak *at function documentation
39439         * doc/posix-functions/faccessat.texi (faccessat): Mention
39440         known issue with replacement.
39441         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39442         * doc/posix-functions/linkat.texi (linkat): Likewise.
39443         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39444         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39445         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39446         * doc/posix-functions/renameat.texi (renameat): Likewise.
39447         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39448
39449         openat: fix GNU/Hurd bug in unlinkat
39450         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39451         broken.
39452         * doc/posix-functions/unlink.texi (unlink): Document this.
39453         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39454
39455         fdopendir: fix GNU/Hurd bug
39456         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39457         allowing non-directory fds.
39458         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39459         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39460         * modules/dirent (Makefile.am): Substitute it.
39461         * lib/dirent.in.h (fdopendir): Declare replacement.
39462         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39463         * tests/test-fdopendir.c (main): Test something other than
39464         /dev/null, since on Hurd that behaves like a directory.
39465
39466         test-symlink: port to GNU/Hurd
39467         * tests/test-symlink.h (test_symlink): Relax expected errno.
39468
39469         doc: tweak more cygwin information
39470         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39471         now compatible with glibc.
39472         * doc/posix-functions/getopt.texi (getopt): Likewise.
39473
39474         getopt-gnu: add another test
39475         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39476         guarantee behavior relied on by m4.
39477         * tests/test-getopt.c (main): Use it.
39478         * modules/getopt-posix-tests (Depends-on): Add setenv.
39479         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39480
39481         getopt: fix compilation on darwin
39482         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39483         include.
39484         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39485         Reported by Ludovic Courtès.
39486
39487 2009-10-06  Bruno Haible  <bruno@clisp.org>
39488
39489         * modules/size_max (Description): Discourage its use.
39490         Reported by Simon Josefsson.
39491
39492 2009-10-06  Jim Meyering  <meyering@redhat.com>
39493
39494         linkat: avoid compilation failure
39495         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39496
39497 2009-10-05  Eric Blake  <ebb9@byu.net>
39498
39499         linkat: support Linux 2.6.17
39500         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39501         linkat on Linux, but allow cache variable override.
39502         * lib/linkat.c (rpl_linkat): Define override.
39503         * modules/linkat (Depends-on): Add symlinkat.
39504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39505         * modules/unistd (Makefile.am): Substitute it.
39506         * lib/unistd.in.h (linkat): Declare replacement.
39507         Reported by Pádraig Brady.
39508
39509         quotearg: port test to systems with C.UTF-8 locale
39510         * tests/test-quotearg.c (struct result_strings): Add another
39511         member, differentiating between C.ASCII and C.UTF-8 handling.
39512         (compare_strings): Add parameter.
39513         (main): Adjust all callers.
39514
39515         getopt: avoid clash with FreeBSD _getopt_internal
39516         * lib/getopt.in.h (_getopt_internal): Override the name.
39517         * lib/getopt_int.h (includes): Pick up any overrides.
39518         Reported by Reuben Thomas.
39519
39520         hash: allow C89 compilation
39521         * lib/hash.c (check_tuning): Move declaration before statement.
39522         Reported by Reuben Thomas.
39523
39524 2009-10-05  Karl Berry  <karl@gnu.org>
39525
39526         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39527
39528 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39529             Bruno Haible  <bruno@clisp.org>
39530
39531         * lib/uname.c (uname): Use a table-driven algorithm to compute
39532         Windows NT versions.
39533
39534 2009-10-04  Bruno Haible  <bruno@clisp.org>
39535
39536         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39537         program_invocation_short_name.
39538         * modules/progname (configure.ac): Test for presence of
39539         program_invocation_short_name.
39540         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39541
39542 2009-10-04  Bruno Haible  <bruno@clisp.org>
39543
39544         * lib/progname.c (set_program_name): Fix comment.
39545         Reported by Jim Meyering.
39546
39547 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39548             Bruno Haible  <bruno@clisp.org>
39549
39550         * lib/uname.c: Include <string.h>.
39551         (uname): Do only one call to GetVersionEx in the common case.
39552
39553 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39554             Bruno Haible  <bruno@clisp.org>
39555
39556         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39557         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39558         (uname): Add support for Windows CE and various non-x86 CPU types.
39559
39560 2009-10-03  Bruno Haible  <bruno@clisp.org>
39561
39562         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39563         invocation to tests/configure.ac.
39564         Reported by Ian Beckwith <ianb@erislabs.net>.
39565
39566 2009-10-02  Eric Blake  <ebb9@byu.net>
39567
39568         fchdir: avoid compiler warning
39569         * lib/fchdir.c (canonicalize_file_name)
39570         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39571
39572         test-open: support mingw errno values
39573         * tests/test-open.h (test_open): Relax test.
39574         * tests/test-fopen.h (test_fopen): Likewise.
39575         * tests/test-openat-safer.c (main): Likewise.
39576
39577         open: fix opening directory on mingw
39578         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39579
39580         test-open: on GNU/Hurd, /dev/null is a directory
39581         * tests/test-fopen.h (main): Rename...
39582         (test_fopen): ...to this.  Use a guaranteed non-directory when
39583         confirming open behavior on trailing slash.
39584         * tests/test-openat-safer.c (main): Likewise.
39585         * tests/test-open.h (main): Likewise....
39586         (test_open): ...to this.
39587         * tests/test-fopen.c (main): Adjust caller.
39588         * tests/test-fopen-safer.c (main): Likewise.
39589         * tests/test-open.c (main): Likewise.
39590         * tests/test-fcntl-safer.c (main): Likewise.
39591         Reported by Samuel Thibault.
39592
39593         rename, fchdir: don't ignore chdir failure
39594         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39595         * lib/rename.c (rpl_rename) [W32]: Likewise.
39596         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39597         an empty destination directory if source cannot be renamed,
39598         although there is still possibility for failure.
39599         * doc/posix-functions/rename.texi (rename): Document the race.
39600         Reported by Jim Meyering.
39601
39602         maint: cleanup whitespace in recent commits
39603         * lib/rename.c (rpl_rename): Remove tabs.
39604         * tests/test-link.h (test_link): Likewise.
39605         * lib/fchdir.c (get_name): Likewise.
39606         Reported by Jim Meyering.
39607
39608 2009-10-02  Ben Pfaff  <blp@gnu.org>
39609
39610         relocatable-prog-wrapper: Add missing dependency on
39611         double-slash-root.
39612         * modules/relocatable-prog-wrapper: Add dependency.
39613         Reported by Ian Beckwith <ianb@erislabs.net>.
39614
39615 2009-10-02  Eric Blake  <ebb9@byu.net>
39616
39617         renameat: fix Solaris bugs
39618         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39619         needed fixing.
39620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39621         * modules/stdio (Makefile.am): Substitute it.
39622         * lib/stdio.in.h (renameat): Declare replacement.
39623         * lib/renameat.c (rpl_renameat): Implement fix.
39624
39625         renameat: new module
39626         * modules/renameat: New file.
39627         * lib/renameat.c (renameat): Likewise.
39628         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39630         * modules/stdio (Makefile.am): Substitute them.
39631         * lib/stdio.in.h (renameat): Declare it.
39632         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39633         * doc/posix-functions/renameat.texi (renameat): Likewise.
39634         * modules/renameat-tests: New test.
39635         * tests/test-renameat.c: Likewise.
39636
39637         rename: fix mingw bugs
39638         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39639         directory overwrite bugs.
39640
39641         rename: fix another cygwin 1.5 bug
39642         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39643         checks.
39644         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39645         unnecessary cygwin workarounds.  Also work around bug with moving
39646         full directory onto an empty one.
39647         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39648
39649         rename-dest-slash: merge into rename module
39650         * modules/rename-dest-slash (Status): Mark obsolete.
39651         (Depends-on): Add rename.
39652         (Files): Let rename do it all.
39653         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39654         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39655         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39656         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39657         * lib/rename.c (rpl_rename): Update comments.
39658
39659         rename: fix cygwin 1.5.x bugs
39660         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39661         * lib/rename.c (rpl_rename): Work around them.
39662         * modules/rename (Depends-on): Add same-inode.
39663
39664         rename: fix Solaris 10 bug
39665         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39666         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39667         was the only bug.
39668
39669         rename: fix Solaris 9 bug
39670         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39671         on non-directory.  Avoid calling exit.
39672         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39673         strdup.
39674         * modules/rename-tests (Depends-on): Drop lstat.
39675         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39676         (gl_PREREQ_RENAME): Delete unused macro.
39677
39678         rename-dest-slash: fix NetBSD bug
39679         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39680         links.
39681         * modules/rename-dest-slash (Depends-on): Add same-inode.
39682
39683         rename-tests: new test, exposes several platform bugs
39684         * modules/rename-tests: New file.
39685         * tests/test-rename.h: Likewise.
39686         * tests/test-rename.c: Likewise.
39687         * doc/posix-functions/rename.texi (rename): Improve documentation,
39688         including bugs that will eventually be fixed in gnulib.
39689
39690 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39691
39692         * lib/uname.c: Include <stdlib.h>
39693         (uname): Assume version info is available.
39694
39695 2009-10-02  Jim Meyering  <meyering@redhat.com>
39696
39697         gnu-web-doc-update: correct --help output
39698         * build-aux/gnu-web-doc-update: Make --help output relevant.
39699
39700         gnu-web-doc-update: add standard options
39701         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39702
39703         gnu-web-doc-update: New module.
39704         Use this script to automatically update the on-line web documentation
39705         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39706         * modules/gnu-web-doc-update: New file, from coreutils.
39707         * build-aux/gnu-web-doc-update: New script.
39708
39709 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39710
39711         link: LoadLibrary is not needed.
39712         * lib/link.c: Use GetModuleHandle.
39713
39714 2009-10-01  Eric Blake  <ebb9@byu.net>
39715
39716         getopt: bump serial number
39717         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39718         change.
39719
39720         tests: tighten link, rmdir, and remove tests
39721         * tests/test-link.h (includes): No need to use <config.h> here.
39722         Clean up if directory hard link was created, otherwise test for
39723         trailing '.'.
39724         * tests/test-linkat.c (main): Simplify.
39725         * tests/test-remove.c (main): Enhance test for trailing '.'.
39726         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39727
39728 2009-10-01  Jim Meyering  <meyering@redhat.com>
39729
39730         maint.mk: requiring "make major" was annoying, for a "minor" release.
39731         What is intended is "stable", to contrast with alpha and beta,
39732         so require "make stable", not "make major".
39733         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39734         (get_tool_versions): Likewise.
39735         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39736
39737 2009-09-30  Ben Pfaff  <blp@gnu.org>
39738
39739         Fix broken build of replacement for Windows tmpfile().
39740         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39741         flags argument added along with the 'mkostemp' module.
39742
39743 2009-09-28  Bruno Haible  <bruno@clisp.org>
39744
39745         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39746         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39747         to 'remove_elt'.
39748         (gl_list_remove): Update.
39749         * lib/gl_list.c (gl_list_remove): Update.
39750         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39751         to 'remove_elt'.
39752         (gl_oset_remove): Update.
39753         * lib/gl_list.c (gl_oset_remove): Update.
39754         Reported by Eric Blake.
39755
39756 2009-09-28  Eric Blake  <ebb9@byu.net>
39757
39758         doc: mention yet more cygwin 1.7 status
39759         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39760         cygwin.
39761         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39762         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39763
39764         argp: fix test failure
39765         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39766         that are not upper-case.  Pass correct range to tolower.
39767
39768 2009-09-27  Jim Meyering  <meyering@redhat.com>
39769
39770         test-yesno: work around sparc-dash here-document infelicity
39771         Without this change, the literal \177 byte in a here document
39772         would make dash 0.5.5.1-3 access uninitialized memory.
39773         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39774         Instead, use a marker, "@", and filter through tr to create the desired
39775         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39776
39777 2009-09-27  Bruno Haible  <bruno@clisp.org>
39778
39779         Disable untested support for new flavours of ACLs on AIX.
39780         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39781         progress.
39782         * lib/set-mode-acl.c (qset_acl): Likewise.
39783
39784 2008-12-07  Bruno Haible  <bruno@clisp.org>
39785
39786         Add support for new flavours of ACLs on AIX. (Untested.)
39787         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39788         (file_has_acl): Add support for newer AIX.
39789         * lib/set-mode-acl.c (qset_acl): Likewise.
39790         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39791         Rainer Tammer <tammer@tammer.net>.
39792
39793 2009-09-26  Eric Blake  <ebb9@byu.net>
39794
39795         argp: fix compilation of getopt
39796         * lib/getopt.in.h (includes): Use different guard than glibc.
39797         Reported by Sergey Poznyakoff.
39798
39799         doc: mention more cygwin 1.7 status
39800         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39801         bug.
39802         * doc/posix-functions/execl.texi (execl): Likewise.
39803         * doc/posix-functions/execle.texi (execle): Likewise.
39804         * doc/posix-functions/execlp.texi (execlp): Likewise.
39805         * doc/posix-functions/execv.texi (execv): Likewise.
39806         * doc/posix-functions/execve.texi (execve): Likewise.
39807         * doc/posix-functions/execvp.texi (execvp): Likewise.
39808         * doc/glibc-functions/canonicalize_file_name.texi
39809         (canonicalize_file_name): Cygwin 1.7 now provides this.
39810         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39811         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39812         on AT_SYMLINK_NOFOLLOW.
39813
39814 2009-09-24  Eric Blake  <ebb9@byu.net>
39815
39816         test-linkat: make test more robust
39817         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39818
39819         getopt: fix inclusion guards for cygwin
39820         * modules/getopt-posix (Depends-on): Add include-next.
39821         (Makefile.am): Substitute more items in replacement header.
39822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39823         <getopt.h>.
39824         * lib/getopt.in.h (includes): Use split inclusion guard, and
39825         prefer <getopt.h> over include <unistd.h> when one is present.
39826         (option): Also override name of 'struct option'.
39827
39828         same-inode: revert prior change; it is not yet ready
39829         * NEWS: Undo mention of this change.
39830         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39831         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39832         * lib/cycle-check.c (cycle_check): Likewise.
39833         * lib/same.c (same_name): Likewise.
39834         * lib/at-func2.c (at_func2): Likewise.
39835
39836 2009-09-23  Eric Blake  <ebb9@byu.net>
39837
39838         linkat: new module
39839         * modules/linkat: New file.
39840         * lib/at-func2.c (at_func2): Likewise.
39841         * lib/linkat.c (linkat): Likewise.
39842         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39843         * lib/openat-priv.h (at_func2): Add declaration.
39844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39845         * modules/unistd (Makefile.am): Substitute them.
39846         * lib/unistd.in.h (linkat): Declare it.
39847         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39848         * doc/posix-functions/linkat.texi (linkat): Likewise.
39849         * doc/posix-functions/link.texi (link): Tweak wording.
39850         * tests/test-link.c (main): Move guts...
39851         * tests/test-link.h (test_link): ...into new file.
39852         * modules/linkat-tests: New test.
39853         * tests/test-linkat.c: Likewise.
39854         * modules/link-tests (Files): Ship new file.
39855         (Depends-on): Add stdbool.
39856
39857         dirname: add library-safe mdir_name
39858         * lib/dirname.h (mdir_name): New prototype.
39859         * lib/dirname.c (dir_name): Move guts...
39860         (mdir_name): ...to new function that avoids xalloc_die.
39861
39862         fchdir: another mingw fix
39863         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39864         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39865         on mingw (where it has not yet been ported), and make it optional
39866         elsewhere.
39867         (_gl_register_fd): Use it.
39868
39869         same-inode: make SAME_INODE tri-state, to port to mingw
39870         * NEWS: Mention this change.
39871         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39872         st_ino always being 0.
39873         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39874         * lib/cycle-check.c (cycle_check): Likewise.
39875         * lib/same.c (same_name): Likewise.
39876
39877         lstat: avoid mingw compilation error
39878         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39879         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39880         lstat ourselves.
39881         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39882         was adequate.
39883         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39884         the checks for lstat.
39885         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39886
39887         link: fix test failure on Solaris 9
39888         * lib/link.c (rpl_link): Don't assume link will catch bogus
39889         trailing slash on source.
39890
39891         test-symlinkat: enhance test
39892         * tests/test-readlink.c (main): Move guts...
39893         * tests/test-readlink.h (test_readlink): ...into new file.
39894         * tests/test-symlink.c (main): Move guts...
39895         * tests/test-symlink.h (test_symlink): ...into new file.
39896         * tests/test-symlinkat.c (main): Use new files for further
39897         coverage.
39898         (do_symlink, do_readlink): New helper functions.
39899         * modules/symlink-tests (Files): Ship new file.
39900         (Depends-on): Add stdbool.
39901         * modules/readlink-tests (Files): Ship new file.
39902         (Depends-on): Add stdbool.
39903         * modules/symlinkat-tests (Files): Use new files.
39904
39905 2009-09-23  Eric Blake  <ebb9@byu.net>
39906
39907         readlink: document portability issue with symlink length
39908         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39909         systems have bogus st_size on symlinks, and mention the
39910         areadlink-with-size module.
39911         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39912         * doc/posix-functions/readlink.texi (readlink): Mention the
39913         areadlink module, and ERANGE failure.
39914         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39915         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39916
39917         readlink: fix Solaris 9 bug with trailing slash
39918         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39919         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39920         * doc/posix-functions/readlink.texi (readlink): Document this.
39921         * modules/readlink-tests: New test.
39922         * tests/test-readlink.c: Likewise.
39923
39924         readlink: fix cygwin 1.5.x bug with return type
39925         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39926         * lib/unistd.in.h (readlink): Use ssize_t.
39927         * lib/readlink.c (readlink): Likewise.
39928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39929         * modules/unistd (Makefile.am): Substitute it.
39930         * lib/unistd.in.h (readlink): Declare replacement.
39931         * doc/posix-functions/readlink.texi (readlink): Document this.
39932
39933         symlink: use throughout gnulib
39934         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39935         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39936         symlink is not used.
39937         * modules/symlinkat (Depends-on): Add symlink.
39938         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39939         * modules/canonicalize-tests (Depends-on): Likewise.
39940         * modules/lstat-tests (Depends-on): Likewise.
39941         * modules/openat-tests (Depends-on): Likewise.
39942         * modules/remove-tests (Depends-on): Likewise.
39943         * modules/rmdir-tests (Depends-on): Likewise.
39944         * modules/unlink-tests (Depends-on): Likewise.
39945         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39946         * tests/test-canonicalize.c (symlink): Likewise.
39947         * tests/test-fstatat.c (symlink): Likewise.
39948         * tests/test-lstat.c (symlink): Likewise.
39949         * tests/test-remove.c (symlink): Likewise.
39950         * tests/test-rmdir.c (symlink): Likewise.
39951         * tests/test-unlink.c (symlink): Likewise.
39952         * tests/test-unlinkat.c (symlink): Likewise.
39953
39954         symlink: new module, for Solaris 9 bug
39955         * modules/symlink: New file.
39956         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39957         * lib/symlink.c: Likewise.
39958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39959         * modules/unistd (Makefile.am): Substitute them.
39960         * lib/unistd.in.h (symlink): Declare replacement.
39961         * MODULES.html.sh (File system functions): Mention it.
39962         * doc/posix-functions/symlink.texi (symlink): Likewise.
39963         * modules/symlink-tests: New test.
39964         * tests/test-symlink.c: Likewise.
39965
39966 2009-09-23  Bruno Haible  <bruno@clisp.org>
39967
39968         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39969         when needed.
39970         Test case: gnulib-tool --import --with-tests atexit inttypes.
39971         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39972
39973 2009-09-23  Bruno Haible  <bruno@clisp.org>
39974
39975         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39976         subcommand, not in a subshell.
39977
39978 2009-09-22  Eric Blake  <ebb9@byu.net>
39979
39980         unistd: sort replacement declarations
39981         * lib/unistd.in.h: Sort declarations.
39982
39983         open, openat: minor optimization
39984         * lib/open.c (open): If open succeeded, len is non-zero.
39985         * lib/openat.c (rpl_openat): Likewise.
39986
39987         link-follow: ensure correct result
39988         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39989         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39990         distinguish between possible failures.
39991
39992 2009-09-21  Eric Blake  <ebb9@byu.net>
39993
39994         fts: avoid compiler warning
39995         * lib/fts.c (dirent_inode_sort_may_be_useful)
39996         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39997
39998 2009-09-19  Bruno Haible  <bruno@clisp.org>
39999
40000         * lib/progreloc.c (canonicalize_file_name): New declaration.
40001
40002 2009-09-19  Eric Blake  <ebb9@byu.net>
40003
40004         link: fix quoting
40005         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40006
40007         openat: fix openat bugs on Solaris 9
40008         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40009         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40010         * modules/openat (Depends-on): Add open.
40011         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40012         * modules/fcntl-h (Makefile.am): Substitute it.
40013         * lib/fcntl.in.h (openat): Declare replacement.
40014         * doc/posix-functions/openat.texi (openat): Document this.
40015
40016         openat: move fstatat and unlinkat into correct files
40017         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40018         compiled.
40019         * lib/openat.c (fstatat, unlinkat): Move...
40020         * lib/fstatat.c (fstatat): ...into correct files.
40021         * lib/unlinkat.c (unlinkat): Likewise.
40022
40023         openat: fix unlinkat bugs on Solaris 9
40024         * lib/unlinkat.c (unlinkat): New file.
40025         * modules/openat (Depends-on): Add unlink.
40026         (Files): Distribute it.
40027         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40028         trailing slash behavior is broken.
40029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40030         * modules/unistd (Makefile.am): Substitute it.
40031         * lib/unistd.in.h (unlinkat): Declare replacement.
40032         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40033
40034         openat: fix fstatat bugs on Solaris 9
40035         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40036         stat.
40037         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40038
40039         test-unlinkat: enhance test, to expose Solaris 9 bug
40040         * tests/test-unlink.c (main): Factor guts...
40041         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40042         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40043         * tests/test-rmdir.c (main): Adjust caller.
40044         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40045         (unlinker): New helper function.
40046         (rmdirat): Enhance check.
40047         * modules/rmdir-tests (Depends-on): Add stdbool.
40048         * modules/unlink-tests (Depends-on): Likewise.
40049         (Files): Add test-unlink.h.
40050         * modules/openat-tests (Files): Likewise.
40051         (Depends-on): Add unlinkdir.
40052
40053         test-fstatat: new test, to expose Solaris 9 bugs
40054         * tests/test-stat.c (main): Factor guts...
40055         * tests/test-stat.h (test_stat_func): ...into new file.
40056         * tests/test-lstat.c (main): Factor guts...
40057         * tests/test-lstat.h (test_lstat_func): ...into new file.
40058         * tests/test-fstatat.c: New file.
40059         * modules/stat-tests (Files): Add test-stat.h.
40060         * modules/lstat-tests (Files): Add test-lstat.h.
40061         (Depends-on): Add stdbool.
40062         * modules/openat-tests (Depends-on): Add pathmax.
40063         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40064         (Makefile.am): Run new test.
40065
40066         remove: new module, for mingw and Solaris 9 bugs
40067         * modules/remove: New file.
40068         * lib/remove.c: Likewise.
40069         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40071         * modules/stdio (Makefile.am): Use them.
40072         * lib/stdio.in.h (remove): Declare replacement.
40073         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40074         * doc/posix-functions/remove.texi (remove): Likewise.
40075         * modules/remove-tests: New test.
40076         * tests/test-remove.c: Likewise.
40077
40078         unlink: new module, for Solaris 9 bug
40079         * modules/unlink: New file.
40080         * lib/unlink.c: Likewise.
40081         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40083         * modules/unistd (Makefile.am): Use them.
40084         * lib/unistd.in.h (stat): Declare replacement.
40085         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40086         * doc/posix-functions/unlink.texi (unlink): Likewise.
40087         * modules/unlink-tests: New test.
40088         * tests/test-unlink.c: Likewise.
40089
40090         lstat: fix Solaris 9 bug
40091         * lib/lstat.c (lstat): Also check for trailing slash on
40092         non-symlink, non-directories.  Use stat module to simplify logic.
40093         * doc/posix-functions/lstat.texi (lstat): Document it.
40094         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40095         (configure.ac): Check for symlink.
40096         * tests/test-lstat.c (main): Add more tests.
40097
40098         stat: add as dependency to other modules
40099         * modules/chown (Depends-on): Add stat.
40100         * modules/euidaccess (Depends-on): Likewise.
40101         * modules/fchdir (Depends-on): Likewise.
40102         * modules/isdir (Depends-on): Likewise.
40103         * modules/link (Depends-on): Likewise.
40104         * modules/lstat (Depends-on): Likewise.
40105         * modules/mkdir-p (Depends-on): Likewise.
40106         * modules/modechange (Depends-on): Likewise.
40107         * modules/open (Depends-on): Likewise.
40108         * modules/readlink (Depends-on): Likewise.
40109         * modules/same (Depends-on): Likewise.
40110
40111         stat: fix Solaris 9 bug
40112         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40113         slash.
40114         * lib/stat.c (rpl_stat): Work around it.
40115         * doc/posix-functions/stat.texi (stat): Update documentation.
40116
40117         stat: new module, for mingw bug
40118         * modules/stat: New file.
40119         * lib/stat.c: Likewise.
40120         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40121         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40122         * modules/sys_stat (Makefile.am): Use them.
40123         * lib/sys_stat.in.h (stat): Declare replacement.
40124         * lib/openat.c (fstatat): Deal with lstat and stat being function
40125         macros.
40126         * modules/openat (Depends-on): Add inline.
40127         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40128         * doc/posix-functions/stat.texi (stat): Likewise.
40129         * modules/stat-tests: New test.
40130         * tests/test-stat.c: Likewise.
40131
40132 2009-09-19  Jim Meyering  <meyering@redhat.com>
40133
40134         syntax-check: detect unnecessary inclusion of canonicalize.h
40135         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40136
40137 2009-09-19  Eric Blake  <ebb9@byu.net>
40138
40139         canonicalize-lgpl: adjust clients to use correct header
40140         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40141         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40142         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40143         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40144         * lib/progreloc.c (includes): Likewise.
40145
40146 2009-09-19  Jim Meyering  <meyering@redhat.com>
40147
40148         test-posixtm.c: correct a comment
40149         * tests/test-posixtm.c: Correct first-line comment.
40150         Spotted by Eric Blake.
40151
40152 2009-09-16  Jim Meyering  <meyering@redhat.com>
40153
40154         posixtm-tests: make T const-correct; add a test case
40155         * tests/test-posixtm.c (T): Declare const.
40156         Add a test for -(2^31+1).
40157         Remove useless can-succeed-only-in-2002 test.
40158
40159         posixtm-tests: adjust the sole failing test
40160         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40161         expected output matches what mktime now produces.  Cross-checked via
40162         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40163
40164         posixtm: move #ifdef'd tests into a new module
40165         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40166         * tests/test-posixtm.c: ... this new file.
40167         * modules/posixtm-tests: New module.
40168
40169 2009-09-19  Eric Blake  <ebb9@byu.net>
40170
40171         openat: simplify use of at-func.c
40172         * lib/at-func.c (includes): Include prerequisites here, to
40173         simplify requirements on client files.
40174         * lib/openat-priv.h: Add double-inclusion guard.
40175         * lib/faccessat.c (includes): Simplify.
40176         * lib/fchmodat.c (includes): Likewise.
40177         * lib/fchownat.c (includes): Likewise.
40178         * lib/mkdirat.c (includes): Likewise.
40179         * lib/mkfifoat.c (includes): Likewise.
40180         * lib/symlinkat.c (includes): Likewise.
40181
40182         openat: allow return of fd 0
40183         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40184         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40185         unistd-safer.
40186         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40187         <fcntl.h>; this module does not leak fds.
40188         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40189         must be allowed to return 0, leaving openat_safer to add the
40190         safety.
40191         (openat_permissive): Avoid writing to just-opened fd 2 if
40192         restoring the current directory fails.
40193         * lib/openat-die.c (openat_restore_fail): Add comment.
40194         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40195         (save_cwd): Guarantee safe fd, but without use of open_safer.
40196         * tests/test-openat.c: New test.
40197         * modules/openat-tests (Files, Makefile.am): Distribute and build
40198         new file.
40199
40200         relocatable-prog-wrapper: fix build
40201         * modules/relocatable-prog-wrapper (Files): Update name of
40202         canonicalize m4 file, broken on 2009-09-17.
40203         Reported by emad hajjar <aleppos@hotmail.com>.
40204
40205 2009-09-19  Bruno Haible  <bruno@clisp.org>
40206
40207         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40208         * lib/safe-alloc.c: Likewise.
40209         Reported by Ian Beckwith <ianb@erislabs.net>.
40210
40211 2009-09-18  Bruno Haible  <bruno@clisp.org>
40212
40213         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40214         Reported by <erobles@sensacd.com.mx>.
40215
40216 2009-09-17  Eric Blake  <ebb9@byu.net>
40217
40218         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40219         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40220         slashes when checking if last component is missing.
40221         * tests/test-canonicalize.c (main): Test this.
40222
40223         canonicalize, canonicalize-lgpl: honor // if distinct from /
40224         * modules/canonicalize (Files): Add double-slash-root.m4.
40225         * modules/canonicalize-lgpl (Files): Likewise.
40226         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40227         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40228         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40229         fallback definition.
40230         (canonicalize_filename_mode): Use it to protect //.
40231         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40232         (__realpath): Likewise.
40233         * tests/test-canonicalize.c (main): Test this.
40234         * tests/test-canonicalize-lgpl.c (main): Likewise.
40235         * modules/canonicalize-tests (Depends-on): Add same-inode.
40236         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40237
40238         canonicalize-lgpl: fix glibc bug with trailing slash
40239         * m4/canonicalize-lgpl.m4: Move contents...
40240         * m4/canonicalize.m4: ...here.
40241         (gl_CANONICALIZE_LGPL): Factor realpath check...
40242         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40243         glibc 2.3.5 bug, fixed 2005-04-27.
40244         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40245         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40246         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40247         * modules/canonicalize-lgpl (Files): Manage file rename.
40248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40249         * modules/stdlib (Makefile.am): Substitute witness.
40250         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40251         is needed.
40252         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40253         replacement is required.
40254         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40255         * doc/glibc-functions/canonicalize_file_name.texi
40256         (canonicalize_file_name): Document this.
40257         * doc/posix-functions/realpath.texi (realpath): Likewise.
40258
40259         canonicalize-lgpl: reject non-directory with trailing slash
40260         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40261         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40262         catches failures in glibc 2.3.5.
40263         * tests/test-canonicalize.c (main): Likewise.
40264
40265         canonicalize-lgpl: use native realpath if it works
40266         * lib/canonicalize-lgpl.c (realpath): Guard with
40267         FUNC_REALPATH_WORKS.
40268         * lib/stdlib.in.h (realpath): Make declaration optional based on
40269         HAVE_REALPATH.
40270         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40271         native realpath works.
40272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40273         * modules/stdlib (Makefile.am): Substitute witness.
40274
40275         canonicalize, canonicalize-lgpl: use <stdlib.h>
40276         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40277         (Include): Mention <stdlib.h>.
40278         (configure.ac): Mention functions we provide.
40279         * modules/canonicalize (configure.ac): Likewise.
40280         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40281         realpath if canonicalize_file_name is missing.
40282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40283         * modules/stdlib (Makefile.am): Substitute witnesses.
40284         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40285         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40286         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40287         * NEWS: Document this.
40288         * doc/glibc-functions/canonicalize_file_name.texi
40289         (canonicalize_file_name): Likewise.
40290         * doc/posix-functions/realpath.texi (realpath): Likewise.
40291         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40292
40293         test-canonicalize: consolidate into single C program
40294         * tests/test-canonicalize.sh: Delete; move setup into...
40295         * tests/test-canonicalize.c (main): ...the program, making it
40296         easier to run in debugger.  Add some tests.
40297         * modules/canonicalize-tests (Files): Remove unused file.
40298         (Depends-on): Add progname.
40299         (configure.ac, Makefile.am): Simplify.
40300
40301         test-canonicalize-lgpl: consolidate into single C program
40302         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40303         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40304         easier to run in debugger.  Add some tests.
40305         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40306         (configure.ac, Makefile.am): Simplify.
40307
40308         canonicalize: avoid resolvepath
40309         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40310         unnecessary checks.
40311         * lib/canonicalize.c (includes): Simplify.
40312         (canonicalize_file_name): Drop resolvepath implementation.
40313         * modules/canonicalize (Depends-on): Drop filenamecat.
40314
40315         canonicalize: don't lose errno
40316         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40317         over calls to free.
40318
40319         canonicalize: simplify errno handling
40320         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40321         assignment.
40322
40323         canonicalize, canonicalize-lgpl: update module dependencies
40324         * modules/canonicalize (Depends-on): Add extensions, lstat,
40325         pathmax, stdlib.
40326         (Files): Drop pathmax.h.
40327         (configure.ac): Adjust macro name.
40328         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40329         lstat, stdlib, sys_stat.
40330         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40331         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40332         extensions.
40333         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40334         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40335         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40336         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40337         declaration, if available.
40338         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40339         we can rely on the readlink module.
40340         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40341         (includes): Use <unistd.h> unconditionally.
40342
40343 2009-09-17  Eric Blake  <ebb9@byu.net>
40344
40345         maint: make Include sections of modules consistent
40346         * modules/alloca: Use only header name; no need to list #include.
40347         * modules/alloca-opt: Likewise.
40348         * modules/arpa_inet: Likewise.
40349         * modules/canon-host: Likewise.
40350         * modules/configmake: Likewise.
40351         * modules/dirent: Likewise.
40352         * modules/eealloc: Likewise.
40353         * modules/environ: Likewise.
40354         * modules/fchdir: Likewise.
40355         * modules/fcntl: Likewise.
40356         * modules/fcntl-h: Likewise.
40357         * modules/gethrxtime: Likewise.
40358         * modules/gettime: Likewise.
40359         * modules/ignore-value: Likewise.
40360         * modules/inet_ntop: Likewise.
40361         * modules/inet_pton: Likewise.
40362         * modules/inttypes: Likewise.
40363         * modules/isnand-nolibm: Likewise.
40364         * modules/isnanf-nolibm: Likewise.
40365         * modules/mbchar: Likewise.
40366         * modules/mbfile: Likewise.
40367         * modules/mbiter: Likewise.
40368         * modules/mbuiter: Likewise.
40369         * modules/netdb: Likewise.
40370         * modules/netinet_in: Likewise.
40371         * modules/nproc: Likewise.
40372         * modules/pagealign_alloc: Likewise.
40373         * modules/poll: Likewise.
40374         * modules/printf-frexp: Likewise.
40375         * modules/pthread: Likewise.
40376         * modules/putenv: Likewise.
40377         * modules/random_r: Likewise.
40378         * modules/relocatable-prog: Likewise.
40379         * modules/search: Likewise.
40380         * modules/select: Likewise.
40381         * modules/selinux-h: Likewise.
40382         * modules/settime: Likewise.
40383         * modules/signal: Likewise.
40384         * modules/size_max: Likewise.
40385         * modules/socklen: Likewise.
40386         * modules/ssize_t: Likewise.
40387         * modules/stdarg: Likewise.
40388         * modules/stdbool: Likewise.
40389         * modules/stddef: Likewise.
40390         * modules/stdint: Likewise.
40391         * modules/stdio: Likewise.
40392         * modules/stdlib: Likewise.
40393         * modules/string: Likewise.
40394         * modules/strings: Likewise.
40395         * modules/sys_file: Likewise.
40396         * modules/sys_ioctl: Likewise.
40397         * modules/sys_select: Likewise.
40398         * modules/sys_socket: Likewise.
40399         * modules/sys_stat: Likewise.
40400         * modules/sys_time: Likewise.
40401         * modules/sys_times: Likewise.
40402         * modules/sys_utsname: Likewise.
40403         * modules/sys_wait: Likewise.
40404         * modules/sysexits: Likewise.
40405         * modules/time: Likewise.
40406         * modules/times: Likewise.
40407         * modules/tmpfile: Likewise.
40408         * modules/trim: Likewise.
40409         * modules/unistd: Likewise.
40410         * modules/wchar: Likewise.
40411         * modules/wctype: Likewise.
40412
40413 2009-09-17  Bruno Haible  <bruno@clisp.org>
40414
40415         Make getdate.y compile on QNX and NetBSD 5 / i386.
40416         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40417         TIME_T_FITS_IN_LONG_INT.
40418         * lib/getdate.y (long_time_t): New type.
40419         (relative_time): Change type of 'seconds' field to long_time_t.
40420         (get_date): Update types of local variables. Check against overflow
40421         during conversion from long_time_t to time_t.
40422         Reported by Matt Kraai <kraai@ftbfs.org>
40423         and Hasso Tepper <hasso@netbsd.org>.
40424
40425 2009-09-17  Bruno Haible  <bruno@clisp.org>
40426
40427         * modules/COPYING: Update copyright years.
40428         * modules/README: Likeiwse.
40429         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40430         Reported by Ian Beckwith <ianb@erislabs.net>.
40431
40432 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40433
40434         * users.txt: Update references for gnuit package.
40435
40436 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40437
40438         * m4/getdelim.m4: Fix typo in copyright line.
40439
40440 2009-09-17  Bruno Haible  <bruno@clisp.org>
40441
40442         * lib/atoll.c: Use the standard header with GPL copyright.
40443         * lib/argz.in.h: Likewise.
40444         * lib/glob.c: Likewise.
40445         * lib/glob-libc.h: Likewise.
40446         * lib/random_r.c: Likewise.
40447         * lib/siglist.h: Likewise.
40448         * lib/strsignal.c: Likewise.
40449         Reported by Ian Beckwith <ianb@erislabs.net>.
40450
40451 2009-09-17  Eric Blake  <ebb9@byu.net>
40452
40453         rmdir: ensure correct dependency order
40454         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40455
40456 2009-09-17  Bruno Haible  <bruno@clisp.org>
40457
40458         Disable assertion that fails on NetBSD 5 / i386.
40459         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40460         Reported by Sam Steingold <sds@gnu.org>
40461         and Hasso Tepper <hasso@netbsd.org>.
40462
40463 2009-09-16  Eric Blake  <ebb9@byu.net>
40464
40465         unlinkdir: port to mingw
40466         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40467         on which no one can unlink a directory.
40468
40469         stdlib: sort witness names
40470         * modules/stdlib (Makefile.am): Sort replacements.
40471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40472         * lib/stdlib.in.h: Likewise.
40473
40474         parse-duration-tests: avoid link failure
40475         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40476         LIBINTL.
40477         Reported by Tom G. Christensen.
40478
40479         openat-tests: ensure unlinkat behaves like rmdir
40480         * tests/test-rmdir.c (main): Factor guts...
40481         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40482         * modules/rmdir-tests (Files): Ship new file.
40483         * modules/openat-tests: New test.
40484         * tests/test-unlinkat.c: Likewise.
40485
40486         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40487         * modules/rmdir-errno (Status, Notice): Now obsolete.
40488
40489         rmdir: work around cygwin 1.5.x and mingw bugs
40490         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40491         * lib/rmdir.c (rmdir): Work around it.
40492         * modules/rmdir (Status, Notice): No longer obsolete.
40493         (Files): Add dos.m4.
40494         (Depends-on): Add unistd.
40495         (configure.ac): Set witnesses.
40496         (License): Relax to LGPLv2+.
40497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40498         * modules/unistd (Makefile.am): Substitute witnesses.
40499         * lib/unistd.in.h (rmdir): Declare replacement.
40500         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40501         * modules/rmdir-tests: New tests.
40502         * tests/test-rmdir.c: Likewise.
40503
40504 2009-09-15  Eric Blake  <ebb9@byu.net>
40505
40506         fchdir: improve use of replacement functions
40507         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40508         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40509         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40510         REPLACE_CLOSEDIR.
40511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40512         * modules/sys_stat (Makefile.am): Substitute correct witness.
40513         * modules/dirent (Makefile.am): Likewise.
40514         * modules/unistd (Makefile.am): Likewise.
40515         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40516         * lib/unistd.in.h (dup): Likewise.
40517         * lib/sys_stat.in.h (fstat): Likewise.
40518
40519         maint: ignore gnulib-tool temp files
40520         * .gitignore: Ignore files created during gnulib-tool --test.
40521
40522 2009-09-13  Jim Meyering  <meyering@redhat.com>
40523
40524         posixtm: don't reject a time that specify "60" as the number of seconds
40525         * lib/posixtm.c (posixtime): The code to reject invalid dates
40526         would also reject a time specified with the .60 suffix.
40527         But POSIX allows that, in order to accommodate leap seconds.
40528         So don't reject it.
40529         (main): Adjust tests accordingly.
40530         * modules/posixtm (Depends-on): Add stpcpy.
40531
40532 2009-09-11  Jim Meyering  <meyering@redhat.com>
40533
40534         announce-gen: include [$release_type] in emitted Subject:
40535         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40536         e.g., [stable] in the emitted Subject: line.
40537
40538 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40539
40540         Remove obsolete macros from several modules.
40541         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40542         obsolete Autoconf macros with their modern counterparts.
40543         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40544         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40545         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40546         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40547         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40548         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40550         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40551         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40552         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40553         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40554         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40555         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40556         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40557         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40558         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40559         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40560         * m4/time_r.m4 (gl_TIME_R): Likewise.
40561         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40562         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40563         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40564
40565         Fix copyright header in build-aux scripts.
40566         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40567         recommendation.
40568         * build-aux/ncftpput-ftp: Likewise.
40569         * build-aux/update-copyright: Likewise.
40570
40571 2009-09-09  Eric Blake  <ebb9@byu.net>
40572
40573         test-link: allow Linux choice of errno
40574         * tests/test-link.c (main): Relax test for alternate error.
40575
40576         strndup: fix improper m4 caching
40577         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40578         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40579         (gl_PREREQ_STRNDUP): Delete.
40580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40581         * modules/string (Makefile.am): Substitute it.
40582         * lib/string.in.h (strndup): Modernize prototype.
40583
40584         getcwd: port to mingw
40585         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40586         different from the POSIX assumptions made throughout the getcwd
40587         module; fortunately, the mingw getcwd does not need replacement.
40588         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40589         * modules/getcwd-tests: New test.
40590         * tests/test-getcwd.c: Likewise.
40591
40592         link: fix platform bugs
40593         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40594         * lib/link.c (link): Work around them.  Fix related mingw bug.
40595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40596         * modules/unistd (Makefile.am): Substitute it.
40597         * lib/unistd.in.h (link): Declare replacement.
40598         * doc/posix-functions/link.texi (link): Document this.
40599         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40600
40601         test-link: consolidate into single C program, test more cases
40602         * tests/test-link.sh: Delete.
40603         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40604         at least Cygwin and Solaris.
40605         * modules/link-tests (Files): Remove unused file.
40606         (Depends-on): Add errno, sys_stat.
40607         (Makefile.am): Simplify.
40608
40609 2009-09-08  Bruno Haible  <bruno@clisp.org>
40610
40611         Work around towlower, towupper bug on mingw.
40612         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40613         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40614         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40615         * doc/posix-functions/towupper.texi: Likewise.
40616         Reported by Eric Blake.
40617
40618 2009-09-08  Jim Meyering  <meyering@redhat.com>
40619
40620         build: don't try to run autoheader if we don't use it
40621         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40622         is not used in configure.ac.
40623
40624 2009-09-08  Eric Blake  <ebb9@byu.net>
40625
40626         euidaccess: fix compilation error
40627         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40628
40629         rawmemchr: relax license
40630         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40631         okay.
40632         Reported by Jim Meyering.
40633
40634         mkfifoat: new module
40635         * modules/mkfifoat: New file.
40636         * lib/mkfifoat.c: Likewise.
40637         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40638         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40639         * modules/sys_stat (Makefile.am): Use them.
40640         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40641         * MODULES.html.sh (File system functions): Mention module.
40642         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40643         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40644         * modules/mkfifoat-tests: New test.
40645         * tests/test-mkfifoat.c: Likewise.
40646
40647         strchrnul: relax license
40648         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40649         okay.
40650         Reported by Jim Meyering.
40651
40652 2009-09-08  Eric Blake  <ebb9@byu.net>
40653
40654         fstatat: fix compilation on Solaris
40655         * lib/fstatat.c (includes): Add fcntl.h.
40656         Reported by Pádraig Brady.
40657
40658 2009-09-07  Eric Blake  <ebb9@byu.net>
40659
40660         rename: modernize replacement
40661         * modules/rename (Depends-on): Add stdio.
40662         (configure.ac): Declare witness.
40663         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40664         stdio take care of replacement.
40665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40666         * modules/stdio (Makefile.am): Substitute them.
40667         * lib/stdio.in.h (rename): Declare replacement.
40668         * lib/rename.c (includes): Allow cross-compilation to non-windows
40669         machines.
40670         * doc/posix-functions/rename.texi (rename): Improve
40671         documentation.
40672
40673         stdio: sort witness names
40674         * modules/stdio (Makefile.am): Sort replacements.
40675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40676         * lib/stdio.in.h: Likewise.
40677
40678         getcwd: minor cleanups
40679         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40680         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40681
40682         openat: provide more convenience names
40683         * modules/faccessat (configure.ac): Add C witness.
40684         * lib/unistd.in.h (readlinkat): Fix typo.
40685         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40686         convenience wrappers.
40687         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40688         wrappers in syntax checks.
40689
40690 2009-09-06  Eric Blake  <ebb9@byu.net>
40691
40692         doc: fix comments in recent patches
40693         * lib/faccessat.c: Mention correct function.
40694         * lib/fchmodat.c: Likewise.
40695         * lib/fchownat.c: Likewise.
40696         * lib/symlinkat.c: Likewise.
40697         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40698         constants.
40699
40700         faccessat, symlinkat: continue cleanup of previous patch
40701         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40702         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40703         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40705         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40706         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40707         set.
40708
40709 2009-09-06  Bruno Haible  <bruno@clisp.org>
40710
40711         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40712         (fstatat): Declare if GNULIB_FSTATAT is set.
40713         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40714         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40715         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40716         * modules/fcntl-h (Files): Remove m4/openat.m4.
40717         * modules/sys_stat (Files): Remove m4/openat.m4.
40718         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40719         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40720         * modules/unistd (Files): Remove m4/openat.m4.
40721         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40722         GNULIB_OPENAT.
40723         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40724         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40725         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40726         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40727         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40728         gl_OPENAT_DEFAULTS.
40729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40730         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40731         Don't require gl_OPENAT_DEFAULTS.
40732         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40733         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40734         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40735         (gl_OPENAT_DEFAULTS): Remove macro.
40736
40737 2009-09-06  Bruno Haible  <bruno@clisp.org>
40738
40739         * modules/openat (configure.ac): Remove unneeded witness.
40740
40741 2009-09-06  Bruno Haible  <bruno@clisp.org>
40742
40743         Set errno to ENOSYS when a function is entirely unsupported.
40744         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40745         EOPNOTSUPP.
40746         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40747         * modules/chown (Depends-on): Remove errno.
40748
40749 2009-09-06  Bruno Haible  <bruno@clisp.org>
40750
40751         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40752
40753 2009-09-06  Bruno Haible  <bruno@clisp.org>
40754
40755         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40756
40757 2009-09-06  Ben Pfaff  <blp@gnu.org>
40758             Bruno Haible  <bruno@clisp.org>
40759
40760         Work around a glibc bug in strtok_r.
40761         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40762         Undefine if UNDEFINE_STRTOK_R is set.
40763         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40765         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40766         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40767         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40768         UNDEFINE_STRTOK_R.
40769         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40770
40771 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40772
40773         exclude: minor fix
40774         * lib/exclude.c: Include wctype.h
40775
40776 2009-09-06  Akim Demaille  <demaille@gostai.com>
40777
40778         bootstrap: improve error message
40779         * build-aux/bootstrap (find_tool): Upon failure, report the list
40780         of candidates.
40781         Honor the initial value of the envvar.
40782
40783 2009-09-05  Eric Blake  <ebb9@byu.net>
40784
40785         symlinkat: new module
40786         * modules/symlinkat: New file.
40787         * lib/symlinkat.c: Likewise.
40788         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40790         * modules/unistd (Makefile.am): Use them.
40791         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40792         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40793         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40794         * MODULES.html.sh (File system functions): Mention module.
40795         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40796         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40797         * modules/symlinkat-tests: New test.
40798         * tests/test-symlinkat.c: Likewise.
40799
40800         test-openat-safer: add more checks
40801         * tests/test-openat-safer.c (main): Check more code paths.
40802
40803 2009-09-05  Jim Meyering  <meyering@redhat.com>
40804
40805         syntax-check: detect unnecessary inclusion of openat.h
40806         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40807
40808 2009-09-05  Bruno Haible  <bruno@clisp.org>
40809
40810         Support towlower, towupper.
40811         * doc/posix-functions/towlower.texi: Mention module wctype.
40812         * doc/posix-functions/towupper.texi: Likewise.
40813         * lib/wctype.in.h (towlower, towupper): New functions.
40814         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40815         (ASSERT): New macro.
40816         (e): New variable.
40817         (main): Test also towlower, towupper. Test WEOF argument.
40818         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40819
40820 2009-09-05  Bruno Haible  <bruno@clisp.org>
40821
40822         Fix conversion behaviour when the input is invalid.
40823         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40824         mark occurring in first pass of indirect conversion.
40825         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40826         input.
40827         Found by clang's static analyzer.
40828
40829 2009-09-05  Bruno Haible  <bruno@clisp.org>
40830
40831         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40832         where direct conversion is possible.
40833
40834 2009-09-04  Eric Blake  <ebb9@byu.net>
40835
40836         openat: fail with ENOENT on empty name
40837         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40838         buffer.
40839
40840         link-follow: fix logic bug in prior patch
40841         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40842         reversed sense of yes and no in prior patch.  Avoid confusing
40843         compilation failure with desired semantics.
40844
40845         link-follow: accomodate mingw and cross-compilation
40846         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40847         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40848         cross-compilation results to -1, to make linkat easier to
40849         implement when cross-compiling.  Trivially support mingw.
40850         * modules/link-follow (configure.ac): Call new name.
40851         * NEWS: Mention this.
40852
40853 2009-09-03  Eric Blake  <ebb9@byu.net>
40854
40855         faccessat: compile replacement
40856         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40857         needed.
40858
40859         fts: fix compilation error
40860         * lib/fts.c (includes): Re-add "openat.h", for
40861         openat_needs_fchdir.
40862
40863         faccessat: new module
40864         * modules/faccessat: New file.
40865         * lib/faccessat.c: Likewise.
40866         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40868         * modules/unistd (Makefile.am): Use it.
40869         * lib/unistd.in.h (faccessat): Declare it.
40870         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40871         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40872         * MODULES.html.sh (File system functions): Mention it.
40873         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40874         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40875
40876         euidaccess: prefer POSIX over non-standard implementation
40877         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40878         * lib/euidaccess.c (euidaccess): Use it if available.
40879
40880         openat: make template easier to use
40881         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40882         AT_FUNC_F2 to be undefined.
40883         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40884         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40885         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40886         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40887         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40888         Likewise.
40889         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40890         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40891         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40892         Likewise.
40893
40894         openat: declare in POSIX headers
40895         * NEWS: Mention this.
40896         * modules/openat (configure.ac): Declare witnesses.
40897         (Depends-on): Add fcntl-h, sys_stat, unistd.
40898         (Include): Mention correct headers.
40899         * modules/fcntl-h (Depends-on): Add link-warning.
40900         (Files): Add openat.m4.
40901         (Makefile.am): Substitute witnesses.
40902         * modules/sys_stat (Files, Makefile.am): Likewise.
40903         * modules/unistd (Files, Makefile.am): Likewise.
40904         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40905         (gl_OPENAT_DEFAULTS): New macro.
40906         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40908         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40909         (SYS_STAT_H): Remove unused variable.
40910         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40911         * lib/fcntl--.h (includes): Remove unneeded header.
40912         * lib/openat-safer.c (includes): Likewise.
40913         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40914         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40915         appropriate headers.
40916         (__OPENAT_PREFIX): Delete.
40917         * lib/fcntl.in.h (openat): Provide declaration.
40918         (AT_FDCWD): Fix Solaris bug.
40919         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40920         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40921         * lib/fchmodat.c (includes):  Adjust to find declaration.
40922         * lib/fchownat.c (includes): Likewise.
40923         * lib/mkdirat.c (includes): Likewise.
40924         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40925         still visible.
40926
40927 2009-09-02  Eric Blake  <ebb9@byu.net>
40928
40929         errno: use consistently
40930         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40931         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40932         * lib/canonicalize.c (ELOOP): Likewise.
40933         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40934         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40935         * lib/lchown.c (EOPNOTSUPP): Likewise.
40936         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40937         * lib/savewd.c (ESTALE): Likewise.
40938         * lib/settime.c (ENOSYS): Likewise.
40939         * lib/utimens.c (ENOSYS): Likewise.
40940         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40941         * lib/chdir-safer.c (ELOOP): Likewise.
40942         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40943         * modules/c-stack (Depends-on): Add errno.
40944         * modules/canonicalize (Depends-on): Likewise.
40945         * modules/chdir-safer (Depends-on): Likewise.
40946         * modules/fdopendir (Depends-on): Likewise.
40947         * modules/inet_ntop (Depends-on): Likewise.
40948         * modules/inet_pton (Depends-on): Likewise.
40949         * modules/lchown (Depends-on): Likewise.
40950         * modules/openat (Depends-on): Likewise.
40951         * modules/savewd (Depends-on): Likewise.
40952         * modules/settime (Depends-on): Likewise.
40953         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40954
40955         fts: avoid leaking fds
40956         * modules/fts (Depends-on): Add cloexec.
40957         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40958         flag.
40959
40960         fts: make directory fds more robust
40961         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40962         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40963
40964         backupfile, chdir-long, fts, savedir: make safer
40965         * lib/backupfile.c (includes): Use "dirent--.h", since
40966         numbered_backup can write to stderr during readdir.
40967         * lib/savedir.c (includes): Likewise.
40968         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40969         emulation can write to stderr on failure.
40970         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40971         * lib/getcwd.c: Document why opendir_safer is unused.
40972         * lib/glob.c: Likewise.
40973         * lib/scandir.c: Likewise.
40974         * lib/openat-proc.c: Likewise, for open_safer.
40975         * modules/backupfile (Depends-on): Add dirent-safer.
40976         * modules/savedir (Depends-on): Likewise.
40977         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40978         * modules/chdir-long (Depends-on): Add openat-safer.
40979
40980         openat-safer: new module
40981         * modules/openat-safer: New file.
40982         * lib/openat-safer.c: Likewise.
40983         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40984         * lib/fcntl-safer.h (openat_safer): Declare.
40985         * lib/fcntl--.h (openat): Override.
40986         * MODULES.html.sh (File descriptor based I/O): Mention it.
40987         * lib/openat.h: Add double-inclusion guards.
40988         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40989         "fcntl--.h", so we can implement openat.
40990         * modules/openat-safer-tests: New test.
40991         * tests/test-openat-safer.c: New file.
40992
40993         dirent-safer: new module
40994         * modules/dirent-safer: New file.
40995         * lib/dirent--.h: Likewise.
40996         * lib/dirent-safer.h: Likewise.
40997         * lib/opendir-safer.c: Likewise.
40998         * m4/dirent-safer.m4: Likewise.
40999         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41000         * modules/dirent-safer-tests: New test.
41001         * tests/test-dirent-safer.c: New file.
41002         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41003
41004         fdopendir: optimize on mingw
41005         * lib/unistd.in.h (_gl_directory_name): New prototype.
41006         * lib/fchdir.c (_gl_directory_name): Implement it.
41007         (fchdir): Use it to simplify implementation.
41008         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41009         fchdir, when available, to avoid calling [f]chdir().
41010
41011         fdopendir: split into its own module
41012         * lib/openat.c (fdopendir): Move...
41013         * lib/fdopendir.c: ...into new file.
41014         * modules/fdopendir: New module.
41015         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41016         * modules/openat (Depends-on): Add fdopendir.
41017         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41018         fdopendir here.
41019         * modules/savedir (Depends-on): Only need fdopendir, not full
41020         openat.
41021         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41022         * lib/openat.h (fdopendir): Drop prototype.
41023         * lib/dirent.in.h (fdopendir): Provide prototype.
41024         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41025         * modules/dirent (Makefile.am): Substitute them.
41026         * MODULES.html.sh (File system functions): Mention it.
41027         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41028         * modules/fdopendir-tests: New file.
41029         * tests/test-fdopendir.c: Likewise.
41030
41031         fchdir: use more consistent macro convention
41032         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41033         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41034         REPLACE_FCHDIR, rather than relying on config.h macros.
41035         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41036         inside a single make-time REPLACE_FCHDIR block, rather than using
41037         the config.h FCHDIR_REPLACEMENT.
41038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41039         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41040         Manage fstat replacement.
41041         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41042         REPLACE_FCHDIR.
41043         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41044         (Makefile.am): Substitute REPLACE_FCHDIR.
41045         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41046         FCHDIR_REPLACEMENT.
41047         * lib/dup-safer.c (dup_safer): Likewise.
41048         * lib/dup2.c (rpl_dup2): Likewise.
41049         * lib/dup3.c (rpl_dup3): Likewise.
41050         * lib/open.c (rpl_open): Likewise.
41051
41052         fchdir: simplify error handling, and support dup3
41053         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41054         stdbool, malloc-posix, realloc-posix.
41055         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41056         (ensure_dirs_slot): Return false on allocation failure.
41057         (rpl_dup2): Delete.
41058         (_gl_register_dup): New function.
41059         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41060         (_gl_register_fd): Close fd on allocation failure.
41061         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41062         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41063         prototype.
41064         (rpl_dup2_fchdir): Delete prototype.
41065         * lib/open.c (open): Update caller.
41066         * lib/dup2.c (dup2): Track fchdir metadata.
41067         * lib/dup3.c (dup3): Likewise.
41068         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41069         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41070
41071 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41072
41073         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41074         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41075         don't pass arguments to AC_OUTPUT.
41076
41077 2009-09-02  Bruno Haible  <bruno@clisp.org>
41078
41079         * modules/mkdtemp (License): Relicense under LGPLv2+.
41080         Reported by Paolo Bonzini.
41081
41082 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41083
41084         Replace uses of obsolete autoconf macros in Jim's modules.
41085         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41086         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41087         can evoke a warning from autoconf when run with -Wobsolete
41088         enabled.  They were declared obsolete for good reasons (see
41089         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41090         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41091         should not continue using the deprecated macros.
41092         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41093         obsolete Autoconf macros with modern counterparts.
41094         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41095         * m4/dos.m4 (gl_AC_DOS): Likewise.
41096         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41097         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41098         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41099         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41100         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41101         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41102         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41103         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41104         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41105         Likewise.
41106         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41107         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41108         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41109         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41110         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41111         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41112
41113 2009-09-01  Eric Blake  <ebb9@byu.net>
41114
41115         fchdir: fix off-by-one bug in previous patch
41116         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41117         (_gl_unregister_fd): Delete useless if.
41118
41119 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41120
41121         maint.mk: sort the list of syntax-check rules
41122         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41123         easier to get a sense of progress when the rules are run sequentially
41124         and take a long time.
41125
41126 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41127
41128         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41129         * modules/netinet_in: Likewise.
41130         * modules/sys_file: Likewise.
41131         * modules/sys_ioctl: Likewise.
41132         * modules/sys_select: Likewise.
41133         * modules/sys_socket: Likewise.
41134         * modules/sys_stat: Likewise.
41135         * modules/sys_time: Likewise.
41136         * modules/sys_times: Likewise.
41137         * modules/sys_utsname: Likewise.
41138         * modules/sys_wait: Likewise.
41139
41140 2009-09-01  Jim Meyering  <meyering@redhat.com>
41141
41142         fts: help ensure that return values are not ignored
41143         * lib/fts_.h (__GNUC_PREREQ): Define.
41144         (__attribute_warn_unused_result__): Define.
41145         (fts_children, fts_close, fts_open, fts_read): Declare with
41146         __attribute_warn_unused_result__.
41147
41148         fts: fts_close now fails also when closing a dir file descriptor fails
41149         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41150         and propagate to caller, along with errno.
41151
41152         announce-gen: correct formatting in --help output
41153         * build-aux/announce-gen (usage): Move the one-line description in
41154         --help output "up", to where it belongs, just after Usage:.
41155
41156 2009-08-31  Eric Blake  <ebb9@byu.net>
41157
41158         fchdir: port to mingw
41159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41160         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41161         opened, then use a substitute.
41162         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41163         replacement.
41164         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41165         (_gl_register_fd): No need to check stat if open already filters
41166         all directories.
41167         (fchdir): Fix error condition to match POSIX.
41168         * modules/fchdir (Depends-on): Add sys_stat.
41169         * doc/posix-functions/open.texi (open): Document the limitation.
41170         * modules/fchdir-tests: New file.
41171         * tests/test-fchdir.c: Likewise.
41172
41173         canonicalize: allow cross-testing from cygwin to mingw
41174         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41175         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41176         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41177         Likewise.
41178         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41179         target does not support symlinks.
41180         * tests/test-canonicalize-lgpl.sh: Likewise.
41181
41182         chown: avoid compilation warning on mingw
41183         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41184         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41185         mingw.
41186         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41187         * modules/chown (Depends-on): Add errno.
41188
41189 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41190
41191         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41192         command.
41193
41194 2009-08-31  Jim Meyering  <meyering@redhat.com>
41195
41196         canonicalize: remove useless initialization
41197         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41198         initialization of local, "end".
41199
41200 2009-08-30  Bruno Haible  <bruno@clisp.org>
41201
41202         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41203         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41204         ENOSYS.
41205
41206 2009-08-30  Bruno Haible  <bruno@clisp.org>
41207
41208         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41209         /usr/xpg4/bin/tr when it exists.
41210         * tests/test-pipe-filter-gi1.sh: Likewise.
41211
41212 2009-08-30  Bruno Haible  <bruno@clisp.org>
41213
41214         Work around deficient /usr/bin/id program on Solaris.
41215         * tests/test-file-has-acl.sh (ID): New variable.
41216         * tests/test-set-mode-acl.sh (ID): Likewise.
41217         * tests/test-copy-acl.sh (ID): Likewise.
41218         * tests/test-copy-file.sh (ID): Likewise.
41219
41220 2009-08-30  Bruno Haible  <bruno@clisp.org>
41221
41222         New module 'xstriconveh'.
41223         * lib/xstriconveh.h: New file.
41224         * lib/xstriconveh.c: New file.
41225         * modules/xstriconveh: New file.
41226
41227 2009-08-30  Bruno Haible  <bruno@clisp.org>
41228
41229         Make it easier to use mem_cd_iconveh.
41230         * lib/striconveh.h (iconveh_t): New type.
41231         (iconveh_open, iconveh_close): New declarations.
41232         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41233         with a single 'const iconveh_t *' argument.
41234         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41235         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41236         with a single 'const iconveh_t *' argument.
41237         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41238         * tests/test-striconveh.c (main): Update.
41239         * NEWS: Mention the change.
41240
41241 2009-08-30  Bruno Haible  <bruno@clisp.org>
41242
41243         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41244         problem.
41245
41246 2009-08-30  Bruno Haible  <bruno@clisp.org>
41247
41248         Work around iconv_open problem on Solaris.
41249         * lib/iconv_open-solaris.gperf: New file.
41250         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41251         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41252         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41253         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41254         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41255         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41256
41257 2009-08-29  Jim Meyering  <meyering@redhat.com>
41258
41259         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41260         * top/maint.mk (cvs-check): Remove target; it was just an alias
41261         to the better-named vc-diff-check.
41262         (maintainer-distcheck): Remove rule.  It was used only from
41263         the (alpha/beta/major) target, and all of its commands but one
41264         were coreutils-specific.
41265         (vc-dist): Remove rule.
41266         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41267         Run vc-diff-check, not vc-dist.
41268         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41269
41270 2009-08-27  Bruno Haible  <bruno@clisp.org>
41271
41272         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41273         of 0.
41274
41275 2009-08-27  Bruno Haible  <bruno@clisp.org>
41276
41277         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41278         compilers.
41279         * doc/func.texi: Document the SunPRO C bug.
41280
41281 2009-08-27  Bruno Haible  <bruno@clisp.org>
41282
41283         Fix link error on Solaris.
41284         * tests/test-parse-duration.c (xstrdup): Remove function.
41285
41286 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41287
41288         ignore-value: handle pointer types, too
41289         * lib/ignore-value.h (__attribute__): Remove definition.
41290         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41291         of a more concise and more-often effective "(void) i" statement.
41292         (ignore_ptr): New function to suppress warnings from functions that
41293         return pointers, and to make it explicit that one function doesn't
41294         handle all cases.
41295
41296 2009-08-25  Bruno Haible  <bruno@clisp.org>
41297
41298         dup2: work around a Linux bug.
41299         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41300         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41301         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41302         Reported by Simon Josefsson.
41303
41304 2009-08-25  Jim Meyering  <meyering@redhat.com>
41305
41306         libguestfs uses gnulib
41307         * users.txt: Add libguestfs.
41308
41309 2009-08-24  Eric Blake  <ebb9@byu.net>
41310
41311         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41312         * lib/pipe2.c (includes): Add binary-io.h.
41313         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41314
41315 2009-08-24  Bruno Haible  <bruno@clisp.org>
41316
41317         Tolerate declared but missing accept4 syscall.
41318         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41319         available.
41320         * lib/sys_socket.in.h (accept4): If the function is already present,
41321         override it.
41322         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41323         * modules/accept4 (Makefile.am): Compile accept4.c always.
41324         Reported by Paolo Bonzini and Eric Blake.
41325
41326 2009-08-23  Bruno Haible  <bruno@clisp.org>
41327
41328         New module 'accept4'.
41329         * lib/sys_socket.in.h (accept4): New declaration.
41330         * lib/accept4.c: New file.
41331         * m4/accept4.m4: New file.
41332         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41333         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41334         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41335         HAVE_ACCEPT4.
41336         * modules/accept4: New file.
41337         * doc/glibc-functions/accept4.texi: Mention the new module.
41338
41339 2009-08-24  Jim Meyering  <meyering@redhat.com>
41340
41341         progname: also set global program_invocation_name, when possible
41342         Before this change, a libtool-enabled program that calls glibc's
41343         error function would report the program name as
41344         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41345         * modules/progname (configure.ac): Check for a declaration of
41346         program_invocation_name.
41347         * lib/progname.c:  Include <errno.h>.
41348         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41349         Set program_invocation_name.
41350
41351 2009-08-23  Bruno Haible  <bruno@clisp.org>
41352
41353         * lib/dup3.c: Include <string.h>.
41354
41355 2009-08-23  Bruno Haible  <bruno@clisp.org>
41356
41357         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41358         * lib/pipe2.c (pipe2): Likewise.
41359         Suggested by Eric Blake.
41360
41361 2009-08-23  Bruno Haible  <bruno@clisp.org>
41362
41363         Tolerate declared but missing dup3 syscall.
41364         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41365         * lib/unistd.in.h (dup3): If the function is already present,
41366         override it.
41367         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41368         * modules/dup3 (Makefile.am): Compile dup3.c always.
41369         Reported by Paolo Bonzini.
41370
41371 2009-08-23  Bruno Haible  <bruno@clisp.org>
41372
41373         Tolerate declared but missing pipe2 syscall.
41374         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41375         available.
41376         * lib/unistd.in.h (pipe2): If the function is already present,
41377         override it.
41378         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41379         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41380         Reported by Paolo Bonzini.
41381
41382 2009-08-23  Bruno Haible  <bruno@clisp.org>
41383
41384         * lib/pipe2.c (pipe2): Move #ifs inside function.
41385
41386 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41387
41388         quotearg: document limitations of quote_these_too
41389         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41390         those limitations are created.
41391         * lib/quotearg.h (set_char_quoting): Document that digits and
41392         letters that are special after backslash are not permitted.
41393         (quotearg_char): Cross-reference set_char_quoting documentation.
41394
41395 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41396
41397         quotearg: implement custom_quoting_style
41398         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41399         right_quote fields.
41400         (set_custom_quoting): New public function.
41401         (quotearg_buffer_restyled): Add left_quote and right_quote
41402         arguments, handle them very much like locale quoting, and update
41403         all uses.
41404         (quotearg_n_custom): New public function.
41405         (quotearg_n_custom_mem): New public function.
41406         (quotearg_custom): New public function.
41407         (quotearg_custom_mem): New public function.
41408         * lib/quotearg.h: Prototype and document new public functions.
41409         (enum quoting_style): For escape_quoting_style and
41410         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41411         ignored even though they're otherwise like c_quoting_style.
41412         Add custom_quoting_style member and document with comparison to
41413         clocale_quoting_style.
41414         * tests/test-quotearg.c (custom_quotes): New array.
41415         (custom_results): New array.
41416         (main): Extend to test custom quoting.
41417
41418 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41419
41420         quotearg: fix right quote escaping when it's in quote_these_too
41421         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41422         quote, be sure to prepend only one backslash.
41423         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41424         (main): Test it.
41425
41426 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41427
41428         quotearg-tests: test escaping of embedded locale quotes
41429         * tests/test-quotearg.c (struct result_strings): Add member for
41430         new input.
41431         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41432         (inputs): Add new input.
41433         (results_g): Add expected results.
41434         (flag_results): Likewise.
41435         (locale_results): Likewise.
41436         (compare_strings): Check those.
41437
41438 2009-08-23  Bruno Haible  <bruno@clisp.org>
41439
41440         Tests for module 'dup3'.
41441         * modules/dup3-tests: New file.
41442         * tests/test-dup3.c: New file.
41443
41444         New module 'dup3'.
41445         * lib/unistd.in.h (dup3): New declaration.
41446         * lib/dup3.c: New file.
41447         * m4/dup3.m4: New file.
41448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41449         HAVE_DUP3.
41450         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41451         * modules/dup3: New file.
41452         * doc/glibc-functions/dup3.texi: Mention the new module.
41453
41454 2009-08-23  Bruno Haible  <bruno@clisp.org>
41455
41456         Tweak the dup2 test.
41457         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41458         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41459         the test file is still empty. Fix argument order of lseek.
41460
41461 2009-08-23  Bruno Haible  <bruno@clisp.org>
41462
41463         Avoid test link errors when the modules getopt-gnu, gettext are used.
41464         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41465         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41466
41467 2009-08-23  Bruno Haible  <bruno@clisp.org>
41468
41469         Fix getdtablesize() on mingw.
41470         * lib/getdtablesize.c (getdtablesize): Implement differently.
41471         * lib/unistd.in.h (getdtablesize): Improve comment.
41472
41473 2009-08-23  Bruno Haible  <bruno@clisp.org>
41474
41475         New module 'mkostemp'.
41476         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41477         * lib/stdlib.in.h (mksotemp): New declaration.
41478         * lib/mkostemp.c: New file, from glibc with modifications.
41479         * lib/tempname.h (GT_FILE): Remove outdated comment.
41480         (gen_tempname): Add flags argument.
41481         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41482         (__GT_FILE): Map to 1.
41483         (small_open, large_open): Remove macros.
41484         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41485         * lib/mkstemp.c (mkstemp): Update.
41486         * lib/mkdtemp.c (mkdtemp): Likewise.
41487         * m4/mkostemp.m4: New file.
41488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41489         HAVE_MKOSTEMP.
41490         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41491         HAVE_MKOSTEMP.
41492         * modules/mkostemp: New file, based on modules/mkstemp.
41493         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41494         * NEWS: Mention the change.
41495
41496 2009-08-23  Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41499         Reported by Eric Blake.
41500
41501 2009-08-23  Bruno Haible  <bruno@clisp.org>
41502
41503         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41504         Reported by Eric Blake.
41505
41506 2009-08-23  Bruno Haible  <bruno@clisp.org>
41507
41508         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41509         * modules/pipe2 (Depends-on): Likewise.
41510
41511 2009-08-23  Eric Blake  <ebb9@byu.net>
41512
41513         fcntl-h: add O_TTY_INIT support
41514         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41515         * tests/test-fcntl-h.c (o): Test it.
41516         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41517
41518         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41519         * modules/fcntl: Move <fcntl.h> header replacement...
41520         * modules/fcntl-h: ...to new name, so as not to collide with
41521         like-named function.
41522         * tests/test-fcntl.c: Rename...
41523         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41524         * modules/fcntl-tests: Rename...
41525         * modules/fcntl-h-tests: ...to this.  Update test file name.
41526         * modules/chdir-long (Depends-on): Update clients.
41527         * modules/chdir-safer (Depends-on): Likewise.
41528         * modules/fcntl-safer (Depends-on): Likewise.
41529         * modules/fts (Depends-on): Likewise.
41530         * modules/mkancesdirs (Depends-on): Likewise.
41531         * modules/mkdir-p (Depends-on): Likewise.
41532         * modules/open (Depends-on): Likewise.
41533         * modules/savewd (Depends-on): Likewise.
41534         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41535         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41536
41537 2009-08-22  Bruno Haible  <bruno@clisp.org>
41538
41539         * modules/binary-io (License): Relicense under LGPL.
41540         * modules/pipe2 (License): Likewise.
41541
41542 2009-08-22  Bruno Haible  <bruno@clisp.org>
41543
41544         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41545         return value.
41546         * lib/pipe-filter-gi.c (filter_init): Likewise.
41547         Reported by Eric Blake.
41548
41549 2009-08-22  Bruno Haible  <bruno@clisp.org>
41550
41551         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41552         * modules/pipe (Depends-on): Add pipe2.
41553
41554 2009-08-22  Bruno Haible  <bruno@clisp.org>
41555
41556         Tests for module 'pipe2'.
41557         * modules/pipe2-tests: New file.
41558         * tests/test-pipe2.c: New file.
41559
41560         New module 'pipe2'.
41561         * lib/unistd.in.h (pipe2): New declaration.
41562         * lib/pipe2.c: New file.
41563         * m4/pipe2.m4: New file.
41564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41565         HAVE_PIPE2.
41566         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41567         * modules/pipe2: New file.
41568         * doc/glibc-functions/pipe2.texi: Mention the new module.
41569
41570 2009-08-22  Bruno Haible  <bruno@clisp.org>
41571
41572         Reference some new glibc functions.
41573         * doc/glibc-functions/accept4.texi: New file.
41574         * doc/glibc-functions/dup3.texi: New file.
41575         * doc/glibc-functions/mkostemp.texi: New file.
41576         * doc/glibc-functions/pipe2.texi: New file.
41577         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41578         (Glibc sys/socket.h): Refer to accept4.
41579         (Glibc unistd.h): Refer to dup3, pipe2.
41580         Reported by Eric Blake.
41581
41582 2009-08-22  Jim Meyering  <meyering@redhat.com>
41583             Bruno Haible  <bruno@clisp.org>
41584
41585         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41586         This makes it so packages using automake-1.11's silent-rules option
41587         can print e.g., a single "GEN    configmake.h" line, rather than
41588         the 30+ statements that perform the job.  If you want to see the
41589         actual commands, you can still run "make V=1".
41590         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41591         so that make output is abbreviated when those variables are defined
41592         appropriately.
41593         * modules/argz: Likewise.
41594         * modules/arpa_inet: Likewise.
41595         * modules/byteswap: Likewise.
41596         * modules/configmake: Likewise.
41597         * modules/dirent: Likewise.
41598         * modules/errno: Likewise.
41599         * modules/fcntl: Likewise.
41600         * modules/float: Likewise.
41601         * modules/fnmatch: Likewise.
41602         * modules/getopt-posix: Likewise.
41603         * modules/glob: Likewise.
41604         * modules/iconv_open: Likewise.
41605         * modules/inttypes: Likewise.
41606         * modules/localcharset: Likewise.
41607         * modules/locale: Likewise.
41608         * modules/math: Likewise.
41609         * modules/netdb: Likewise.
41610         * modules/netinet_in: Likewise.
41611         * modules/poll: Likewise.
41612         * modules/posix_spawnp-tests: Likewise.
41613         * modules/sched: Likewise.
41614         * modules/search: Likewise.
41615         * modules/selinux-h: Likewise.
41616         * modules/signal: Likewise.
41617         * modules/spawn: Likewise.
41618         * modules/stdarg: Likewise.
41619         * modules/stdbool: Likewise.
41620         * modules/stddef: Likewise.
41621         * modules/stdint: Likewise.
41622         * modules/stdio: Likewise.
41623         * modules/stdlib: Likewise.
41624         * modules/string: Likewise.
41625         * modules/strings: Likewise.
41626         * modules/sys_file: Likewise.
41627         * modules/sys_ioctl: Likewise.
41628         * modules/sys_select: Likewise.
41629         * modules/sys_socket: Likewise.
41630         * modules/sys_stat: Likewise.
41631         * modules/sys_time: Likewise.
41632         * modules/sys_times: Likewise.
41633         * modules/sys_utsname: Likewise.
41634         * modules/sys_wait: Likewise.
41635         * modules/sysexits: Likewise.
41636         * modules/time: Likewise.
41637         * modules/unistd: Likewise.
41638         * modules/wchar: Likewise.
41639         * modules/wctype: Likewise.
41640
41641 2009-08-22  Jim Meyering  <meyering@redhat.com>
41642
41643         announce-gen: detect write failure
41644         * build-aux/announce-gen: Add Coda at end.
41645         Remove equivalent-but-more-verbose block at top.
41646
41647 2009-08-19  Akim Demaille  <demaille@gostai.com>
41648
41649         bootstrap: --help to stdout.
41650         * bootstrap (usage): Don't send --help to stderr.
41651         Use a here doc instead of a long string.
41652
41653 2009-08-21  Eric Blake  <ebb9@byu.net>
41654
41655         test-popen-safer: split from test-popen
41656         * tests/test-popen.c (main): Move...
41657         * tests/test-popen.h: ...into new file.
41658         * tests/test-popen-safer2.c: New file.
41659         * modules/popen-tests (Files): Add test-popen.h.
41660         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41661         Suggested by Bruno Haible.
41662
41663         test-fcntl-safer: split from test-open
41664         * tests/test-open.c (main): Move...
41665         * tests/test-open.h: ...into new file.
41666         * tests/test-fcntl-safer.c: New file.
41667         * modules/open-tests (Files): Add test-open.h.
41668         * modules/fcntl-safer-tests: New file.
41669         Suggested by Bruno Haible.
41670
41671         test-fopen-safer: split from test-fopen
41672         * tests/test-fopen.c (main): Move...
41673         * tests/test-fopen.h: ...into new file.
41674         * tests/test-fopen-safer.c: New file.
41675         * modules/fopen-tests (Files): Add test-fopen.h.
41676         * modules/fopen-safer-tests: New file.
41677         Suggested by Bruno Haible.
41678
41679 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41680
41681         popen-safer: test O_CLOEXEC at run-time.
41682         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41683
41684 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41685
41686         fcntl: move more flags to the header
41687         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41688         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41689         * lib/fcntl.in.h: Do both things here.
41690
41691 2009-08-21  Jim Meyering  <meyering@redhat.com>
41692
41693         consistently remove $@-t before redirecting to it
41694         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41695         * modules/alloca-opt: Likewise.
41696         * modules/byteswap: Likewise.
41697         * modules/fnmatch: Likewise.
41698         * modules/getopt-posix: Likewise.
41699         * modules/glob: Likewise.
41700         * modules/poll: Likewise.
41701         * modules/posix_spawnp-tests: Likewise.
41702         * modules/sys_socket: Likewise.
41703         * modules/sysexits: Likewise.
41704
41705 2009-08-21  Eric Blake  <ebb9@byu.net>
41706
41707         popen: simplify access to original popen
41708         * lib/popen.c (rpl_popen): No need to worry about popen being a
41709         macro.
41710         Reported by Bruno Haible.
41711
41712 2009-08-20  Eric Blake  <ebb9@byu.net>
41713
41714         build: avoid some compiler warnings
41715         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41716         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41717         type.
41718         (new_exclude_segment, excluded_file_pattern_p)
41719         (excluded_file_name_p): Reduce scope.
41720         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41721         old-style declaration.
41722
41723 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41724
41725         * tests/test-exclude1.sh: Handle Windows EOL.
41726         * tests/test-exclude2.sh: Likewise.
41727         * tests/test-exclude3.sh: Likewise.
41728         * tests/test-exclude4.sh: Likewise.
41729         * tests/test-exclude5.sh: Likewise.
41730         * tests/test-exclude6.sh: Likewise.
41731         * tests/test-exclude7.sh: Likewise.
41732
41733 2009-08-19  Akim Demaille  <demaille@gostai.com>
41734
41735         bootstrap: find sha1sum when named gsha1sum.
41736         * bootstrap (find_tool): New.
41737         ($SHA1SUM): New.
41738         Use it.
41739
41740 2009-08-20  Jim Meyering  <meyering@redhat.com>
41741
41742         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41743         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41744         expression that converts "." in a file name to "\." in the resulting
41745         regexp.  Start with a dummy statement, so that prior shell variable
41746         definitions are expanded portably.  Reported by Simon Josefsson.
41747
41748 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41749
41750         Fix polling for writeability of a screen buffer.
41751         * lib/poll.c: Distinguish input and screen buffers for the
41752         Win32 implementation.
41753         * lib/select.c: Likewise.
41754
41755 2009-08-19  Eric Blake  <ebb9@byu.net>
41756
41757         popen-safer: prevent popen from clobbering std descriptors
41758         * modules/popen-safer: New file.
41759         * lib/popen-safer.c: Likewise.
41760         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41761         * lib/stdio--.h (popen): Provide override.
41762         * lib/stdio-safer.h (popen_safer): Provide declaration.
41763         * tests/test-popen.c (includes): Partially test this.
41764         * modules/popen-safer-tests: New file, for more tests.
41765         * tests/test-popen-safer.c: Likewise.
41766         * MODULES.html.sh (file stream based Input/Output): Mention it.
41767
41768         tests: test some of the *-safer modules
41769         * modules/fopen-safer (Depends-on): Add fopen.
41770         * modules/fcntl-safer (Depends-on): Add fcntl.
41771         * modules/stdlib-safer (Depends-on): Add stdlib.
41772         (configure.ac): Set indicator.
41773         * modules/unistd-safer (configure.ac): Likewise.
41774         * modules/tmpfile-safer (configure.ac): Likewise.
41775         (Depends-on): Add tmpfile.
41776         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41777         active.
41778         * tests/test-fopen.c (includes): Test safer versions when they are
41779         in use.
41780         * tests/test-open.c (includes): Likewise.
41781
41782         popen: fix cygwin 1.5 bug when stdin closed
41783         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41784         * modules/popen: New file.
41785         * modules/popen-tests: Likewise.
41786         * tests/test-popen.c: Likewise.
41787         * m4/popen.m4: Likewise.
41788         * lib/popen.c: Likewise.
41789         * lib/stdio.in.h (popen): New declaration.
41790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41791         * modules/stdio (Makefile.am): Likewise.
41792         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41793
41794 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41795
41796         maint.mk: give full control over update-copyright exclusions
41797         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41798         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41799         (update-copyright): Don't force inclusion of top-level
41800         ChangeLog.  Don't force exclusion of all COPYING files, but make
41801         them the default exclusion instead.
41802
41803 2009-08-16  Bruno Haible  <bruno@clisp.org>
41804
41805         Fix test failures on Solaris 10.
41806         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41807         tests when Solaris iconv() is used.
41808         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41809         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41810         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41811         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41812         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41813
41814 2009-08-16  Bruno Haible  <bruno@clisp.org>
41815
41816         Fix test failures on Solaris 10.
41817         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41818         'tr' program and pass it as first argument.
41819         * tests/test-pipe-filter-gi1.sh: Likewise.
41820         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41821         program as first argument.
41822         * tests/test-pipe-filter-gi1.c (main): Likewise.
41823
41824 2009-08-16  Eric Blake  <ebb9@byu.net>
41825
41826         fpurge: fix previous commits
41827         * modules/fpurge (Makefile.am): Make replacement conditional,
41828         partially reverting 2007-04-29 change; missed in previous
41829         attempt.
41830         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41831         is missing.
41832
41833 2009-08-16  Bruno Haible  <bruno@clisp.org>
41834
41835         Clarify fpurge's effect on the file position.
41836         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41837         * tests/test-fpurge.c (main): Make a second pass for checking the file
41838         position.
41839
41840 2009-08-16  Bruno Haible  <bruno@clisp.org>
41841
41842         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41843         declaration of fpurge is missing.
41844         * tests/test-fpurge.c (main): Check that the file has not more contents
41845         than expected. Close the file before removing it.
41846
41847 2009-08-15  Eric Blake  <ebb9@byu.net>
41848
41849         fpurge: don't wrap working cygwin implementation
41850         * lib/fpurge.c (fpurge): Fix comment typo.
41851         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41852         1.7 to avoid replacement.
41853         * tests/test-fpurge.c (main): Enhance test.
41854
41855 2009-08-15  Eric Blake  <ebb9@byu.net>
41856         and Jim Meyering  <meyering@redhat.com>
41857
41858         test-update-copyright: skip if perl is insufficient
41859         * tests/test-update-copyright.sh: Failure to run maintainer tool
41860         should not cause testsuite failure on cygwin 1.5.
41861
41862 2009-08-14  Eric Blake  <ebb9@byu.net>
41863
41864         doc: mention more functions added in cygwin 1.7.0
41865         * doc/posix-headers/limits.texi (limits.h): Update for recent
41866         cygwin additions.
41867         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41868         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41869         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41870         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41871         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41872
41873 2009-08-14  Eric Blake  <ebb9@byu.net>
41874
41875         maint.mk: simplify update-copyright rule
41876         * top/maint.mk (update-copyright-local): Delete, and document how
41877         to do it in cfg.mk instead.
41878         (update-copyright-exclude-regexp): Delete, and document how to do
41879         it in .x-update-copyright instead.
41880         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41881         exclude ChangeLog.
41882
41883 2009-08-14  Bruno Haible  <bruno@clisp.org>
41884
41885         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41886
41887 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41888
41889         maint.mk: support update-copyright-env
41890         * top/maint.mk (update-copyright-env): Define place-holder.
41891         (update-copyright): Expand $(update-copyright-env) before
41892         invoking update-copyright.
41893
41894 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41895
41896         update-copyright: implement forced reformatting
41897         * build-aux/update-copyright: Implement and document
41898         UPDATE_COPYRIGHT_FORCE.
41899         * tests/test-update-copyright.sh: Test it.
41900
41901 2009-08-14  Eric Blake  <ebb9@byu.net>
41902         and Bruno Haible  <bruno@clisp.org>
41903
41904         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41905         * tests/test-locale.c: Revert previous patch related to NULL.
41906         * tests/test-stdio.c: Likewise.
41907         * tests/test-stdlib.c: Likewise.
41908         * tests/test-string.c: Likewise.
41909         * tests/test-unistd.c: Likewise.
41910         * modules/time-tests (Depends-on): Add verify.
41911         * modules/wchar-tests (Depends-on): Likewise.
41912         * tests/test-time.c: Test for NULL compliance.
41913         * tests/test-wchar.c: Likewise.
41914         * modules/locale (Depends-on): Add stddef.
41915         * modules/stdio (Depends-on): Likewise.
41916         * modules/stdlib (Depends-on): Likewise.
41917         * modules/string (Depends-on): Likewise.
41918         * modules/time (Depends-on): Likewise.
41919         * modules/unistd (Depends-on): Likewise.
41920         * modules/wchar (Depends-on): Likewise.
41921         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41922         * lib/stdlib.in.h (includes): Likewise.
41923         * lib/string.in.h (includes): Likewise.
41924         * lib/time.in.h (includes): Likewise.
41925         * lib/unistd.in.h (includes): Likewise.
41926         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41927         replaced.
41928         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41929         * m4/stddef_h.m4: New file.
41930         * modules/stddef: Likewise.
41931         * lib/stddef.in.h: Likewise.
41932         * modules/stddef-tests: Likewise.
41933         * tests/test-stddef.c: Likewise.
41934         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41935         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41936         * doc/posix-headers/locale.texi (locale.h): Likewise.
41937         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41938         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41939         * doc/posix-headers/string.texi (string.h): Likewise.
41940         * doc/posix-headers/time.texi (time.h): Likewise.
41941         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41942         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41943
41944 2009-08-14  Eric Blake  <ebb9@byu.net>
41945
41946         doc: improve git diff of texinfo files
41947         * .gitattributes: Add rule for *.texi files, with hint on how to
41948         use it.
41949         Copied from m4, and based on a report by Bruno Haible.
41950
41951 2009-08-14  Bruno Haible  <bruno@clisp.org>
41952
41953         Disable multithread support by default on Cygwin 1.5.x for real.
41954         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41955
41956 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41957
41958         update-copyright: much ado about intervals
41959         * build-aux/update-copyright: Implement and document
41960         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41961         of copyright year intervals.
41962         Also, document UPDATE_COPYRIGHT_YEAR.
41963         * tests/test-update-copyright.sh: Test it.
41964
41965         update-copyright: convert 2-digit to 4-digit years
41966         * build-aux/update-copyright: Implement and document.
41967         * tests/test-update-copyright.sh: Update.
41968
41969 2009-08-14  Jim Meyering  <meyering@redhat.com>
41970
41971         test-exclude: avoid coreutils "make check" failure
41972         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41973         just as in test-argmatch.c.
41974
41975 2009-08-13  Eric Blake  <ebb9@byu.net>
41976
41977         test-dup2: fix bad assumption
41978         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41979         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41980
41981         test-version-etc: fix CRLF portability issue
41982         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41983         recognize \r.
41984         * tests/test-argp-version-etc-1.sh: Likewise.
41985
41986         getopt: update client modules
41987         * modules/argp (Depends-on): Use getopt-gnu.
41988         * modules/git-merge-changelog (Depends-on): Likewise.
41989         * modules/long-options (Depends-on): Likewise.
41990         * modules/xstrtol (Depends-on): Likewise.
41991
41992 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41993
41994         * tests/test-version-etc.sh: Don't fail on different
41995         project/version.  Don't fail on CRLF differences.  Rewrite to use
41996         multiple -e instead of multiple sed forks, suggested by Eric Blake
41997         <ebb9@byu.net>.
41998         * tests/test-argp-version-etc-1.sh: Likewise.
41999
42000 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42001
42002         * tests/test-version-etc.sh: Don't fail on different
42003         project/version.
42004
42005 2009-08-12  Bruno Haible  <bruno@clisp.org>
42006
42007         Tests for modules 'getopt-posix', 'getopt-gnu'.
42008         * modules/getopt-posix-tests: New file.
42009         * tests/test-getopt.c: New file.
42010         * tests/test-getopt.h: New file.
42011         * tests/test-getopt_long.h: New file.
42012
42013         New modules 'getopt-posix', 'getopt-gnu'.
42014         * modules/getopt-gnu: New file, renamed from modules/getopt.
42015         * modules/getopt-posix: New file.
42016         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42017         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42018         (gl_GETOPT): Remove macro.
42019         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42020         Disable the test against BSD systems that declare optreset. Test
42021         against mingw bug. Test against lack of support of optional arguments
42022         on many platforms.
42023         * doc/glibc-headers/getopt.texi: Update module name and list of
42024         relevant platforms.
42025         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42026         'getopt-gnu' and more portability problems.
42027         * NEWS: Mention the changes.
42028
42029 2009-08-12  Bruno Haible  <bruno@clisp.org>
42030
42031         Ensure that optarg etc. get declared by <unistd.h>.
42032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42033         AC_USE_SYSTEM_EXTENSIONS.
42034         * modules/getopt (Depends-on): Add 'extensions'.
42035
42036 2009-08-12  Bruno Haible  <bruno@clisp.org>
42037
42038         Avoid test link errors.
42039         * modules/pipe-filter-ii-tests (Makefile.am): Define
42040         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42041         * modules/pipe-filter-gi-tests (Makefile.am): Define
42042         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42043         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42044
42045 2009-08-12  Bruno Haible  <bruno@clisp.org>
42046
42047         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42048         gl_GETOPT_SUBSTITUTE before.
42049         (gl_GETOPT): Use it.
42050         * m4/argp.m4 (gl_ARGP): Update.
42051         Reported by Sergey Poznyakoff.
42052
42053         * m4/getopt.m4: Reorder macros.
42054         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42055         (gl_GETOPT_SUBSTITUTE): Remove macro.
42056
42057 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42058
42059         Minor improvement in gitlog-to-changelog
42060
42061         * build-aux/gitlog-to-changelog: New option `--format' makes
42062         output format string configurable.
42063
42064 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42065
42066         Optimize exclude: use hash tables for non-wildcard patterns.
42067
42068         * lib/exclude.c: Include hash.h and mbuiter.h
42069         (struct exclude_pattern, exclude_segment): New data types.
42070         (struct exclude): Rewrite.
42071         (fnmatch_pattern_has_wildcards): New function.
42072         (new_exclude_segment, free_exclude_segment): New functions.
42073         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42074         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42075         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42076         * modules/exclude: Depend on hash and mbuiter.
42077
42078         * modules/exclude-tests: New file.
42079         * tests/test-exclude.c: New file.
42080         * tests/test-exclude1.sh: New file.
42081         * tests/test-exclude2.sh: New file.
42082         * tests/test-exclude3.sh: New file.
42083         * tests/test-exclude4.sh: New file.
42084         * tests/test-exclude5.sh: New file.
42085         * tests/test-exclude6.sh: New file.
42086         * tests/test-exclude7.sh: New file.
42087
42088 2009-08-12  Bruno Haible  <bruno@clisp.org>
42089
42090         Ensure that getopt() gets declared by <unistd.h>.
42091         * lib/unistd.in.h: Conditionally include getopt.h.
42092         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42093         Set GNULIB_UNISTD_H_GETOPT.
42094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42095         GNULIB_UNISTD_H_GETOPT.
42096         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42097
42098 2009-08-12  Bruno Haible  <bruno@clisp.org>
42099
42100         Clarify logic.
42101         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42102         gl_replace_getopt instead of GETOPT_H.
42103
42104 2009-08-12  Bruno Haible  <bruno@clisp.org>
42105
42106         * m4/getopt.m4: Add comments.
42107
42108 2009-08-12  Bruno Haible  <bruno@clisp.org>
42109
42110         Disable multithread support by default on Cygwin 1.5.x.
42111         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42112         set gl_use_threads=no if not specified otherwise.
42113
42114 2009-08-11  Bruno Haible  <bruno@clisp.org>
42115
42116         Avoid compilation error on NetBSD 5.0.
42117         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42118         * tests/test-stdio.c: Likewise.
42119         * tests/test-stdlib.c: Likewise.
42120         * tests/test-string.c: Likewise.
42121         * tests/test-unistd.c: Likewise.
42122         Reported by Greg Troxel <gdt@ir.bbn.com>
42123         at <https://savannah.gnu.org/support/?106973>.
42124
42125 2009-08-11  Bruno Haible  <bruno@clisp.org>
42126
42127         * modules/dup2-tests (Depends-on): Remove close.
42128
42129         Undo 2009-07-19 commit.
42130         * modules/acl-tests (Depends-on): Remove close.
42131         * modules/binary-io-tests (Depends-on): Likewise.
42132         * modules/closein-tests (Depends-on): Likewise.
42133         * modules/flock-tests (Depends-on): Likewise.
42134         * modules/fsync-tests (Depends-on): Likewise.
42135         * modules/lseek-tests (Depends-on): Likewise.
42136         * modules/pipe-tests (Depends-on): Likewise.
42137         * modules/posix_spawn-tests (Depends-on): Likewise.
42138         * modules/posix_spawnp-tests (Depends-on): Likewise.
42139         * modules/stat-time-tests (Depends-on): Likewise.
42140         * modules/yesno-tests (Depends-on): Likewise.
42141
42142 2009-08-10  Bruno Haible  <bruno@clisp.org>
42143
42144         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42145
42146 2009-08-10  Bruno Haible  <bruno@clisp.org>
42147
42148         Fix a gcc warning.
42149         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42150
42151 2009-08-10  Bruno Haible  <bruno@clisp.org>
42152
42153         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42154         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42155         not only the first time.
42156         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42157         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42158         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42159         is 1, not only the the first time.
42160
42161 2009-08-10  Bruno Haible  <bruno@clisp.org>
42162
42163         Make it possible to use module 'gethostname' without module 'close'.
42164         * lib/unistd.in.h (close): Evoke a link error only if
42165         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42167         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42168         * modules/unistd (Makefile.am): Substitute
42169         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42170         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42171         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42172         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42173         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42174         * modules/sys_ioctl (Makefile.am): Substitute
42175         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42176         * modules/socket (configure.ac): On native Windows, set
42177         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42178         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42179         Reported by Sam Steingold <sds@gnu.org>.
42180
42181 2009-08-10  Bruno Haible  <bruno@clisp.org>
42182
42183         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42184         * modules/ioctl (configure.ac): Likewise.
42185
42186 2009-08-10  Bruno Haible  <bruno@clisp.org>
42187
42188         Avoid collision between gnulib wrapper and libintl wrapper.
42189         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42190         already defined in intl/printf.c.
42191         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42192         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42193
42194 2009-08-09  Bruno Haible  <bruno@clisp.org>
42195
42196         Make <sys/select.h> really self-contained, also on Solaris 10.
42197         * lib/sys_select.in.h: Include <string.h>.
42198         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42199         Solaris 10 problem.
42200         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42201         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42202         Reported by Jim Meyering.
42203
42204 2009-08-09  Bruno Haible  <bruno@clisp.org>
42205
42206         Avoid warnings from 'aclocal' that are due to a use of macro name
42207         AM_XGETTEXT_OPTION that is not defined in automake.
42208         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42209         automake.
42210         * modules/error (configure.ac): Likewise.
42211         * modules/propername (configure.ac): Likewise.
42212         * modules/vasprintf (configure.ac): Likewise.
42213         * modules/verror (configure.ac): Likewise.
42214         * modules/xprintf (configure.ac): Likewise.
42215         * modules/xvasprintf (configure.ac): Likewise.
42216
42217 2009-08-08  Bruno Haible  <bruno@clisp.org>
42218
42219         Avoid compilation error in C++ mode.
42220         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42221         Reported by Sam Steingold <sds@gnu.org>.
42222
42223 2009-08-08  Bruno Haible  <bruno@clisp.org>
42224
42225         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42226         for the various Unix platforms.
42227         * doc/posix-headers/limits.texi: Update platforms list regarding
42228         HOST_NAME_MAX.
42229         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42230
42231 2009-08-07  Jim Meyering  <meyering@redhat.com>
42232
42233         selinux-at: fix typo in a comment
42234         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42235         Spotted by Paolo Bonzini.
42236
42237         selinux-at: remove redundant m4 code, add documentation
42238         * modules/selinux-at (configure.ac): Remove redundant code.
42239         LIB_SELINUX is already set via the dependent module, selinux-h.
42240         (Include): Add quotes around selinux-at.h.
42241         * lib/selinux-at.h: Add documentation.
42242         Reported by Bruno Haible in
42243         http://marc.info/?l=gnulib-bug&m=124958988300749
42244
42245 2009-08-07  Bruno Haible  <bruno@clisp.org>
42246
42247         Avoid link error on MacOS X 10.3 and 10.4.
42248         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42249         on non-ELF systems.
42250         * lib/argp-pv.c (argp_program_version): Likewise.
42251         Reported by Simon Josefsson.
42252
42253 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42254
42255         * tests/test-version-etc.sh: Use $EXEEXT.
42256
42257 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42258
42259         update-copyright: update documentation to point to maint.mk
42260         * build-aux/update-copyright: Here.
42261
42262 2009-08-06  Jim Meyering  <meyering@redhat.com>
42263
42264         maint.mk: support update-copyright-local
42265         * top/maint.mk (update-copyright-local): Define place-holder.
42266         (update-copyright): Depend on $(update-copyright-local).
42267
42268 2009-08-06  Jim Meyering  <meyering@redhat.com>
42269
42270         selinux-at: new module
42271         Initially written for coreutils, this module will soon be
42272         used by findutils, too.
42273         * MODULES.html.sh [Misc]: Add selinux-at.
42274         * lib/selinux-at.h: New file, from coreutils.
42275         * lib/selinux-at.c: Likewise.
42276         * modules/selinux-at: Likewise.
42277         (License): Change from LGPL to GPL, since it depends
42278         on the GPL'd openat module.
42279
42280         doc: update README
42281         * README: Remove references to cogito.
42282         Remove cvs-repo-updating instructions from 2007.
42283         Don't imply that CVS is better if you have limited disk space.
42284
42285 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42286
42287         update-copyright: support C-style comments
42288         * build-aux/update-copyright: Implement and document.
42289         * tests/test-update-copyright.sh: Test.
42290
42291 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42292
42293         update-copyright: support omitted "(C)"
42294         * build-aux/update-copyright: Implement and document.  Also,
42295         allow variable whitespace before "(C)".
42296         * tests/test-update-copyright.sh: Test.
42297
42298 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42299
42300         update-copyright: don't trip on non-FSF copyright statements
42301         * build-aux/update-copyright: Fix so that the first correctly
42302         formatted FSF copyright statement is recognized no matter what
42303         appears before it.  Update documentation.
42304         * tests/test-update-copyright.sh: Test that.
42305
42306 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42307
42308         update-copyright: clean up code a little
42309         * build-aux/update-copyright: Append "_re" to the name of any
42310         variable holding a regular expression.
42311         Replace "old" and "new" with "stmt" in variable names.
42312         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42313         handled correctly.
42314         Format code more consistently.
42315
42316 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42317
42318         update-copyright-tests: improve portability
42319         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42320         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42321
42322 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42323
42324         update-copyright: support @copyright{} and &copy;
42325         * build-aux/update-copyright: Implement and document.
42326         * tests/test-update-copyright.sh: Test.
42327
42328 2009-08-04  Jim Meyering  <meyering@redhat.com>
42329
42330         update-copyright-tests: correctly test EOL=\r\n handling
42331         * tests/test-update-copyright.sh: Put \r at the end of some lines
42332         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42333
42334         maint.mk: make update-copyright exclusion list more configurable
42335         * top/maint.mk (update-copyright): Default to excluding COPYING,
42336         but allow an override, in case someone does want to update that file.
42337
42338         maint.mk: don't update copyright date in COPYING
42339         * top/maint.mk (update-copyright): Exclude COPYING.
42340
42341         maint.mk: add a copyright-updating rule
42342         * top/maint.mk (update-copyright): New rule.
42343         Derived from coreutils/Makefile.am.
42344
42345         update-copyright: rename some variables
42346         * build-aux/update-copyright: Rename a few variables for clarity.
42347         Tweak syntax.  List Joel E. Denny as coauthor.
42348
42349 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42350
42351         update-copyright: fix bug for 2-digit last year and add tests
42352         * build-aux/update-copyright: Fix bug.
42353         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42354         specified.
42355         * modules/update-copyright-tests: New
42356         * tests/test-update-copyright.sh: New.
42357
42358 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42359
42360         update-copyright: handle leading tabs in line prefix
42361         * build-aux/update-copyright: Count leading tabs as 8 spaces
42362         when computing margin.  This helps with the formatting of
42363         ChangeLogs, for example.
42364         Fix documentation a little.
42365
42366 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42367
42368         update-copyright: support EOL=\r\n
42369         * build-aux/update-copyright: Implement that.
42370
42371 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42372
42373         update-copyright: automatically format copyright statements
42374         * build-aux/update-copyright: Implement that.
42375         Also, be a little more predictable and safer by always failing
42376         when the full copyright format is not perfectly recognized as an
42377         unbroken whole.  Discussed at
42378         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42379         Rewrite documentation.
42380
42381 2009-08-03  Bruno Haible  <bruno@clisp.org>
42382
42383         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42384
42385 2009-08-02  Bruno Haible  <bruno@clisp.org>
42386
42387         Tests for module 'uname'.
42388         * modules/uname-tests: New file.
42389         * tests/test-uname.c: New file.
42390
42391         New module 'uname'.
42392         * lib/uname.c: New file.
42393         * m4/uname.m4: New file.
42394         * modules/uname: New file.
42395         * doc/posix-functions/uname.texi: Mention the new module.
42396
42397 2009-08-02  Bruno Haible  <bruno@clisp.org>
42398
42399         Tests for module 'sys_utsname'.
42400         * modules/sys_utsname-tests: New file.
42401         * tests/test-sys_utsname.c: New file.
42402
42403         New module 'sys_utsname'.
42404         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42405         * m4/sys_utsname_h.m4: New file.
42406         * modules/sys_utsname: New file.
42407         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42408
42409 2009-08-02  Bruno Haible  <bruno@clisp.org>
42410
42411         Implicitly initialize the sockets library.
42412         * lib/gethostname.c: Include sockets.h.
42413         (rpl_gethostname): Invoke gl_sockets_startup.
42414         * lib/socket.c: Include sockets.h.
42415         (rpl_socket): Invoke gl_sockets_startup.
42416         * modules/gethostname (Depends-on): Add sockets.
42417         * modules/socket (Depends-on): Likewise.
42418         * tests/test-poll.c: Don't include sockets.h.
42419         (main): Don't invoke gl_sockets_startup.
42420         * tests/test-select.c: Don't include sockets.h.
42421         (main): Don't invoke gl_sockets_startup.
42422
42423 2009-08-02  Bruno Haible  <bruno@clisp.org>
42424
42425         Allow multiple calls to gl_sockets_startup.
42426         * lib/sockets.c (initialized_sockets_version): New variable.
42427         (gl_sockets_startup): Do nothing if already called for this or a higher
42428         version.
42429         (gl_sockets_cleanup): Reset initialized_sockets_version.
42430
42431 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42432
42433         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42434         different project/version.
42435
42436 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42437             Bruno Haible  <bruno@clisp.org>
42438
42439         Tests for module 'pipe-filter-gi'.
42440         * modules/pipe-filter-gi-tests: New file.
42441         * tests/test-pipe-filter-gi1.sh: New file.
42442         * tests/test-pipe-filter-gi1.c: New file.
42443         * tests/test-pipe-filter-gi2.sh: New file.
42444         * tests/test-pipe-filter-gi2-main.c: New file.
42445         * tests/test-pipe-filter-gi2-child.c: New file.
42446
42447         New module 'pipe-filter-gi'.
42448         * lib/pipe-filter-gi.c: New file.
42449         * modules/pipe-filter-gi: New file.
42450
42451 2009-08-02  Bruno Haible  <bruno@clisp.org>
42452             Paolo Bonzini  <bonzini@gnu.org>
42453
42454         Tests for module 'pipe-filter-ii'.
42455         * modules/pipe-filter-ii-tests: New file.
42456         * tests/test-pipe-filter-ii1.sh: New file.
42457         * tests/test-pipe-filter-ii1.c: New file.
42458         * tests/test-pipe-filter-ii2.sh: New file.
42459         * tests/test-pipe-filter-ii2-main.c: New file.
42460         * tests/test-pipe-filter-ii2-child.c: New file.
42461
42462         New module 'pipe-filter-ii'.
42463         * lib/pipe-filter.h: New file.
42464         * lib/pipe-filter-ii.c: New file.
42465         * lib/pipe-filter-aux.h: New file.
42466         * modules/pipe-filter-ii: New file.
42467
42468 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42469
42470         * lib/gc-libgcrypt.c: Change copyright to FSF.
42471         * lib/gc-gnulib.c: Likewise.
42472
42473 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42474
42475         * lib/gethostname.c: Include limits.h.
42476
42477 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42478             Bruno Haible  <bruno@clisp.org>
42479
42480         Ensure HOST_NAME_MAX as part of the gethostname module.
42481         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42482         define also HOST_NAME_MAX.
42483         * tests/test-gethostname.c: Include <limits.h>.
42484         (main): Check also HOST_NAME_MAX.
42485         * doc/posix-headers/limits.texi: Document the mingw problem.
42486
42487 2009-08-02  Bruno Haible  <bruno@clisp.org>
42488
42489         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42490         Add comments.
42491
42492 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42493
42494         * lib/gethostname.c: Add Windows wrapper.
42495         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42496         * modules/gethostname: Depend on sys_socket & errno, for also
42497         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42498         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42499
42500 2009-07-31  Jim Meyering  <meyering@redhat.com>
42501
42502         getloadavg: fix symbol name in comment
42503         * lib/getloadavg.c: Correct a typo I introduced when adding
42504         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42505         Matt Kraai spotted the problem.
42506
42507 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42508
42509         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42510         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42511         code also if ! defined N_NAME_POINTER.
42512         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42513         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42514         but the n_name member is a 12-byte array.
42515
42516 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42517
42518         update-copyright: generalize comment handling
42519         * build-aux/update-copyright: Handle copyright statements
42520         within more comment styles.
42521         Document usage.
42522         Report any file with an external copyright holder or parse failure.
42523
42524 2009-07-29  Jim Meyering  <meyering@redhat.com>
42525
42526         mktime: correct setting of REPLACE_MKTIME
42527         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42528
42529         update-copyright: new module
42530         * modules/update-copyright: New file.
42531         * build-aux/update-copyright: New file.
42532         * MODULES.html.sh (maint+release support): Add update-copyright.
42533
42534 2009-07-27  Bruno Haible  <bruno@clisp.org>
42535
42536         Fix compilation error when <ctime> is used and mktime is replaced.
42537         * lib/time.in.h (mktime): New declaration.
42538         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42539         REPLACE_MKTIME instead of defining mktime in config.h.
42540         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42541         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42542         Reported by Ross McFarland <rwmcfa1@neces.com>.
42543
42544 2009-07-27  Bruno Haible  <bruno@clisp.org>
42545
42546         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42547         Reported by Matt Kraai <mkraai@beckman.com>.
42548
42549 2009-07-25  Jim Meyering  <meyering@redhat.com>
42550
42551         maint.mk: avoid warnings about missing files
42552         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42553         diagnostic when .prev-version does not exist.
42554         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42555         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42556         nonexistent cfg.mk.
42557         Suggestions from Simon Josefsson.
42558
42559 2009-07-25  Bruno Haible  <bruno@clisp.org>
42560
42561         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42562         defined as macros. Needed on QNX 6.4.1.
42563         Reported by Matt Kraai <mkraai@beckman.com>.
42564
42565 2009-07-23  Jim Meyering  <meyering@redhat.com>
42566
42567         maint.mk: invoke "make dist" with a working value of XZ_OPT
42568         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42569
42570 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42571
42572         Make fseeko.c compile on QNX.
42573         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42574
42575 2009-07-22  Peter Simons  <simons@cryp.to>
42576
42577         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42578         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42579         * lib/md4.h: Likewise.
42580         * lib/md5.h: Likewise.
42581         * lib/sha1.h: Likewise.
42582         * lib/sha256.h: Likewise.
42583         * lib/sha512.h: Likewise.
42584
42585         tests-sha1: don't assign literal string to 'char *' variable
42586         * tests/test-sha1.c (main): Declare locals with "const" to match
42587         attributes of the right hand side.
42588
42589 2009-07-21  Eric Blake  <ebb9@byu.net>
42590
42591         dup2: fix more mingw problems
42592         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42593         fd to itself.
42594         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42595         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42596         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42597         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42598         care of mingw bugs.
42599
42600 2009-07-21  Jim Meyering  <meyering@redhat.com>
42601
42602         vc-list-files: avoid failure when /bin/sh is dash
42603         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42604         On some Debian based systems, /bin/sh is a symlink to dash, and running
42605         this command would omit the "/" following each 'tests' prefix:
42606           dash -x build-aux/vc-list-files -C . tests
42607         That is because bash and dash work differently:
42608           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42609           bash ok
42610           dash odd
42611
42612 2009-07-21  Eric Blake  <ebb9@byu.net>
42613
42614         dup2-tests: test previous patch
42615         * modules/dup2-tests: New file.
42616         * tests/test-dup2.c: Likewise.
42617         * tests/test-open.c (main): Avoid unspecified behavior.
42618         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42619         test.
42620
42621         dup2: work around mingw and cygwin 1.5 bug
42622         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42624         * modules/unistd (Makefile.am): Substitute it.
42625         * lib/unistd.in.h (dup2): Declare the replacement.
42626         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42627         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42628         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42629         * modules/execute (Depends-on): Add dup2.
42630         * modules/fseterr (Depends-on): Likewise.
42631         * modules/pipe (Depends-on): Likewise.
42632         * modules/posix_spawn-internal (Depends-on): Likewise.
42633
42634 2009-07-21  Bruno Haible  <bruno@clisp.org>
42635
42636         * modules/.gitattributes: New file.
42637
42638 2009-07-20  Bruno Haible  <bruno@clisp.org>
42639
42640         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42641         (main): Use it.
42642
42643 2009-07-20  Eric Blake  <ebb9@byu.net>
42644
42645         test-pipe: make a bit more robust.
42646         * tests/test-pipe.c (myerr): Allow error messages regardless of
42647         what we do to stderr.
42648         (test_pipe): Rearrange to avoid deadlock.
42649         (child_main): Try a larger read, to ensure we avoided deadlock.
42650         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42651         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42652         if misused.
42653
42654 2009-07-19  Jim Meyering  <meyering@redhat.com>
42655
42656         fts: avoid false-positive cycle-detection
42657         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42658         for each new command line argument.
42659
42660 2009-07-19  Bruno Haible  <bruno@clisp.org>
42661
42662         Fix build error on mingw with the modules sys_select and unistd.
42663         * modules/acl-tests (Depends-on): Add close.
42664         * modules/binary-io-tests (Depends-on): Likewise.
42665         * modules/closein-tests (Depends-on): Likewise.
42666         * modules/flock-tests (Depends-on): Likewise.
42667         * modules/fsync-tests (Depends-on): Likewise.
42668         * modules/lseek-tests (Depends-on): Likewise.
42669         * modules/pipe-tests (Depends-on): Likewise.
42670         * modules/posix_spawn-tests (Depends-on): Likewise.
42671         * modules/posix_spawnp-tests (Depends-on): Likewise.
42672         * modules/stat-time-tests (Depends-on): Likewise.
42673         * modules/yesno-tests (Depends-on): Likewise.
42674
42675 2009-07-19  Bruno Haible  <bruno@clisp.org>
42676
42677         Unify conditionals.
42678         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42679         macros, not at the compiler macros.
42680         * lib/pipe.c: Likewise.
42681         * lib/execute.c: Likewise.
42682         * lib/spawni.c: Likewise.
42683
42684 2009-07-19  Bruno Haible  <bruno@clisp.org>
42685
42686         Fix handling of closed stdin/stdout/stderr on mingw.
42687         * lib/w32spawn.h: Include unistd.h.
42688         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42689         file descriptor with O_NOINHERIT flag.
42690         (fd_safer_noinherit): New function, based on fd-safer.c.
42691         (dup_safer_noinherit): New function, based on dup-safer.c.
42692         (undup_safer_noinherit): New function.
42693         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42694         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42695         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42696         instead of fd_safer.
42697         * tests/test-pipe.c: Include <windows.h>.
42698         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42699         result.
42700
42701         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42702         from main.
42703         (test_pipe): Pass an extra argument for disambiguation.
42704         (main): Invoke parent_main or child_main.
42705
42706         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42707         consistently.
42708
42709 2009-07-18  Eric Blake  <ebb9@byu.net>
42710
42711         test-pipe: fix mingw build
42712         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42713
42714 2009-07-18  Bruno Haible  <bruno@clisp.org>
42715
42716         * modules/pipe-tests (Makefile.am): Fix typo.
42717
42718 2009-07-18  Eric Blake  <ebb9@byu.net>
42719
42720         error: fix mingw build
42721         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42722         Reported by Bruno Haible.
42723
42724         error: avoid undefined use of stdout
42725         * lib/error.c (error, error_at_line): Check that fd 1 is open
42726         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42727         is handling faults and the close_stdout module wants to report the
42728         detection of closed stdout as an error.
42729
42730 2009-07-17  Eric Blake  <ebb9@byu.net>
42731
42732         pipe: be robust in face of closed fds
42733         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42734         should cause child to misbehave.
42735         * modules/pipe-tests: New module.
42736         * tests/test-pipe.c: New file.
42737         * tests/test-pipe.sh: New file.
42738         Reported by Akim Demaille.
42739
42740 2009-07-14  Bruno Haible  <bruno@clisp.org>
42741
42742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42743         Reported by anonymous kc.
42744
42745 2009-07-07  Jim Meyering  <meyering@redhat.com>
42746
42747         maint.mk: don't look for translatable strings in *.m4 or *.mk
42748         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42749         when searching for translatable strings.
42750
42751 2009-07-05  Jim Meyering  <meyering@redhat.com>
42752
42753         remove superfluous parentheses in STREQ definition
42754         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42755         * lib/getugroups.c (STREQ): Likewise.
42756         * lib/fnmatch.c (STREQ): Likewise.
42757         Spotted by Bruno Haible.
42758
42759 2009-07-04  Jim Meyering  <meyering@redhat.com>
42760
42761         argv-iter: new module
42762         * MODULES.html.sh: Add argv-iter.
42763         * lib/argv-iter.c, lib/argv-iter.h: New files.
42764         * modules/argv-iter: New file.
42765         * modules/argv-iter-tests: New file.
42766         * tests/test-argv-iter.c: Test it.
42767
42768 2009-07-04  Bruno Haible  <bruno@clisp.org>
42769
42770         Fix assertion.
42771         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42772         contains more exact copies of a given entry than file2, leave the extra
42773         copies unpaired rather than aborting.
42774         Reported by Eric Blake.
42775
42776 2009-07-02  Bruno Haible  <bruno@clisp.org>
42777
42778         Speedup git-merge-changelog for git cherry-pick.
42779         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42780         (entries_mapping_get): New function, extracted from compute_mapping.
42781         (entries_mapping_reverse_get): New function.
42782         (compute_mapping): Add a 'full' argument. Return the result in a
42783         'struct entries_mapping'.
42784         (main): Update. Access the mappings through entries_mapping_get.
42785         Reported by Eric Blake.
42786
42787 2009-07-02  Bruno Haible  <bruno@clisp.org>
42788
42789         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42790         best_i.
42791
42792 2009-07-02  Bruno Haible  <bruno@clisp.org>
42793
42794         Speed up approximate search for matching ChangeLog entries.
42795         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42796         argument. Call fstrcmp_bounded instead of fstrcmp.
42797         (compute_mapping, try_split_merged_entry, main): Update callers.
42798
42799 2009-07-02  Bruno Haible  <bruno@clisp.org>
42800
42801         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42802
42803 2009-06-30  Bruno Haible  <bruno@clisp.org>
42804
42805         Reduce the number of uc_is_cased calls.
42806         * lib/unicase.h (casing_suffix_context_t): Add
42807         'first_char_except_ignorable' field.
42808         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42809         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42810         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42811         Update initializer.
42812         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42813         case-ignorable characters.
42814         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42815         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42816         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42817         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42818         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42819
42820 2009-06-30  Bruno Haible  <bruno@clisp.org>
42821
42822         Tests for module 'unicase/ignorable'.
42823         * modules/unicase/ignorable-tests: New file.
42824         * tests/unicase/test-ignorable.c: New file, generated by
42825         gen-uni-tables.
42826
42827         Tests for module 'unicase/cased'.
42828         * modules/unicase/cased-tests: New file.
42829         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42830         * tests/unicase/test-predicate-part1.h: New file, derived from
42831         tests/unictype/test-predicate-part1.h.
42832         * tests/unicase/test-predicate-part2.h: New file, same as
42833         tests/unictype/test-predicate-part2.h.
42834
42835         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42836         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42837         (output_casing_properties): New function.
42838         (main): Call it.
42839         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42840         * lib/unicase/cased.c: Include unictype/bitmap.h.
42841         (uc_is_cased): Define through a bitmap lookup.
42842         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42843         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42844         (uc_is_case_ignorable): Define through a bitmap lookup.
42845         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42846         lib/unictype/bitmap.h.
42847         (Depends-on): Add inline. Clean up.
42848         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42849         lib/unictype/bitmap.h.
42850         (Depends-on): Add inline. Clean up.
42851         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42852         recognition.
42853         * tests/unicase/test-u16-tolower.c (main): Likewise.
42854         * tests/unicase/test-u32-tolower.c (main): Likewise.
42855
42856 2009-06-30  Bruno Haible  <bruno@clisp.org>
42857
42858         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42859         * lib/unicase/u16-casemap.c: Likewise.
42860         * lib/unicase/u32-casemap.c: Likewise.
42861
42862 2009-06-29  Bruno Haible  <bruno@clisp.org>
42863
42864         Define u32_casefold as a wrapper around u32_ct_casefold.
42865         * lib/unicase/u32-casefold.c: Update.
42866         * modules/unicase/u32-casefold (Depends-on): Add
42867         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42868         unicase/empty-suffix-context. Clean up.
42869
42870         Define u16_casefold as a wrapper around u16_ct_casefold.
42871         * lib/unicase/u16-casefold.c: Update.
42872         * modules/unicase/u16-casefold (Depends-on): Add
42873         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42874         unicase/empty-suffix-context. Clean up.
42875
42876         Define u8_casefold as a wrapper around u8_ct_casefold.
42877         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42878         * lib/unicase/u8-casefold.c: Update.
42879         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42880         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42881
42882         Define u32_totitle as a wrapper around u32_ct_totitle.
42883         * lib/unicase/u32-totitle.c: Update.
42884         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42885         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42886
42887         Define u16_totitle as a wrapper around u16_ct_totitle.
42888         * lib/unicase/u16-totitle.c: Update.
42889         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42890         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42891
42892         Define u8_totitle as a wrapper around u8_ct_totitle.
42893         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42894         functions.
42895         (FUNC): Delegate to U_CT_TOTITLE.
42896         * lib/unicase/u8-totitle.c: Update.
42897         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42898         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42899
42900         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42901         invocation.
42902         * modules/unicase/u32-tolower (Depends-on): Add
42903         unicase/empty-prefix-context, unicase/empty-suffix-context.
42904
42905         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42906         invocation.
42907         * modules/unicase/u16-tolower (Depends-on): Add
42908         unicase/empty-prefix-context, unicase/empty-suffix-context.
42909
42910         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42911         * modules/unicase/u8-tolower (Depends-on): Add
42912         unicase/empty-prefix-context, unicase/empty-suffix-context.
42913
42914         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42915         invocation.
42916         * modules/unicase/u32-toupper (Depends-on): Add
42917         unicase/empty-prefix-context, unicase/empty-suffix-context.
42918
42919         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42920         invocation.
42921         * modules/unicase/u16-toupper (Depends-on): Add
42922         unicase/empty-prefix-context, unicase/empty-suffix-context.
42923
42924         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42925         * modules/unicase/u8-toupper (Depends-on): Add
42926         unicase/empty-prefix-context, unicase/empty-suffix-context.
42927
42928         New module 'unicase/u32-ct-casefold'.
42929         * lib/unicase/u32-ct-casefold.c: New file.
42930         * modules/unicase/u32-ct-casefold: New file.
42931
42932         New module 'unicase/u16-ct-casefold'.
42933         * lib/unicase/u16-ct-casefold.c: New file.
42934         * modules/unicase/u16-ct-casefold: New file.
42935
42936         New module 'unicase/u8-ct-casefold'.
42937         * lib/unicase/u8-ct-casefold.c: New file.
42938         * lib/unicase/u-ct-casefold.h: New file, derived from
42939         lib/unicase/u-casefold.h.
42940         * modules/unicase/u8-ct-casefold: New file.
42941
42942         New module 'unicase/u32-ct-totitle'.
42943         * lib/unicase/u32-ct-totitle.c: New file.
42944         * modules/unicase/u32-ct-totitle: New file.
42945
42946         New module 'unicase/u16-ct-totitle'.
42947         * lib/unicase/u16-ct-totitle.c: New file.
42948         * modules/unicase/u16-ct-totitle: New file.
42949
42950         New module 'unicase/u8-ct-totitle'.
42951         * lib/unicase/u8-ct-totitle.c: New file.
42952         * lib/unicase/u-ct-totitle.h: New file, derived from
42953         lib/unicase/u-totitle.h.
42954         * modules/unicase/u8-ct-totitle: New file.
42955
42956         New module 'unicase/u32-ct-tolower'.
42957         * lib/unicase/u32-ct-tolower.c: New file.
42958         * modules/unicase/u32-ct-tolower: New file.
42959
42960         New module 'unicase/u16-ct-tolower'.
42961         * lib/unicase/u16-ct-tolower.c: New file.
42962         * modules/unicase/u16-ct-tolower: New file.
42963
42964         New module 'unicase/u8-ct-tolower'.
42965         * lib/unicase/u8-ct-tolower.c: New file.
42966         * modules/unicase/u8-ct-tolower: New file.
42967
42968         New module 'unicase/u32-ct-toupper'.
42969         * lib/unicase/u32-ct-toupper.c: New file.
42970         * modules/unicase/u32-ct-toupper: New file.
42971
42972         New module 'unicase/u16-ct-toupper'.
42973         * lib/unicase/u16-ct-toupper.c: New file.
42974         * modules/unicase/u16-ct-toupper: New file.
42975
42976         New module 'unicase/u8-ct-toupper'.
42977         * lib/unicase/u8-ct-toupper.c: New file.
42978         * modules/unicase/u8-ct-toupper: New file.
42979
42980         Add context arguments to u*_casemap functions.
42981         * lib/unicase/unicasemap.h: Include unicase.h.
42982         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42983         suffix_context arguments.
42984         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42985         functions.
42986         (FUNC): Add prefix_context and suffix_context arguments. Use
42987         uc_is_cased and uc_is_case_ignorable.
42988         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42989         * lib/unicase/u16-casemap.c: Likewise.
42990         * lib/unicase/u32-casemap.c: Likewise.
42991         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42992         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42993         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42994         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42995         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42996         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42997
42998         New module 'unicase/u32-suffix-context'.
42999         * lib/unicase/u32-suffix-context.c: New file.
43000         * modules/unicase/u32-suffix-context: New file.
43001
43002         New module 'unicase/u16-suffix-context'.
43003         * lib/unicase/u16-suffix-context.c: New file.
43004         * modules/unicase/u16-suffix-context: New file.
43005
43006         New module 'unicase/u8-suffix-context'.
43007         * lib/unicase/u8-suffix-context.c: New file.
43008         * lib/unicase/u-suffix-context.h: New file.
43009         * modules/unicase/u8-suffix-context: New file.
43010
43011         New module 'unicase/empty-suffix-context'.
43012         * lib/unicase/empty-suffix-context.c: New file.
43013         * modules/unicase/empty-suffix-context: New file.
43014
43015         New module 'unicase/u32-prefix-context'.
43016         * lib/unicase/u32-prefix-context.c: New file.
43017         * modules/unicase/u32-prefix-context: New file.
43018
43019         New module 'unicase/u16-prefix-context'.
43020         * lib/unicase/u16-prefix-context.c: New file.
43021         * modules/unicase/u16-prefix-context: New file.
43022
43023         New module 'unicase/u8-prefix-context'.
43024         * lib/unicase/u8-prefix-context.c: New file.
43025         * lib/unicase/u-prefix-context.h: New file.
43026         * lib/unicase/context.h: New file.
43027         * modules/unicase/u8-prefix-context: New file.
43028
43029         New module 'unicase/empty-prefix-context'.
43030         * lib/unicase/empty-prefix-context.c: New file.
43031         * modules/unicase/empty-prefix-context: New file.
43032
43033         New module 'unicase/ignorable'.
43034         * lib/unicase/ignorable.c: New file.
43035         * modules/unicase/ignorable: New file.
43036
43037         New module 'unicase/cased'.
43038         * lib/unicase/caseprop.h: New file.
43039         * lib/unicase/cased.c: New file.
43040         * modules/unicase/cased: New file.
43041
43042         New functions for case mapping of substrings.
43043         * lib/unicase.h (casing_prefix_context_t): New type.
43044         (unicase_empty_prefix_context): New variable.
43045         (u8_casing_prefix_context, u16_casing_prefix_context,
43046         u32_casing_prefix_context, u8_casing_prefixes_context,
43047         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43048         declarations.
43049         (casing_suffix_context_t): New type.
43050         (unicase_empty_suffix_context): New variable.
43051         (u8_casing_suffix_context, u16_casing_suffix_context,
43052         u32_casing_suffix_context, u8_casing_suffixes_context,
43053         u16_casing_suffixes_context, u32_casing_suffixes_context,
43054         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43055         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43056         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43057         declarations.
43058
43059 2009-06-28  Jim Meyering  <meyering@redhat.com>
43060
43061         boostrap: indent only with spaces
43062         * build-aux/bootstrap: Indent only with spaces, never TABs.
43063
43064         bootstrap: split long lines
43065         * build-aux/bootstrap: Keep line length < 80.
43066
43067         bootstrap: sync from coreutils
43068         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43069         just as autoreconf does.  Verify a list of prerequisite
43070         package-name,version-number pairs if defined in bootstrap.conf.
43071         Refer to README-prereq, if prerequisites are not satisfied.
43072
43073 2009-06-27  Eric Blake  <ebb9@byu.net>
43074
43075         tests: add test for bogus NULL definition
43076         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43077         * tests/test-stdlib.c: Likewise.
43078         * tests/test-string.c: Likewise.
43079         * tests/test-locale.c: Likewise.
43080         * tests/test-unistd.c: Likewise.
43081         * modules/stdio-tests (Depends-on): Add verify.
43082         * modules/stdlib-tests (Depends-on): Likewise.
43083         * modules/string-tests (Depends-on): Likewise.
43084         * modules/locale-tests (Depends-on): Likewise.
43085         * modules/unistd-tests (Depends-on): Likewise.
43086
43087 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43088
43089         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43090         self-explaining comment.
43091         * m4/selinux-selinux-h: Update serial.
43092         (gl_LIBSELINUX): New macro, adding a warning for missing development
43093         packages to code extracted from...
43094         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43095         Add warning for missing development packages here, too.
43096
43097 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43098
43099         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43100
43101 2009-06-25  Eric Blake  <ebb9@byu.net>
43102
43103         version-etc: fix regression
43104         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43105         gcc.
43106         (version_etc): Use it, to catch bugs with trailing NULL.
43107         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43108         (version_etc_va): Fix logic bug.
43109         * modules/version-etc-tests: Add test.
43110         * tests/test-version-etc.c: New file.
43111         * tests/test-version-etc.sh: Likewise.
43112
43113 2009-06-25  Sam Steingold  <sds@gnu.org>
43114
43115         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43116         mbtowc declaration.
43117
43118 2009-06-25  Eric Blake  <ebb9@byu.net>
43119
43120         fpurge: migrate into <stdio.h>
43121         * lib/fpurge.h: Delete...
43122         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43123         * lib/fpurge.c (fpurge): Change declaring header.
43124         * modules/fpurge (Files): Drop deleted file.
43125         (Depends-on): Add stdio.
43126         (configure.ac): Set witness.
43127         * modules/stdio (Makefile.am): Support fpurge macros.
43128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43129         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43130         * lib/fflush.c: Update client.
43131         * tests/test-fpurge.c: Likewise.
43132         * NEWS: Mention the change.
43133
43134 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43135
43136         * lib/argp-version-etc.c (program_authors): Add const
43137         qualifier.
43138         * lib/version-etc.c: Fix typos in the comments.
43139         * modules/argp-version-etc: Depends on version-etc.
43140
43141 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43142
43143         argp-version-etc: new module.
43144
43145         * lib/argp-version-etc.c: New file.
43146         * lib/argp-version-etc.h: New file.
43147         * modules/argp-version-etc: New file.
43148         * modules/argp-version-etc-tests: New file.
43149         * tests/test-argp-version-etc.c: New test.
43150         * tests/test-argp-version-etc-1.sh: New test.
43151
43152 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43153
43154         Provide additional interfaces and documentation for version-etc
43155         module.
43156
43157         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43158         interfaces.
43159         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43160         prototypes.
43161
43162 2009-06-24  Bruno Haible  <bruno@clisp.org>
43163
43164         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43165         HAVE_LIB${NAME} macro.
43166         Reported by Sam Steingold <sds@gnu.org>.
43167
43168 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43169
43170         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43171         needed.
43172
43173 2009-06-21  Bruno Haible  <bruno@clisp.org>
43174
43175         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43176         work.
43177         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43178         together with LIB${NAME}, LTLIB${NAME}.
43179         Reported by Sam Steingold <sds@gnu.org>.
43180
43181 2009-06-20  Jim Meyering  <meyering@redhat.com>
43182
43183         tests: make sc_require_test_exit_idiom more generic
43184         * top/maint.mk (Exit_witness_file): New overridable variable.
43185         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43186         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43187
43188 2009-06-19  Jim Meyering  <meyering@redhat.com>
43189
43190         hash: reverse order of src/dst parameters in an internal interface
43191         * lib/hash.c (transfer_entries): Reverse order of parameters to
43192         put DST before SRC.  Adjust callers.
43193
43194         tests: test-hash: avoid wholesale duplication
43195         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43196         Instead, use a loop and add a single conditional.
43197
43198         tests: test-hash: allow seed selection via a command line argument
43199         * tests/test-hash.c (get_seed): New function.
43200         (main): Use it.
43201
43202 2009-06-19  Eric Blake  <ebb9@byu.net>
43203
43204         hash: avoid memory leak on allocation failure
43205         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43206         failure.  Factor repeated algorithm...
43207         (transfer_entries): ...into new helper routine.
43208         (hash_delete): React to hash_rehash return value.
43209
43210         hash: reduce memory pressure in hash_rehash no-op case
43211         * lib/hash.c (next_prime): Avoid overflow.
43212         (hash_initialize): Factor bucket size computation...
43213         (compute_bucket_size): ...into new helper function.
43214         (hash_rehash): Use new function and open coding to reduce memory
43215         pressure, and avoid a memory leak in USE_OBSTACK code.
43216         Reported by Jim Meyering.
43217
43218 2009-06-18  Eric Blake  <ebb9@byu.net>
43219
43220         hash: make rotation more obvious
43221         * modules/hash (Depends-on): Add bitrotate and stdint.
43222         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43223         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43224         (SIZE_MAX): Rely on headers for definition.
43225         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43226         (raw_hasher): Use rotr_sz.
43227         Suggested by Jim Meyering.
43228
43229         hash: fix memory leak in last patch
43230         * lib/hash.c (hash_rehash): Avoid memory leak.
43231
43232         hash: avoid no-op rehashing
43233         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43234
43235         hash: provide default callback functions
43236         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43237         (hash_initialize): Use them as defaults.
43238         * tests/test-hash.c (main): Test this.
43239
43240         hash: minor optimization
43241         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43242         when possible.
43243         (hash_initialize): Document this promise.
43244         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43245         * tests/test-hash.c (hash_compare_strings): Test this.
43246
43247 2009-06-18  Bruno Haible  <bruno@clisp.org>
43248
43249         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43250         going to be replaced anyway.
43251
43252 2009-06-18  Bruno Haible  <bruno@clisp.org>
43253
43254         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43255         in one place.
43256         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43257         be replaced anyway.
43258
43259 2009-06-18  Eric Blake  <ebb9@byu.net>
43260
43261         hash: check for resize before insertion
43262         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43263         threshold before insertion, so that a pathological hash_rehash
43264         that fills every bucket can still trigger another rehash.
43265
43266 2009-06-18  Jim Meyering  <meyering@redhat.com>
43267
43268         hash-tests: add a loop around the small tests
43269         * tests/test-hash.c (main): Repeat small tests with selected
43270         small initial table sizes.
43271
43272 2009-06-17  Eric Blake  <ebb9@byu.net>
43273
43274         hash: minor cleanups
43275         * lib/hash.h (hash_entry): Make opaque, by moving...
43276         * lib/hash.c (hash_entry): ...here.
43277         (hash_insert): Clarify restrictions on what can be inserted.
43278         (hash_get_next): Clarify when it is safe to remove an element
43279         during traversal.
43280         (check_tuning): Skip verification when tuning is known safe.
43281         (hash_initialize): Clarify restrictions on tuning.
43282
43283 2009-06-17  Jim Meyering  <jim@meyering.net>
43284         and Eric Blake  <ebb9@byu.net>
43285
43286         hash-tests: new module
43287         * modules/hash-tests: New file.
43288         * tests/test-hash.c: New file.
43289
43290 2009-06-17  Eric Blake  <ebb9@byu.net>
43291
43292         strstr-simple: document new module
43293         * MODULES.html.sh: Document new module.
43294
43295         strstr, strcasestr: replace on platforms with broken memchr
43296         * modules/strstr: Split into...
43297         * modules/strstr-simple: ...new module that does not care about
43298         performance, but does care about glibc bug.
43299         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43300         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43301         if platform memchr is broken, per Debian bug 521737.
43302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43303         memchr.
43304         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43305         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43306         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43307         * modules/mountlist (Depends-on): Add strstr-simple.
43308         * modules/gen-uni-tables (Depends-on): Likewise.
43309         * modules/argz (Depends-on): Add strstr.
43310
43311 2009-06-17  Bruno Haible  <bruno@clisp.org>
43312
43313         * modules/posix_spawn-internal (Depends-on): Add errno.
43314
43315 2009-06-17  Bruno Haible  <bruno@clisp.org>
43316
43317         Define missing ESTALE on Interix 3.5.
43318         * lib/errno.in.h (ESTALE): Assign a value if missing.
43319         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43320         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43321         missing.
43322         * doc/posix-headers/errno.texi: Mention the Interix bug.
43323         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43324
43325 2009-06-15  Eric Blake  <ebb9@byu.net>
43326
43327         memchr, memchr2: add valgrind exception
43328         * lib/memchr.valgrind: New file.
43329         * lib/memchr2.valgrind: New file.
43330         * modules/memchr (Files): Distribute valgrind file.
43331         * modules/memchr2 (Files): Likewise.
43332
43333         docs: memchr is no longer obsolete
43334         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43335         * lib/string.in.h (memchr): Simplify logic.
43336
43337 2009-06-14  Jim Meyering  <meyering@redhat.com>
43338
43339         link-follow: fix the "checking..." message to not mention trailing slash
43340         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43341         never considered trailing slashes.
43342
43343 2009-06-14  Bruno Haible  <bruno@clisp.org>
43344
43345         * m4/memchr.m4: Mention also the bug on IA-64.
43346         * doc/posix-functions/memchr.texi: Likewise.
43347
43348 2009-06-12  Eric Blake  <ebb9@byu.net>
43349
43350         memchr: detect broken x86_64 and alpha implementations
43351         * modules/memchr-tests (Depends-on): Move mmap detection...
43352         * modules/memchr (Depends-on): ...here.
43353         (configure.ac): Set indicator.
43354         * lib/string.in.h (memchr): Declare replacement.
43355         * modules/string (Makefile.am): Trigger replacement.
43356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43357         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43358         bugs.
43359         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43360         * modules/getpagesize (License): Relax license.
43361
43362 2009-06-11  Bruno Haible  <bruno@clisp.org>
43363
43364         * lib/idpriv.h: Add more references.
43365
43366 2009-06-08  Bruno Haible  <bruno@clisp.org>
43367
43368         Tests for module 'idpriv-droptemp'.
43369         * modules/idpriv-droptemp-tests: New file.
43370         * tests/test-idpriv-droptemp.sh: New file.
43371         * tests/test-idpriv-droptemp.su.sh: New file.
43372         * tests/test-idpriv-droptemp.c: New file.
43373
43374         New module 'idpriv-droptemp'.
43375         * lib/idpriv-droptemp.c: New file.
43376         * modules/idpriv-droptemp: New file.
43377
43378 2009-06-08  Bruno Haible  <bruno@clisp.org>
43379
43380         Tests for module 'idpriv-drop'.
43381         * modules/idpriv-drop-tests: New file.
43382         * tests/test-idpriv-drop.sh: New file.
43383         * tests/test-idpriv-drop.su.sh: New file.
43384         * tests/test-idpriv-drop.c: New file.
43385
43386         New module 'idpriv-drop'.
43387         * lib/idpriv.h: New file.
43388         * lib-idpriv-drop.c: New file.
43389         * m4/idpriv.m4: New file.
43390         * modules/idpriv-drop: New file.
43391
43392 2009-06-08  Bruno Haible  <bruno@clisp.org>
43393
43394         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43395         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43396         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43397         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43398         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43399         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43400         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43401
43402 2009-06-08  Eric Blake  <ebb9@byu.net>
43403
43404         test-strstr: use memory fence, when possible
43405         * tests/test-strstr.c (main): Use memory fence, in order to be
43406         more likely to trigger Debian bug 521737.
43407         * modules/strstr-tests (Files): Pull in additional files.
43408
43409         memchr: no longer obsolete, for wider field testing
43410         * modules/memchr (Status, Notice): Delete, this module is no
43411         longer obsolete.
43412         * modules/vasnprintf (Depends-on): Add memchr.
43413
43414 2009-06-07  Jim Meyering  <meyering@redhat.com>
43415
43416         hash: declare some functions with the warn_unused_result attribute
43417         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43418
43419 2009-06-07  Bruno Haible  <bruno@clisp.org>
43420
43421         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43422         Reported by Eric Blake.
43423
43424 2009-06-06  Eric Blake  <ebb9@byu.net>
43425
43426         test-alignof: fix typo with long double
43427         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43428         compiler error.
43429
43430 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43431
43432         Escape non-texinfo { and }s.
43433         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43434         markup error.
43435
43436 2009-06-04  Jim Meyering  <meyering@redhat.com>
43437
43438         gitlog-to-changelog: don't infloop on an empty commit log
43439         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43440         Reported by Boris Petersen <transacid@centerim.org>.
43441
43442 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43443
43444         version-etc: extend for packagers
43445         Add three new configure options, intended for packagers:
43446           --with-packager="packager name"
43447           --with-packager-version="packager-specific version"
43448           --with-packager-bug-reports="packager bug reporting"
43449         An example with coreutils:
43450           $ ./configure \
43451             --with-packager=Gentoo \
43452             --with-packager-bug-report=http://bugs.gentoo.org/ \
43453             --with-packager-version="patchset 1.6"
43454           $ ./src/ls --version | head -n2
43455           ls (GNU coreutils) 7.1-dirty
43456           Packaged by Gentoo (patchset 1.6)
43457         Note that the bug reporting info via --help doesn't show up because
43458         coreutils uses its own custom emit_bug_reporting_address() implementation
43459         in src/system.h.  If it didn't, it'd look like:
43460           $ ./src/ls --help | tail -n4
43461           Report bugs to <bug-coreutils@gnu.org>.
43462           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43463           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43464           General help using GNU software: <http://www.gnu.org/gethelp/>.
43465         * lib/version-etc.c: Print new information, if provided.
43466         * m4/version-etc.m4: New file.
43467         * modules/version-etc (Files): Add m4/version-etc.m4.
43468         (configure.ac): Add gl_VERSION_ETC.
43469
43470 2009-05-31  Bruno Haible  <bruno@clisp.org>
43471
43472         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43473         and 'int64_t'.
43474         * modules/alignof-tests (Dependencies): Add stdint.
43475         Reported by Eric Blake.
43476
43477 2009-05-31  Bruno Haible  <bruno@clisp.org>
43478
43479         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43480         restriction due to compiler bugs.
43481         Reported by Eric Blake.
43482
43483 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43484             Bruno Haible  <bruno@clisp.org>
43485
43486         Fix test-alignof failure.
43487         * lib/alignof.h (alignof_slot): New macro.
43488         (alignof_type): New macro, with the same semantics as the previous
43489         'alignof'.
43490         (alignof): Alias to alignof_slot.
43491         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43492         check that the results are usable as constant expressions.
43493
43494 2009-05-31  Bruno Haible  <bruno@clisp.org>
43495
43496         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43497         * tests/test-memchr.c (main): Check that memchr does not read past the
43498         first occurrence of the byte.
43499         * tests/test-strstr.c (main): Update comment.
43500         Suggested by Eric Blake.
43501
43502 2009-05-30  Bruno Haible  <bruno@clisp.org>
43503
43504         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43505         detail how to use dumpbin.
43506         Reported by David Byron <dbyron@dbyron.com>.
43507
43508 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43509
43510         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43511
43512 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43513
43514         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43515
43516 2009-05-28  Bruno Haible  <bruno@clisp.org>
43517
43518         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43519         build-aux/ files.
43520
43521 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43522
43523         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43524
43525 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43526
43527         * gnulib-tool (sed_transform_main_lib_file)
43528         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43529         regexps.
43530
43531 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43532
43533         * tests/test-strstr.c: Add another self-test.
43534         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43535         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43536
43537 2009-05-23  Bruno Haible  <bruno@clisp.org>
43538
43539         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43540         change.
43541
43542 2009-05-21  Bruno Haible  <bruno@clisp.org>
43543
43544         Simplify use of mode_t varargs.
43545         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43546         uses 'mode_t' or 'int'.
43547         * lib/openat.c (openat): Likewise.
43548         * lib/open-safer.c (open_safer): Likewise.
43549         * m4/mode_t.m4: New file.
43550         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43551         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43552         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43553         * modules/open (Files): Add m4/mode_t.m4.
43554         * modules/openat (Files): Likewise.
43555         * modules/fcntl-safer (Files): Likewise.
43556         Suggested by Eric Blake.
43557
43558 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43559
43560         * doc/glibc-functions/fallocate.texi: New file.
43561         * doc/gnulib.texi: Include it.
43562
43563 2009-05-21  Eric Blake  <ebb9@byu.net>
43564             Bruno Haible  <bruno@clisp.org>
43565
43566         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43567         invocations.
43568         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43569
43570 2009-05-21  Eric Blake  <ebb9@byu.net>
43571             Bruno Haible  <bruno@clisp.org>
43572
43573         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43574         include_next. Fix of 2008-11-20 commit.
43575         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43576         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43577         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43578         NEXT_MATH_H.
43579         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43580         instead of NEXT_MATH_H.
43581
43582 2009-05-21  Bruno Haible  <bruno@clisp.org>
43583
43584         Avoid redefinition warnings for SIZE_MAX.
43585         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43586         Reported by Simon Josefsson.
43587
43588 2009-05-21  Bruno Haible  <bruno@clisp.org>
43589
43590         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43591         AC_CACHE_VAL.
43592
43593 2009-05-20  Bruno Haible  <bruno@clisp.org>
43594
43595         Make zeroptr.h work on mingw.
43596         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43597         mprotect.
43598         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43599         * modules/memchr2-tests (configure.ac): Likewise.
43600         * modules/memcmp-tests (configure.ac): Likewise.
43601         * modules/memmem-tests (configure.ac): Likewise.
43602         * modules/memrchr-tests (configure.ac): Likewise.
43603         Reported by Simon Josefsson.
43604
43605 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43606
43607         * tests/test-glob.c: Include string.h for strcmp prototype.
43608
43609 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43610
43611         * modules/getdelim (Depends-on): Add explicit stdint, although it
43612         was implicitly already pulled in via realloc-posix.
43613         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43614
43615 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43616
43617         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43618         G. Christensen" <tgc@jupiterrise.com>.
43619         * m4/sys_socket_h.m4: Check for sa_family_t.
43620         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43621         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43622         * tests/test-sys_socket.c: Check that sa_family_t works.
43623
43624 2009-05-18  Eric Blake  <ebb9@byu.net>
43625
43626         maint.mk: allow gnulib_dir in VPATH build
43627         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43628
43629 2009-05-15  Jim Meyering  <meyering@redhat.com>
43630
43631         maint.mk: Give gnulib_dir a default definition.
43632         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43633         Thus, most packages no longer need to specify this variable in cfg.mk
43634
43635 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43636
43637         rename.m4: fix typos that would make non-mingw cross-configure fail
43638         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43639
43640 2009-05-13  Eric Blake  <ebb9@byu.net>
43641
43642         mmap-anon: avoid out-of-order autoconf expansion
43643         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43644         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43645         * modules/memchr-tests (Depends-on): Add extensions.
43646         * modules/memchr2-tests (Depends-on): Add extensions.
43647         * modules/memcmp-tests (Depends-on): Add extensions.
43648         * modules/memmem-tests (Depends-on): Add extensions.
43649         * modules/memrchr-tests (Depends-on): Add extensions.
43650
43651 2009-05-13  Bruno Haible  <bruno@clisp.org>
43652
43653         Make some tests ISO C 99 compliant.
43654         * tests/zerosize-ptr.h: New file.
43655         * tests/test-memchr.c: Include zerosize-ptr.h.
43656         (main): Use a zero-size object pointer instead of NULL.
43657         * tests/test-memchr2.c: Include zerosize-ptr.h.
43658         (main): Use a zero-size object pointer instead of NULL.
43659         * tests/test-memcmp.c: Include zerosize-ptr.h.
43660         (main): Use a zero-size object pointer instead of NULL.
43661         * tests/test-memmem.c: Include zerosize-ptr.h.
43662         (main): Use a zero-size object pointer instead of NULL.
43663         * tests/test-memrchr.c: Include zerosize-ptr.h.
43664         (main): Use a zero-size object pointer instead of NULL.
43665         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43666         m4/mmap-anon.m4.
43667         (Depends-on): Add getpagesize.
43668         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43669         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43670         m4/mmap-anon.m4.
43671         (Depends-on): Add getpagesize.
43672         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43673         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43674         m4/mmap-anon.m4.
43675         (Depends-on): Add getpagesize.
43676         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43677         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43678         m4/mmap-anon.m4.
43679         (Depends-on): Add getpagesize.
43680         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43681         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43682         m4/mmap-anon.m4.
43683         (Depends-on): Add getpagesize.
43684         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43685
43686 2009-05-12  Bruno Haible  <bruno@clisp.org>
43687
43688         Tests for module 'alignof'.
43689         * modules/alignof-tests: New file.
43690         * tests/test-alignof.c: New file.
43691
43692 2009-05-12  Bruno Haible  <bruno@clisp.org>
43693
43694         Fix alignof macro.
43695         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43696         vendor compilers that are always correct.
43697
43698 2009-05-12  Bruno Haible  <bruno@clisp.org>
43699
43700         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43701         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43702         not whether its fully works.
43703
43704 2009-05-12  Bruno Haible  <bruno@clisp.org>
43705
43706         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43707
43708 2009-05-12  Jim Meyering  <meyering@redhat.com>
43709
43710         * top/maint.mk: Adjust backslash alignment.
43711
43712 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43713
43714         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43715
43716 2009-05-11  Eric Blake  <ebb9@byu.net>
43717
43718         argp: avoid undefined behavior
43719         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43720         macros.
43721
43722 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43723
43724         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43725         user.name to prevent git commit from complaining.
43726
43727 2009-05-10  Bruno Haible  <bruno@clisp.org>
43728
43729         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43730         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43731         it rewrites every file name only once.
43732         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43733
43734 2009-05-08  Bruno Haible  <bruno@clisp.org>
43735
43736         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43737         instead of 'max'.
43738
43739 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43740
43741         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43742         sockaddr_storage test.
43743
43744 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43745
43746         * modules/sys_socket (Makefile.am): Substitute
43747         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43748         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43749         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43750         * tests/test-sys_socket.c: Check sockaddr_storage.
43751
43752 2009-05-08  Bruno Haible  <bruno@clisp.org>
43753
43754         New module 'alignof'.
43755         * lib/alignof.h: New file.
43756         * modules/alignof: New file.
43757
43758 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43759             Bruno Haible  <bruno@clisp.org>
43760
43761         Fix test-file-has-acl on FreeBSD.
43762         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43763         mask is implicitly added.
43764         * tests/test-file-has-acl.c: Include <signal.h>.
43765         (main): Terminate the test after 5 seconds.
43766         * modules/acl-tests (configure.ac): Check for alarm function.
43767
43768 2009-05-04  Bruno Haible  <bruno@clisp.org>
43769
43770         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43771         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43772         * modules/errno (configure.ac): Drop AC_REQUIRE.
43773         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43774         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43775
43776 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43777
43778         * modules/glob-tests: New module.
43779         * tests/test-glob.c: Add.
43780
43781 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43782
43783         * modules/fnmatch-tests: New module.
43784         * tests/test-fnmatch.c: Add.
43785
43786 2009-05-04  Eric Blake  <ebb9@byu.net>
43787
43788         maint: make the new no-submodule-changes rule VPATH-safe
43789         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43790
43791 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43792             Bruno Haible  <bruno@clisp.org>
43793
43794         acl: Fix infinite loop on FreeBSD.
43795         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43796         of return value from acl_get_entry.
43797         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43798         Likewise.
43799
43800 2009-05-03  Bruno Haible  <bruno@clisp.org>
43801
43802         * lib/acl-internal.h (acl_entries): Clarify return value.
43803         * lib/acl_entries.c (acl_entries): Likewise.
43804
43805 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43806
43807         Bug fix in acl module.
43808         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43809
43810 2009-05-03  Bruno Haible  <bruno@clisp.org>
43811
43812         Create gperf-generated file in the source dir, not in the build dir.
43813         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43814         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43815         * modules/unicase/locale-language (unicase/locale-languages.h):
43816         Likewise.
43817         * modules/unicase/special-casing (unicase/special-casing-table.h):
43818         Likewise.
43819         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43820         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43821         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43822         Reported by Ralf Wildenhues.
43823
43824 2009-05-03  Bruno Haible  <bruno@clisp.org>
43825
43826         * modules/fnmatch (Description, configure.ac): Taken from
43827         fnmatch-posix.
43828         * modules/fnmatch-posix: Turn into a symbolic reference to the
43829         'fnmatch' module, and deprecate.
43830         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43831
43832 2009-05-03  Bruno Haible  <bruno@clisp.org>
43833
43834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43835         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43836         Reported by Ralf Wildenhues.
43837
43838 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43839
43840         * m4/fnmatch.m4: Fix fnmatch re-define.
43841
43842 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43843
43844         priv-set: new module and tests; adapt write-any-file
43845         * lib/priv-set.c: New file.
43846         * lib/priv-set.h: New file.
43847         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43848         * lib/write-any-file.c: Simplify by using priv-set module.
43849         * m4/priv-set.m4: New file.
43850         * modules/priv-set: New file.
43851         * modules/unlinkdir: Add dependency on priv-set module.
43852         * modules/write-any-file: Likewise.
43853
43854         Tests for module 'priv-set'.
43855         * modules/priv-set-tests: New file.
43856         * tests/test-priv-set.c: New file.
43857
43858 2009-05-03  Jim Meyering  <meyering@redhat.com>
43859             Bruno Haible  <bruno@clisp.org>
43860
43861         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43862         use the converted UTF-8 variant of the name instead.
43863
43864 2009-05-03  Jim Meyering  <meyering@redhat.com>
43865
43866         tests: tighten some getdate tests
43867         * tests/test-getdate.c (main): Tighten tests: require equality,
43868         not just greater than.  Set TZ envvar to UTC0.
43869
43870 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43871
43872         getdate: correctly interpret "next monday" when run on a Monday
43873         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43874         that e.g., "next tues" (when run on a tuesday) results in a date
43875         that is one week in the future, and not today's date.
43876         I.e., add a week when the wday is the same as the current one.
43877         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43878         and earlier by Martin Bernreuther and Jan Minář.
43879         * tests/test-getdate.c (main): Check that "next DAY" is always in
43880         the future and that "last DAY" is always in the past.
43881
43882 2009-05-02  Jim Meyering  <meyering@redhat.com>
43883
43884         build: ensure that a release build fails when a submodule is unclean
43885         * top/maint.mk (no-submodule-changes): New rule.
43886         (alpha beta major): Depend on it.
43887
43888 2009-05-02  Bruno Haible  <bruno@clisp.org>
43889
43890         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43891         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43892         shell variable gl_fnmatch_required to detect which variant is
43893         requested.
43894         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43895         gl_FUNC_FNMATCH_POSIX.
43896         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43897         exclude fnmatch-posix.
43898
43899 2009-05-02  Bruno Haible  <bruno@clisp.org>
43900
43901         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43902         * modules/mbsrtowcs (License): Change to LGPLv2+.
43903         * modules/strnlen1 (License): Likewise.
43904         Reported by Simon Josefsson.
43905
43906 2009-05-02  Bruno Haible  <bruno@clisp.org>
43907
43908         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43909         "cross".
43910         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43911         gnulib-tool was called with option --source-base=lib.
43912
43913 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43914
43915         Use automake *-local hooks without commands, for extensibility.
43916         * modules/localcharset (Makefile.am): Rename install-exec-local
43917         rule to install-exec-localcharset, and make it a prerequisite of
43918         install-exec-local.  Likewise, rename the uninstall-local rule to
43919         uninstall-localcharset, and make it a prerequisite of the former.
43920
43921 2009-05-01  Bruno Haible  <bruno@clisp.org>
43922
43923         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43924         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43925         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43926         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43927         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43928         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43929         m4/locale-zh.m4, m4/codeset.m4.
43930
43931         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43932         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43933         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43934         m4/locale-zh.m4.
43935
43936         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43937         REPLACE_WCRTOMB if mbstate_t must be replaced.
43938         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43939         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43940
43941 2009-05-01  Bruno Haible  <bruno@clisp.org>
43942
43943         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43944         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43945         dngettext, dcngettext, textdomain, bindtextdomain,
43946         bind_textdomain_codeset): Undefine before redefining.
43947
43948 2009-04-30  Bruno Haible  <bruno@clisp.org>
43949
43950         Fix bug introduced on 2009-04-25.
43951         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43952         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43953         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43954         is defined.
43955         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43956         is defined.
43957         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43958         is defined.
43959         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43960
43961 2009-04-28  Bruno Haible  <bruno@clisp.org>
43962
43963         Comment tweaks.
43964         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43965         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43966         * lib/unicase.h (u*_casexfrm): Likewise.
43967         Reported by Paolo Bonzini.
43968
43969 2009-04-28  Bruno Haible  <bruno@clisp.org>
43970
43971         Fix a compilation error.
43972         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43973         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43974         Reported by Jim Meyering.
43975
43976 2009-04-27  Bruno Haible  <bruno@clisp.org>
43977
43978         New module 'libunistring'.
43979         * modules/libunistring: New file.
43980         * m4/libunistring.m4: New file.
43981         * MODULES.html.sh (Unicode string functions): Add it.
43982
43983 2009-04-27  Eric Blake  <ebb9@byu.net>
43984
43985         maint.mk: allow package-specific header to provide <config.h>
43986         * top/maint.mk (sc_require_config_h): New variable.
43987         (sc_require_config_h, sc_require_config_h_first): Use it.
43988
43989 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43990
43991         * top/maint.mk (sc_avoid_if_before_free): Except
43992         useless-if-before-free script.
43993
43994 2009-04-27  Eric Blake  <ebb9@byu.net>
43995
43996         maintainer-makefile: depend on all required helper scripts
43997         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43998         useless-if-before-free.
43999         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44000         version, rather than assuming gnulib checkout is available.
44001         Reported by Simen Josefsson.
44002
44003 2009-04-26  Bruno Haible  <bruno@clisp.org>
44004
44005         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44006         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44007         "../" or "..".
44008
44009 2009-04-26  Bruno Haible  <bruno@clisp.org>
44010
44011         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44012         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44013         AC_LIB_HAVE_LINKFLAGS.
44014
44015 2009-04-26  Bruno Haible  <bruno@clisp.org>
44016
44017         Simplify calling convention of u*_conv_from_encoding.
44018         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44019         u32_conv_from_encoding): Expect a resultbuf argument and return the
44020         result directly as a pointer.
44021         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44022         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44023         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44024         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44025         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44026         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44027         Update.
44028         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44029         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44030         * lib/vasnprintf.c (VASNPRINTF): Update.
44031         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44032         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44033         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44034         * NEWS: Mention the change.
44035
44036 2009-04-26  Bruno Haible  <bruno@clisp.org>
44037
44038         Simplify calling convention of u*_conv_to_encoding.
44039         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44040         u32_conv_to_encoding): Expect a resultbuf argument and return the
44041         result directly as a pointer.
44042         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44043         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44044         freeing scaled_offsets if mem_iconveha failed.
44045         * lib/unicase/u-casexfrm.h (FUNC): Update.
44046         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44047         * lib/vasnprintf.c (VASNPRINTF): Update.
44048         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44049         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44050         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44051         * NEWS: Mention the change.
44052
44053 2009-04-26  Bruno Haible  <bruno@clisp.org>
44054
44055         Avoid test failures on AIX and OSF/1.
44056         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44057         malloc(0).
44058         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44059         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44060         Likewise.
44061         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44062         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44063         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44064         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44065         * doc/posix-functions/malloc.texi: Document the portability problem
44066         related to malloc(0).
44067
44068 2009-04-26  Bruno Haible  <bruno@clisp.org>
44069
44070         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44071         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44072         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44073
44074 2009-04-25  Bruno Haible  <bruno@clisp.org>
44075
44076         Avoid link error when creating a namespace clean library.
44077         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44078         as macro with arguments if already defined as an alias.
44079         * lib/signbitf.c (gl_signbitf): Don't undefine.
44080         * lib/signbitd.c (gl_signbitd): Don't undefine.
44081         * lib/signbitl.c (gl_signbitl): Don't undefine.
44082
44083 2009-04-25  Jim Meyering  <meyering@redhat.com>
44084
44085         vc-list-files: fix another quoting bug
44086         * build-aux/vc-list-files: Avoid sed backslash expansion
44087         of pathological directory names.
44088
44089 2009-04-25  Eric Blake  <ebb9@byu.net>
44090
44091         vc-list-files: fix shell quoting error
44092         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44093         timestamp.
44094
44095 2009-04-25  Jim Meyering  <meyering@redhat.com>
44096
44097         vc-list-files: restore lost functionality with subdir argument
44098         * build-aux/vc-list-files: When given a non-"." sub-directory
44099         argument, substitute the $dir/ prefix back onto each resulting name.
44100         Otherwise, coreutils' root_tests check would fail.
44101
44102 2009-04-24  Eric Blake  <ebb9@byu.net>
44103
44104         vc-list-files: ignore git symlinks
44105         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44106         than ls-files, to ignore git symlinks.
44107
44108         maint.mk: import improvements from m4
44109         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44110         (move_if_change): Delete unused macro.
44111         (news-date-check, vc-diff-check): Support VPATH builds.
44112         (announcement): Likewise.  Split --bootstrap-tools list...
44113         (boostrap-tools): ...into separate list, which can be overridden
44114         in cfg.mk.
44115         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44116         requiring dependency on useless-if-before-free module.
44117         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44118         Support VPATH builds.
44119
44120 2009-04-24  Jim Meyering  <meyering@redhat.com>
44121
44122         maint.mk: remove coreutils-specific rules and variables
44123         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44124         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44125         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44126
44127         maint.mk: remove obsolete rule
44128         * top/maint.mk (rel-check): Remove rule.
44129         (WGET, WGETFLAGS): Remove now-unused variables.
44130
44131 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44132
44133         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44134         consistency.
44135
44136         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44137         '$(PATH_SEPARATOR)' instead of ':'.
44138
44139 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44140
44141         * lib/getopt1.c (main): Use 'const' for static array.
44142
44143 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44144
44145         * top/maint.mk: Sync with coreutils.
44146         * NEWS: Explain incompatibilities.
44147
44148 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44149             Bruno Haible  <bruno@clisp.org>
44150
44151         Fix cross-compilation results.
44152         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44153         statement, as third argument of AC_TRY_RUN.
44154         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44155         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44156         Likewise.
44157         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44158         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44159         Likewise.
44160         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44161         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44162         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44163
44164 2009-04-20  Bruno Haible  <bruno@clisp.org>
44165
44166         Avoid test failure on mingw.
44167         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44168
44169 2009-04-20  Bruno Haible  <bruno@clisp.org>
44170
44171         Avoid compilation error on mingw.
44172         * modules/localename-tests (Depends-on): Add locale.
44173
44174 2009-04-19  Bruno Haible  <bruno@clisp.org>
44175
44176         Support for building a shared library on Windows platforms.
44177         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44178         (main): Test the presence of UNINORM_NFC here.
44179         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44180         (main): Test the presence of UNINORM_NFD here.
44181         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44182         (main): Test the presence of UNINORM_NFKC here.
44183         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44184         (main): Test the presence of UNINORM_NFKD here.
44185
44186 2009-04-19  Bruno Haible  <bruno@clisp.org>
44187
44188         Avoid a compiler warning.
44189         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44190         Change type of variable 'sequence'.
44191
44192 2009-04-19  Bruno Haible  <bruno@clisp.org>
44193
44194         * modules/configmake (Makefile.am): When the contents of configmake.h
44195         does not change, arrange to preserve its modification time.
44196
44197 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44198
44199         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44200         gettext domain.
44201
44202 2009-04-16  Jim Meyering  <meyering@redhat.com>
44203
44204         useless-if-before-free: improve conversion code
44205         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44206         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44207
44208 2009-04-14  Bruno Haible  <bruno@clisp.org>
44209
44210         * modules/fcntl (Depends-on): Add extensions.
44211         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44212
44213 2009-04-12  Ben Pfaff  <blp@gnu.org>
44214
44215         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44216         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44217
44218 2009-03-20  Ben Pfaff  <blp@gnu.org>
44219
44220         Make rename replace existing destinations on Windows.
44221         * m4/rename.m4: Add test for Mingw.
44222         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44223         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44224         * doc/posix-functions/rename.texi: Document.
44225
44226 2009-04-10  Bruno Haible  <bruno@clisp.org>
44227
44228         New include file "iconveh.h".
44229         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44230         * lib/striconveh.h: Include it.
44231         (enum iconv_ilseq_handler): Remove definition.
44232         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44233         striconveh.h.
44234         * lib/striconveha.c: Include striconveh.h.
44235         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44236         * modules/striconveh (Files): Add lib/iconveh.h.
44237         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44238         lib/striconveh.h.
44239
44240 2009-04-10  Bruno Haible  <bruno@clisp.org>
44241
44242         * lib/uniconv.h: Update comment.
44243
44244 2009-04-10  Bruno Haible  <bruno@clisp.org>
44245
44246         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44247         always.
44248         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44249         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44250         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44251         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44252         "unistring-notinline.h", so that the function gets defined always.
44253         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44254         * lib/unistr/u8-uctomb.c: Likewise.
44255         * lib/unistr/u16-mbtouc.c: Likewise.
44256         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44257         * lib/unistr/u16-uctomb.c: Likewise.
44258         * lib/unistr/u32-mbtouc.c: Likewise.
44259         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44260         * lib/unistr/u32-uctomb.c: Likewise.
44261
44262 2009-04-10  Bruno Haible  <bruno@clisp.org>
44263
44264         Mark 'utime' obsolete.
44265         * modules/utime (Status, Notice): New sections.
44266         Suggested by Jim Meyering.
44267
44268         Fix cross-compile guess for utime test.
44269         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44270         autoconf.
44271         * doc/posix-functions/utime.texi: Give more precisions.
44272         Reported by Jan <ipif@ymail.com>.
44273
44274 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44275
44276         filevercmp: correct today's change
44277         * lib/filevercmp.c: Also handle coreutils' test inputs.
44278         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44279
44280         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44281         for reporting it.
44282         * lib/filevercmp.c: Special handle for "", "." and "..".
44283         * tests/test-filevercmp.c: Enlarge the set suite.
44284
44285 2009-04-07  Jim Meyering  <meyering@redhat.com>
44286
44287         useless-if-before-free: show how to remove braced useless free, too
44288         * build-aux/useless-if-before-free: still only in a comment, though.
44289
44290 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44291
44292         maint.mk: import changes to syntax-check macros from coreutils
44293         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44294         Use them in the relevant macros.
44295
44296 2009-04-06  Bruno Haible  <bruno@clisp.org>
44297
44298         Fix unportable use of bit-fields.
44299         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44300         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44301         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44302
44303 2009-04-06  Bruno Haible  <bruno@clisp.org>
44304
44305         Avoid test failures on AIX and OSF/1.
44306         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44307         that malloc(0) = NULL.
44308         * tests/unicase/test-u8-tolower.c (check): Likewise.
44309         * tests/unicase/test-u8-totitle.c (check): Likewise.
44310         * tests/unicase/test-u8-toupper.c (check): Likewise.
44311         * tests/unicase/test-u16-casefold.c (check): Likewise.
44312         * tests/unicase/test-u16-tolower.c (check): Likewise.
44313         * tests/unicase/test-u16-totitle.c (check): Likewise.
44314         * tests/unicase/test-u16-toupper.c (check): Likewise.
44315         * tests/unicase/test-u32-casefold.c (check): Likewise.
44316         * tests/unicase/test-u32-tolower.c (check): Likewise.
44317         * tests/unicase/test-u32-totitle.c (check): Likewise.
44318         * tests/unicase/test-u32-toupper.c (check): Likewise.
44319         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44320         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44321         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44322         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44323         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44324         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44325         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44326         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44327         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44328         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44329         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44330         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44331
44332 2009-04-05  Bruno Haible  <bruno@clisp.org>
44333
44334         Work around an autoconf limitation.
44335         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44336         comment line if it would be longer than 3 KB.
44337
44338 2009-04-05  Bruno Haible  <bruno@clisp.org>
44339
44340         Avoid test failure with libiconv-1.13.
44341         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44342         of the expected test results.
44343
44344 2009-04-05  Bruno Haible  <bruno@clisp.org>
44345
44346         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44347         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44348         that it should be installed.
44349
44350 2009-04-05  Bruno Haible  <bruno@clisp.org>
44351
44352         * gnulib-tool: New option --copy-file.
44353         (func_usage): Document it.
44354         (func_dest_tmpfilename): Moved out of func_import.
44355         (func_add_file, func_update_file): New functions, extracted from
44356         func_import.
44357         (func_import): Update.
44358
44359 2009-04-05  Karl Berry  <karl@gnu.org>
44360
44361         * README: prominently mention gnulib-tool.
44362         Rearrange sections so getting the code is near the top.
44363
44364 2009-04-05  Bruno Haible  <bruno@clisp.org>
44365
44366         * lib/unicase.h: Mention u*_cmp2.
44367         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44368         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44369         * lib/unicase/ulc-casecmp.c: Likewise.
44370         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44371         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44372         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44373         unistr/u8-cmp.
44374         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44375         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44376         unistr/u16-cmp.
44377         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44378         unistr/u32-cmp.
44379
44380         * lib/uninorm.h: Mention u*_cmp2.
44381         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44382         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44383         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44384         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44385         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44386         unistr/u8-cmp.
44387         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44388         unistr/u16-cmp.
44389         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44390         unistr/u32-cmp.
44391
44392         New module 'unistr/u32-cmp2'.
44393         * lib/unistr/u32-cmp2.c: New file.
44394         * modules/unistr/u32-cmp2: New file.
44395
44396         New module 'unistr/u16-cmp2'.
44397         * lib/unistr/u16-cmp2.c: New file.
44398         * modules/unistr/u16-cmp2: New file.
44399
44400         New module 'unistr/u8-cmp2'.
44401         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44402         * lib/unistr/u8-cmp2.c: New file.
44403         * lib/unistr/u-cmp2.h: New file.
44404         * modules/unistr/u8-cmp2: New file.
44405
44406 2009-04-05  Bruno Haible  <bruno@clisp.org>
44407
44408         * lib/unictype.h (uc_property_is_valid): New macro.
44409         * tests/unictype/test-pr_byname.c (main): Use it.
44410
44411         * lib/unistr.h: Doc fixes.
44412         * lib/uniconv.h: Doc fixes.
44413         * lib/unictype.h: Doc fixes.
44414
44415 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44416
44417         Port coreutils 7.2 to Solaris 8.
44418
44419         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44420         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44421         for Solaris 8.  This is a bit of a hack, as it means it's the
44422         caller's responsibility to add -lnsl if needed, but most likely it
44423         won't be needed since only getaddrinfo uses this and getaddrinfo
44424         isn't needed on Solaris 8.
44425
44426         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44427         problem to Solaris 8 encountered with coreutils 7.2, which
44428         resulted in a message "fnmatch.c:292: warning: passing argument 4
44429         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44430         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44431
44432 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44433
44434         * m4/ld-version-script.m4: Add FIXME comment.
44435
44436 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44437
44438         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44439         SOVERSION variable.
44440
44441 2009-04-02  Bruno Haible  <bruno@clisp.org>
44442
44443         * Makefile (info, html, dvi, pdf): Combine the rules.
44444         Suggested by Jim Meyering.
44445
44446 2009-04-01  Bruno Haible  <bruno@clisp.org>
44447
44448         * Makefile (info, html, dvi, pdf): New targets.
44449         Reported by Reuben Thomas <rrt@sc3d.org>.
44450
44451 2009-04-01  Bruno Haible  <bruno@clisp.org>
44452
44453         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44454         can be put into PATH.
44455         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44456
44457 2009-04-01  Bruno Haible  <bruno@clisp.org>
44458
44459         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44460
44461 2009-04-01  Bruno Haible  <bruno@clisp.org>
44462
44463         Rename module 'visibility'.
44464         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44465         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44466         * doc/gnulib.texi: Update.
44467         * MODULES.html.sh (Misc): Update.
44468         * NEWS: Mention the change.
44469
44470 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44471
44472         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44473         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44474         Eric Blake <ebb9@byu.net> for review.
44475         * MODULES.html.sh: Add lib-msvc-compat.
44476         * doc/gnulib.texi: Link to new section.
44477         * m4/ld-output-def.m4: New file.
44478         * doc/ld-output-def.texi: New file.
44479
44480 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44481
44482         Rename ld-version-script to lib-symbol-versions.  Suggested by
44483         Bruno Haible <bruno@clisp.org>.
44484         * modules/ld-version-script: Renamed to lib-symbol-versions.
44485         * doc/ld-version-script.texi: Fix module name.
44486         * MODULES.html.sh: Add lib-symbol-versions.
44487
44488 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44489
44490         * modules/u64-tests: New file.
44491         * tests/test-u64.c: New file.
44492
44493 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44494
44495         * MODULES.html.sh: Mention u64.
44496         * modules/u64: New module.
44497         * modules/crypto/sha512: Depend on u64 module instead of providing
44498         u64.h.
44499
44500 2009-03-27  Eric Blake  <ebb9@byu.net>
44501
44502         test-strerror: make debugging EAI_SYSTEM easier
44503         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44504         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44505         failure was EAI_SYSTEM.
44506
44507 2009-03-25  Bruno Haible  <bruno@clisp.org>
44508
44509         Fix a problem with --enable-relocatable on Solaris 7.
44510         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44511         since 2008-02-24.
44512
44513 2009-03-25  Eric Blake  <ebb9@byu.net>
44514
44515         test-sockets: avoid gcc warning
44516         * tests/test-sockets.c (main): Silence compiler warning.
44517
44518 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44519
44520         New modules nproc, pthread, contributed by Glen Lenker.
44521
44522         * MODULES.html.sh: Add pthread, nproc.
44523         * lib/nproc.c: New file.
44524         * lib/nproc.h: New file.
44525         * lib/pthread.in.h: New file.
44526         * m4/pthread.m4: New file.
44527         * modules/nproc: New file.
44528         * modules/pthread: New file.
44529
44530 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44531
44532         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44533         New variable.
44534
44535 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44536
44537         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44538         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44539         * tests/test-filevercmp.c: Add tests for backup suffixes.
44540
44541 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44542
44543         * modules/stdlib (Depends-on): Add stdint, needed when defining
44544         struct random_data on, for example, HP-UX 10.20.  Reported by
44545         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44546
44547 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44548
44549         * lib/readline.c (readline): Call fflush on stdout after printing
44550         prompt.
44551
44552 2009-03-20  Bruno Haible  <bruno@clisp.org>
44553
44554         Remove dependency from 'close' module to -lws2_32 on native Windows.
44555         * lib/close-hook.h: New file.
44556         * lib/close-hook.c: New file.
44557         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44558         w32sock.h.
44559         (_gl_close_fd_maybe_socket): Remove function.
44560         (rpl_close): Invoke execute_all_close_hooks instead of
44561         _gl_close_fd_maybe_socket.
44562         * lib/sockets.c: Include close-hook.h, w32sock.h.
44563         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44564         (close_sockets_hook): New variable.
44565         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44566         (gl_sockets_cleanup): Unregister it.
44567         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44568         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44569         * modules/close-hook: New file.
44570         * modules/close (Files): Remove lib/w32sock.h.
44571         (Depends-on): Add close-hook.
44572         (Link): Remove section.
44573         * modules/sockets (Files): Add lib/w32sock.h.
44574         (Depends-on): Add close-hook.
44575         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44576         invocation.
44577         * NEWS: Mention that LIB_CLOSE is gone.
44578
44579 2009-03-23  Eric Blake  <ebb9@byu.net>
44580
44581         signal-tests: test previous patch
44582         * tests/test-signal.c: New file.
44583         * modules/signal-tests: Likewise.
44584
44585         signal.h: always support 'volatile sig_atomic_t'
44586         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44587         (gl_SIGNAL_H_DEFAULTS): Add a default.
44588         * modules/signal (Makefile.am): Substitute if needed.
44589         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44590         users can blindly add volatile.
44591         * doc/posix-headers/signal.texi (signal.h): Document it.
44592         Reported by Matthew Woehlke.
44593
44594 2009-03-23  Jim Meyering  <meyering@redhat.com>
44595
44596         pathmax: PATH_MAX: use pathconf only when available
44597         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44598         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44599         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44600         This avoids a link failure in a PSP cross-compilation environment
44601         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44602
44603         * lib/vasnprintf.c (divide): Fix typo in comment.
44604
44605 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44606
44607         * gnulib-tool (func_filter_filelist): Fix comment.
44608
44609 2009-03-20  Bruno Haible  <bruno@clisp.org>
44610
44611         Make sockets.h self-contained.
44612         * lib/sockets.c: Include sockets.h first.
44613         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44614
44615 2009-03-19  Eric Blake  <ebb9@byu.net>
44616
44617         doc: mention more functions added in cygwin 1.7.0
44618         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44619         addition.
44620         * doc/posix-functions/log2f.texi: Likewise.
44621
44622 2009-03-19  Jim Meyering  <meyering@redhat.com>
44623
44624         fsusage: avoid syntax error due to statement-before-declaration
44625         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44626         after all declarations.  Reported by Matthew Woehlke in
44627         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44628
44629 2009-03-18  Eric Blake  <ebb9@byu.net>
44630
44631         build-aux/compile: sync from automake
44632         * build-aux/compile: New file, from automake.
44633         * config/srclist.txt: Mention build-aux/compile.
44634
44635 2009-03-17  Bruno Haible  <bruno@clisp.org>
44636
44637         * lib/git-merge-changelog.c: Fix typo in comment.
44638         Reported by Reuben Thomas <rrt@sc3d.org>.
44639
44640 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44641
44642         * m4/regex.m4: update and improve help for
44643         --without-included-regex.
44644
44645 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44646
44647         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44648         failure on missing include files.
44649
44650 2009-03-17  Eric Blake  <ebb9@byu.net>
44651
44652         doc: mention more functions added in cygwin 1.7.0
44653         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44654         addition.
44655         * doc/posix-functions/fwscanf.texi: Likewise.
44656         * doc/posix-functions/swprintf.texi: Likewise.
44657         * doc/posix-functions/swscanf.texi: Likewise.
44658         * doc/posix-functions/vfwprintf.texi: Likewise.
44659         * doc/posix-functions/vfwscanf.texi: Likewise.
44660         * doc/posix-functions/vswprintf.texi: Likewise.
44661         * doc/posix-functions/vswscanf.texi: Likewise.
44662         * doc/posix-functions/vwprintf.texi: Likewise.
44663         * doc/posix-functions/vwscanf.texi: Likewise.
44664         * doc/posix-functions/wcscasecmp.texi: Likewise.
44665         * doc/posix-functions/wcsdup.texi: Likewise.
44666         * doc/posix-functions/wcsftime.texi: Likewise.
44667         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44668         * doc/posix-functions/wprintf.texi: Likewise.
44669         * doc/posix-functions/wscanf.texi: Likewise.
44670         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44671
44672 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44673
44674         maint.mk: really add $(AM_MAKEFLAGS)
44675         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44676         was inadvertently omitted in the last commit.
44677         Spotted by Bruno Haible.
44678
44679         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44680         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44681         $(AM_MAKEFLAGS)' rather than plain `make'.
44682
44683         gnulib-tool: execute $MAKE not make
44684         * gnulib-tool: Default $MAKE to 'make'.
44685         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44686         than make.  Initialize $MAKE in the do-autobuild script.
44687
44688         gnulib-tool: use $MAKE not make in generated files
44689         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44690         make, in generated files.  Initialize $MAKE in the do-autobuild
44691         script.
44692
44693         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44694
44695         GNUmakefile: disable parallelism only for multiple, recursive targets
44696         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44697         additions in the Makefile.
44698         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44699         by Automake.
44700         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44701         are listed on the command line and at least one of them is
44702         listed in $(ALL_RECURSIVE_TARGETS).
44703
44704 2009-03-14  Bruno Haible  <bruno@clisp.org>
44705
44706         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44707         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44708         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44709         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44710         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44711         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44712         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44713         unistr/u8-uctomb.
44714         * modules/unistr/u8-strchr (Depends-on): Likewise.
44715         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44716         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44717         unistr/u16-uctomb.
44718         * modules/unistr/u16-strchr (Depends-on): Likewise.
44719         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44720
44721 2009-03-12  Bruno Haible  <bruno@clisp.org>
44722
44723         Work around select() bug on Interix 3.5.
44724         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44725         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44726         * m4/select.m4: New file.
44727         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44728         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44729         * modules/select (Files): Add m4/select.m4.
44730         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44731         * modules/nanosleep (Depends-on): Add select.
44732         * modules/poll (Depends-on): Likewise.
44733         * doc/posix-functions/select.texi: Mention the Interix bug.
44734         Reported by Markus Duft <mduft@gentoo.org>.
44735
44736         * lib/select.c: Renamed from lib/winsock-select.c.
44737         * modules/select (Files): Add lib/select.c, remove
44738         lib/winsock-select.c.
44739         (configure.ac): Update.
44740
44741 2009-03-12  Jim Meyering  <meyering@redhat.com>
44742
44743         avoid gcc warnings about unused macro definitions
44744         * lib/readtokens.c (STREQ): Remove unused definition.
44745         * lib/xmalloc.c (SIZE_MAX): Likewise.
44746         * lib/openat-die.c (N_): Likewise.
44747         * lib/mountlist.c (SIZE_MAX): Remove definition.
44748         Instead, include <stdint.h>.
44749         * lib/readutmp.c: Likewise.
44750         * modules/readutmp (Depends-on): Add stdint.
44751         * modules/mountlist (Depends-on): Add stdint.
44752         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44753
44754 2009-03-10  Bruno Haible  <bruno@clisp.org>
44755
44756         Tests for module 'mbmemcasecoll'.
44757         * modules/mbmemcasecoll-tests: New file.
44758         * tests/test-mbmemcasecoll1.sh: New file.
44759         * tests/test-mbmemcasecoll2.sh: New file.
44760         * tests/test-mbmemcasecoll3.sh: New file.
44761         * tests/test-mbmemcasecoll.c: New file.
44762
44763         New module 'mbmemcasecoll'.
44764         * lib/mbmemcasecoll.h: New file.
44765         * lib/mbmemcasecoll.c: New file.
44766         * modules/mbmemcasecoll: New file.
44767
44768         * tests/test-mbmemcasecmp.h: New file, extracted from
44769         tests/test-mbmemcasecmp.c.
44770         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44771         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44772         (main): Update.
44773         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44774
44775 2009-03-09  Bruno Haible  <bruno@clisp.org>
44776
44777         Tests for module 'mbmemcasecmp'.
44778         * modules/mbmemcasecmp-tests: New file.
44779         * tests/test-mbmemcasecmp1.sh: New file.
44780         * tests/test-mbmemcasecmp2.sh: New file.
44781         * tests/test-mbmemcasecmp3.sh: New file.
44782         * tests/test-mbmemcasecmp.c: New file.
44783
44784         New module 'mbmemcasecmp'.
44785         * lib/mbmemcasecmp.h: New file.
44786         * lib/mbmemcasecmp.c: New file.
44787         * modules/mbmemcasecmp: New file.
44788
44789 2009-03-09  Bruno Haible  <bruno@clisp.org>
44790
44791         Tests for module 'unicase/ulc-casecoll'.
44792         * modules/unicase/ulc-casecoll-tests: New file.
44793         * tests/unicase/test-ulc-casecoll1.sh: New file.
44794         * tests/unicase/test-ulc-casecoll2.sh: New file.
44795         * tests/unicase/test-ulc-casecoll.c: New file.
44796
44797         New module 'unicase/ulc-casecoll'.
44798         * lib/unicase.h (ulc_casecoll): New declaration.
44799         * lib/unicase/ulc-casecoll.c: New file.
44800         * modules/unicase/ulc-casecoll: New file.
44801
44802         New module 'unicase/ulc-casexfrm'.
44803         * lib/unicase.h (ulc_casexfrm): New declaration.
44804         * lib/unicase/ulc-casexfrm.c: New file.
44805         * modules/unicase/ulc-casexfrm: New file.
44806
44807 2009-03-09  Bruno Haible  <bruno@clisp.org>
44808
44809         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44810         invocations.
44811
44812         * m4/mbscasecmp.m4: Remove file.
44813         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44814         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44815
44816         * m4/mbscasestr.m4: Remove file.
44817         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44818         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44819
44820         * m4/mbschr.m4: Remove file.
44821         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44822         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44823
44824         * m4/mbscspn.m4: Remove file.
44825         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44826         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44827
44828         * m4/mbslen.m4: Remove file.
44829         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44830         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44831
44832         * m4/mbsncasecmp.m4: Remove file.
44833         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44834         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44835
44836         * m4/mbsnlen.m4: Remove file.
44837         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44838         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44839
44840         * m4/mbspbrk.m4: Remove file.
44841         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44842         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44843
44844         * m4/mbspcasecmp.m4: Remove file.
44845         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44846         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44847
44848         * m4/mbsrchr.m4: Remove file.
44849         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44850         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44851
44852         * m4/mbssep.m4: Remove file.
44853         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44854         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44855
44856         * m4/mbsspn.m4: Remove file.
44857         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44858         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44859
44860         * m4/mbsstr.m4: Remove file.
44861         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44862         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44863
44864         * m4/mbstok_r.m4: Remove file.
44865         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44866         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44867
44868         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44869
44870         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44871         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44872
44873         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44874
44875 2009-03-08  Bruno Haible  <bruno@clisp.org>
44876
44877         Tests for module 'unicase/ulc-casecmp'.
44878         * modules/unicase/ulc-casecmp-tests: New file.
44879         * tests/unicase/test-ulc-casecmp1.sh: New file.
44880         * tests/unicase/test-ulc-casecmp2.sh: New file.
44881         * tests/unicase/test-ulc-casecmp.c: New file.
44882
44883         New module 'unicase/ulc-casecmp'.
44884         * lib/unicase.h (ulc_casecmp): New declaration.
44885         * lib/unicase/ulc-casecmp.c: New file.
44886         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44887         'const SRC_UNIT *'.
44888         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44889         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44890         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44891         * modules/unicase/ulc-casecmp: New file.
44892
44893         Tests for module 'unicase/u32-is-cased'.
44894         * modules/unicase/u32-is-cased-tests: New file.
44895         * tests/unicase/test-u32-is-cased.c: New file.
44896
44897         Tests for module 'unicase/u16-is-cased'.
44898         * modules/unicase/u16-is-cased-tests: New file.
44899         * tests/unicase/test-u16-is-cased.c: New file.
44900
44901         Tests for module 'unicase/u8-is-cased'.
44902         * modules/unicase/u8-is-cased-tests: New file.
44903         * tests/unicase/test-u8-is-cased.c: New file.
44904         * tests/unicase/test-is-cased.h: New file.
44905
44906         New module 'unicase/u32-is-cased'.
44907         * lib/unicase/u32-is-cased.c: New file.
44908         * modules/unicase/u32-is-cased: New file.
44909
44910         New module 'unicase/u16-is-cased'.
44911         * lib/unicase/u16-is-cased.c: New file.
44912         * modules/unicase/u16-is-cased: New file.
44913
44914         New module 'unicase/u8-is-cased'.
44915         * lib/unicase/u8-is-cased.c: New file.
44916         * lib/unicase/u-is-cased.h: New file.
44917         * modules/unicase/u8-is-cased: New file.
44918
44919         Tests for module 'unicase/u32-is-casefolded'.
44920         * modules/unicase/u32-is-casefolded-tests: New file.
44921         * tests/unicase/test-u32-is-casefolded.c: New file.
44922
44923         Tests for module 'unicase/u16-is-casefolded'.
44924         * modules/unicase/u16-is-casefolded-tests: New file.
44925         * tests/unicase/test-u16-is-casefolded.c: New file.
44926
44927         Tests for module 'unicase/u8-is-casefolded'.
44928         * modules/unicase/u8-is-casefolded-tests: New file.
44929         * tests/unicase/test-u8-is-casefolded.c: New file.
44930         * tests/unicase/test-is-casefolded.h: New file.
44931
44932         New module 'unicase/u32-is-casefolded'.
44933         * lib/unicase/u32-is-casefolded.c: New file.
44934         * modules/unicase/u32-is-casefolded: New file.
44935
44936         New module 'unicase/u16-is-casefolded'.
44937         * lib/unicase/u16-is-casefolded.c: New file.
44938         * modules/unicase/u16-is-casefolded: New file.
44939
44940         New module 'unicase/u8-is-casefolded'.
44941         * lib/unicase/u8-is-casefolded.c: New file.
44942         * modules/unicase/u8-is-casefolded: New file.
44943
44944         Tests for module 'unicase/u32-is-titlecase'.
44945         * modules/unicase/u32-is-titlecase-tests: New file.
44946         * tests/unicase/test-u32-is-titlecase.c: New file.
44947
44948         Tests for module 'unicase/u16-is-titlecase'.
44949         * modules/unicase/u16-is-titlecase-tests: New file.
44950         * tests/unicase/test-u16-is-titlecase.c: New file.
44951
44952         Tests for module 'unicase/u8-is-titlecase'.
44953         * modules/unicase/u8-is-titlecase-tests: New file.
44954         * tests/unicase/test-u8-is-titlecase.c: New file.
44955         * tests/unicase/test-is-titlecase.h: New file.
44956
44957         New module 'unicase/u32-is-titlecase'.
44958         * lib/unicase/u32-is-titlecase.c: New file.
44959         * modules/unicase/u32-is-titlecase: New file.
44960
44961         New module 'unicase/u16-is-titlecase'.
44962         * lib/unicase/u16-is-titlecase.c: New file.
44963         * modules/unicase/u16-is-titlecase: New file.
44964
44965         New module 'unicase/u8-is-titlecase'.
44966         * lib/unicase/u8-is-titlecase.c: New file.
44967         * modules/unicase/u8-is-titlecase: New file.
44968
44969         Tests for module 'unicase/u32-is-lowercase'.
44970         * modules/unicase/u32-is-lowercase-tests: New file.
44971         * tests/unicase/test-u32-is-lowercase.c: New file.
44972
44973         Tests for module 'unicase/u16-is-lowercase'.
44974         * modules/unicase/u16-is-lowercase-tests: New file.
44975         * tests/unicase/test-u16-is-lowercase.c: New file.
44976
44977         Tests for module 'unicase/u8-is-lowercase'.
44978         * modules/unicase/u8-is-lowercase-tests: New file.
44979         * tests/unicase/test-u8-is-lowercase.c: New file.
44980         * tests/unicase/test-is-lowercase.h: New file.
44981
44982         New module 'unicase/u32-is-lowercase'.
44983         * lib/unicase/u32-is-lowercase.c: New file.
44984         * modules/unicase/u32-is-lowercase: New file.
44985
44986         New module 'unicase/u16-is-lowercase'.
44987         * lib/unicase/u16-is-lowercase.c: New file.
44988         * modules/unicase/u16-is-lowercase: New file.
44989
44990         New module 'unicase/u8-is-lowercase'.
44991         * lib/unicase/u8-is-lowercase.c: New file.
44992         * modules/unicase/u8-is-lowercase: New file.
44993
44994         Tests for module 'unicase/u32-is-uppercase'.
44995         * modules/unicase/u32-is-uppercase-tests: New file.
44996         * tests/unicase/test-u32-is-uppercase.c: New file.
44997
44998         Tests for module 'unicase/u16-is-uppercase'.
44999         * modules/unicase/u16-is-uppercase-tests: New file.
45000         * tests/unicase/test-u16-is-uppercase.c: New file.
45001
45002         Tests for module 'unicase/u8-is-uppercase'.
45003         * modules/unicase/u8-is-uppercase-tests: New file.
45004         * tests/unicase/test-u8-is-uppercase.c: New file.
45005         * tests/unicase/test-is-uppercase.h: New file.
45006
45007         New module 'unicase/u32-is-uppercase'.
45008         * lib/unicase/u32-is-uppercase.c: New file.
45009         * modules/unicase/u32-is-uppercase: New file.
45010
45011         New module 'unicase/u16-is-uppercase'.
45012         * lib/unicase/u16-is-uppercase.c: New file.
45013         * modules/unicase/u16-is-uppercase: New file.
45014
45015         New module 'unicase/u8-is-uppercase'.
45016         * lib/unicase/u8-is-uppercase.c: New file.
45017         * modules/unicase/u8-is-uppercase: New file.
45018
45019         New module 'unicase/u32-is-invariant'.
45020         * lib/unicase/u32-is-invariant.c: New file.
45021         * modules/unicase/u32-is-invariant: New file.
45022
45023         New module 'unicase/u16-is-invariant'.
45024         * lib/unicase/u16-is-invariant.c: New file.
45025         * modules/unicase/u16-is-invariant: New file.
45026
45027         New module 'unicase/u8-is-invariant'.
45028         * lib/unicase/u8-is-invariant.c: New file.
45029         * lib/unicase/invariant.h: New file.
45030         * lib/unicase/u-is-invariant.h: New file.
45031         * modules/unicase/u8-is-invariant: New file.
45032
45033         Tests for module 'unicase/u32-casecoll'.
45034         * modules/unicase/u32-casecoll-tests: New file.
45035         * tests/unicase/test-u32-casecoll.c: New file.
45036
45037         Tests for module 'unicase/u16-casecoll'.
45038         * modules/unicase/u16-casecoll-tests: New file.
45039         * tests/unicase/test-u16-casecoll.c: New file.
45040
45041         Tests for module 'unicase/u8-casecoll'.
45042         * modules/unicase/u8-casecoll-tests: New file.
45043         * tests/unicase/test-u8-casecoll.c: New file.
45044
45045         New module 'unicase/u32-casecoll'.
45046         * lib/unicase/u32-casecoll.c: New file.
45047         * modules/unicase/u32-casecoll: New file.
45048
45049         New module 'unicase/u16-casecoll'.
45050         * lib/unicase/u16-casecoll.c: New file.
45051         * modules/unicase/u16-casecoll: New file.
45052
45053         New module 'unicase/u8-casecoll'.
45054         * lib/unicase/u8-casecoll.c: New file.
45055         * lib/unicase/u-casecoll.h: New file.
45056         * modules/unicase/u8-casecoll: New file.
45057
45058         New module 'unicase/u32-casexfrm'.
45059         * lib/unicase/u32-casexfrm.c: New file.
45060         * modules/unicase/u32-casexfrm: New file.
45061
45062         New module 'unicase/u16-casexfrm'.
45063         * lib/unicase/u16-casexfrm.c: New file.
45064         * modules/unicase/u16-casexfrm: New file.
45065
45066         New module 'unicase/u8-casexfrm'.
45067         * lib/unicase/u8-casexfrm.c: New file.
45068         * lib/unicase/u-casexfrm.h: New file.
45069         * modules/unicase/u8-casexfrm: New file.
45070
45071         Tests for module 'unicase/u32-casecmp'.
45072         * modules/unicase/u32-casecmp-tests: New file.
45073         * tests/unicase/test-u32-casecmp.c: New file.
45074
45075         Tests for module 'unicase/u16-casecmp'.
45076         * modules/unicase/u16-casecmp-tests: New file.
45077         * tests/unicase/test-u16-casecmp.c: New file.
45078
45079         Tests for module 'unicase/u8-casecmp'.
45080         * modules/unicase/u8-casecmp-tests: New file.
45081         * tests/unicase/test-u8-casecmp.c: New file.
45082         * tests/unicase/test-casecmp.h: New file.
45083
45084         New module 'unicase/u32-casecmp'.
45085         * lib/unicase/u32-casecmp.c: New file.
45086         * modules/unicase/u32-casecmp: New file.
45087
45088         New module 'unicase/u16-casecmp'.
45089         * lib/unicase/u16-casecmp.c: New file.
45090         * modules/unicase/u16-casecmp: New file.
45091
45092         New module 'unicase/u8-casecmp'.
45093         * lib/unicase/u8-casecmp.c: New file.
45094         * lib/unicase/u-casecmp.h: New file.
45095         * modules/unicase/u8-casecmp: New file.
45096
45097         Tests for module 'unicase/u32-casefold'.
45098         * modules/unicase/u32-casefold-tests: New file.
45099         * tests/unicase/test-u32-casefold.c: New file.
45100
45101         Tests for module 'unicase/u16-casefold'.
45102         * modules/unicase/u16-casefold-tests: New file.
45103         * tests/unicase/test-u16-casefold.c: New file.
45104
45105         Tests for module 'unicase/u8-casefold'.
45106         * modules/unicase/u8-casefold-tests: New file.
45107         * tests/unicase/test-u8-casefold.c: New file.
45108
45109         New module 'unicase/u32-casefold'.
45110         * lib/unicase/u32-casefold.c: New file.
45111         * modules/unicase/u32-casefold: New file.
45112
45113         New module 'unicase/u16-casefold'.
45114         * lib/unicase/u16-casefold.c: New file.
45115         * modules/unicase/u16-casefold: New file.
45116
45117         New module 'unicase/u8-casefold'.
45118         * lib/unicase/u8-casefold.c: New file.
45119         * lib/unicase/u-casefold.h: New file.
45120         * modules/unicase/u8-casefold: New file.
45121
45122         New module 'unicase/tocasefold'.
45123         * lib/unicase/casefold.h: New file.
45124         * lib/unicase/tocasefold.c: New file.
45125         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45126         * modules/unicase/tocasefold: New file.
45127
45128         Tests for module 'unicase/u32-totitle'.
45129         * modules/unicase/u32-totitle-tests: New file.
45130         * tests/unicase/test-u32-totitle.c: New file.
45131
45132         Tests for module 'unicase/u16-totitle'.
45133         * modules/unicase/u16-totitle-tests: New file.
45134         * tests/unicase/test-u16-totitle.c: New file.
45135
45136         Tests for module 'unicase/u8-totitle'.
45137         * modules/unicase/u8-totitle-tests: New file.
45138         * tests/unicase/test-u8-totitle.c: New file.
45139
45140         New module 'unicase/u32-totitle'.
45141         * lib/unicase/u32-totitle.c: New file.
45142         * modules/unicase/u32-totitle: New file.
45143
45144         New module 'unicase/u16-totitle'.
45145         * lib/unicase/u16-totitle.c: New file.
45146         * modules/unicase/u16-totitle: New file.
45147
45148         New module 'unicase/u8-totitle'.
45149         * lib/unicase/u8-totitle.c: New file.
45150         * lib/unicase/u-totitle.h: New file.
45151         * modules/unicase/u8-totitle: New file.
45152
45153         Tests for module 'unicase/u32-tolower'.
45154         * modules/unicase/u32-tolower-tests: New file.
45155         * tests/unicase/test-u32-tolower.c: New file.
45156
45157         Tests for module 'unicase/u16-tolower'.
45158         * modules/unicase/u16-tolower-tests: New file.
45159         * tests/unicase/test-u16-tolower.c: New file.
45160
45161         Tests for module 'unicase/u8-tolower'.
45162         * modules/unicase/u8-tolower-tests: New file.
45163         * tests/unicase/test-u8-tolower.c: New file.
45164
45165         New module 'unicase/u32-tolower'.
45166         * lib/unicase/u32-tolower.c: New file.
45167         * modules/unicase/u32-tolower: New file.
45168
45169         New module 'unicase/u16-tolower'.
45170         * lib/unicase/u16-tolower.c: New file.
45171         * modules/unicase/u16-tolower: New file.
45172
45173         New module 'unicase/u8-tolower'.
45174         * lib/unicase/u8-tolower.c: New file.
45175         * modules/unicase/u8-tolower: New file.
45176
45177         Tests for module 'unicase/u32-toupper'.
45178         * modules/unicase/u32-toupper-tests: New file.
45179         * tests/unicase/test-u32-toupper.c: New file.
45180
45181         Tests for module 'unicase/u16-toupper'.
45182         * modules/unicase/u16-toupper-tests: New file.
45183         * tests/unicase/test-u16-toupper.c: New file.
45184
45185         Tests for module 'unicase/u8-toupper'.
45186         * modules/unicase/u8-toupper-tests: New file.
45187         * tests/unicase/test-u8-toupper.c: New file.
45188
45189         New module 'unicase/u32-toupper'.
45190         * lib/unicase/u32-toupper.c: New file.
45191         * modules/unicase/u32-toupper: New file.
45192
45193         New module 'unicase/u16-toupper'.
45194         * lib/unicase/u16-toupper.c: New file.
45195         * modules/unicase/u16-toupper: New file.
45196
45197         New module 'unicase/u8-toupper'.
45198         * lib/unicase/u8-toupper.c: New file.
45199         * modules/unicase/u8-toupper: New file.
45200
45201         New module 'unicase/u32-casemap'.
45202         * lib/unicase/u32-casemap.c: New file.
45203         * modules/unicase/u32-casemap: New file.
45204
45205         New module 'unicase/u16-casemap'.
45206         * lib/unicase/u16-casemap.c: New file.
45207         * modules/unicase/u16-casemap: New file.
45208
45209         New module 'unicase/u8-casemap'.
45210         * lib/unicase/unicasemap.h: New file.
45211         * lib/unicase/u8-casemap.c: New file.
45212         * lib/unicase/u-casemap.h: New file.
45213         * modules/unicase/u8-casemap: New file.
45214
45215         New module 'unicase/special-casing'.
45216         * lib/unicase/special-casing.h: New file.
45217         * lib/unicase/special-casing.c: New file.
45218         * lib/unicase/special-casing-table.gperf: New file, generated by
45219         gen-uni-tables.c.
45220         * modules/unicase/special-casing: New file.
45221
45222         Tests for module 'unicase/locale-language'.
45223         * modules/unicase/locale-language-tests: New file.
45224         * tests/unicase/test-locale-language.sh: New file.
45225         * tests/unicase/test-locale-language.c: New file.
45226
45227         New module 'unicase/locale-language'.
45228         * lib/unicase/locale-language.c: New file.
45229         * lib/unicase/locale-languages.gperf: New file.
45230         * modules/unicase/locale-language: New file.
45231
45232         Generate more tables for case conversion and case folding.
45233         * lib/gen-uni-tables.c (SCC_*): New enum items.
45234         (struct special_casing_rule): New type.
45235         (casing_rules, num_casing_rules, allocated_casing_rules): New
45236         variables.
45237         (add_casing_rule, fill_casing_rules): New functions.
45238         (struct casefold_rule): New type.
45239         (casefolding_rules, num_casefolding_rules,
45240         allocated_casefolding_rules): New variables.
45241         (fill_casefolding_rules): New function.
45242         (unicode_casefold): New variable.
45243         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45244         sort_casing_rules, output_casing_rules): New functions.
45245         (main): Accept to more arguments: SpecialCasing.txt and
45246         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45247         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45248         Output mapping for casefolding.
45249
45250         * lib/unicase.h: Include stdbool.h, uninorm.h.
45251         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45252         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45253         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45254         arguments.
45255         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45256         resultp arguments.
45257         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45258         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45259         resultp arguments.
45260         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45261         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45262         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45263         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45264         declarations.
45265         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45266
45267 2009-03-08  Bruno Haible  <bruno@clisp.org>
45268
45269         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45270         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45271         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45272         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45273
45274 2009-03-07  Bruno Haible  <bruno@clisp.org>
45275
45276         Adjust u*_normcmp, u*_normcoll API.
45277         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45278         u16_normcoll, u32_normcoll): Change failure conventions.
45279         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45280         errno and return -1.
45281         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45282
45283 2009-03-07  Bruno Haible  <bruno@clisp.org>
45284
45285         Tests for module 'uninorm/u32-normcoll'.
45286         * modules/uninorm/u32-normcoll-tests: New file.
45287         * tests/uninorm/test-u32-normcoll.c: New file.
45288
45289         Tests for module 'uninorm/u16-normcoll'.
45290         * modules/uninorm/u16-normcoll-tests: New file.
45291         * tests/uninorm/test-u16-normcoll.c: New file.
45292
45293         Tests for module 'uninorm/u8-normcoll'.
45294         * modules/uninorm/u8-normcoll-tests: New file.
45295         * tests/uninorm/test-u8-normcoll.c: New file.
45296
45297 2009-03-07  Bruno Haible  <bruno@clisp.org>
45298
45299         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45300         tests/uninorm/test-u32-normcmp.c.
45301         * tests/uninorm/test-u32-normcmp.c: Include it.
45302         (test_nonascii): New function, extracted from main. Add some more
45303         tests.
45304         (main): Invoke test_ascii and test_nonascii.
45305         * modules/uninorm/u32-normcmp-tests (Files): Add
45306         tests/uninorm/test-u32-normcmp.h.
45307         (Depends-on): Remove uninorm/u32-normcmp.
45308
45309         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45310         tests/uninorm/test-u16-normcmp.c.
45311         * tests/uninorm/test-u16-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/u16-normcmp-tests (Files): Add
45316         tests/uninorm/test-u16-normcmp.h.
45317         (Depends-on): Remove uninorm/u16-normcmp.
45318
45319         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45320         tests/uninorm/test-u8-normcmp.c.
45321         * tests/uninorm/test-u8-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/u8-normcmp-tests (Files): Add
45326         tests/uninorm/test-u8-normcmp.h.
45327         (Depends-on): Remove uninorm/u8-normcmp.
45328
45329 2009-03-07  Bruno Haible  <bruno@clisp.org>
45330
45331         New module 'uninorm/u32-normcoll'.
45332         * lib/uninorm/u32-normcoll.c: New file.
45333         * modules/uninorm/u32-normcoll: New file.
45334
45335         New module 'uninorm/u16-normcoll'.
45336         * lib/uninorm/u16-normcoll.c: New file.
45337         * modules/uninorm/u16-normcoll: New file.
45338
45339         New module 'uninorm/u8-normcoll'.
45340         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45341         declarations.
45342         * lib/uninorm/u8-normcoll.c: New file.
45343         * lib/uninorm/u-normcoll.h: New file.
45344         * modules/uninorm/u8-normcoll: New file.
45345
45346         New module 'uninorm/u32-normxfrm'.
45347         * lib/uninorm/u32-normxfrm.c: New file.
45348         * modules/uninorm/u32-normxfrm: New file.
45349
45350         New module 'uninorm/u16-normxfrm'.
45351         * lib/uninorm/u16-normxfrm.c: New file.
45352         * modules/uninorm/u16-normxfrm: New file.
45353
45354         New module 'uninorm/u8-normxfrm'.
45355         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45356         declarations.
45357         * lib/uninorm/u8-normxfrm.c: New file.
45358         * lib/uninorm/u-normxfrm.h: New file.
45359         * modules/uninorm/u8-normxfrm: New file.
45360
45361 2009-03-07  Bruno Haible  <bruno@clisp.org>
45362
45363         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45364         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45365         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45366
45367 2009-03-07  Bruno Haible  <bruno@clisp.org>
45368
45369         New module 'memxfrm'.
45370         * lib/memxfrm.h: New file.
45371         * lib/memxfrm.c: New file.
45372         * modules/memxfrm: New file.
45373
45374 2009-03-07  Bruno Haible  <bruno@clisp.org>
45375
45376         New module 'memcmp2'.
45377         * lib/memcmp2.h: New file.
45378         * lib/memcmp2.c: New file.
45379         * modules/memcmp2: New file.
45380
45381 2009-03-07  Bruno Haible  <bruno@clisp.org>
45382
45383         Tests for module 'uninorm/decomposing-form'.
45384         * modules/uninorm/decomposing-form-tests: New file.
45385         * tests/uninorm/test-decomposing-form.c: New file.
45386
45387         New module 'uninorm/decomposing-form'.
45388         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45389         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45390         Add 'decomposing_variant' field.
45391         * lib/uninorm/decomposing-form.c: New file.
45392         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45393         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45394         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45395         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45396         * modules/uninorm/decomposing-form: New file.
45397         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45398         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45399
45400 2009-03-07  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45403         strings.
45404
45405 2009-03-06  Bruno Haible  <bruno@clisp.org>
45406
45407         Tests for module 'uninorm/u32-normcmp'.
45408         * tests/uninorm/test-u32-normcmp.c: New file.
45409         * modules/uninorm/u32-normcmp-tests: New file.
45410
45411         Tests for module 'uninorm/u16-normcmp'.
45412         * tests/uninorm/test-u16-normcmp.c: New file.
45413         * modules/uninorm/u16-normcmp-tests: New file.
45414
45415         Tests for module 'uninorm/u8-normcmp'.
45416         * tests/uninorm/test-u8-normcmp.c: New file.
45417         * modules/uninorm/u8-normcmp-tests: New file.
45418
45419         New module 'uninorm/u32-normcmp'.
45420         * lib/uninorm/u32-normcmp.c: New file.
45421         * modules/uninorm/u32-normcmp: New file.
45422
45423         New module 'uninorm/u16-normcmp'.
45424         * lib/uninorm/u16-normcmp.c: New file.
45425         * modules/uninorm/u16-normcmp: New file.
45426
45427         New module 'uninorm/u8-normcmp'.
45428         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45429         declarations.
45430         * lib/uninorm/u8-normcmp.c: New file.
45431         * lib/uninorm/u-normcmp.h: New file.
45432         * modules/uninorm/u8-normcmp: New file.
45433
45434 2009-03-06  Bruno Haible  <bruno@clisp.org>
45435
45436         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45437         Reported by Eric Blake.
45438
45439 2009-03-06  Eric Blake  <ebb9@byu.net>
45440             Bruno Haible  <bruno@clisp.org>
45441
45442         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45443         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45444         condition.
45445         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45446         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45447         condition.
45448         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45449
45450 2009-03-06  Eric Blake  <ebb9@byu.net>
45451
45452         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45453         to avoid compiler warnings.
45454         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45455
45456 2009-03-05  Bruno Haible  <bruno@clisp.org>
45457
45458         * tests/test-ftell.c (main): Disable test beyond end of file on
45459         FreeMiNT.
45460         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45461
45462 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45463
45464         * lib/filevercmp.c: Move hidden files up in ordering.
45465         * tests/test-filevercmp.c: Add tests for hidden files.
45466
45467 2009-03-04  Bruno Haible  <bruno@clisp.org>
45468
45469         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45470         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45471         AM_CFLAGS.
45472         Reported by Simon Josefsson.
45473
45474 2009-03-03  Bruno Haible  <bruno@clisp.org>
45475
45476         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45477         Reported by Simon Josefsson.
45478
45479         * doc/ld-version-script.texi: Update node reference.
45480
45481 2009-03-03  Bruno Haible  <bruno@clisp.org>
45482
45483         * modules/visibility (License): Change to 'unlimited'.
45484         Suggested by Simon Josefsson.
45485
45486 2009-03-03  Jim Meyering  <meyering@redhat.com>
45487
45488         unlinkdir: cannot_unlink_dir may modify process state
45489         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45490         it's neither thread-safe nor appropriate for use in a library.
45491
45492 2009-03-03  Eric Blake  <ebb9@byu.net>
45493
45494         test-closein: silence test under Darwin
45495         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45496         care if it dies from EPIPE or EBADF.
45497
45498 2009-03-03  Bruno Haible  <bruno@clisp.org>
45499
45500         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45501         earlier.
45502         * doc/visibility.texi: Fix @node and @section.
45503
45504 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45505
45506         * doc/gnulib.texi: Link to sections for ld version script and
45507         visibility.
45508         * doc/visibility.texi: Add @node and @section.
45509         * modules/ld-version-script: New module.
45510         * m4/ld-version-script.m4: New file.
45511         * doc/ld-version-script.texi: New file.
45512
45513 2009-03-02  David Lutterkort  <lutter@redhat.com>
45514
45515         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45516         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45517
45518 2009-03-02  Bruno Haible  <bruno@clisp.org>
45519
45520         * doc/visibility.texi: Mention libtool's -export-symbols option.
45521
45522 2009-03-02  Jim Meyering  <meyering@redhat.com>
45523
45524         announce-gen: new option: --no-print-checksums
45525         * build-aux/announce-gen (usage): Describe it.
45526         (print_checksums): Print a newline here, not in the [*] footnote.
45527         (main): Honor it.
45528
45529 2009-03-01  Bruno Haible  <bruno@clisp.org>
45530
45531         Use socklen_t in the native Windows replacements prototypes.
45532         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45533         instead of 'int'.
45534         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45535         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45536         * modules/getsockopt (Depends-on): Add socklen.
45537         * modules/setsockopt (Depends-on): Add socklen.
45538
45539 2009-03-01  Bruno Haible  <bruno@clisp.org>
45540
45541         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45542         least 4.2.
45543
45544 2009-03-01  Eric Blake  <ebb9@byu.net>
45545             Bruno Haible  <bruno@clisp.org>
45546
45547         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45548         error messages.
45549         * lib/wait-process.c (wait_subprocess): Omit error message about
45550         deadly signal sent to the child of termsigp != NULL.
45551
45552 2009-03-01  Eric Blake  <ebb9@byu.net>
45553
45554         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45555
45556 2009-03-01  Bruno Haible  <bruno@clisp.org>
45557
45558         Avoid a gcc warning.
45559         * tests/test-sched.c (b): Make global.
45560         Reported by Eric Blake.
45561
45562 2009-01-19  Martin Lambers  <marlam@marlam.de>
45563
45564         Provide POSIX semantics for socket timeout options on W32.
45565         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45566         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45567         * modules/setsockopt: Depend on sys_time module for struct timeval.
45568         * modules/getsockopt: Depend on sys_time module for struct timeval.
45569
45570 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45571
45572         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45573         __USE_GNU, for consistency with netdb.in.h.
45574         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45575
45576 2009-03-01  Bruno Haible  <bruno@clisp.org>
45577
45578         More support for FreeMiNT.
45579         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45580         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45581
45582 2009-03-01  Bruno Haible  <bruno@clisp.org>
45583
45584         More support for FreeMiNT.
45585         * lib/fpurge.c (fpurge): Correct last commit.
45586         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45587
45588 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45589
45590         Fix unportable awk script in vc-list-files.
45591         * build-aux/vc-list-files: In the replacement awk script, use
45592         substr with a second argument of 1, not zero.
45593         Report by Simon Josefsson.
45594
45595 2009-02-28  Bruno Haible  <bruno@clisp.org>
45596
45597         More support for FreeMiNT.
45598         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45599         to FreeMiNT today.
45600         * lib/fwriting.c (fwriting): Likewise.
45601         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45602
45603 2009-02-28  Bruno Haible  <bruno@clisp.org>
45604
45605         * tests/test-freadseek.c (main): Disable test beyond end of file on
45606         FreeMiNT.
45607         * tests/test-ftello.c (main): Likewise.
45608         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45609
45610 2009-02-28  Bruno Haible  <bruno@clisp.org>
45611
45612         Add tentative support for FreeMiNT.
45613         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45614         * lib/fpurge.c (fpurge): Likewise.
45615         * lib/freadable.c (freadable): Likewise.
45616         * lib/freading.c (freading): Likewise.
45617         * lib/freadptr.c (freadptr): Likewise.
45618         * lib/freadseek.c (freadptrinc): Likewise.
45619         * lib/fseeko.c (rpl_fseeko): Likewise.
45620         * lib/fseterr.c (fseterr): Likewise.
45621         * lib/fwritable.c (fwritable): Likewise.
45622         * lib/fwriting.c (fwriting): Likewise.
45623         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45624         Hourihane.
45625         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45626
45627 2009-02-28  Bruno Haible  <bruno@clisp.org>
45628
45629         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45630         SIGCHLD.
45631         Reported by Jim Meyering.
45632
45633 2009-02-28  Bruno Haible  <bruno@clisp.org>
45634
45635         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45636         Mention the results of these tests on various platforms.
45637         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45638         order.
45639         * doc/posix-functions/printf.texi: Likewise.
45640         * doc/posix-functions/snprintf.texi: Likewise.
45641         * doc/posix-functions/sprintf.texi: Likewise.
45642         * doc/posix-functions/vfprintf.texi: Likewise.
45643         * doc/posix-functions/vprintf.texi: Likewise.
45644         * doc/posix-functions/vsnprintf.texi: Likewise.
45645         * doc/posix-functions/vsprintf.texi: Likewise.
45646         * doc/glibc-functions/obstack_printf.texi: Likewise.
45647         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45648
45649 2009-02-28  Bruno Haible  <bruno@clisp.org>
45650
45651         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45652         Reported by Loïc Minier <lool@dooz.org>.
45653
45654 2009-02-27  Bruno Haible  <bruno@clisp.org>
45655
45656         * gnulib-tool (func_import): Make the sed expression used to create the
45657         sed script for updating the .gitignore file POSIX compliant.
45658         Reported by Eric Blake.
45659
45660 2009-02-27  Bruno Haible  <bruno@clisp.org>
45661
45662         * gnulib-tool (sed): Don't alias as "sed --posix".
45663         Reported by Eric Blake.
45664
45665 2009-02-27  Bruno Haible  <bruno@clisp.org>
45666
45667         Avoid test link errors.
45668         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45669         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45670         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45671         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45673
45674 2009-02-27  Bruno Haible  <bruno@clisp.org>
45675
45676         Avoid spurious "(cached)" in configure output.
45677         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45678         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45679         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45680         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45681         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45682         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45683         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45684         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45685         Reported by Eric Blake.
45686
45687 2009-02-27  Eric Blake  <ebb9@byu.net>
45688
45689         printf: fix regression in previous patch
45690         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45691
45692 2009-02-27  Bruno Haible  <bruno@clisp.org>
45693
45694         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45695         value.
45696         * lib/stdint.in.h: Likewise.
45697         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45698
45699 2009-02-27  Eric Blake  <ebb9@byu.net>
45700
45701         doc: mention more functions added in cygwin 1.7.0
45702         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45703         addition.
45704         * doc/posix-functions/open_wmemstream.texi: Likewise.
45705         * doc/posix-functions/wcsnlen.texi: Likewise.
45706         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45707         * doc/posix-functions/wcstod.texi: Likewise.
45708         * doc/posix-functions/wcstof.texi: Likewise.
45709         * doc/posix-functions/wcstoimax.texi: Likewise.
45710         * doc/posix-functions/wcstok.texi: Likewise.
45711         * doc/posix-functions/wcstoumax.texi: Likewise.
45712
45713         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45714         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45715         * doc/posix-functions/fprintf.texi: Update.
45716         * doc/posix-functions/printf.texi: Update.
45717         * doc/posix-functions/snprintf.texi: Update.
45718         * doc/posix-functions/sprintf.texi: Update.
45719         * doc/posix-functions/vfprintf.texi: Update.
45720         * doc/posix-functions/vprintf.texi: Update.
45721         * doc/posix-functions/vsnprintf.texi: Update.
45722         * doc/posix-functions/vsprintf.texi: Update.
45723         * doc/glibc-functions/obstack_printf.texi: Update.
45724         * doc/glibc-functions/obstack_vprintf.texi: Update.
45725
45726 2009-02-26  Eric Blake  <ebb9@byu.net>
45727
45728         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45729         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45730         compilation bug by using runtime conversion.
45731         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45732         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45733         * modules/ceill-tests (Files): Use nan.h.
45734         * modules/floorl-tests (Files): Likewise.
45735         * modules/frexpl-tests (Files): Likewise.
45736         * modules/isnanl-tests (Files): Likewise.
45737         * modules/ldexpl-tests (Files): Likewise.
45738         * modules/roundl-tests (Files): Likewise.
45739         * modules/truncl-tests (Files): Likewise.
45740         * tests/test-ceill.c (main): Use a working NaN.
45741         * tests/test-floorl.c (main): Likewise.
45742         * tests/test-frexpl.c (main): Likewise.
45743         * tests/test-isnan.c (test_long_double): Likewise.
45744         * tests/test-isnanl.h (main): Likewise.
45745         * tests/test-ldexpl.h (main): Likewise.
45746         * tests/test-roundl.h (main): Likewise.
45747         * tests/test-truncl.h (main): Likewise.
45748         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45749
45750 2009-02-26  Eric Blake  <ebb9@byu.net>
45751             Bruno Haible  <bruno@clisp.org>
45752
45753         Work around a *printf bug with %ls on Solaris.
45754         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45755         precision is specified, sprintf stops converting the wide string
45756         argument when the number of bytes that have been produced by this
45757         conversion equals or exceeds the precision.
45758         * doc/posix-functions/fprintf.texi: Update.
45759         * doc/posix-functions/printf.texi: Update.
45760         * doc/posix-functions/snprintf.texi: Update.
45761         * doc/posix-functions/sprintf.texi: Update.
45762         * doc/posix-functions/vfprintf.texi: Update.
45763         * doc/posix-functions/vprintf.texi: Update.
45764         * doc/posix-functions/vsnprintf.texi: Update.
45765         * doc/posix-functions/vsprintf.texi: Update.
45766         * doc/glibc-functions/obstack_printf.texi: Update.
45767         * doc/glibc-functions/obstack_vprintf.texi: Update.
45768
45769 2009-02-26  Eric Blake  <ebb9@byu.net>
45770
45771         stdlib: favor compiler check of random.h
45772         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45773         to avoid an ObjC random.h installed by Swarm.
45774
45775 2009-02-26  Bruno Haible  <bruno@clisp.org>
45776
45777         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45778         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45779         Reported by Gary V. Vaughan <gary@gnu.org>.
45780
45781 2009-02-26  Bruno Haible  <bruno@clisp.org>
45782
45783         Fix *printf behaviour regarding the %ls directive.
45784         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45785         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45786         NEED_PRINTF_DIRECTIVE_LS.
45787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45788         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45789         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45790         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45791         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45792         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45793         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45794         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45795         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45796         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45797         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45798         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45799         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45801         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45802         * doc/posix-functions/fprintf.texi: Update.
45803         * doc/posix-functions/printf.texi: Update.
45804         * doc/posix-functions/snprintf.texi: Update.
45805         * doc/posix-functions/sprintf.texi: Update.
45806         * doc/posix-functions/vfprintf.texi: Update.
45807         * doc/posix-functions/vprintf.texi: Update.
45808         * doc/posix-functions/vsnprintf.texi: Update.
45809         * doc/posix-functions/vsprintf.texi: Update.
45810         * doc/glibc-functions/obstack_printf.texi: Update.
45811         * doc/glibc-functions/obstack_vprintf.texi: Update.
45812         Reported by Eric Blake.
45813
45814 2009-02-25  Bruno Haible  <bruno@clisp.org>
45815
45816         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45817         with known value.
45818         Reported by Gary V. Vaughan <gary@gnu.org>.
45819
45820 2009-02-25  Bruno Haible  <bruno@clisp.org>
45821
45822         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45823         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45824         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45825         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45826         Reported by Gary V. Vaughan <gary@gnu.org>.
45827
45828 2009-02-25  Bruno Haible  <bruno@clisp.org>
45829
45830         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45831         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45832         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45833         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45834         Reported by Gary V. Vaughan <gary@gnu.org>.
45835
45836 2009-02-25  Eric Blake  <ebb9@byu.net>
45837
45838         tests: skip fseek/ftell tests if ungetc is broken
45839         * m4/ungetc.m4: New file.
45840         * modules/fseek-tests: Split test, so ungetc dependency is
45841         separate from rest of test.
45842         * modules/fseeko-tests: Likewise.
45843         * modules/ftell-tests: Likewise.
45844         * modules/ftello-tests: Likewise.
45845         * tests/test-fseek.c (main): Isolate ungetc dependency.
45846         * tests/test-fseeko.c (main): Likewise.
45847         * tests/test-ftell.c (main): Likewise.
45848         * tests/test-ftello.c (main): Likewise.
45849         * tests/test-fseek2.sh: New file.
45850         * tests/test-fseeko2.sh: Likewise.
45851         * tests/test-ftell2.sh: Likewise.
45852         * tests/test-ftello2.sh: Likewise.
45853
45854 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45855
45856         test-getaddrinfo: fix usage of skip return code 77
45857         * tests/test-gettaddrinfo.c: Return skip code 77 only
45858         for first occurance of skip (4x77 is not 77)
45859
45860 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45861
45862         strtod: avoid C99 decl-after-statement
45863         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45864
45865 2009-02-24  Eric Blake  <ebb9@byu.net>
45866
45867         strtod: detect HP-UX 11.31 bug
45868         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45869         Reported by Gary V. Vaughan.
45870
45871 2009-02-23  Bruno Haible  <bruno@clisp.org>
45872
45873         Fix invalid read past end of memory block.
45874         * lib/vasnprintf.c (DCHAR_SET): Define.
45875         (local_wcslen): Define only when needed.
45876         (local_strnlen, local_wcsnlen): New functions.
45877         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45878         directives that involve a conversion ourselves.
45879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45880         wcsnlen, mbrtowc, wcrtomb.
45881         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45882         * tests/test-vasprintf-posix.c (test_function): Likewise.
45883         * tests/test-snprintf-posix.h (test_function): Likewise.
45884         * tests/test-sprintf-posix.h (test_function): Likewise.
45885         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45886
45887 2009-02-22  Bruno Haible  <bruno@clisp.org>
45888
45889         Implement new clarified decomposition of Hangul syllables.
45890         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45891         of type LTV, return only a pairwise decomposition.
45892         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45893         Likewise.
45894         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45895         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45896         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45897
45898 2009-02-22  Bruno Haible  <bruno@clisp.org>
45899
45900         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45901         zero-length results and shrink excess allocated memory.
45902         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45903         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45904         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45905         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45906         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45907         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45908         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45909         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45910         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45911         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45912         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45913         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45914
45915 2009-02-21  Bruno Haible  <bruno@clisp.org>
45916
45917         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45918         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45919         spaces after a period. Put a space between a macro name and its
45920         argument list. Trivial rewordings.
45921         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45922         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45923         (main): Return 0 explicitly.
45924
45925 2009-02-21  Bruno Haible  <bruno@clisp.org>
45926
45927         Tests for module 'uninorm/filter'.
45928         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45929         * modules/uninorm/filter-tests: New file.
45930
45931         New module 'uninorm/filter'.
45932         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45933         uninorm_filter_flush, uninorm_filter_free): New declarations.
45934         * lib/uninorm/uninorm-filter.c: New file.
45935         * modules/uninorm/filter: New file.
45936
45937 2009-02-21  Bruno Haible  <bruno@clisp.org>
45938
45939         Tests for module 'uninorm/nfkc'.
45940         * tests/uninorm/test-nfkc.c: New file.
45941         * tests/uninorm/test-u8-nfkc.c: New file.
45942         * tests/uninorm/test-u16-nfkc.c: New file.
45943         * tests/uninorm/test-u32-nfkc.c: New file.
45944         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45945         * tests/uninorm/test-u32-nfkc-big.c: New file.
45946         * modules/uninorm/nfkc-tests: New file.
45947
45948         New module 'uninorm/nfkc'.
45949         * lib/uninorm/nfkc.c: New file.
45950         * modules/uninorm/nfkc: New file.
45951
45952         Tests for module 'uninorm/nfkd'.
45953         * tests/uninorm/test-nfkd.c: New file.
45954         * tests/uninorm/test-u8-nfkd.c: New file.
45955         * tests/uninorm/test-u16-nfkd.c: New file.
45956         * tests/uninorm/test-u32-nfkd.c: New file.
45957         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45958         * tests/uninorm/test-u32-nfkd-big.c: New file.
45959         * modules/uninorm/nfkd-tests: New file.
45960
45961         New module 'uninorm/nfkd'.
45962         * lib/uninorm/nfkd.c: New file.
45963         * modules/uninorm/nfkd: New file.
45964
45965         Tests for module 'uninorm/nfc'.
45966         * tests/uninorm/test-nfc.c: New file.
45967         * tests/uninorm/test-u8-nfc.c: New file.
45968         * tests/uninorm/test-u16-nfc.c: New file.
45969         * tests/uninorm/test-u32-nfc.c: New file.
45970         * tests/uninorm/test-u32-nfc-big.sh: New file.
45971         * tests/uninorm/test-u32-nfc-big.c: New file.
45972         * modules/uninorm/nfc-tests: New file.
45973
45974         New module 'uninorm/nfc'.
45975         * lib/uninorm/nfc.c: New file.
45976         * modules/uninorm/nfc: New file.
45977
45978         Tests for module 'uninorm/nfd'.
45979         * tests/uninorm/test-nfd.c: New file.
45980         * tests/uninorm/test-u8-nfd.c: New file.
45981         * tests/uninorm/test-u16-nfd.c: New file.
45982         * tests/uninorm/test-u32-nfd.c: New file.
45983         * tests/uninorm/test-u32-nfd-big.sh: New file.
45984         * tests/uninorm/test-u32-nfd-big.c: New file.
45985         * tests/uninorm/test-u32-normalize-big.h: New file.
45986         * tests/uninorm/test-u32-normalize-big.c: New file.
45987         * tests/uninorm/NormalizationTest.txt: New file, created from
45988         Unicode 5.1.0 NormalizationTest.txt.
45989         * modules/uninorm/nfd-tests: New file.
45990
45991         New module 'uninorm/nfd'.
45992         * lib/uninorm/nfd.c: New file.
45993         * modules/uninorm/nfd: New file.
45994
45995         New module 'uninorm/u32-normalize'.
45996         * lib/uninorm/u32-normalize.c: New file.
45997         * modules/uninorm/u32-normalize: New file.
45998
45999         New module 'uninorm/u16-normalize'.
46000         * lib/uninorm/u16-normalize.c: New file.
46001         * modules/uninorm/u16-normalize: New file.
46002
46003         New module 'uninorm/u8-normalize'.
46004         * lib/uninorm/u8-normalize.c: New file.
46005         * lib/uninorm/normalize-internal.h: New file.
46006         * lib/uninorm/u-normalize-internal.h: New file.
46007         * modules/uninorm/u8-normalize: New file.
46008
46009         New module 'uninorm/decompose-internal'.
46010         * lib/uninorm/decompose-internal.c: New file.
46011         * modules/uninorm/decompose-internal: New file.
46012
46013         Tests for module 'uninorm/composition'.
46014         * tests/uninorm/test-composition.c: New file.
46015         * modules/uninorm/composition-tests: New file.
46016
46017         New module 'uninorm/composition'.
46018         * lib/uninorm/composition.c: New file.
46019         * lib/uninorm/composition-table.gperf: New file, generated by
46020         gen-uni-tables.
46021         * modules/uninorm/composition: New file.
46022
46023         Tests for module 'uninorm/compat-decomposition'.
46024         * tests/uninorm/test-compat-decomposition.c: New file.
46025         * modules/uninorm/compat-decomposition-tests: New file.
46026
46027         New module 'uninorm/compat-decomposition'.
46028         * lib/uninorm/decompose-internal.h: New file.
46029         * lib/uninorm/compat-decomposition.c: New file.
46030         * modules/uninorm/compat-decomposition: New file.
46031
46032         Tests for module 'uninorm/canonical-decomposition'.
46033         * tests/uninorm/test-canonical-decomposition.c: New file.
46034         * modules/uninorm/canonical-decomposition-tests: New file.
46035
46036         New module 'uninorm/canonical-decomposition'.
46037         * lib/uninorm/canonical-decomposition.c: New file.
46038         * modules/uninorm/canonical-decomposition: New file.
46039
46040         Tests for module 'uninorm/decomposition'.
46041         * tests/uninorm/test-decomposition.c: New file.
46042         * modules/uninorm/decomposition-tests: New file.
46043
46044         New module 'uninorm/decomposition'.
46045         * lib/uninorm/decomposition.c: New file.
46046         * modules/uninorm/decomposition: New file.
46047
46048         New module 'uninorm/decomposition-table'.
46049         * lib/uninorm/decomposition-table.h: New file.
46050         * lib/uninorm/decomposition-table.c: New file.
46051         * lib/uninorm/decomposition-table1.h: New file, generated by
46052         gen-uni-tables.
46053         * lib/uninorm/decomposition-table2.h: New file, generated by
46054         gen-uni-tables.
46055         * modules/uninorm/decomposition-table: New file.
46056
46057         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46058         (UC_DECOMP_*): New enumeration items.
46059         (get_decomposition): New function.
46060         (struct decomp_table): New type.
46061         (output_decomposition, output_decomposition_tables): New functions.
46062         (unicode_composition_exclusions): New variable.
46063         (fill_composition_exclusions, debug_output_composition_tables): New
46064         functions.
46065         (main): Accept one more argument. Invoke fill_composition_exclusions.
46066         Output decomposition and composition tables.
46067
46068         New module 'uninorm/base'.
46069         * lib/uninorm.h: New file.
46070         * lib/unictype.h: Update comment.
46071         * modules/uninorm/base: New file.
46072
46073 2009-02-21  David Lutterkort  <lutter@redhat.com>
46074
46075         Tests for module 'safe-alloc'.
46076         * tests/test-safe-alloc.c: New file.
46077         * modules/safe-alloc-tests: New file.
46078
46079         New module 'safe-alloc'.
46080         * lib/safe-alloc.h: New file.
46081         * lib/safe-alloc.c: New file.
46082         * m4/safe-alloc.m4: New file.
46083         * modules/safe-alloc: New file.
46084         * doc/safe-alloc.texi: New file.
46085         * doc/gnulib.texi: Include it.
46086         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46087         safe-alloc.
46088
46089 2009-02-18  Bruno Haible  <bruno@clisp.org>
46090
46091         Fix link error on non-glibc systems.
46092         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46093         variable.
46094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46095
46096 2009-02-18  Jim Meyering  <meyering@redhat.com>
46097
46098         fts: avoid used-uninitialized error due to recent change
46099         * lib/fts.c (fts_read): Guard uses of the new member,
46100         parent->fts_n_dirs_remaining, since it's not relevant for
46101         the parent of a directory specified on the command-line.
46102
46103 2009-02-17  James Youngman  <jay@gnu.org>
46104             Bruno Haible  <bruno@clisp.org>
46105
46106         * m4/include_next.m4: Reformulate comment.
46107
46108 2009-02-16  Jim Meyering  <meyering@redhat.com>
46109
46110         fts: add #if guards so that the fts_lgpl module still builds
46111         * lib/fts.c: Guard just-added hash-table-using parts with
46112         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46113         Reported by Simon Josefsson.
46114
46115 2009-02-15  Bruno Haible  <bruno@clisp.org>
46116
46117         * modules/array-mergesort-tests: New file.
46118         * tests/test-array-mergesort.c: New file.
46119
46120         New module 'array-mergesort'.
46121         * modules/array-mergesort: New file.
46122         * lib/array-mergesort.h: New file.
46123
46124 2009-02-15  Bruno Haible  <bruno@clisp.org>
46125
46126         Fix 2009-02-07 commit.
46127         * lib/gen-uni-tables.c (output_predicate, output_category,
46128         output_combclass, output_bidi_category, output_decimal_digit,
46129         output_digit, output_numeric, output_mirror, output_scripts,
46130         output_ident_category, output_simple_mapping): Fix format directives.
46131         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46132
46133 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46134
46135         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46136         fixes are available from IBM.
46137
46138 2009-02-13  Jim Meyering  <meyering@redhat.com>
46139
46140         fts: arrange not to stat non-directories in more cases
46141         This makes GNU find (when it doesn't need to stat each file)
46142         *much* more efficient at traversing reiserfs file systems.
46143         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46144         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46145         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46146         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46147         (leaf_optimization_applies): New function.
46148         (LCO_hash, LCO_compare): New helper functions.
46149         (link_count_optimize_ok): New function.
46150         (fts_stat): Initialize new member (if dir).
46151         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46152         we've just stat'ed a directory.  Skip the stat call when possible.
46153         ---
46154         Note this AFS-related exchange:
46155         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46156         and note find's pioctl call in find/fstype.c.
46157         But that is necessary only if you want to enable the
46158         optimization for AFS, and for now, I don't.
46159
46160         fts: move a function definition "up" (no semantic change)
46161         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46162         "up" to precede upcoming use of a related function.
46163
46164 2009-02-11  Jim Meyering  <meyering@redhat.com>
46165
46166         fts: correct internal computation of nlinks (optimization-related)
46167         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46168         whether the current entry is a directory, so don't test it.
46169
46170 2009-02-10  Bruno Haible  <bruno@clisp.org>
46171
46172         Tests for module 'uniwbrk/ulc-wordbreaks'.
46173         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46174         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46175         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46176
46177         Tests for module 'uniwbrk/u32-wordbreaks'.
46178         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46179         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46180
46181         Tests for module 'uniwbrk/u16-wordbreaks'.
46182         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46183         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46184
46185         Tests for module 'uniwbrk/u8-wordbreaks'.
46186         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46187         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46188
46189 2009-02-10  Bruno Haible  <bruno@clisp.org>
46190
46191         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46192         property.
46193         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46194         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46195         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46196
46197 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46198
46199         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46200         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46201
46202 2009-02-10  Bruno Haible  <bruno@clisp.org>
46203
46204         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46205         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46206         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46207         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46208         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46209         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46210
46211 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46212
46213         * lib/sockets.h (gl_fd_to_handle): New function.
46214
46215         * tests/test-sockets.c: Call gl_fd_to_handle.
46216
46217 2009-02-09  Bruno Haible  <bruno@clisp.org>
46218
46219         * doc/havelib.texi: Document the conventions on bi-arch systems.
46220
46221 2009-02-08  Bruno Haible  <bruno@clisp.org>
46222
46223         Document the AC_LIB_LINKFLAGS macro.
46224         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46225         * doc/gnulib.texi: Include it.
46226
46227 2009-02-08  Bruno Haible  <bruno@clisp.org>
46228
46229         Fix wrong order of sections, compared to TOC.
46230         * doc/gnulib.texi: Include relocatable-maint.texi after the
46231         "Regular expressions" node, not before.
46232
46233 2009-02-08  Bruno Haible  <bruno@clisp.org>
46234
46235         Tests for module 'unicase/totitle'.
46236         * modules/unicase/totitle-tests: New file.
46237
46238         Tests for module 'unicase/tolower'.
46239         * modules/unicase/tolower-tests: New file.
46240
46241         Tests for module 'unicase/toupper'.
46242         * modules/unicase/toupper-tests: New file.
46243         * tests/unicase/test-mapping-part1.h: New file.
46244         * tests/unicase/test-mapping-part2.h: New file.
46245
46246         New module 'unicase/totitle'.
46247         * modules/unicase/totitle: New file.
46248         * lib/unicase/totitle.c: New file.
46249
46250         New module 'unicase/tolower'.
46251         * modules/unicase/tolower: New file.
46252         * lib/unicase/tolower.c: New file.
46253
46254         New module 'unicase/toupper'.
46255         * modules/unicase/toupper: New file.
46256         * lib/unicase/toupper.c: New file.
46257         * lib/unicase/simple-mapping.h: New file.
46258
46259         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46260         (mapping_table): New structure.
46261         (output_simple_mapping): New function.
46262         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46263         * modules/gen-uni-tables (Description): Update.
46264         * lib/unicase/toupper.h: New file, automatically generated by
46265         gen-uni-tables.
46266         * lib/unicase/tolower.h: New file, automatically generated by
46267         gen-uni-tables.
46268         * lib/unicase/totitle.h: New file, automatically generated by
46269         gen-uni-tables.
46270         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46271         gen-uni-tables.
46272         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46273         gen-uni-tables.
46274         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46275         gen-uni-tables.
46276
46277         New module 'unicase/base'.
46278         * modules/unicase/base: New file.
46279         * lib/unicase.h: New file.
46280
46281 2009-02-08  Bruno Haible  <bruno@clisp.org>
46282
46283         New module 'uniwbrk/ulc-wordbreaks'.
46284         * modules/uniwbrk/ulc-wordbreaks: New file.
46285         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46286
46287         New module 'uniwbrk/u32-wordbreaks'.
46288         * modules/uniwbrk/u32-wordbreaks: New file.
46289         * lib/uniwbrk/u32-wordbreaks.c: New file.
46290
46291         New module 'uniwbrk/u16-wordbreaks'.
46292         * modules/uniwbrk/u16-wordbreaks: New file.
46293         * lib/uniwbrk/u16-wordbreaks.c: New file.
46294
46295         New module 'uniwbrk/u8-wordbreaks'.
46296         * modules/uniwbrk/u8-wordbreaks: New file.
46297         * lib/uniwbrk/u8-wordbreaks.c: New file.
46298         * lib/uniwbrk/u-wordbreaks.h: New file.
46299
46300         New module 'uniwbrk/table'.
46301         * modules/uniwbrk/table: New file.
46302         * lib/uniwbrk/wbrktable.h: New file.
46303         * lib/uniwbrk/wbrktable.c: New file.
46304
46305         New module 'uniwbrk/wordbreak-property'.
46306         * modules/uniwbrk/wordbreak-property: New file.
46307         * lib/uniwbrk/wordbreak-property.c: New file.
46308
46309         * lib/gen-uni-tables.c (WBP_*): New enum items.
46310         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46311         (unicode_org_wbp): New variable.
46312         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46313         New functions.
46314         (wbp_table): New structure.
46315         (output_wbp, output_wbrk_tables): New functions.
46316         (main): Accept additional argument. Invoke fill_org_wbp,
46317         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46318         output_wbrk_tables.
46319         * modules/gen-uni-tables (Description): Update.
46320         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46321         gen-uni-tables.
46322
46323         New module 'uniwbrk/base'.
46324         * modules/uniwbrk/base: New file.
46325         * lib/uniwbrk.h: New file.
46326
46327 2009-02-08  Bruno Haible  <bruno@clisp.org>
46328
46329         Update to Unicode 5.1.0.
46330         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46331         U+2185..U+2188.
46332         (is_property_default_ignorable_code_point): Don't include characters
46333         of category Cc or Cs and not-a-characters.
46334         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46335         U+0D79, U+109E, U+109F, U+A60C.
46336         * lib/unictype/bidi_of.h: Regenerated.
46337         * lib/unictype/blocks.h: Regenerated.
46338         * lib/unictype/categ_C.h: Regenerated.
46339         * lib/unictype/categ_Cf.h: Regenerated.
46340         * lib/unictype/categ_Cn.h: Regenerated.
46341         * lib/unictype/categ_L.h: Regenerated.
46342         * lib/unictype/categ_Ll.h: Regenerated.
46343         * lib/unictype/categ_Lm.h: Regenerated.
46344         * lib/unictype/categ_Lo.h: Regenerated.
46345         * lib/unictype/categ_Lu.h: Regenerated.
46346         * lib/unictype/categ_M.h: Regenerated.
46347         * lib/unictype/categ_Mc.h: Regenerated.
46348         * lib/unictype/categ_Me.h: Regenerated.
46349         * lib/unictype/categ_Mn.h: Regenerated.
46350         * lib/unictype/categ_N.h: Regenerated.
46351         * lib/unictype/categ_Nd.h: Regenerated.
46352         * lib/unictype/categ_Nl.h: Regenerated.
46353         * lib/unictype/categ_No.h: Regenerated.
46354         * lib/unictype/categ_P.h: Regenerated.
46355         * lib/unictype/categ_Pd.h: Regenerated.
46356         * lib/unictype/categ_Pe.h: Regenerated.
46357         * lib/unictype/categ_Pf.h: Regenerated.
46358         * lib/unictype/categ_Pi.h: Regenerated.
46359         * lib/unictype/categ_Po.h: Regenerated.
46360         * lib/unictype/categ_Ps.h: Regenerated.
46361         * lib/unictype/categ_S.h: Regenerated.
46362         * lib/unictype/categ_Sk.h: Regenerated.
46363         * lib/unictype/categ_Sm.h: Regenerated.
46364         * lib/unictype/categ_So.h: Regenerated.
46365         * lib/unictype/categ_of.h: Regenerated.
46366         * lib/unictype/combining.h: Regenerated.
46367         * lib/unictype/ctype_alnum.h: Regenerated.
46368         * lib/unictype/ctype_alpha.h: Regenerated.
46369         * lib/unictype/ctype_graph.h: Regenerated.
46370         * lib/unictype/ctype_lower.h: Regenerated.
46371         * lib/unictype/ctype_print.h: Regenerated.
46372         * lib/unictype/ctype_punct.h: Regenerated.
46373         * lib/unictype/ctype_upper.h: Regenerated.
46374         * lib/unictype/decdigit.h: Regenerated.
46375         * lib/unictype/digit.h: Regenerated.
46376         * lib/unictype/mirror.h: Regenerated.
46377         * lib/unictype/numeric.h: Regenerated.
46378         * lib/unictype/pr_alphabetic.h: Regenerated.
46379         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46380         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46381         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46382         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46383         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46384         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46385         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46386         * lib/unictype/pr_combining.h: Regenerated.
46387         * lib/unictype/pr_dash.h: Regenerated.
46388         * lib/unictype/pr_decimal_digit.h: Regenerated.
46389         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46390         * lib/unictype/pr_deprecated.h: Regenerated.
46391         * lib/unictype/pr_diacritic.h: Regenerated.
46392         * lib/unictype/pr_extender.h: Regenerated.
46393         * lib/unictype/pr_format_control.h: Regenerated.
46394         * lib/unictype/pr_grapheme_base.h: Regenerated.
46395         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46396         * lib/unictype/pr_grapheme_link.h: Regenerated.
46397         * lib/unictype/pr_id_continue.h: Regenerated.
46398         * lib/unictype/pr_id_start.h: Regenerated.
46399         * lib/unictype/pr_ideographic.h: Regenerated.
46400         * lib/unictype/pr_ignorable_control.h: Regenerated.
46401         * lib/unictype/pr_lowercase.h: Regenerated.
46402         * lib/unictype/pr_math.h: Regenerated.
46403         * lib/unictype/pr_numeric.h: Regenerated.
46404         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46405         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46406         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46407         * lib/unictype/pr_other_id_continue.h: Regenerated.
46408         * lib/unictype/pr_other_lowercase.h: Regenerated.
46409         * lib/unictype/pr_other_math.h: Regenerated.
46410         * lib/unictype/pr_punctuation.h: Regenerated.
46411         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46412         * lib/unictype/pr_soft_dotted.h: Regenerated.
46413         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46414         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46415         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46416         * lib/unictype/pr_uppercase.h: Regenerated.
46417         * lib/unictype/pr_xid_continue.h: Regenerated.
46418         * lib/unictype/pr_xid_start.h: Regenerated.
46419         * lib/unictype/pr_zero_width.h: Regenerated.
46420         * lib/unictype/scripts.h: Regenerated.
46421         * lib/unictype/scripts_byname.gperf: Regenerated.
46422         * lib/unictype/sy_java_ident.h: Regenerated.
46423         * lib/unilbrk/lbrkprop1.h: Regenerated.
46424         * lib/unilbrk/lbrkprop2.h: Regenerated.
46425         * tests/unictype/test-categ_C.c: Regenerated.
46426         * tests/unictype/test-categ_Cf.c: Regenerated.
46427         * tests/unictype/test-categ_Cn.c: Regenerated.
46428         * tests/unictype/test-categ_L.c: Regenerated.
46429         * tests/unictype/test-categ_Ll.c: Regenerated.
46430         * tests/unictype/test-categ_Lm.c: Regenerated.
46431         * tests/unictype/test-categ_Lo.c: Regenerated.
46432         * tests/unictype/test-categ_Lu.c: Regenerated.
46433         * tests/unictype/test-categ_M.c: Regenerated.
46434         * tests/unictype/test-categ_Mc.c: Regenerated.
46435         * tests/unictype/test-categ_Me.c: Regenerated.
46436         * tests/unictype/test-categ_Mn.c: Regenerated.
46437         * tests/unictype/test-categ_N.c: Regenerated.
46438         * tests/unictype/test-categ_Nd.c: Regenerated.
46439         * tests/unictype/test-categ_Nl.c: Regenerated.
46440         * tests/unictype/test-categ_No.c: Regenerated.
46441         * tests/unictype/test-categ_P.c: Regenerated.
46442         * tests/unictype/test-categ_Pd.c: Regenerated.
46443         * tests/unictype/test-categ_Pe.c: Regenerated.
46444         * tests/unictype/test-categ_Pf.c: Regenerated.
46445         * tests/unictype/test-categ_Pi.c: Regenerated.
46446         * tests/unictype/test-categ_Po.c: Regenerated.
46447         * tests/unictype/test-categ_Ps.c: Regenerated.
46448         * tests/unictype/test-categ_S.c: Regenerated.
46449         * tests/unictype/test-categ_Sk.c: Regenerated.
46450         * tests/unictype/test-categ_Sm.c: Regenerated.
46451         * tests/unictype/test-categ_So.c: Regenerated.
46452         * tests/unictype/test-ctype_alnum.c: Regenerated.
46453         * tests/unictype/test-ctype_alpha.c: Regenerated.
46454         * tests/unictype/test-ctype_graph.c: Regenerated.
46455         * tests/unictype/test-ctype_lower.c: Regenerated.
46456         * tests/unictype/test-ctype_print.c: Regenerated.
46457         * tests/unictype/test-ctype_punct.c: Regenerated.
46458         * tests/unictype/test-ctype_upper.c: Regenerated.
46459         * tests/unictype/test-decdigit.h: Regenerated.
46460         * tests/unictype/test-digit.h: Regenerated.
46461         * tests/unictype/test-numeric.h: Regenerated.
46462         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46463         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46464         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46465         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46466         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46467         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46468         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46469         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46470         * tests/unictype/test-pr_combining.c: Regenerated.
46471         * tests/unictype/test-pr_dash.c: Regenerated.
46472         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46473         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46474         * tests/unictype/test-pr_deprecated.c: Regenerated.
46475         * tests/unictype/test-pr_diacritic.c: Regenerated.
46476         * tests/unictype/test-pr_extender.c: Regenerated.
46477         * tests/unictype/test-pr_format_control.c: Regenerated.
46478         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46479         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46480         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46481         * tests/unictype/test-pr_id_continue.c: Regenerated.
46482         * tests/unictype/test-pr_id_start.c: Regenerated.
46483         * tests/unictype/test-pr_ideographic.c: Regenerated.
46484         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46485         * tests/unictype/test-pr_lowercase.c: Regenerated.
46486         * tests/unictype/test-pr_math.c: Regenerated.
46487         * tests/unictype/test-pr_numeric.c: Regenerated.
46488         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46489         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46490         Regenerated.
46491         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46492         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46493         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46494         * tests/unictype/test-pr_other_math.c: Regenerated.
46495         * tests/unictype/test-pr_punctuation.c: Regenerated.
46496         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46497         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46498         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46499         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46500         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46501         * tests/unictype/test-pr_uppercase.c: Regenerated.
46502         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46503         * tests/unictype/test-pr_xid_start.c: Regenerated.
46504         * tests/unictype/test-pr_zero_width.c: Regenerated.
46505
46506         Update to Unicode 5.1.0.
46507         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46508         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46509         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46510         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46511         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46512         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46513         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46514         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46515         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46516         (nonspacing_table_ind): Update.
46517         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46518
46519         Update to Unicode 5.1.0.
46520         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46521         code transform.
46522         * lib/uniname/uniname.c (unicode_character_name,
46523         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46524         * lib/uniname/uninames.h: Regenerated.
46525         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46526
46527 2009-02-07  Bruno Haible  <bruno@clisp.org>
46528
46529         Merge gen-ctype and gen-lbrk into a single program.
46530         * lib/gen-uni-tables.c: New file, incorporating
46531         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46532         Add directory prefixes to the names of the generated files.
46533         * lib/unictype/gen-ctype.c: Remove file.
46534         * lib/unilbrk/gen-lbrk.c: Remove file.
46535         * modules/gen-uni-tables: New file.
46536         * modules/unictype/gen-ctype: Remove file.
46537         * modules/unilbrk/gen-lbrk: Remove file.
46538
46539 2009-02-07  Bruno Haible  <bruno@clisp.org>
46540
46541         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46542
46543         New module 'unistr/u32-strcoll'.
46544         * modules/unistr/u32-strcoll: New file.
46545         * lib/unistr/u32-strcoll.c: New file.
46546
46547         New module 'unistr/u16-strcoll'.
46548         * modules/unistr/u16-strcoll: New file.
46549         * lib/unistr/u16-strcoll.c: New file.
46550
46551         New module 'unistr/u8-strcoll'.
46552         * modules/unistr/u8-strcoll: New file.
46553         * lib/unistr/u8-strcoll.c: New file.
46554         * lib/unistr/u-strcoll.h: New file.
46555
46556 2009-02-07  Bruno Haible  <bruno@clisp.org>
46557
46558         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46559         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46560         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46561         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46562         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46563         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46564
46565 2009-02-07  Bruno Haible  <bruno@clisp.org>
46566
46567         Make 64-bit clean.
46568         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46569         output_combclass, output_bidi_category, output_decimal_digit,
46570         output_digit, output_numeric, output_mirror, output_scripts,
46571         output_ident_category): Use proper width specifier in format strings.
46572
46573 2009-02-07  Bruno Haible  <bruno@clisp.org>
46574
46575         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46576         failure behaviour.
46577
46578 2009-02-07  Jim Meyering  <meyering@redhat.com>
46579
46580         regex: avoid compilation failure with upcoming gcc-4.4
46581         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46582         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46583         "... error: integer overflow in preprocessor expression".
46584
46585 2009-02-05  Ben Pfaff  <blp@gnu.org>
46586
46587         Fix link errors on Windows when close module is used.
46588         * modules/close: Add $(LIB_CLOSE) to Link section.
46589         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46590         $(LIB_CLOSE) on Windows.
46591
46592 2009-02-05  Jim Meyering  <meyering@redhat.com>
46593
46594         still avoid unused-parameter warnings, but do it cleanly
46595         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46596         (get_fs_usage): Cast to void instead.
46597         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46598         (dev_from_mount_options, read_file_system_list): Cast to void.
46599         Prompted by Bruno Haible.
46600
46601 2009-02-04  Jim Meyering  <meyering@redhat.com>
46602
46603         fsusage.c: correct copyright year
46604         * lib/fsusage.c: Reflect year in which the change is pushed into
46605
46606         avoid misc. warnings
46607         * lib/fsusage.c (UNUSED_PARAM): Define.
46608         (get_fs_usage): Mark parameter "disk" as unused.
46609         * lib/getugroups.c (getgrent): Use "void" in prototype.
46610         * lib/mountlist.c: Mark unused parameters.
46611         (read_file_system_list): Declare a local with "const".
46612         * lib/nanosleep.c (getnow): Declare static.
46613         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46614
46615         dirfd: set errno upon failure
46616         * lib/dirfd.c: Include <errno.h>.
46617         Set errno to ENOTSUP when returning -1.
46618         * modules/dirfd (Depends-on): Add errno.
46619         Suggested by John Kodis <kodis@comcast.net>.
46620
46621 2009-02-01  Bruno Haible  <bruno@clisp.org>
46622
46623         Don't assume sizeof (long) >= sizeof (void *).
46624         * lib/memcmp.c: Include stdint.h.
46625         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46626         srcp2 to 'const byte *'.
46627         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46628         types to uintptr_t.
46629         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46630         * modules/memcmp (Depends-on): Add stdint.
46631         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46632
46633 2009-01-30  Eric Blake  <ebb9@byu.net>
46634
46635         fix more require-before-expand issues
46636         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46637         expand, AC_PROG_AWK.
46638         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46639
46640 2009-01-28  Eric Blake  <ebb9@byu.net>
46641
46642         version-etc: use consistent URL formatting
46643         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46644         Improve formatting.  Use fputs for string without %.
46645
46646 2009-01-28  Jim Meyering  <meyering@redhat.com>
46647
46648         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46649         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46650         "underquoted definition of NAME" from autoconf-2.59.
46651
46652 2009-01-28  Bruno Haible  <bruno@clisp.org>
46653
46654         * doc/gnulib.texi: Add "Obsolete modules" to index.
46655
46656 2009-01-28  Jim Meyering  <meyering@redhat.com>
46657
46658         useless-if-before-free: recognize more variants
46659         * build-aux/useless-if-before-free: Also recognize e.g.,
46660         if (NULL != p) free (p);
46661
46662 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46663
46664         test-getaddrinfo: skip (don't fail) this test when there's no network
46665         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46666         on the presumption that it means you lack network access.
46667
46668 2009-01-26  Jim Meyering  <meyering@redhat.com>
46669
46670         fflush: avoid warnings on modern systems
46671         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46672         pos and result, into scopes where they're used.
46673
46674 2009-01-26  Eric Blake  <ebb9@byu.net>
46675
46676         Silence warning reintroduced by recent extensions patch.
46677         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46678         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46679         autoconf.
46680
46681         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46682         * m4/00gnulib.m4: New file.
46683         * gnulib-tool (func_get_filelist): Always use it.
46684         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46685         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46686
46687 2009-01-25  Bruno Haible  <bruno@clisp.org>
46688
46689         Make test-quotearg work on MacOS X and AIX.
46690         * tests/test-quotearg.sh: New file.
46691         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46692         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46693         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46694         include <libintl.h>.
46695         (fake_locale): Remove variable.
46696         (gettext, dgettext, dcgettext): Remove functions.
46697         (main): Instead of setting a fake locale, set a real locale. Call
46698         textdomain and bindtextdomain.
46699         * modules/quotearg-tests (Files): Add the new files.
46700         (Depends-on): Add gettext, setenv, unsetenv.
46701         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46702         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46703         Augment TESTS_ENVIRONMENT.
46704
46705 2009-01-25  Bruno Haible  <bruno@clisp.org>
46706
46707         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46708         fr_FR.ISO8859-1 locale on MacOS X.
46709         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46710         ja_JP.eucJP locale on MacOS X.
46711         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46712         zh_CN.GB18030 locale on MacOS X.
46713
46714 2009-01-25  Bruno Haible  <bruno@clisp.org>
46715
46716         Avoid link errors on MacOS X 10.3.
46717         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46718         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46719
46720 2009-01-25  Bruno Haible  <bruno@clisp.org>
46721
46722         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46723         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46724         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46725         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46726         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46727         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46728         posix_spawnattr_init, posix_spawnattr_setsigmask,
46729         posix_spawnattr_setflags, posix_spawnattr_destroy.
46730
46731         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46732         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46733         * modules/execute (Files): Remove m4/posix_spawn.m4.
46734         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46735         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46736         posix_spawnattr_init, posix_spawnattr_setsigmask,
46737         posix_spawnattr_setflags, posix_spawnattr_destroy.
46738
46739 2009-01-25  Bruno Haible  <bruno@clisp.org>
46740
46741         * lib/glthread/threadlib.c: Include <stdlib.h>.
46742
46743 2009-01-25  Bruno Haible  <bruno@clisp.org>
46744
46745         * lib/glthread/threadlib.c (dummy): New declaration.
46746
46747 2009-01-25  Bruno Haible  <bruno@clisp.org>
46748
46749         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46750         multibyte characters also for the GB18030 encoding. Don't crash when
46751         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46752
46753 2009-01-25  Bruno Haible  <bruno@clisp.org>
46754
46755         Avoid redefining 'struct random_data' on OSF/1 5.1.
46756         * lib/stdlib.in.h: Include <random.h> if it exists.
46757         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46758         HAVE_RANDOM_H. Include <random.h> when testing whether
46759         'struct random_data' exists.
46760         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46761
46762 2009-01-25  Bruno Haible  <bruno@clisp.org>
46763
46764         Don't install charset.alias on MacOS X >= 10.3.
46765         * lib/localcharset.c (DARWIN7): New macro.
46766         (get_charset_aliases): Hardcode the result for Darwin7.
46767         * modules/localcharset (install-exec-local): Don't install
46768         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46769
46770 2009-01-25  Bruno Haible  <bruno@clisp.org>
46771
46772         Don't install charset.alias on mingw and Cygwin.
46773         * modules/localcharset (install-exec-local): Don't install
46774         charset.alias on mingw and Cygwin, if the file does not yet exist.
46775         The result for these platforms is hardcoded in localcharset.c.
46776
46777 2009-01-25  Bruno Haible  <bruno@clisp.org>
46778
46779         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46780         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46781         before requiring AC_USE_SYSTEM_EXTENSIONS.
46782
46783 2009-01-25  Jim Meyering  <meyering@redhat.com>
46784
46785         c-strtod: avoid warnings
46786         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46787         "assignment discards qualifiers from pointer target type" warnings.
46788
46789 2009-01-24  Bruno Haible  <bruno@clisp.org>
46790
46791         Add support for non-UTF-8 locales on MacOS X.
46792         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46793         canonical encodings. For Darwin 7 and newer, don't map traditional
46794         encodings to UTF-8.
46795         Reported by Vincent Lefevre <vincent@vinc17.org>
46796         at <http://savannah.gnu.org/bugs/?25235>.
46797
46798 2009-01-24  Bruno Haible  <bruno@clisp.org>
46799
46800         * doc/gnulib.texi (Obsolete modules): New section.
46801         Reported by Mike Frysinger <vapier@gentoo.org>.
46802
46803 2009-01-24  Bruno Haible  <bruno@clisp.org>
46804
46805         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46806         (%.dvi): New rule.
46807
46808 2009-01-24  Bruno Haible  <bruno@clisp.org>
46809
46810         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46811         Reported by Eric Blake.
46812
46813 2009-01-24  Bruno Haible  <bruno@clisp.org>
46814
46815         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46816         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46817         Reported by Gary V. Vaughan <gary@gnu.org>.
46818
46819 2009-01-24  Bruno Haible  <bruno@clisp.org>
46820
46821         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46822
46823 2009-01-23  Bruno Haible  <bruno@clisp.org>
46824
46825         Make c-strtod, c-strtold usable in libraries.
46826         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46827         (C_STRTOD): Call strdup instead of xstrdup.
46828         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46829         * modules/c-strtold (Depends-on): Likewise.
46830         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46831         * NEWS: Mention the change.
46832         Reported by Michael Gold <mgold@ncf.ca>.
46833
46834 2009-01-23  Jim Meyering  <meyering@redhat.com>
46835
46836         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46837         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46838         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46839
46840 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46841
46842         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46843         GNU CoreUtils.
46844         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46845         * modules/version-etc (Description): Update.
46846
46847 2009-01-22  Bruno Haible  <bruno@clisp.org>
46848
46849         Cache the C locale object.
46850         * lib/c-strtod.c (c_locale_cache): New variable.
46851         (c_locale): New function.
46852         (C_STRTOD): Use it, and don't call freelocale.
46853         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46854         Suggested by Paolo Bonzini.
46855
46856 2009-01-21  Bruno Haible  <bruno@clisp.org>
46857
46858         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46859         conditions other than overflow.
46860
46861 2009-01-21  Bruno Haible  <bruno@clisp.org>
46862
46863         * lib/c-strtod.c: Include errno.h.
46864         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46865         value from STRTOD_L and STRTOD.
46866
46867 2009-01-21  Bruno Haible  <bruno@clisp.org>
46868         and Jim Meyering  <meyering@redhat.com>
46869
46870         nanosleep: skip configure test (fail it) for apple universal builds
46871         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46872         universal builds, assume that nanosleep does not work.
46873         * modules/nanosleep (Depends-on): Add multiarch.
46874
46875         mktime: skip configure test (fail it) for apple universal builds
46876         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46877         universal builds, assume that mktime does not work.
46878         * modules/mktime (Depends-on): Add multiarch.
46879
46880 2009-01-21  Eric Blake  <ebb9@byu.net>
46881
46882         multiarch: avoid expand-before-require warning
46883         * modules/multiarch (configure.ac): Require, rather than expand,
46884         gl_MULTIARCH.
46885         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46886         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46887         enforce that all clients require it.  Partial reversion of
46888         2008-12-29 patch.
46889
46890         error: avoid expand-before-require warning
46891         * modules/errno (configure.ac): Require, rather than expand,
46892         gl_HEADER_ERRNO_H.
46893         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46894         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46895         enforce that all clients require it.
46896
46897         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46898         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46899         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46900         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46901
46902 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46903
46904         Revert:
46905         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46906
46907         regex: do not depend on obsolete modules.
46908         * modules/regex: Remove memcmp and memmove.
46909
46910 2009-01-20  Bruno Haible  <bruno@clisp.org>
46911
46912         Make the 'link' module link on Windows NT 4.
46913         * lib/link.c (_WIN32_WINNT): Don't define.
46914         (CreateHardLinkFuncType): New type.
46915         (CreateHardLinkFunc, initialized): New variables.
46916         (initialize): New function.
46917         (link): Invoke CreateHardLink indirectly through the function pointer.
46918
46919 2009-01-20  Bruno Haible  <bruno@clisp.org>
46920
46921         Fix compilation failure on mingw.
46922         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46923
46924 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46925
46926         * doc/c-strtod.texi: Mention a couple of restrictions.
46927
46928 2009-01-20  Jim Meyering  <meyering@redhat.com>
46929
46930         gettimeofday: move more declarations out of functions
46931         * lib/gettimeofday.c: Move extern declarations of tzset and
46932         gmtime out of containing functions.  Prompted by Bruno Haible.
46933
46934 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46935
46936         regex: do not depend on obsolete modules.
46937         * modules/regex: Remove memcmp and memmove.
46938
46939 2009-01-19  Bruno Haible  <bruno@clisp.org>
46940
46941         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46942         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46943         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46944         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46945         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46946
46947 2009-01-19  Bruno Haible  <bruno@clisp.org>
46948
46949         * tests/test-link.c: Include <errno.h>.
46950         (main): Exit with code 77 when a hard link cannot be created due to
46951         the file system.
46952         * tests/test-link.sh: Skip test when a hard link cannot be created due
46953         to the file system.
46954         Suggested by Eric Blake.
46955
46956 2009-01-19  Martin Lambers  <marlam@marlam.de>
46957
46958         * modules/link-tests: New file.
46959         * tests/test-link.sh: New file.
46960         * tests/test-link.c: New file.
46961
46962 2009-01-19  Eric Blake  <ebb9@byu.net>
46963
46964         doc: mention another function added in cygwin 1.7.0
46965         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46966         Another new function in cygwin 1.7.
46967
46968 2009-01-19  Bruno Haible  <bruno@clisp.org>
46969
46970         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46971         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46972         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46973         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46974         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46975         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46976         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46977         * m4/md4.m4 (gl_MD4): Likewise.
46978         * m4/md5.m4 (gl_MD5): Likewise.
46979         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46980         * m4/sha1.m4 (gl_SHA1): Likewise.
46981         * m4/sha256.m4 (gl_SHA256): Likewise.
46982         * m4/sha512.m4 (gl_SHA512): Likewise.
46983
46984 2009-01-19  Bruno Haible  <bruno@clisp.org>
46985
46986         * modules/uniname/uniname-tests (Depends-on): Add progname.
46987         * tests/uniname/test-uninames.c: Include progname.h.
46988         (main): Call set_program_name.
46989
46990         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46991         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46992         (main): Call set_program_name.
46993
46994         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46995         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46996         (main): Call set_program_name.
46997
46998         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46999         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47000         (main): Call set_program_name.
47001
47002         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47003         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47004         (main): Call set_program_name.
47005
47006         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47007         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47008         (main): Call set_program_name.
47009
47010         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47011         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47012         (main): Call set_program_name.
47013
47014         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47015         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47016         (main): Call set_program_name.
47017
47018         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47019         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47020         (main): Call set_program_name.
47021
47022 2009-01-19  Eric Blake  <ebb9@byu.net>
47023
47024         test-unistd: test previous patch
47025         * tests/test-unistd.c: Test *_FILENO macros.
47026
47027         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47028         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47029         Guarantee a definition.
47030         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47031         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47032         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47033         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47034         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47035         Likewise.
47036         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47037         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47038         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47039         Likewise.
47040         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47041         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47042         (STDERR_FILENO): Likewise.
47043         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47044         (STDERR_FILENO): Likewise.
47045         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47046         (STDERR_FILENO): Likewise.
47047         Reported by Elbert Pol.
47048
47049 2009-01-19  Eric Blake  <ebb9@byu.net>
47050
47051         doc: mention more functions added in cygwin 1.7.0
47052         * doc/posix-functions/abort.texi (abort): Update wording related
47053         to cygwin.
47054         * doc/posix-functions/daylight.texi (daylight): Likewise.
47055         * doc/posix-functions/optarg.texi (optarg): Likewise.
47056         * doc/posix-functions/optarg.texi (opterr): Likewise.
47057         * doc/posix-functions/optarg.texi (optind): Likewise.
47058         * doc/posix-functions/optarg.texi (optopt): Likewise.
47059         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47060         worked in 1.5.x, and was withdrawn in 1.7.
47061         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47062         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47063         cygwin versions.
47064         * doc/posix-functions/perror.texi (perror): Likewise.
47065         * doc/posix-functions/printf.texi (printf): Likewise.
47066         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47067         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47068         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47069         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47070         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47071         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47072         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47073         Likewise.
47074         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47075         Likewise.
47076         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47077         this function.
47078         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47079         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47080         Likewise.
47081         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47082         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47083         * doc/posix-functions/confstr.texi (confstr): Likewise.
47084         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47085         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47086         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47087         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47088         * doc/posix-functions/fputws.texi (fputws): Likewise.
47089         * doc/posix-functions/fwide.texi (fwide): Likewise.
47090         * doc/posix-functions/getwc.texi (getwc): Likewise.
47091         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47092         * doc/posix-functions/putwc.texi (putwc): Likewise.
47093         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47094         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47095         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47096         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47097         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47098         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47099         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47100         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47101         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47102         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47103         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47104
47105 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47106
47107         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47108         * lib/ioctl.c: Include <sys/ioctl.h>.
47109
47110 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47111
47112         * modules/getdate-tests (Depends-on): Add progname.
47113         * tests/test-getdate.c: Use progname module, to avoid link errors
47114         on non-glibc systems.
47115
47116 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47117
47118         * modules/filenamecat-tests (Depends-on): Add progname.
47119         * modules/fstrcmp-tests (Depends-on): Likewise.
47120
47121         * tests/test-filenamecat.c: Use progname module, to avoid link
47122         errors on non-glibc systems.
47123         * tests/test-fstrcmp.c: Likewise.
47124
47125 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47126
47127         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47128         * lib/gettimeofday.c: Move extern declaration out of function.
47129
47130 2009-01-18  Bruno Haible  <bruno@clisp.org>
47131
47132         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47133         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47134         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47135
47136 2009-01-18  Bruno Haible  <bruno@clisp.org>
47137
47138         * lib/strftime.c (MEMPCPY): Remove unused macro.
47139         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47140
47141 2009-01-18  Martin Lambers  <marlam@marlam.de>
47142
47143         New module 'link'.
47144         * lib/unistd.in.h (link): New declaration.
47145         * lib/link.c: New file.
47146         * m4/link.m4: New file.
47147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47148         HAVE_LINK.
47149         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47150         * modules/link: New file.
47151         * doc/posix-functions/link.texi: Mention the new module.
47152
47153 2009-01-18  Bruno Haible  <bruno@clisp.org>
47154
47155         * tests/test-avltree_list.c (main): Call set_program_name.
47156         * tests/test-avltree_oset.c (main): Likewise.
47157         * tests/test-obstack-printf.c: Include progname.h.
47158         (main): Call set_program_name.
47159         * tests/test-quotearg.c: Include progname.h.
47160         (main): Call set_program_name.
47161         * tests/test-xmemdup0.c: Include progname.h.
47162         (main): Call set_program_name.
47163
47164 2009-01-18  Bruno Haible  <bruno@clisp.org>
47165
47166         New module 'alphasort'.
47167         * lib/dirent.in.h (alphasort): New declaration.
47168         * lib/alphasort.c: New file, from glibc with modifications.
47169         * m4/alphasort.m4: New file.
47170         * modules/alphasort: New file.
47171         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47172         HAVE_ALPHASORT.
47173         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47174         HAVE_ALPHASORT.
47175         * doc/posix-functions/alphasort.texi: Mention the new module and the
47176         portability problems.
47177
47178 2009-01-18  Bruno Haible  <bruno@clisp.org>
47179
47180         New module 'scandir'.
47181         * lib/dirent.in.h (scandir): New declaration.
47182         * lib/scandir.c: New file, from glibc with modifications.
47183         * m4/scandir.m4: New file.
47184         * modules/scandir: New file.
47185         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47186         HAVE_SCANDIR.
47187         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47188         HAVE_SCANDIR.
47189         * doc/posix-functions/scandir.texi: Mention the new module and the
47190         portability problems.
47191
47192 2009-01-17  Bruno Haible  <bruno@clisp.org>
47193
47194         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47195         Update documentation.
47196         (func_remove_suffix): Escape all dots in the suffix. Update
47197         documentation.
47198         (func_filter_filelist): Update documentation.
47199         Reported by Ralf Wildenhues.
47200
47201 2009-01-17  Bruno Haible  <bruno@clisp.org>
47202
47203         * modules/dprintf-posix-tests: New file.
47204         * tests/test-dprintf-posix.sh: New file.
47205         * tests/test-dprintf-posix.c: New file.
47206
47207         New modules 'dprintf', 'dprintf-posix'.
47208         * lib/stdio.in.h (dprintf): New declaration.
47209         * lib/dprintf.c: New file.
47210         * m4/dprintf.m4: New file.
47211         * m4/dprintf-posix.m4: New file.
47212         * modules/dprintf: New file.
47213         * modules/dprintf-posix: New file.
47214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47215         HAVE_DPRINTF, REPLACE_DPRINTF.
47216         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47217         HAVE_DPRINTF, REPLACE_DPRINTF.
47218         * doc/posix-functions/dprintf.texi: Mention the new modules.
47219
47220 2009-01-17  Bruno Haible  <bruno@clisp.org>
47221
47222         * modules/vdprintf-posix-tests: New file.
47223         * tests/test-vdprintf-posix.sh: New file.
47224         * tests/test-vdprintf-posix.c: New file.
47225
47226         New modules 'vdprintf', 'vdprintf-posix'.
47227         * lib/stdio.in.h (vdprintf): New declaration.
47228         * lib/vdprintf.c: New file.
47229         * m4/vdprintf.m4: New file.
47230         * m4/vdprintf-posix.m4: New file.
47231         * modules/vdprintf: New file.
47232         * modules/vdprintf-posix: New file.
47233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47234         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47235         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47236         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47237         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47238
47239 2009-01-17  Bruno Haible  <bruno@clisp.org>
47240
47241         Fix replacement of fopen on mingw.
47242         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47243         mingw.
47244
47245 2009-01-17  Bruno Haible  <bruno@clisp.org>
47246
47247         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47248         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47249
47250 2009-01-17  Bruno Haible  <bruno@clisp.org>
47251
47252         Avoid test-fflush2.sh failure on mingw.
47253         * tests/test-fflush2.c: Include binary-io.h.
47254         (main): Put standard input into binary mode.
47255         * modules/fflush-tests (Depends-on): Add binary-io.
47256
47257 2009-01-17  Bruno Haible  <bruno@clisp.org>
47258
47259         * lib/wchar.in.h: In another particular situation, include only the
47260         system's <wchar.h> file.
47261         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47262         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47263         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47264
47265 2009-01-17  Bruno Haible  <bruno@clisp.org>
47266
47267         Support for stripping executables in --enable-relocatable.
47268         * build-aux/install-reloc: Expect one more argument, or an environment
47269         variable RELOC_STRIP_PROG. If set, strip the destination program and
47270         its wrapper.
47271         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47272         RELOC_STRIP_PROG.
47273         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47274         to set RELOCATABLE_STRIP.
47275         * NEWS: Mention the new Makefile requirement.
47276
47277 2009-01-17  Bruno Haible  <bruno@clisp.org>
47278
47279         * build-aux/install-reloc: Remove debugging information left over by
47280         C compiler on MacOS X.
47281
47282 2009-01-17  Bruno Haible  <bruno@clisp.org>
47283
47284         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47285         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47286         _NSGetExecutablePath.
47287
47288 2009-01-16  Jim Meyering  <meyering@redhat.com>
47289
47290         strerror: avoid warnings about discarding "const"
47291         * lib/strerror.c (rpl_strerror): Instead of returning a const
47292         string from each and every "case", use a variable, and add a single
47293         cast after the switch.
47294
47295 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47296
47297         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47298
47299 2009-01-16  Bruno Haible  <bruno@clisp.org>
47300
47301         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47302         array initializer syntax that also works in C++ mode.
47303         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47304
47305 2009-01-16  Jim Meyering  <meyering@redhat.com>
47306
47307         poll: suppress a warning
47308         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47309         to ignore "...unsigned expression < 0 is always false" warnings.
47310
47311 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47312
47313         poll: remove declarations of unused variables
47314         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47315         sockbuf and optlen.
47316
47317 2009-01-15  Bruno Haible  <bruno@clisp.org>
47318
47319         Make fflush-after-ungetc POSIX compliant on BSD systems.
47320         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47321         (clear_ungetc_buffer): Implement also for other systems.
47322         (rpl_fflush): On glibc systems, invoke
47323         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47324         clear_ungetc_buffer after fetching the stream's position, not before.
47325
47326 2009-01-15  Bruno Haible  <bruno@clisp.org>
47327
47328         Make fflush-after-ungetc POSIX compliant on glibc systems.
47329         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47330         after ungetc.
47331         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47332         (rpl_fflush): On glibc systems, simply call the system's fflush
47333         function after clearing the ungetc buffer.
47334         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47335         Instead, lseek only to the end of file, then use the system's fseeko
47336         for the rest. On glibc systems, reset the EOF indicator bit.
47337
47338 2009-01-15  Jim Meyering  <meyering@redhat.com>
47339
47340         openmp.m4: revert quote-adding change, for portability to older autoconf
47341         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47342         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47343         Simon Josefsson noticed the problem when using autoconf-2.61.
47344
47345 2009-01-15  Bruno Haible  <bruno@clisp.org>
47346
47347         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47348         * tests/test-fflush2.c (ASSERT): Always fail.
47349         (main): Add two tests for fflush() after ungetc(), taking into account
47350         the Austin Group's clarification.
47351         Suggested by Eric Blake.
47352
47353 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47354
47355         mktime.m4: remove K&R-style function prototypes
47356         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47357         for the Sun C++ compiler.
47358
47359 2009-01-14  Bruno Haible  <bruno@clisp.org>
47360
47361         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47362         while including <wchar.h>.
47363         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47364         the system's <wchar.h> file.
47365         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47366
47367 2009-01-14  Bruno Haible  <bruno@clisp.org>
47368
47369         * m4/csharp.m4: Don't mention gettext on the serial number line.
47370         * m4/csharpexec.m4: Likewise.
47371         * m4/eaccess.m4: Likewise.
47372         * m4/javaexec.m4: Likewise.
47373         * m4/sig_atomic_t.m4: Likewise.
47374         * m4/tmpdir.m4: Likewise.
47375         * m4/intldir.m4: Bump gettext version.
47376         * m4/lib-ld.m4: Likewise.
47377
47378 2009-01-14  Bruno Haible  <bruno@clisp.org>
47379
47380         * lib/progname.c (set_program_name): Add more comments.
47381         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47382
47383 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47384
47385         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47386         were sys/stat.h does not define it.
47387
47388 2009-01-14  Jim Meyering  <meyering@redhat.com>
47389
47390         many *.m4 files: improve m4 quoting
47391         99% of this change was performed by running the following commands:
47392         git ls-files | grep '\.m4$' | xargs perl -pi \
47393           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47394           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47395           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47396           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47397         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47398         The remainder were to add Copyright dates, increment serial numbers,
47399         undo some changes in comments, exclude m4/intl.m4, and add quotes
47400         around the "1" in ",1" where the unusual spacing prohibited the
47401         above regexps from doing the job.  For more details, see
47402         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47403         * m4/acl.m4: Modified.
47404         * m4/afs.m4: Likewise.
47405         * m4/alloca.m4: Likewise.
47406         * m4/argp.m4: Likewise.
47407         * m4/argz.m4: Likewise.
47408         * m4/atexit.m4: Likewise.
47409         * m4/bison-i18n.m4: Likewise.
47410         * m4/bison.m4: Likewise.
47411         * m4/byteswap.m4: Likewise.
47412         * m4/c-stack.m4: Likewise.
47413         * m4/c-strtod.m4: Likewise.
47414         * m4/calloc.m4: Likewise.
47415         * m4/canonicalize-lgpl.m4: Likewise.
47416         * m4/chown.m4: Likewise.
47417         * m4/clock_time.m4: Likewise.
47418         * m4/codeset.m4: Likewise.
47419         * m4/copy-file.m4: Likewise.
47420         * m4/csharp.m4: Likewise.
47421         * m4/csharpcomp.m4: Likewise.
47422         * m4/csharpexec.m4: Likewise.
47423         * m4/d-ino.m4: Likewise.
47424         * m4/d-type.m4: Likewise.
47425         * m4/dirfd.m4: Likewise.
47426         * m4/double-slash-root.m4: Likewise.
47427         * m4/eaccess.m4: Likewise.
47428         * m4/eealloc.m4: Likewise.
47429         * m4/environ.m4: Likewise.
47430         * m4/errno_h.m4: Likewise.
47431         * m4/euidaccess.m4: Likewise.
47432         * m4/execute.m4: Likewise.
47433         * m4/fatal-signal.m4: Likewise.
47434         * m4/fchdir.m4: Likewise.
47435         * m4/fcntl_h.m4: Likewise.
47436         * m4/fileblocks.m4: Likewise.
47437         * m4/filenamecat.m4: Likewise.
47438         * m4/findprog.m4: Likewise.
47439         * m4/flexmember.m4: Likewise.
47440         * m4/fnmatch.m4: Likewise.
47441         * m4/fopen.m4: Likewise.
47442         * m4/fpending.m4: Likewise.
47443         * m4/fprintf-posix.m4: Likewise.
47444         * m4/free.m4: Likewise.
47445         * m4/frexp.m4: Likewise.
47446         * m4/frexpl.m4: Likewise.
47447         * m4/fsusage.m4: Likewise.
47448         * m4/ftruncate.m4: Likewise.
47449         * m4/gc-camellia.m4: Likewise.
47450         * m4/gc-random.m4: Likewise.
47451         * m4/gc.m4: Likewise.
47452         * m4/getaddrinfo.m4: Likewise.
47453         * m4/getcwd-abort-bug.m4: Likewise.
47454         * m4/getcwd-path-max.m4: Likewise.
47455         * m4/getdate.m4: Likewise.
47456         * m4/getdomainname.m4: Likewise.
47457         * m4/getgroups.m4: Likewise.
47458         * m4/gethostname.m4: Likewise.
47459         * m4/gethrxtime.m4: Likewise.
47460         * m4/getline.m4: Likewise.
47461         * m4/getloadavg.m4: Likewise.
47462         * m4/getndelim2.m4: Likewise.
47463         * m4/getpass.m4: Likewise.
47464         * m4/gettext.m4: Likewise.
47465         * m4/gettime.m4: Likewise.
47466         * m4/gettimeofday.m4: Likewise.
47467         * m4/gnulib-common.m4: Likewise.
47468         * m4/group-member.m4: Likewise.
47469         * m4/host-os.m4: Likewise.
47470         * m4/iconv.m4: Likewise.
47471         * m4/iconv_open.m4: Likewise.
47472         * m4/inet_ntop.m4: Likewise.
47473         * m4/inet_pton.m4: Likewise.
47474         * m4/inline.m4: Likewise.
47475         * m4/intldir.m4: Likewise.
47476         * m4/intlmacosx.m4: Likewise.
47477         * m4/intmax.m4: Likewise.
47478         * m4/intmax_t.m4: Likewise.
47479         * m4/inttypes.m4: Likewise.
47480         * m4/inttypes_h.m4: Likewise.
47481         * m4/inttypes-pri.m4: Likewise.
47482         * m4/isapipe.m4: Likewise.
47483         * m4/isnand.m4: Likewise.
47484         * m4/isnanf.m4: Likewise.
47485         * m4/isnanl.m4: Likewise.
47486         * m4/javacomp.m4: Likewise.
47487         * m4/javaexec.m4: Likewise.
47488         * m4/jm-winsz1.m4: Likewise.
47489         * m4/jm-winsz2.m4: Likewise.
47490         * m4/lchown.m4: Likewise.
47491         * m4/lcmessage.m4: Likewise.
47492         * m4/ldexpl.m4: Likewise.
47493         * m4/lib-ld.m4: Likewise.
47494         * m4/lib-link.m4: Likewise.
47495         * m4/libsigsegv.m4: Likewise.
47496         * m4/link-follow.m4: Likewise.
47497         * m4/localcharset.m4: Likewise.
47498         * m4/locale-fr.m4: Likewise.
47499         * m4/locale-ja.m4: Likewise.
47500         * m4/locale-tr.m4: Likewise.
47501         * m4/locale-zh.m4: Likewise.
47502         * m4/lock.m4: Likewise.
47503         * m4/longlong.m4: Likewise.
47504         * m4/ls-mntd-fs.m4: Likewise.
47505         * m4/lstat.m4: Likewise.
47506         * m4/malloc.m4: Likewise.
47507         * m4/mathl.m4: Likewise.
47508         * m4/mbrtowc.m4: Likewise.
47509         * m4/mbstate_t.m4: Likewise.
47510         * m4/mbswidth.m4: Likewise.
47511         * m4/memchr.m4: Likewise.
47512         * m4/memcmp.m4: Likewise.
47513         * m4/memcpy.m4: Likewise.
47514         * m4/memmem.m4: Likewise.
47515         * m4/memmove.m4: Likewise.
47516         * m4/mempcpy.m4: Likewise.
47517         * m4/memrchr.m4: Likewise.
47518         * m4/memset.m4: Likewise.
47519         * m4/minmax.m4: Likewise.
47520         * m4/mkdir-slash.m4: Likewise.
47521         * m4/mkdtemp.m4: Likewise.
47522         * m4/mktime.m4: Likewise.
47523         * m4/mmap-anon.m4: Likewise.
47524         * m4/mountlist.m4: Likewise.
47525         * m4/nanosleep.m4: Likewise.
47526         * m4/nls.m4: Likewise.
47527         * m4/nocrash.m4: Likewise.
47528         * m4/open.m4: Likewise.
47529         * m4/openat.m4: Likewise.
47530         * m4/openmp.m4: Likewise.
47531         * m4/pathmax.m4: Likewise.
47532         * m4/perl.m4: Likewise.
47533         * m4/physmem.m4: Likewise.
47534         * m4/pipe.m4: Likewise.
47535         * m4/po.m4: Likewise.
47536         * m4/poll.m4: Likewise.
47537         * m4/posixtm.m4: Likewise.
47538         * m4/posixver.m4: Likewise.
47539         * m4/printf-frexp.m4: Likewise.
47540         * m4/printf-frexpl.m4: Likewise.
47541         * m4/printf-posix.m4: Likewise.
47542         * m4/printf-posix-rpl.m4: Likewise.
47543         * m4/printf.m4: Likewise.
47544         * m4/progtest.m4: Likewise.
47545         * m4/putenv.m4: Likewise.
47546         * m4/readline.m4: Likewise.
47547         * m4/readlink.m4: Likewise.
47548         * m4/readutmp.m4: Likewise.
47549         * m4/realloc.m4: Likewise.
47550         * m4/regex.m4: Likewise.
47551         * m4/relocatable.m4: Likewise.
47552         * m4/relocatable-lib.m4: Likewise.
47553         * m4/rename-dest-slash.m4: Likewise.
47554         * m4/rename.m4: Likewise.
47555         * m4/rmdir-errno.m4: Likewise.
47556         * m4/rmdir.m4: Likewise.
47557         * m4/roundf.m4: Likewise.
47558         * m4/roundl.m4: Likewise.
47559         * m4/rpmatch.m4: Likewise.
47560         * m4/save-cwd.m4: Likewise.
47561         * m4/selinux-selinux-h.m4: Likewise.
47562         * m4/setenv.m4: Likewise.
47563         * m4/settime.m4: Likewise.
47564         * m4/sig2str.m4: Likewise.
47565         * m4/sig_atomic_t.m4: Likewise.
47566         * m4/signalblocking.m4: Likewise.
47567         * m4/signbit.m4: Likewise.
47568         * m4/sigpipe.m4: Likewise.
47569         * m4/sockets.m4: Likewise.
47570         * m4/sockpfaf.m4: Likewise.
47571         * m4/st_dm_mode.m4: Likewise.
47572         * m4/stat-time.m4: Likewise.
47573         * m4/stdbool.m4: Likewise.
47574         * m4/stdint.m4: Likewise.
47575         * m4/stdint_h.m4: Likewise.
47576         * m4/stpcpy.m4: Likewise.
47577         * m4/stpncpy.m4: Likewise.
47578         * m4/strcase.m4: Likewise.
47579         * m4/strchrnul.m4: Likewise.
47580         * m4/strcspn.m4: Likewise.
47581         * m4/strdup.m4: Likewise.
47582         * m4/strftime.m4: Likewise.
47583         * m4/strndup.m4: Likewise.
47584         * m4/strnlen.m4: Likewise.
47585         * m4/strpbrk.m4: Likewise.
47586         * m4/strptime.m4: Likewise.
47587         * m4/strsep.m4: Likewise.
47588         * m4/strtod.m4: Likewise.
47589         * m4/strtoimax.m4: Likewise.
47590         * m4/strtok_r.m4: Likewise.
47591         * m4/strtol.m4: Likewise.
47592         * m4/strtoll.m4: Likewise.
47593         * m4/strtoul.m4: Likewise.
47594         * m4/strtoull.m4: Likewise.
47595         * m4/strtoumax.m4: Likewise.
47596         * m4/strverscmp.m4: Likewise.
47597         * m4/threadlib.m4: Likewise.
47598         * m4/timegm.m4: Likewise.
47599         * m4/tm_gmtoff.m4: Likewise.
47600         * m4/tmpdir.m4: Likewise.
47601         * m4/tmpfile.m4: Likewise.
47602         * m4/tzset.m4: Likewise.
47603         * m4/uintmax_t.m4: Likewise.
47604         * m4/unlinkdir.m4: Likewise.
47605         * m4/unlocked-io.m4: Likewise.
47606         * m4/uptime.m4: Likewise.
47607         * m4/userspec.m4: Likewise.
47608         * m4/utimbuf.m4: Likewise.
47609         * m4/utime.m4: Likewise.
47610         * m4/utimes-null.m4: Likewise.
47611         * m4/utimes.m4: Likewise.
47612         * m4/vararrays.m4: Likewise.
47613         * m4/vasnprintf.m4: Likewise.
47614         * m4/vfprintf-posix.m4: Likewise.
47615         * m4/vprintf-posix.m4: Likewise.
47616         * m4/wait-process.m4: Likewise.
47617         * m4/wchar_t.m4: Likewise.
47618         * m4/wint_t.m4: Likewise.
47619         * m4/write-any-file.m4: Likewise.
47620         * m4/yield.m4: Likewise.
47621
47622 2009-01-13  Bruno Haible  <bruno@clisp.org>
47623
47624         Avoid test-copy-file.sh failures when ACL support insufficient.
47625         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47626         TESTS_ENVIRONMENT.
47627         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47628         Reported by Jim Meyering.
47629
47630 2009-01-13  Bruno Haible  <bruno@clisp.org>
47631
47632         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47633         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47634         * modules/unistdio/u8-printf-parse (Files): Likewise.
47635         * modules/unistdio/u32-printf-parse (Files): Likewise.
47636         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47637
47638 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47639
47640         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47641         and m4/inttypes_h.m4 too.
47642
47643 2009-01-12  Eric Blake  <ebb9@byu.net>
47644
47645         tests: IRIX 6.2 cc can't compile -0.0 into .data
47646         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47647         rather than at compile-time.
47648         * tests/test-floorl.c (minus_zero): Likewise.
47649         * tests/test-frexpl.c (minus_zero): Likewise.
47650         * tests/test-isnan.c (minus_zerol): Likewise.
47651         * tests/test-isnanl.h (minus_zero): Likewise.
47652         * tests/test-ldexpl.c (minus_zero): Likewise.
47653         * tests/test-roundl.c (minus_zero): Likewise.
47654         * tests/test-signbit.c (minus_zerol): Likewise.
47655         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47656         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47657         * tests/test-truncl.c (minus_zero): Likewise.
47658         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47659         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47660         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47661
47662 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47663
47664         regex: fix glibc bug 9697
47665         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47666         handling.
47667
47668 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47669
47670         regex: fix glibc bug 697
47671         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47672         being NULL also if there are no backreferences.
47673
47674 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47675
47676         regex: merge glibc changes
47677         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47678         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47679         re_string_skip_chars, re_string_reconstruct): Likewise.
47680         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47681
47682 2009-01-07  Jim Meyering  <meyering@redhat.com>
47683
47684         poll: filter through cppi
47685         * lib/poll.c: Indent cpp directives to reflect nesting.
47686
47687 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47688
47689         poll: don't return uninitialized
47690         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47691
47692 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47693
47694         avoid compile failure on AIX 6.1
47695         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47696         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47697
47698 2009-01-04  Jim Meyering  <meyering@redhat.com>
47699
47700         remove duplicate inclusion of <stdio.h>
47701         * tests/test-fprintf-posix.c: Likewise.
47702         * tests/test-printf-posix.c: Likewise.
47703         * tests/test-snprintf-posix.c: Likewise.
47704         * tests/test-sprintf-posix.c: Likewise.
47705         * tests/test-vasprintf-posix.c: Likewise.
47706         * tests/test-vfprintf-posix.c: Likewise.
47707         * tests/test-vprintf-posix.c: Likewise.
47708         * tests/test-vsnprintf-posix.c: Likewise.
47709         * tests/test-vsprintf-posix.c: Likewise.
47710
47711 2009-01-03  Jim Meyering  <meyering@redhat.com>
47712
47713         gnulib-tool: fix sed-based filtering
47714         * gnulib-tool (func_filter_filelist): Remove extra backslash
47715         in sed_fff_filter definition.
47716
47717 2009-01-02  Jim Meyering  <meyering@redhat.com>
47718
47719         strftime: avoid compilation failure on Solaris 2.6
47720         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47721         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47722         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47723         be available.  Reported by Tom G. Christensen.  Details in
47724         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47725
47726 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47727             Bruno Haible  <bruno@clisp.org>
47728
47729         Speed up gnulib-tool by doing more string processing through shell
47730         built-ins.
47731         * gnulib-tool (fast_func_append): New variable.
47732         (func_remove_prefix, func_remove_suffix): New functions.
47733         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47734         (func_filter_filelist): New function.
47735         (func_get_dependencies): Use func_remove_suffix instead of sed.
47736         (func_get_automake_snippet): Use func_filter_filelist instead of a
47737         subshell and sed invocation.
47738
47739 2009-01-01  Bruno Haible  <bruno@clisp.org>
47740
47741         Fix a security bug.
47742         * gnulib-tool (func_import, import, update): Don't allow the characters
47743         '"', '$', '`', '\' in macro arguments that become part of commands that
47744         are evaluated.
47745
47746 2009-01-01  Bruno Haible  <bruno@clisp.org>
47747
47748         * gnulib-tool (func_reset_sigpipe): Add more comments.
47749
47750 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47751
47752         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47753         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47754         already know the answer.
47755
47756 2009-01-01  Jim Meyering  <meyering@redhat.com>
47757
47758         * lib/version-etc.c (version_etc_va): Update copyright year.
47759
47760 2008-12-30  Bruno Haible  <bruno@clisp.org>
47761
47762         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47763         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47764         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47765
47766 2008-12-29  Eric Blake  <ebb9@byu.net>
47767
47768         multiarch: avoid autoconf AC_REQUIRE bug
47769         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47770         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47771         2.63 and older.
47772         Reported by Bruno Haible, and analyzed in
47773         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47774
47775 2008-12-29  Bruno Haible  <bruno@clisp.org>
47776
47777         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47778         files in subdirectories correctly.
47779         Reported by Ralf Wildenhues.
47780
47781 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47782
47783         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47784         rather than 'join FILE -', for Solaris join.
47785
47786 2008-12-29  Bruno Haible  <bruno@clisp.org>
47787
47788         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47789         quoting.
47790         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47791         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47792         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47793         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47794         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47795         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47796         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47797         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47798         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47799         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47800         * m4/nls.m4 (AM_NLS): Likewise.
47801         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47802         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47803         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47804         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47805         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47806         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47807         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47808         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47809         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47810         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47811         * m4/xsize.m4 (gl_XSIZE): Likewise.
47812         Suggested by Jim Meyering.
47813
47814 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47815
47816         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47817         * lib/parse-duration.c: use a switch instead of cascading if's.
47818
47819 2008-12-29  Eric Blake  <ebb9@byu.net>
47820
47821         wchar.h: supply WEOF on Irix 5.3
47822         * lib/wchar.in.h (wint_t): Also supply WEOF.
47823         * lib/wctype.in.h (wint_t): Likewise.
47824         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47825         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47826         Reported by Tom G. Christensen.
47827
47828 2008-12-26  Bruno Haible  <bruno@clisp.org>
47829
47830         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47831         i486, i586, i686.
47832
47833 2008-12-26  Bruno Haible  <bruno@clisp.org>
47834
47835         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47836
47837 2008-12-26  Bruno Haible  <bruno@clisp.org>
47838
47839         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47840         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47841         not __STDC_CONSTANT_MACROS.
47842         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47843
47844 2008-12-25  Bruno Haible  <bruno@clisp.org>
47845
47846         Add support for universal builds to vasnprintf.
47847         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47848         universal builds, guess no.
47849         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47850         * modules/vasprintf-posix (Depends-on): Likewise.
47851         * modules/fprintf-posix (Depends-on): Likewise.
47852         * modules/vfprintf-posix (Depends-on): Likewise.
47853         * modules/snprintf-posix (Depends-on): Likewise.
47854         * modules/vsnprintf-posix (Depends-on): Likewise.
47855         * modules/sprintf-posix (Depends-on): Likewise.
47856         * modules/vsprintf-posix (Depends-on): Likewise.
47857         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47858         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47859         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47860         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47861         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47862         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47863         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47864
47865         Add support for universal builds to <inttypes.h>.
47866         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47867         _SCNu64_PREFIX): In Apple
47868         universal builds, define directly, using _LP64.
47869         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47870         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47871         * modules/inttypes (Depends-on): Add multiarch.
47872         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47873
47874         Add support for universal builds to <stdint.h>.
47875         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47876         universal builds, define directly, using _LP64.
47877         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47878         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47879         and size_t.
47880         * modules/stdint (Depends-on): Add multiarch.
47881         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47882
47883         New module 'multiarch'.
47884         * modules/multiarch: New file.
47885         * m4/multiarch.m4: New file.
47886
47887 2008-12-25  Bruno Haible  <bruno@clisp.org>
47888
47889         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47890
47891 2008-12-25  Bruno Haible  <bruno@clisp.org>
47892
47893         * modules/btowc (License): Relicense under LGPLv2+.
47894         * modules/mbsinit (License): Likewise.
47895         * modules/mbrtowc (License): Likewise.
47896         * modules/wcrtomb (License): Likewise.
47897         * modules/streq (License): Likewise.
47898         Reported by David Lutterkort <lutter@redhat.com>.
47899
47900 2008-12-23  Bruno Haible  <bruno@clisp.org>
47901
47902         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47903
47904 2008-12-23  Bruno Haible  <bruno@clisp.org>
47905
47906         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47907         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47908         GETADDRINFO_LIB, not in LIBS.
47909         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47910         * modules/canon-host (Link): Likewise.
47911         * NEWS: Mention the change.
47912         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47913         GETADDRINFO_LIB.
47914
47915 2008-12-22  Bruno Haible  <bruno@clisp.org>
47916
47917         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47918         * doc/posix-functions/iswalpha_l.texi: Likewise.
47919         * doc/posix-functions/iswblank_l.texi: Likewise.
47920         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47921         * doc/posix-functions/iswctype_l.texi: Likewise.
47922         * doc/posix-functions/iswdigit_l.texi: Likewise.
47923         * doc/posix-functions/iswgraph_l.texi: Likewise.
47924         * doc/posix-functions/iswlower_l.texi: Likewise.
47925         * doc/posix-functions/iswprint_l.texi: Likewise.
47926         * doc/posix-functions/iswpunct_l.texi: Likewise.
47927         * doc/posix-functions/iswspace_l.texi: Likewise.
47928         * doc/posix-functions/iswupper_l.texi: Likewise.
47929         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47930         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47931         * doc/posix-functions/open_wmemstream.texi: Likewise.
47932         * doc/posix-functions/swscanf.texi: Likewise.
47933         * doc/posix-functions/towctrans_l.texi: Likewise.
47934         * doc/posix-functions/towlower.texi: Likewise.
47935         * doc/posix-functions/towlower_l.texi: Likewise.
47936         * doc/posix-functions/towupper.texi: Likewise.
47937         * doc/posix-functions/towupper_l.texi: Likewise.
47938         * doc/posix-functions/vfwprintf.texi: Likewise.
47939         * doc/posix-functions/vfwscanf.texi: Likewise.
47940         * doc/posix-functions/vswscanf.texi: Likewise.
47941         * doc/posix-functions/vwprintf.texi: Likewise.
47942         * doc/posix-functions/vwscanf.texi: Likewise.
47943         * doc/posix-functions/wcpcpy.texi: Likewise.
47944         * doc/posix-functions/wcpncpy.texi: Likewise.
47945         * doc/posix-functions/wcscasecmp.texi: Likewise.
47946         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47947         * doc/posix-functions/wcscoll_l.texi: Likewise.
47948         * doc/posix-functions/wcsdup.texi: Likewise.
47949         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47950         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47951         * doc/posix-functions/wcsnlen.texi: Likewise.
47952         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47953         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47954         * doc/posix-functions/wctrans_l.texi: Likewise.
47955         * doc/posix-functions/wctype_l.texi: Likewise.
47956         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47957         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47958         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47959         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47960         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47961         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47962         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47963         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47964         * doc/glibc-functions/wcschrnul.texi: Likewise.
47965         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47966         * doc/glibc-functions/wcstod_l.texi: Likewise.
47967         * doc/glibc-functions/wcstof_l.texi: Likewise.
47968         * doc/glibc-functions/wcstol_l.texi: Likewise.
47969         * doc/glibc-functions/wcstold_l.texi: Likewise.
47970         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47971         * doc/glibc-functions/wcstoq.texi: Likewise.
47972         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47973         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47974         * doc/glibc-functions/wcstouq.texi: Likewise.
47975         * doc/glibc-functions/wmempcpy.texi: Likewise.
47976
47977 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47978             Eric Blake  <ebb9@byu.net>
47979             Paolo Bonzini  <bonzini@gnu.org>
47980             Bruno Haible  <bruno@clisp.org>
47981
47982         Make c-stack work on Haiku.
47983         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47984         (c_stack_action): Use SA_ONSTACK flag.
47985
47986 2008-12-22  Bruno Haible  <bruno@clisp.org>
47987
47988         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47989
47990 2008-12-22  Bruno Haible  <bruno@clisp.org>
47991
47992         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47993         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47994         being overridden.
47995         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47996         New macros.
47997         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47998         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47999         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48000         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48001
48002 2008-12-22  Bruno Haible  <bruno@clisp.org>
48003
48004         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48005         from test code.
48006
48007 2008-12-22  Eric Blake  <ebb9@byu.net>
48008
48009         Avoid gcc warnings on cygwin.
48010         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48011         Avoid unused variable.
48012         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48013         Likewise.
48014
48015 2008-12-22  Bruno Haible  <bruno@clisp.org>
48016
48017         Remove HAVE_MBRTOWC conditionals.
48018         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48019         (mbscasecmp): Assume mbrtowc function.
48020         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48021         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48022         * lib/mbschr.c: Include mbuiter.h unconditionally.
48023         (mbschr): Assume mbrtowc function.
48024         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48025         (mbscspn): Assume mbrtowc function.
48026         * lib/mbslen.c: Include mbuiter.h unconditionally.
48027         (mbslen): Assume mbrtowc function.
48028         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48029         (mbsncasecmp): Assume mbrtowc function.
48030         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48031         (mbsnlen): Assume mbrtowc function.
48032         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48033         (mbspbrk): Assume mbrtowc function.
48034         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48035         (mbspcasecmp): Assume mbrtowc function.
48036         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48037         (mbsrchr): Assume mbrtowc function.
48038         * lib/mbssep.c: Include mbuiter.h unconditionally.
48039         (mbssep): Assume mbrtowc function.
48040         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48041         (mbsspn): Assume mbrtowc function.
48042         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48043         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48044         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48045         (mbstok_r): Assume mbrtowc function.
48046         * lib/propername.c: Include mbuiter.h unconditionally.
48047         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48048         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48049         (trim2): Assume mbrtowc function.
48050         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48051         (mbsnwidth): Assume mbrtowc function.
48052         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48053         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48054         fallback definitions.
48055         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48056
48057 2008-12-22  Bruno Haible  <bruno@clisp.org>
48058
48059         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48060
48061 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48062
48063         * modules/regex: Request emulations for the mb*/wc* functions we need.
48064         * m4/regex.m4: Don't look for those functions here.
48065         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48066
48067 2008-12-22  Bruno Haible  <bruno@clisp.org>
48068
48069         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48070
48071 2008-12-21  Bruno Haible  <bruno@clisp.org>
48072
48073         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48074         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48075         (Include): Remove conditionalization.
48076         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48077         (Include): Remove conditionalization.
48078         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48079         (Include): Remove conditionalization.
48080         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48081         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48082         * NEWS: Mention the change.
48083         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48084         via Sergey Poznyakoff <gray@gnu.org.ua>.
48085
48086 2008-12-21  Bruno Haible  <bruno@clisp.org>
48087
48088         * MODULES.html.sh (Extended multibyte and wide character utilities
48089         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48090         wcrtomb, wcsrtombs.
48091         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48092         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48093         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48094         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48095
48096 2008-12-21  Bruno Haible  <bruno@clisp.org>
48097
48098         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48099
48100 2008-12-21  Bruno Haible  <bruno@clisp.org>
48101
48102         * modules/wcsnrtombs-tests: New file.
48103         * tests/test-wcsnrtombs1.sh: New file.
48104         * tests/test-wcsnrtombs2.sh: New file.
48105         * tests/test-wcsnrtombs3.sh: New file.
48106         * tests/test-wcsnrtombs4.sh: New file.
48107         * tests/test-wcsnrtombs.c: New file.
48108
48109         New module 'wcsnrtombs'.
48110         * lib/wchar.in.h (wcsnrtombs): New declaration.
48111         * lib/wcsnrtombs.c: New file.
48112         * lib/wcsrtombs-state.c: New file.
48113         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48114         (internal_state): Remove variable.
48115         * m4/wcsnrtombs.m4: New file.
48116         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48117         compilation units.
48118         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48119         HAVE_WCSNRTOMBS.
48120         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48121         HAVE_WCSNRTOMBS.
48122         * modules/wcsnrtombs: New file.
48123         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48124         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48125
48126 2008-12-21  Bruno Haible  <bruno@clisp.org>
48127
48128         * modules/wcsrtombs-tests: New file.
48129         * tests/test-wcsrtombs1.sh: New file.
48130         * tests/test-wcsrtombs2.sh: New file.
48131         * tests/test-wcsrtombs3.sh: New file.
48132         * tests/test-wcsrtombs4.sh: New file.
48133         * tests/test-wcsrtombs.c: New file.
48134
48135         New module 'wcsrtombs'.
48136         * lib/wchar.in.h (wcsrtombs): New declaration.
48137         * lib/wcsrtombs.c: New file.
48138         * m4/wcsrtombs.m4: New file.
48139         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48140         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48141         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48142         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48143         * modules/wcsrtombs: New file.
48144         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48145         bugs.
48146
48147 2008-12-21  Bruno Haible  <bruno@clisp.org>
48148
48149         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48150         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48151         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48152         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48153         if not correct.
48154         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48155         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48156         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48157         m4/locale-zh.m4, m4/codeset.m4.
48158         * doc/posix-functions/wcrtomb.texi: Document the bug.
48159
48160 2008-12-21  Bruno Haible  <bruno@clisp.org>
48161
48162         Work around a btowc() bug on IRIX 6.5.
48163         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48164         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48165         REPLACE_WTOBC if not.
48166         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48167         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48168         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48169
48170 2008-12-21  Bruno Haible  <bruno@clisp.org>
48171
48172         * modules/wcrtomb-tests: New file.
48173         * tests/test-wcrtomb.sh: New file.
48174         * tests/test-wcrtomb.c: New file.
48175
48176         New module 'wcrtomb'.
48177         * lib/wchar.in.h (wcrtomb): New declaration.
48178         * lib/wcrtomb.c: New file.
48179         * m4/wcrtomb.m4: New file.
48180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48181         HAVE_WCRTOMB.
48182         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48183         HAVE_WCRTOMB.
48184         * modules/wcrtomb: New file.
48185         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48186
48187 2008-12-21  Bruno Haible  <bruno@clisp.org>
48188
48189         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48190         * modules/mbsrtowcs (Files): Likewise.
48191         * modules/wctob (Files): Likewise.
48192         * modules/c-strcase-tests (Files): Likewise.
48193         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48194         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48195         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48196         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48197         * modules/vasnprintf-posix-tests (Files): Likewise.
48198
48199 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48200
48201         gitlog-to-changelog: pass all command-line arguments to git-log
48202         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48203         it is sometimes convenient to filter the commits in various ways.
48204         gitlog-to-changelog only allows --since to specify a start date,
48205         but git-log itself supports many other filtering mechanisms.
48206         At the moment, I want to filter by branch name.  Rather than
48207         adding a --branch option to gitlog-to-changelog, it seems more
48208         flexible to simply pass all options directly to git-log and let
48209         git do the work.  Notice that this effectively makes --since a
48210         redundant option for gitlog-to-changelog, but removing it would
48211         require current usage to change since calls would then require
48212         an additional '--'.
48213
48214 2008-12-21  Bruno Haible  <bruno@clisp.org>
48215
48216         * modules/mbsnrtowcs-tests: New file.
48217         * tests/test-mbsnrtowcs1.sh: New file.
48218         * tests/test-mbsnrtowcs2.sh: New file.
48219         * tests/test-mbsnrtowcs3.sh: New file.
48220         * tests/test-mbsnrtowcs4.sh: New file.
48221         * tests/test-mbsnrtowcs.c: New file.
48222
48223         New module 'mbsnrtowcs'.
48224         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48225         * lib/mbsnrtowcs.c: New file.
48226         * lib/mbsrtowcs-state.c: New file.
48227         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48228         (internal_state): Remove variable.
48229         * m4/mbsnrtowcs.m4: New file.
48230         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48231         compilation units.
48232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48233         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48234         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48235         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48236         * modules/mbsnrtowcs: New file.
48237         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48238         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48239         portability problem.
48240
48241 2008-12-21  Bruno Haible  <bruno@clisp.org>
48242
48243         Work around mbsrtowcs bug.
48244         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48245         (gl_FUNC_MBSRTOWCS): Invoke it.
48246         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48247         m4/locale-zh.m4.
48248         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48249
48250 2008-12-21  Bruno Haible  <bruno@clisp.org>
48251
48252         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48253
48254 2008-12-21  Bruno Haible  <bruno@clisp.org>
48255
48256         Update doc for AIX.
48257         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48258         16-bit wchar_t type.
48259         * doc/posix-functions/btowc.texi: Likewise.
48260         * doc/posix-functions/fgetwc.texi: Likewise.
48261         * doc/posix-functions/fgetws.texi: Likewise.
48262         * doc/posix-functions/fputwc.texi: Likewise.
48263         * doc/posix-functions/fputws.texi: Likewise.
48264         * doc/posix-functions/fwide.texi: Likewise.
48265         * doc/posix-functions/fwprintf.texi: Likewise.
48266         * doc/posix-functions/fwscanf.texi: Likewise.
48267         * doc/posix-functions/getwchar.texi: Likewise.
48268         * doc/posix-functions/getwc.texi: Likewise.
48269         * doc/posix-functions/iswalnum.texi: Likewise.
48270         * doc/posix-functions/iswalpha.texi: Likewise.
48271         * doc/posix-functions/iswblank.texi: Likewise.
48272         * doc/posix-functions/iswcntrl.texi: Likewise.
48273         * doc/posix-functions/iswctype.texi: Likewise.
48274         * doc/posix-functions/iswdigit.texi: Likewise.
48275         * doc/posix-functions/iswgraph.texi: Likewise.
48276         * doc/posix-functions/iswlower.texi: Likewise.
48277         * doc/posix-functions/iswprint.texi: Likewise.
48278         * doc/posix-functions/iswpunct.texi: Likewise.
48279         * doc/posix-functions/iswspace.texi: Likewise.
48280         * doc/posix-functions/iswupper.texi: Likewise.
48281         * doc/posix-functions/iswxdigit.texi: Likewise.
48282         * doc/posix-functions/mbrtowc.texi: Likewise.
48283         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48284         * doc/posix-functions/mbstowcs.texi: Likewise.
48285         * doc/posix-functions/mbtowc.texi: Likewise.
48286         * doc/posix-functions/putwchar.texi: Likewise.
48287         * doc/posix-functions/putwc.texi: Likewise.
48288         * doc/posix-functions/swprintf.texi: Likewise.
48289         * doc/posix-functions/tolower.texi: Likewise.
48290         * doc/posix-functions/toupper.texi: Likewise.
48291         * doc/posix-functions/towctrans.texi: Likewise.
48292         * doc/posix-functions/ungetwc.texi: Likewise.
48293         * doc/posix-functions/vswprintf.texi: Likewise.
48294         * doc/posix-functions/wcrtomb.texi: Likewise.
48295         * doc/posix-functions/wcscat.texi: Likewise.
48296         * doc/posix-functions/wcschr.texi: Likewise.
48297         * doc/posix-functions/wcscmp.texi: Likewise.
48298         * doc/posix-functions/wcscoll.texi: Likewise.
48299         * doc/posix-functions/wcscpy.texi: Likewise.
48300         * doc/posix-functions/wcscspn.texi: Likewise.
48301         * doc/posix-functions/wcsftime.texi: Likewise.
48302         * doc/posix-functions/wcslen.texi: Likewise.
48303         * doc/posix-functions/wcsncat.texi: Likewise.
48304         * doc/posix-functions/wcsncmp.texi: Likewise.
48305         * doc/posix-functions/wcsncpy.texi: Likewise.
48306         * doc/posix-functions/wcspbrk.texi: Likewise.
48307         * doc/posix-functions/wcsrchr.texi: Likewise.
48308         * doc/posix-functions/wcsrtombs.texi: Likewise.
48309         * doc/posix-functions/wcsspn.texi: Likewise.
48310         * doc/posix-functions/wcsstr.texi: Likewise.
48311         * doc/posix-functions/wcstod.texi: Likewise.
48312         * doc/posix-functions/wcstof.texi: Likewise.
48313         * doc/posix-functions/wcstoimax.texi: Likewise.
48314         * doc/posix-functions/wcstok.texi: Likewise.
48315         * doc/posix-functions/wcstold.texi: Likewise.
48316         * doc/posix-functions/wcstoll.texi: Likewise.
48317         * doc/posix-functions/wcstol.texi: Likewise.
48318         * doc/posix-functions/wcstombs.texi: Likewise.
48319         * doc/posix-functions/wcstoull.texi: Likewise.
48320         * doc/posix-functions/wcstoul.texi: Likewise.
48321         * doc/posix-functions/wcstoumax.texi: Likewise.
48322         * doc/posix-functions/wcswidth.texi: Likewise.
48323         * doc/posix-functions/wcsxfrm.texi: Likewise.
48324         * doc/posix-functions/wctob.texi: Likewise.
48325         * doc/posix-functions/wctomb.texi: Likewise.
48326         * doc/posix-functions/wctrans.texi: Likewise.
48327         * doc/posix-functions/wctype.texi: Likewise.
48328         * doc/posix-functions/wcwidth.texi: Likewise.
48329         * doc/posix-functions/wmemchr.texi: Likewise.
48330         * doc/posix-functions/wmemcmp.texi: Likewise.
48331         * doc/posix-functions/wmemcpy.texi: Likewise.
48332         * doc/posix-functions/wmemmove.texi: Likewise.
48333         * doc/posix-functions/wmemset.texi: Likewise.
48334         * doc/posix-functions/wprintf.texi: Likewise.
48335         * doc/posix-functions/wscanf.texi: Likewise.
48336
48337 2008-12-21  Bruno Haible  <bruno@clisp.org>
48338
48339         Update doc for HP-UX 11.11.
48340         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48341         in HP-UX version 11.00, not in all versions of HP-UX 11.
48342         * doc/posix-functions/fwide.texi: Likewise.
48343         * doc/posix-functions/fwprintf.texi: Likewise.
48344         * doc/posix-functions/fwscanf.texi: Likewise.
48345         * doc/posix-functions/inet_ntop.texi: Likewise.
48346         * doc/posix-functions/inet_pton.texi: Likewise.
48347         * doc/posix-functions/mbrlen.texi: Likewise.
48348         * doc/posix-functions/mbrtowc.texi: Likewise.
48349         * doc/posix-functions/mbsinit.texi: Likewise.
48350         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48351         * doc/posix-functions/swprintf.texi: Likewise.
48352         * doc/posix-functions/swscanf.texi: Likewise.
48353         * doc/posix-functions/towctrans.texi: Likewise.
48354         * doc/posix-functions/vfwprintf.texi: Likewise.
48355         * doc/posix-functions/vswprintf.texi: Likewise.
48356         * doc/posix-functions/vwprintf.texi: Likewise.
48357         * doc/posix-functions/wcrtomb.texi: Likewise.
48358         * doc/posix-functions/wcsrtombs.texi: Likewise.
48359         * doc/posix-functions/wcsstr.texi: Likewise.
48360         * doc/posix-functions/wctob.texi: Likewise.
48361         * doc/posix-functions/wctrans.texi: Likewise.
48362         * doc/posix-functions/wmemchr.texi: Likewise.
48363         * doc/posix-functions/wmemcmp.texi: Likewise.
48364         * doc/posix-functions/wmemcpy.texi: Likewise.
48365         * doc/posix-functions/wmemmove.texi: Likewise.
48366         * doc/posix-functions/wmemset.texi: Likewise.
48367         * doc/posix-functions/wprintf.texi: Likewise.
48368         * doc/posix-functions/wscanf.texi: Likewise.
48369
48370 2008-12-21  Bruno Haible  <bruno@clisp.org>
48371
48372         Work around a portability problem.
48373         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48374         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48375
48376 2008-12-20  Bruno Haible  <bruno@clisp.org>
48377
48378         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48379         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48380         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48382         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48383
48384         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48385         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48386         set.
48387         (GNULIB_defined_mbstate_t): New macro.
48388         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48389         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48390         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48391         reuses the system's mbrtowc function but works around the bugs.
48392         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48393         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48394         macros.
48395         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48396         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48397         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48398         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48399         REPLACE_MBSINIT if mbsinit needs to be overridden.
48400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48401         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48402         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48403         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48404         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48405         m4/locale-zh.m4.
48406         (Depends): Add mbsinit.
48407         * modules/mbsinit (Depends): Add mbrtowc.
48408         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48409
48410 2008-12-20  Bruno Haible  <bruno@clisp.org>
48411
48412         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48413         so that there are no conversion errors on AIX.
48414         * tests/test-mbsrtowcs.c (main): LIkewise.
48415
48416 2008-12-20  Bruno Haible  <bruno@clisp.org>
48417
48418         Work around wctob bug on Solaris <= 9.
48419         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48420         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48422         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48423         * modules/wctob (Files): Add m4/locale-fr.m4.
48424         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48425
48426 2008-12-20  Bruno Haible  <bruno@clisp.org>
48427
48428         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48429         /dev/null.
48430         * tests/test-select-in.sh: Likewise.
48431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48432
48433 2008-12-20  Bruno Haible  <bruno@clisp.org>
48434
48435         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48436         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48437         Cygwin 1.5.x.
48438
48439 2008-12-20  Bruno Haible  <bruno@clisp.org>
48440
48441         Ensure mbstate_t is defined on HP-UX 11.11.
48442         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48443         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48444         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48445         AC_USE_SYSTEM_EXTENSIONS.
48446         * modules/fnmatch (Depends-on): Add extensions.
48447         * modules/mbrlen (Depends-on): Likewise.
48448         * modules/mbrtowc (Depends-on): Likewise.
48449         * modules/mbsinit (Depends-on): Likewise.
48450         * modules/mbsrtowcs (Depends-on): Likewise.
48451         * modules/mbswidth (Depends-on): Likewise.
48452         * modules/quotearg (Depends-on): Likewise.
48453         * modules/strftime (Depends-on): Likewise.
48454
48455 2008-12-20  Bruno Haible  <bruno@clisp.org>
48456
48457         Ensure wctob is declared on IRIX 6.5.
48458         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48459         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48460         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48461         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48462         of HAVE_WCTOB.
48463         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48464         HAVE_WCTOB.
48465         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48466
48467 2008-12-19  Bruno Haible  <bruno@clisp.org>
48468
48469         * modules/mbsrtowcs-tests: New file.
48470         * tests/test-mbsrtowcs1.sh: New file.
48471         * tests/test-mbsrtowcs2.sh: New file.
48472         * tests/test-mbsrtowcs3.sh: New file.
48473         * tests/test-mbsrtowcs4.sh: New file.
48474         * tests/test-mbsrtowcs.c: New file.
48475
48476         New module 'mbsrtowcs'.
48477         * lib/wchar.in.h (mbsrtowcs): New declaration.
48478         * lib/mbsrtowcs.c: New file.
48479         * m4/mbsrtowcs.m4: New file.
48480         * modules/mbsrtowcs: New file.
48481         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48482         HAVE_MBSRTOWCS.
48483         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48484         HAVE_MBSRTOWCS.
48485         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48486
48487 2008-12-19  Bruno Haible  <bruno@clisp.org>
48488
48489         New module 'mbrlen'.
48490         * lib/wchar.in.h (mbrlen): New declaration.
48491         * lib/mbrlen.c: New file.
48492         * m4/mbrlen.m4: New file.
48493         * modules/mbrlen: New file.
48494         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48495         HAVE_MBRLEN.
48496         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48497         HAVE_MBRLEN.
48498         * doc/posix-functions/mbrlen.texi: Document the new module.
48499
48500 2008-12-19  Bruno Haible  <bruno@clisp.org>
48501
48502         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48503         * modules/mbrtowc (Depends-on): Add verify.
48504         Suggested by Paul Eggert.
48505
48506 2008-12-18  Bruno Haible  <bruno@clisp.org>
48507
48508         * modules/mbsinit-tests: New file.
48509         * tests/test-mbsinit.sh: New file.
48510         * tests/test-mbsinit.c: New file.
48511
48512 2008-12-18  Bruno Haible  <bruno@clisp.org>
48513
48514         * modules/mbrtowc-tests: New file.
48515         * tests/test-mbrtowc1.sh: New file.
48516         * tests/test-mbrtowc2.sh: New file.
48517         * tests/test-mbrtowc3.sh: New file.
48518         * tests/test-mbrtowc4.sh: New file.
48519         * tests/test-mbrtowc.c: New file.
48520
48521         New module 'mbrtowc'.
48522         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48523         mbsinit and mbrtowc.
48524         (mbrtowc): New declaration.
48525         * lib/mbrtowc.c: New file.
48526         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48527         * modules/mbrtowc: New file.
48528         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48529         HAVE_MBRTOWC.
48530         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48531         HAVE_MBRTOWC.
48532         * doc/posix-functions/mbrtowc.texi: Document the new module.
48533
48534 2008-12-18  Bruno Haible  <bruno@clisp.org>
48535
48536         New module 'wctob'.
48537         * lib/wchar.in.h (wctob): New declaration.
48538         * lib/wctob.c: New file.
48539         * m4/wctob.m4: New file.
48540         * modules/wctob: New file.
48541         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48542         HAVE_WCTOB.
48543         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48544         * doc/posix-functions/wctob.texi: Document the new module.
48545
48546 2008-12-18  Bruno Haible  <bruno@clisp.org>
48547
48548         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48549         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48550
48551 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48552
48553         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48554         G. Christensen" <tgc@jupiterrise.com>.
48555
48556         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48557         G. Christensen" <tgc@jupiterrise.com>.
48558
48559         * lib/flock.c: Need to include string.h.  Reported by "Tom
48560         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48561         <ebb9@byu.net>.
48562
48563 2008-12-18  Bruno Haible  <bruno@clisp.org>
48564
48565         * m4/locale-ja.m4: New file, from GNU gettext.
48566
48567 2008-12-17  Bruno Haible  <bruno@clisp.org>
48568
48569         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48570         Suggested by Eric Blake.
48571
48572 2008-12-17  Bruno Haible  <bruno@clisp.org>
48573
48574         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48575
48576 2008-12-17  Bruno Haible  <bruno@clisp.org>
48577
48578         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48579         * modules/mbsinit (Depends-on): Add verify.
48580         Suggested by Paul Eggert.
48581
48582 2008-12-17  Bruno Haible  <bruno@clisp.org>
48583
48584         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48585         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48586         gl_FUNC_MBRTOWC.
48587         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48588         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48589         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48590         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48591         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48592         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48593         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48594         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48595         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48596         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48597         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48598         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48599         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48600         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48601         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48602         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48603         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48604         * modules/trim (configure.ac): Likewise.
48605
48606 2008-12-17  Bruno Haible  <bruno@clisp.org>
48607
48608         * modules/btowc-tests: New file.
48609         * tests/test-btowc1.sh: New file.
48610         * tests/test-btowc2.sh: New file.
48611         * tests/test-btowc.c: New file.
48612
48613         New module 'btowc'.
48614         * lib/wchar.in.h (btowc): New declaration.
48615         * lib/btowc.c: New file.
48616         * m4/btowc.m4: New file.
48617         * modules/btowc: New file.
48618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48619         HAVE_BTOWC.
48620         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48621         * doc/posix-functions/btowc.texi: Document the new module.
48622
48623 2008-12-17  Bruno Haible  <bruno@clisp.org>
48624
48625         New module 'mbsinit'.
48626         * lib/wchar.in.h (mbsinit): New declaration.
48627         * lib/mbsinit.c: New file.
48628         * m4/mbsinit.m4: New file.
48629         * modules/mbsinit: New file.
48630         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48631         HAVE_MBSINIT.
48632         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48633         HAVE_MBSINIT.
48634         * doc/posix-functions/mbsinit.texi: Document the new module.
48635
48636 2008-12-16  Bruno Haible  <bruno@clisp.org>
48637
48638         * lib/unistd.in.h: Add comment.
48639         * tests/test-environ.c: Don't include <stdlib.h>.
48640
48641 2008-12-16  Bruno Haible  <bruno@clisp.org>
48642
48643         * lib/parse-duration.h (parse_duration): Document return value
48644         convention.
48645         * lib/parse-duration.c: Include specification header first. Add
48646         comments.
48647         (_): Remove macro.
48648         (parse_year_month_day, parse_hour_minute_second): Move side effects
48649         outside of strchr call.
48650         (parse_non_iso8601): Move side effects outside of isspace call.
48651         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48652         call.
48653
48654 2008-12-16  Bruno Haible  <bruno@clisp.org>
48655
48656         * tests/test-parse-duration.sh: Produce no output when the test
48657         succeeds.
48658
48659 2008-12-16  Bruno Haible  <bruno@clisp.org>
48660
48661         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48662         expressions.
48663
48664 2008-12-15  Bruno Haible  <bruno@clisp.org>
48665
48666         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48667         * doc/glibc-functions/flistxattr.texi: Likewise.
48668         * doc/glibc-functions/fopencookie.texi: Likewise.
48669         * doc/glibc-functions/fremovexattr.texi: Likewise.
48670         * doc/glibc-functions/fsetxattr.texi: Likewise.
48671         * doc/glibc-functions/getxattr.texi: Likewise.
48672         * doc/glibc-functions/lgetxattr.texi: Likewise.
48673         * doc/glibc-functions/listxattr.texi: Likewise.
48674         * doc/glibc-functions/llistxattr.texi: Likewise.
48675         * doc/glibc-functions/lremovexattr.texi: Likewise.
48676         * doc/glibc-functions/lsetxattr.texi: Likewise.
48677         * doc/glibc-functions/removexattr.texi: Likewise.
48678         * doc/glibc-functions/setxattr.texi: Likewise.
48679         * doc/posix-functions/open_memstream.texi: Likewise.
48680
48681 2008-12-15  Eric Blake  <ebb9@byu.net>
48682
48683         Update doc for cygwin 1.7.
48684         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48685         functions.
48686         * doc/posix-functions/fchmodat.texi: Likewise.
48687         * doc/posix-functions/fchownat.texi: Likewise.
48688         * doc/posix-functions/fdopendir.texi: Likewise.
48689         * doc/posix-functions/fmemopen.texi: Likewise.
48690         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48691         * doc/posix-functions/fstatat.texi: Likewise.
48692         * doc/posix-functions/futimens.texi: Likewise.
48693         * doc/posix-functions/gai_strerror.texi: Likewise.
48694         * doc/posix-functions/getaddrinfo.texi: Likewise.
48695         * doc/posix-functions/getnameinfo.texi: Likewise.
48696         * doc/posix-functions/if_freenameindex.texi: Likewise.
48697         * doc/posix-functions/if_indextoname.texi: Likewise.
48698         * doc/posix-functions/if_nameindex.texi: Likewise.
48699         * doc/posix-functions/if_nametoindex.texi: Likewise.
48700         * doc/posix-functions/insque.texi: Likewise.
48701         * doc/posix-functions/linkat.texi: Likewise.
48702         * doc/posix-functions/llrint.texi: Likewise.
48703         * doc/posix-functions/llrintf.texi: Likewise.
48704         * doc/posix-functions/llrintl.texi: Likewise.
48705         * doc/posix-functions/lockf.texi: Likewise.
48706         * doc/posix-functions/lrintl.texi: Likewise.
48707         * doc/posix-functions/mkdirat.texi: Likewise.
48708         * doc/posix-functions/mkfifoat.texi: Likewise.
48709         * doc/posix-functions/mknodat.texi: Likewise.
48710         * doc/posix-functions/mq_close.texi: Likewise.
48711         * doc/posix-functions/mq_getattr.texi: Likewise.
48712         * doc/posix-functions/mq_notify.texi: Likewise.
48713         * doc/posix-functions/mq_open.texi: Likewise.
48714         * doc/posix-functions/mq_receive.texi: Likewise.
48715         * doc/posix-functions/mq_send.texi: Likewise.
48716         * doc/posix-functions/mq_setattr.texi: Likewise.
48717         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48718         * doc/posix-functions/mq_timedsend.texi: Likewise.
48719         * doc/posix-functions/mq_unlink.texi: Likewise.
48720         * doc/posix-functions/open_memstream.texi: Likewise.
48721         * doc/posix-functions/openat.texi: Likewise.
48722         * doc/posix-functions/posix_fadvise.texi: Likewise.
48723         * doc/posix-functions/posix_fallocate.texi: Likewise.
48724         * doc/posix-functions/posix_madvise.texi: Likewise.
48725         * doc/posix-functions/posix_memalign.texi: Likewise.
48726         * doc/posix-functions/posix_openpt.texi: Likewise.
48727         * doc/posix-functions/readlinkat.texi: Likewise.
48728         * doc/posix-functions/remque.texi: Likewise.
48729         * doc/posix-functions/renameat.texi: Likewise.
48730         * doc/posix-functions/rintl.texi: Likewise.
48731         * doc/posix-functions/sem_unlink.texi: Likewise.
48732         * doc/posix-functions/shm_open.texi: Likewise.
48733         * doc/posix-functions/shm_unlink.texi: Likewise.
48734         * doc/posix-functions/signgam.texi: Likewise.
48735         * doc/posix-functions/sigset.texi: Likewise.
48736         * doc/posix-functions/stpcpy.texi: Likewise.
48737         * doc/posix-functions/stpncpy.texi: Likewise.
48738         * doc/posix-functions/strerror.texi: Likewise.
48739         * doc/posix-functions/strtod.texi: Likewise.
48740         * doc/posix-functions/symlinkat.texi: Likewise.
48741         * doc/posix-functions/unlinkat.texi: Likewise.
48742         * doc/posix-functions/utimensat.texi: Likewise.
48743         * doc/glibc-functions/bindresvport.texi: Likewise.
48744         * doc/glibc-functions/dn_expand.texi: Likewise.
48745         * doc/glibc-functions/exp10.texi: Likewise.
48746         * doc/glibc-functions/exp10f.texi: Likewise.
48747         * doc/glibc-functions/fgetxattr.texi: Likewise.
48748         * doc/glibc-functions/flistxattr.texi: Likewise.
48749         * doc/glibc-functions/fopencookie.texi: Likewise.
48750         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48751         * doc/glibc-functions/fremovexattr.texi: Likewise.
48752         * doc/glibc-functions/fsetxattr.texi: Likewise.
48753         * doc/glibc-functions/getifaddrs.texi: Likewise.
48754         * doc/glibc-functions/getxattr.texi: Likewise.
48755         * doc/glibc-functions/lgetxattr.texi: Likewise.
48756         * doc/glibc-functions/listxattr.texi: Likewise.
48757         * doc/glibc-functions/llistxattr.texi: Likewise.
48758         * doc/glibc-functions/lremovexattr.texi: Likewise.
48759         * doc/glibc-functions/lsetxattr.texi: Likewise.
48760         * doc/glibc-functions/pow10.texi: Likewise.
48761         * doc/glibc-functions/pow10f.texi: Likewise.
48762         * doc/glibc-functions/rcmd_af.texi: Likewise.
48763         * doc/glibc-functions/removexattr.texi: Likewise.
48764         * doc/glibc-functions/res_init.texi: Likewise.
48765         * doc/glibc-functions/res_mkquery.texi: Likewise.
48766         * doc/glibc-functions/res_query.texi: Likewise.
48767         * doc/glibc-functions/res_querydomain.texi: Likewise.
48768         * doc/glibc-functions/res_send.texi: Likewise.
48769         * doc/glibc-functions/rresvport_af.texi: Likewise.
48770         * doc/glibc-functions/setxattr.texi: Likewise.
48771         * doc/glibc-functions/strcasestr.texi: Likewise.
48772
48773 2008-12-15  Bruno Haible  <bruno@clisp.org>
48774
48775         Fix compilation error on OSF/1 4.0.
48776         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48777         <sys/time.h>, simply delegate to the system header.
48778         Reported by Daniel Richard G. <oss@teragram.com>.
48779
48780 2008-12-15  Bruno Haible  <bruno@clisp.org>
48781
48782         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48783         * doc/posix-functions/fchmodat.texi: Likewise.
48784         * doc/posix-functions/fchownat.texi: Likewise.
48785         * doc/posix-functions/fdopendir.texi: Likewise.
48786         * doc/posix-functions/fstatat.texi: Likewise.
48787         * doc/posix-functions/mkdirat.texi: Likewise.
48788         * doc/posix-functions/unlinkat.texi: Likewise.
48789
48790 2008-12-14  Bruno Haible  <bruno@clisp.org>
48791
48792         Update doc for POSIX:2008.
48793         * doc/posix-functions/faccessat.texi: New file.
48794         * doc/posix-functions/fchmodat.texi: New file.
48795         * doc/posix-functions/fchownat.texi: New file.
48796         * doc/posix-functions/fdopendir.texi: New file.
48797         * doc/posix-functions/fstatat.texi: New file.
48798         * doc/posix-functions/futimens.texi: New file.
48799         * doc/posix-functions/linkat.texi: New file.
48800         * doc/posix-functions/mkdirat.texi: New file.
48801         * doc/posix-functions/mkfifoat.texi: New file.
48802         * doc/posix-functions/mknodat.texi: New file.
48803         * doc/posix-functions/open_wmemstream.texi: New file.
48804         * doc/posix-functions/openat.texi: New file.
48805         * doc/posix-functions/psiginfo.texi: New file.
48806         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48807         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48808         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48809         * doc/posix-functions/readlinkat.texi: New file.
48810         * doc/posix-functions/renameat.texi: New file.
48811         * doc/posix-functions/strerror_l.texi: New file.
48812         * doc/posix-functions/symlinkat.texi: New file.
48813         * doc/posix-functions/unlinkat.texi: New file.
48814         * doc/posix-functions/utimensat.texi: New file.
48815         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48816
48817 2008-12-14  Bruno Haible  <bruno@clisp.org>
48818
48819         Update doc for POSIX:2008.
48820         * doc/posix-functions/alphasort.texi: Renamed from
48821         doc/glibc-functions/alphasort.texi.
48822         * doc/posix-functions/dirfd.texi: Renamed from
48823         doc/glibc-functions/dirfd.texi.
48824         * doc/posix-functions/dprintf.texi: Renamed from
48825         doc/glibc-functions/dprintf.texi.
48826         * doc/posix-functions/duplocale.texi: Renamed from
48827         doc/glibc-functions/duplocale.texi.
48828         * doc/posix-functions/fexecve.texi: Renamed from
48829         doc/glibc-functions/fexecve.texi.
48830         * doc/posix-functions/fmemopen.texi: Renamed from
48831         doc/glibc-functions/fmemopen.texi.
48832         * doc/posix-functions/freelocale.texi: Renamed from
48833         doc/glibc-functions/freelocale.texi.
48834         * doc/posix-functions/getdate_err.texi: Renamed from
48835         doc/glibc-functions/getdate_err.texi.
48836         * doc/posix-functions/isalnum_l.texi: Renamed from
48837         doc/glibc-functions/isalnum_l.texi.
48838         * doc/posix-functions/isalpha_l.texi: Renamed from
48839         doc/glibc-functions/isalpha_l.texi.
48840         * doc/posix-functions/isblank_l.texi: Renamed from
48841         doc/glibc-functions/isblank_l.texi.
48842         * doc/posix-functions/iscntrl_l.texi: Renamed from
48843         doc/glibc-functions/iscntrl_l.texi.
48844         * doc/posix-functions/isdigit_l.texi: Renamed from
48845         doc/glibc-functions/isdigit_l.texi.
48846         * doc/posix-functions/isgraph_l.texi: Renamed from
48847         doc/glibc-functions/isgraph_l.texi.
48848         * doc/posix-functions/islower_l.texi: Renamed from
48849         doc/glibc-functions/islower_l.texi.
48850         * doc/posix-functions/isprint_l.texi: Renamed from
48851         doc/glibc-functions/isprint_l.texi.
48852         * doc/posix-functions/ispunct_l.texi: Renamed from
48853         doc/glibc-functions/ispunct_l.texi.
48854         * doc/posix-functions/isspace_l.texi: Renamed from
48855         doc/glibc-functions/isspace_l.texi.
48856         * doc/posix-functions/isupper_l.texi: Renamed from
48857         doc/glibc-functions/isupper_l.texi.
48858         * doc/posix-functions/iswalnum_l.texi: Renamed from
48859         doc/glibc-functions/iswalnum_l.texi.
48860         * doc/posix-functions/iswalpha_l.texi: Renamed from
48861         doc/glibc-functions/iswalpha_l.texi.
48862         * doc/posix-functions/iswblank_l.texi: Renamed from
48863         doc/glibc-functions/iswblank_l.texi.
48864         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48865         doc/glibc-functions/iswcntrl_l.texi.
48866         * doc/posix-functions/iswctype_l.texi: Renamed from
48867         doc/glibc-functions/iswctype_l.texi.
48868         * doc/posix-functions/iswdigit_l.texi: Renamed from
48869         doc/glibc-functions/iswdigit_l.texi.
48870         * doc/posix-functions/iswgraph_l.texi: Renamed from
48871         doc/glibc-functions/iswgraph_l.texi.
48872         * doc/posix-functions/iswlower_l.texi: Renamed from
48873         doc/glibc-functions/iswlower_l.texi.
48874         * doc/posix-functions/iswprint_l.texi: Renamed from
48875         doc/glibc-functions/iswprint_l.texi.
48876         * doc/posix-functions/iswpunct_l.texi: Renamed from
48877         doc/glibc-functions/iswpunct_l.texi.
48878         * doc/posix-functions/iswspace_l.texi: Renamed from
48879         doc/glibc-functions/iswspace_l.texi.
48880         * doc/posix-functions/iswupper_l.texi: Renamed from
48881         doc/glibc-functions/iswupper_l.texi.
48882         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48883         doc/glibc-functions/iswxdigit_l.texi.
48884         * doc/posix-functions/isxdigit_l.texi: Renamed from
48885         doc/glibc-functions/isxdigit_l.texi.
48886         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48887         doc/glibc-functions/mbsnrtowcs.texi.
48888         * doc/posix-functions/mkdtemp.texi: Renamed from
48889         doc/glibc-functions/mkdtemp.texi.
48890         * doc/posix-functions/newlocale.texi: Renamed from
48891         doc/glibc-functions/newlocale.texi.
48892         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48893         doc/glibc-functions/nl_langinfo_l.texi.
48894         * doc/posix-functions/open_memstream.texi: Renamed from
48895         doc/glibc-functions/open_memstream.texi.
48896         * doc/posix-functions/opterr.texi: Renamed from
48897         doc/glibc-functions/opterr.texi.
48898         * doc/posix-functions/optind.texi: Renamed from
48899         doc/glibc-functions/optind.texi.
48900         * doc/posix-functions/optopt.texi: Renamed from
48901         doc/glibc-functions/optopt.texi.
48902         * doc/posix-functions/psignal.texi: Renamed from
48903         doc/glibc-functions/psignal.texi.
48904         * doc/posix-functions/scandir.texi: Renamed from
48905         doc/glibc-functions/scandir.texi.
48906         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48907         doc/glibc-functions/sched_get_priority_min.texi.
48908         * doc/posix-functions/signgam.texi: Renamed from
48909         doc/glibc-functions/signgam.texi.
48910         * doc/posix-functions/stpcpy.texi: Renamed from
48911         doc/glibc-functions/stpcpy.texi.
48912         * doc/posix-functions/stpncpy.texi: Renamed from
48913         doc/glibc-functions/stpncpy.texi.
48914         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48915         doc/glibc-functions/strcasecmp_l.texi.
48916         * doc/posix-functions/strcoll_l.texi: Renamed from
48917         doc/glibc-functions/strcoll_l.texi.
48918         * doc/posix-functions/strfmon_l.texi: Renamed from
48919         doc/glibc-functions/strfmon_l.texi.
48920         * doc/posix-functions/strftime_l.texi: Renamed from
48921         doc/glibc-functions/strftime_l.texi.
48922         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48923         doc/glibc-functions/strncasecmp_l.texi.
48924         * doc/posix-functions/strndup.texi: Renamed from
48925         doc/glibc-functions/strndup.texi.
48926         * doc/posix-functions/strnlen.texi: Renamed from
48927         doc/glibc-functions/strnlen.texi.
48928         * doc/posix-functions/strsignal.texi: Renamed from
48929         doc/glibc-functions/strsignal.texi.
48930         * doc/posix-functions/strxfrm_l.texi: Renamed from
48931         doc/glibc-functions/strxfrm_l.texi.
48932         * doc/posix-functions/timer_gettime.texi: Renamed from
48933         doc/glibc-functions/timer_gettime.texi.
48934         * doc/posix-functions/tolower_l.texi: Renamed from
48935         doc/glibc-functions/tolower_l.texi.
48936         * doc/posix-functions/toupper_l.texi: Renamed from
48937         doc/glibc-functions/toupper_l.texi.
48938         * doc/posix-functions/towctrans_l.texi: Renamed from
48939         doc/glibc-functions/towctrans_l.texi.
48940         * doc/posix-functions/towlower_l.texi: Renamed from
48941         doc/glibc-functions/towlower_l.texi.
48942         * doc/posix-functions/towupper_l.texi: Renamed from
48943         doc/glibc-functions/towupper_l.texi.
48944         * doc/posix-functions/uselocale.texi: Renamed from
48945         doc/glibc-functions/uselocale.texi.
48946         * doc/posix-functions/vdprintf.texi: Renamed from
48947         doc/glibc-functions/vdprintf.texi.
48948         * doc/posix-functions/wcpcpy.texi:
48949         Renamed from doc/glibc-functions/wcpcpy.texi.
48950         * doc/posix-functions/wcpncpy.texi: Renamed from
48951         doc/glibc-functions/wcpncpy.texi.
48952         * doc/posix-functions/wcscasecmp.texi: Renamed from
48953         doc/glibc-functions/wcscasecmp.texi.
48954         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48955         doc/glibc-functions/wcscasecmp_l.texi.
48956         * doc/posix-functions/wcscoll_l.texi: Renamed from
48957         doc/glibc-functions/wcscoll_l.texi.
48958         * doc/posix-functions/wcsdup.texi: Renamed from
48959         doc/glibc-functions/wcsdup.texi.
48960         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48961         doc/glibc-functions/wcsncasecmp.texi.
48962         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48963         doc/glibc-functions/wcsncasecmp_l.texi.
48964         * doc/posix-functions/wcsnlen.texi: Renamed from
48965         doc/glibc-functions/wcsnlen.texi.
48966         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48967         doc/glibc-functions/wcsnrtombs.texi.
48968         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48969         doc/glibc-functions/wcsxfrm_l.texi.
48970         * doc/posix-functions/wctrans_l.texi: Renamed from
48971         doc/glibc-functions/wctrans_l.texi.
48972         * doc/posix-functions/wctype_l.texi: Renamed from
48973         doc/glibc-functions/wctype_l.texi.
48974         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48975         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48976         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48977         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48978         these subsections.
48979         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48980         Remove sections.
48981
48982 2008-12-14  Bruno Haible  <bruno@clisp.org>
48983
48984         Update doc for POSIX:2008.
48985         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48986
48987 2008-12-14  Bruno Haible  <bruno@clisp.org>
48988
48989         Update doc for POSIX:2008.
48990         * doc/pastposix-functions/bcmp.texi: Renamed from
48991         doc/posix-functions/bcmp.texi.
48992         * doc/pastposix-functions/bcopy.texi: Renamed from
48993         doc/posix-functions/bcopy.texi.
48994         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48995         doc/posix-functions/bsd_signal.texi.
48996         * doc/pastposix-functions/bzero.texi: Renamed from
48997         doc/posix-functions/bzero.texi.
48998         * doc/pastposix-functions/ecvt.texi: Renamed from
48999         doc/posix-functions/ecvt.texi.
49000         * doc/pastposix-functions/fcvt.texi: Renamed from
49001         doc/posix-functions/fcvt.texi.
49002         * doc/pastposix-functions/ftime.texi: Renamed from
49003         doc/posix-functions/ftime.texi.
49004         * doc/pastposix-functions/gcvt.texi: Renamed from
49005         doc/posix-functions/gcvt.texi.
49006         * doc/pastposix-functions/getcontext.texi: Renamed from
49007         doc/posix-functions/getcontext.texi.
49008         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49009         doc/posix-functions/gethostbyaddr.texi.
49010         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49011         doc/posix-functions/gethostbyname.texi.
49012         * doc/pastposix-functions/getwd.texi: Renamed from
49013         doc/posix-functions/getwd.texi.
49014         * doc/pastposix-functions/h_errno.texi: Renamed from
49015         doc/posix-functions/h_errno.texi.
49016         * doc/pastposix-functions/index.texi: Renamed from
49017         doc/posix-functions/index.texi.
49018         * doc/pastposix-functions/makecontext.texi: Renamed from
49019         doc/posix-functions/makecontext.texi.
49020         * doc/pastposix-functions/mktemp.texi: Renamed from
49021         doc/posix-functions/mktemp.texi.
49022         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49023         doc/posix-functions/pthread_attr_getstackaddr.texi.
49024         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49025         doc/posix-functions/pthread_attr_setstackaddr.texi.
49026         * doc/pastposix-functions/rindex.texi: Renamed from
49027         doc/posix-functions/rindex.texi.
49028         * doc/pastposix-functions/scalb.texi: Renamed from
49029         doc/posix-functions/scalb.texi.
49030         * doc/pastposix-functions/setcontext.texi: Renamed from
49031         doc/posix-functions/setcontext.texi.
49032         * doc/pastposix-functions/swapcontext.texi: Renamed from
49033         doc/posix-functions/swapcontext.texi.
49034         * doc/pastposix-functions/ualarm.texi: Renamed from
49035         doc/posix-functions/ualarm.texi.
49036         * doc/pastposix-functions/usleep.texi: Renamed from
49037         doc/posix-functions/usleep.texi.
49038         * doc/pastposix-functions/vfork.texi: Renamed from
49039         doc/posix-functions/vfork.texi.
49040         * doc/pastposix-functions/wcswcs.texi: Renamed from
49041         doc/posix-functions/wcswcs.texi.
49042         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49043         (Function Substitutes): Update.
49044
49045 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49046
49047         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49048         m4/strerror.m4.
49049
49050 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49051             Bruno Haible  <bruno@clisp.org>
49052
49053         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49054
49055 2008-12-13  Bruno Haible  <bruno@clisp.org>
49056
49057         * modules/strtoull (Depends-on): Remove unistd.
49058
49059 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49060
49061         * modules/strtoull (Depends-on): Add stdlib.
49062
49063 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49064
49065         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49066
49067 2008-12-10  Jim Meyering  <meyering@redhat.com>
49068
49069         gl_ASSERT: don't say assertions are disabled when they're not
49070         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49071         "checking whether to enable assertions... no", when they are in
49072         fact enabled.  This is solely a bug in the output of configure.
49073         In spite of saying "no", NDEBUG was not defined in that case.
49074         Also, as noted by Eric Blake, leave assertions enabled upon
49075         --enable-assert=INVALID.
49076
49077 2008-12-10  Bruno Haible  <bruno@clisp.org>
49078
49079         Change MODULES.html to refer to POSIX:2008 where possible.
49080         * MODULES.html.sh (POSIX2008_URL): New variable.
49081         (posix_headers): Remove sys/timeb, ucontext.
49082         (posix2001_headers): New variable.
49083         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49084         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49085         index, makecontext, mktemp, pthread_attr_getstackaddr,
49086         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49087         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49088         (posix2001_functions): New variable.
49089         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49090         otherwise.
49091
49092 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49093
49094         add missing include to parse-duration.c
49095         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49096         * modules/parse-duration (Depends-on): Add xalloc.
49097
49098         fix sed script reading maint.mk
49099         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49100         (syntax-check-rules): Use it.
49101
49102 2008-12-09  Bruno Haible  <bruno@clisp.org>
49103
49104         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49105         MacOS X 10.4/PowerPC.
49106         Reported by Simon Josefsson.
49107
49108 2008-12-08  Jim Meyering  <meyering@redhat.com>
49109
49110         work around mingw's lack of some S_IF definitions
49111         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49112         Reported by Simon Josefsson.
49113
49114 2008-12-08  Bruno Haible  <bruno@clisp.org>
49115
49116         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49117         applied to variables. Needed on MacOS X 10.4/PowerPC.
49118         Reported by Simon Josefsson.
49119
49120 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49121         and Eric Blake  <ebb9@byu.net>
49122
49123         assert: honor --enable-assert
49124         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49125         order to honor --enable-assert, rather than treating it as a
49126         synonym for --disable-assert.
49127
49128 2008-12-08  Jim Meyering  <meyering@redhat.com>
49129
49130         * lib/posixtm.c: Remove now-useless declaration of mktime.
49131
49132         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49133
49134 2008-12-07  Bruno Haible  <bruno@clisp.org>
49135
49136         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49137         test_once): Mark functions as static.
49138         * tests/test-tls.c (test_tls): Likewise.
49139
49140 2008-12-07  Bruno Haible  <bruno@clisp.org>
49141
49142         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49143         iconv_register_autodetect.
49144
49145 2008-12-07  Jim Meyering  <meyering@redhat.com>
49146
49147         posixtm.c: avoid a warning
49148         * lib/posixtm.c (posixtime): Don't initialize tm0.
49149         It's no longer needed to placate gcc4's -Wuninitialized,
49150         and the attempt to placate would elicit a new warning.
49151
49152         unicodeio.c: mark unused parameters
49153         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49154         (fallback_failure_callback): Likewise.
49155
49156 2008-12-07  Bruno Haible  <bruno@clisp.org>
49157
49158         * gnulib-tool (func_create_testdir): When building the tests
49159         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49160         Reported by Simon Josefsson.
49161
49162 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49163
49164         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49165
49166 2008-12-06  Bruno Haible  <bruno@clisp.org>
49167
49168         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49169         Suggested by Eric Blake.
49170
49171 2008-12-06  Bruno Haible  <bruno@clisp.org>
49172
49173         Fix a c-stack test failure on MacOS X.
49174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49175         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49176         handler for SIGBUS as well.
49177         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49178         install a signal handler for SIGBUS as well.
49179         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49180
49181 2008-12-06  Bruno Haible  <bruno@clisp.org>
49182
49183         Advocacy documentation.
49184         * doc/gnulib-intro.texi (Benefits): New section.
49185         * doc/gnulib.texi: Update.
49186
49187 2008-12-06  Bruno Haible  <bruno@clisp.org>
49188
49189         Document the 'manywarnings' module.
49190         * doc/manywarnings.texi: New file.
49191         * doc/gnulib.texi: Include it.
49192
49193 2008-12-05  Eric Blake  <ebb9@byu.net>
49194
49195         tests: silence some gcc warnings
49196         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49197         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49198         type mismatches.
49199
49200 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49201             Bruno Haible  <bruno@clisp.org>
49202
49203         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49204
49205 2008-11-29  Jim Meyering  <meyering@redhat.com>
49206
49207         unicodeio.c: mark unused parameters
49208         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49209         (fallback_failure_callback): Likewise.
49210
49211         fts: fix a thinko
49212         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49213         (set_stat_type): Return S_IF*-valued "type" directly.
49214         Prompted by James Youngman's spotting a related bug.
49215         Confirmed by further testing through find.
49216
49217         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49218         * lib/fts.c (D_TYPE): Define.
49219         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49220         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49221         (s_ifmt_shift_bits): New function.
49222         (set_stat_type): New function.
49223         (fts_build): When not calling fts_stat, call set_stat_type
49224         to propagate dirent.d_type info to fts_read caller.
49225         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49226         fts_statp->st_mode type information may be valid.
49227
49228 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49229
49230         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49231         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49232         <sds@gnu.org>.
49233
49234 2008-11-20  Bruno Haible  <bruno@clisp.org>
49235
49236         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49237         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49238         INCLUDE_NEXT.
49239         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49240         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49241         * modules/math (Makefile.am): Substitute
49242         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49243         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49244
49245 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49246             Bruno Haible  <bruno@clisp.org>
49247
49248         * lib/stdint.in.h: Define all type macros so that their expansion is
49249         a single typedef'ed token. Fixes a compilation failure in Boost which
49250         does "using ::int8_t;".
49251
49252 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49253
49254         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49255         gl_MANYWARN_ALL_GCC.
49256         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49257         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49258         * modules/manywarnings: New file.
49259         * MODULES.html.sh: Mention manywarnings module.
49260
49261 2008-11-18  Bruno Haible  <bruno@clisp.org>
49262
49263         * doc/gnulib-tool.texi (Unit tests): New section.
49264
49265 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49266
49267         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49268         paths like 'lib/po/foo.po'.
49269
49270 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49271
49272         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49273         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49274
49275 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49276
49277         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49278         parameter works.
49279
49280 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49281
49282         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49283
49284 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49285
49286         * modules/parse-duration-tests: New file.
49287         * tests/test-parse-duration.sh: New file.
49288         * tests/test-parse-duration.c: New file.
49289
49290         New module 'parse-duration'.
49291         * lib/parse-duration.h: New file.
49292         * lib/parse-duration.c: New file.
49293         * modules/parse-duration: New file.
49294
49295 2008-11-17  Bruno Haible  <bruno@clisp.org>
49296
49297         * tests/test-select-out.sh: Comment out the first pipe test.
49298         Reported by Simon Josefsson.
49299
49300 2008-11-17  Bruno Haible  <bruno@clisp.org>
49301
49302         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49303         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49304         gl_HOSTENT.
49305
49306 2008-11-17  Bruno Haible  <bruno@clisp.org>
49307
49308         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49309         -lnetwork and -lnet. Needed for Haiku and BeOS.
49310
49311 2008-11-16  Bruno Haible  <bruno@clisp.org>
49312
49313         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49314
49315 2008-11-16  Bruno Haible  <bruno@clisp.org>
49316
49317         Avoid test failure on Haiku.
49318         * tests/test-fsync.c: Include <errno.h>.
49319         (main): Don't require that fsync (0) fails.
49320
49321 2008-11-15  Bruno Haible  <bruno@clisp.org>
49322
49323         New module 'hostent'.
49324         * modules/hostent: New file.
49325         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49326
49327 2008-11-15  Bruno Haible  <bruno@clisp.org>
49328
49329         New module 'servent'.
49330         * modules/servent: New file.
49331         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49332
49333 2008-11-15  Bruno Haible  <bruno@clisp.org>
49334
49335         Avoid generating same test program with two different rules.
49336         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49337         test-frexp to test-frexp-nolibm.
49338         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49339         test-frexpl to test-frexpl-nolibm.
49340
49341 2008-11-15  Bruno Haible  <bruno@clisp.org>
49342
49343         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49344         $(FREXPL_LIBM).
49345
49346 2008-11-15  Bruno Haible  <bruno@clisp.org>
49347
49348         * lib/netdb.in.h: Activate the definitions also when the system's
49349         <netdb.h> has 'struct addrinfo'.
49350         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49351         EAI_OVERFLOW or AI_NUMERICSERV.
49352         * doc/posix-headers/netdb.texi: Document the problem.
49353
49354 2008-11-15  Bruno Haible  <bruno@clisp.org>
49355
49356         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49357
49358         Make the 'sched' module work on platforms where <sched.h> exists but
49359         is incomplete (such as Haiku).
49360         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49361         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49362         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49363         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49364         HAVE_STRUCT_SCHED_PARAM.
49365         * modules/sched (Depends-on): Add include_next.
49366         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49367         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49368         * doc/posix-headers/sched.texi: Document the issue.
49369
49370 2008-11-13  Jim Meyering  <meyering@redhat.com>
49371
49372         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49373         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49374         test would fail due to the difference in the Report bugs to ...
49375         line.  The expected address is empty, "<>", while the actual
49376         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49377
49378 2008-11-12  Bruno Haible  <bruno@clisp.org>
49379
49380         lstat: don't compile lstat.c on systems lacking lstat
49381         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49382         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49383         Reported by Daniel P. Berrange via Jim Meyering.
49384
49385 2008-11-12  Jim Meyering  <meyering@redhat.com>
49386
49387         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49388
49389 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49390
49391         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49392         instead.
49393
49394 2008-11-12  Bruno Haible  <bruno@clisp.org>
49395
49396         * lib/unicodeio.c: Include unistr.h.
49397         (utf8_wctomb): Remove function.
49398         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49399
49400 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49401
49402         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49403         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49404         <bruno@clisp.org>.
49405         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49406
49407 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49408
49409         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49410         * doc/gnulib.texi: Add section for warnings.
49411
49412 2008-11-11  Bruno Haible  <bruno@clisp.org>
49413
49414         * lib/sockets.h: Add a comment.
49415
49416 2008-11-11  Karl Berry  <karl@gnu.org>
49417
49418         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49419
49420 2008-11-11  Eric Blake  <ebb9@byu.net>
49421
49422         fdl.texi: avoid git symlinks
49423         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49424
49425 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49426
49427         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49428
49429 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49430
49431         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49432         (gl_WARN_ADD): Substitute $2 if literal.
49433
49434 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49435
49436         * m4/warning.m4: Remove.
49437
49438 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49439
49440         * m4/warnings.m4: Almost complete rewrite. :-)
49441
49442 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49443
49444         * modules/warnings: New module.
49445         * m4/warnings.m4: New file.
49446         * MODULES.html.sh: Mention warnings module.
49447         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49448         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49449
49450 2008-11-10  Eric Blake  <ebb9@byu.net>
49451
49452         fdl.texi: make a symlink to the latest version
49453         * doc/standards.texi: Revert today's earlier change.
49454         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49455         * doc/fdl.texi: ...and replace this with a symlink to the newer
49456         fdl-1.3.texi.
49457
49458 2008-11-10  Bruno Haible  <bruno@clisp.org>
49459
49460         * tests/test-select-fd.c (main): Accept the result file name as fourth
49461         argument.
49462         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49463         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49464
49465 2008-11-10  Bruno Haible  <bruno@clisp.org>
49466
49467         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49468         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49469         as autoconf-substituted macros.
49470         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49471         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49472         gl_NETDB_H_DEFAULTS. Set these variables.
49473         * modules/netdb (Makefile.am): Substitute these variables.
49474
49475 2008-11-10  Eric Blake  <ebb9@byu.net>
49476
49477         standards.texi: include correct file for FDL 1.3
49478         * doc/standards.texi (GNU Free Documentation License): Change
49479         include file to pull in FDL 1.3, not 1.2.
49480
49481         fdl.texi: revert accidental change to license
49482         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49483
49484 2008-11-10  Bruno Haible  <bruno@clisp.org>
49485
49486         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49487         cross-compiling guesses also when the native compile gives no result.
49488
49489 2008-11-10  Bruno Haible  <bruno@clisp.org>
49490
49491         * lib/spawni.c (__spawni): Force variable into the stack.
49492
49493 2008-11-10  Bruno Haible  <bruno@clisp.org>
49494
49495         Add support for Haiku.
49496         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49497         glibc and BeOS, but also on Haiku.
49498         * lib/fpurge.c (fpurge): Likewise.
49499         * lib/freadable.c (freadable): Likewise.
49500         * lib/freadahead.c (freadahead): Likewise.
49501         * lib/freading.c (freading): Likewise.
49502         * lib/freadptr.c (freadptr): Likewise.
49503         * lib/freadseek.c (freadptrinc): Likewise.
49504         * lib/fseeko.c (rpl_fseeko): Likewise.
49505         * lib/fseterr.c (fseterr): Likewise.
49506         * lib/fwritable.c (fwritable): Likewise.
49507         * lib/fwriting.c (fwriting): Likewise.
49508         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49509
49510 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49511
49512         * lib/config.charset: Treat Haiku like BeOS.
49513
49514 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49515
49516         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49517         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49518
49519 2008-11-08  Bruno Haible  <bruno@clisp.org>
49520
49521         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49522         AC_CACHE_CHECK.
49523
49524 2008-11-08  Bruno Haible  <bruno@clisp.org>
49525
49526         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49527
49528 2008-11-08  Bruno Haible  <bruno@clisp.org>
49529
49530         * tests/test-select-fd.c: New file.
49531         * tests/test-select-in.sh: New file.
49532         * tests/test-select-out.sh: New file.
49533         * tests/test-select-stdin.c: New file.
49534         * modules/select-tests (Files): Add the new files.
49535         (Depends-on): Add gettimeofday.
49536         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49537         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49538         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49539
49540 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49541             Bruno Haible  <bruno@clisp.org>
49542
49543         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49544
49545 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49546
49547         * build-aux/pmccabe2html: Added support for C++ source files.
49548
49549 2008-11-05  Ben Pfaff  <blp@gnu.org>
49550
49551         Fix lib/close.c build on Windows.
49552         * modules/close (Files): Add lib/w32sock.h.
49553
49554 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49555
49556         Accept Bison's NEWS format.
49557         * build-aux/announce-gen (print_news_deltas): Tweak
49558         $re_prefix.
49559
49560 2008-11-04  Bruno Haible  <bruno@clisp.org>
49561
49562         * modules/random_r (Maintainer): Add glibc.
49563
49564 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49565
49566         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49567         by karl@freefriends.org (Karl Berry).
49568         * doc/alloca.texi: Likewise.
49569         * doc/c-ctype.texi: Likewise.
49570         * doc/c-strcase.texi: Likewise.
49571         * doc/c-strcaseeq.texi: Likewise.
49572         * doc/c-strcasestr.texi: Likewise.
49573         * doc/c-strstr.texi: Likewise.
49574         * doc/c-strtod.texi: Likewise.
49575         * doc/c-strtold.texi: Likewise.
49576         * doc/ctime.texi: Likewise.
49577         * doc/error.texi: Likewise.
49578         * doc/fdl.texi: Likewise.
49579         * doc/gcd.texi: Likewise.
49580         * doc/getdate.texi: Likewise.
49581         * doc/gnulib-intro.texi: Likewise.
49582         * doc/gnulib-tool.texi: Likewise.
49583         * doc/gnulib.texi: Likewise.
49584         * doc/inet_ntoa.texi: Likewise.
49585         * doc/maintain.texi: Likewise.
49586         * doc/make-stds.texi: Likewise.
49587         * doc/quote.texi: Likewise.
49588         * doc/regexprops-generic.texi: Likewise.
49589         * doc/standards.texi: Likewise.
49590         * doc/verify.texi: Likewise.
49591         * doc/visibility.texi: Likewise.
49592         * doc/gnulib.texi (GNU Free Documentation License): Include
49593         fdl-1.3.texi instead of fdl.texi.
49594
49595 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49596
49597         * doc/fdl-1.3.texi: New file, from
49598         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49599         * modules/fdl-1.3: Add.
49600         * MODULES.html.sh: Add fdl-1.3.
49601
49602 2008-11-03  Bruno Haible  <bruno@clisp.org>
49603
49604         Make determination of absolute name of header file work with AIX xlc.
49605         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49606         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49607         preprocessing.
49608         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49609         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49610
49611 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49612
49613         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49614         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49615         <ludo@gnu.org>.
49616
49617 2008-11-02  Bruno Haible  <bruno@clisp.org>
49618
49619         Mark 'strpbrk' obsolete.
49620         * modules/strpbrk (Status, Notice): New sections.
49621         * modules/strtok_r (Depends-on): Add strpbrk.
49622
49623 2008-11-02  Bruno Haible  <bruno@clisp.org>
49624
49625         Mark 'strdup' obsolete.
49626         * modules/strdup (Status, Notice): New sections.
49627         * modules/findprog (Depends-on): Add strdup.
49628         * modules/getaddrinfo (Depends-on): Likewise.
49629         * modules/localename (Depends-on): Likewise.
49630         * modules/relocatable-lib (Depends-on): Likewise.
49631         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49632         * modules/relocatable-prog (Depends-on): Likewise.
49633         * modules/trim (Depends-on): Likewise.
49634         * modules/unictype/gen-ctype (Depends-on): Likewise.
49635         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49636
49637 2008-11-02  Bruno Haible  <bruno@clisp.org>
49638
49639         Mark 'strcspn' obsolete.
49640         * modules/strcspn (Status, Notice): New sections.
49641
49642 2008-11-02  Bruno Haible  <bruno@clisp.org>
49643
49644         Mark 'rmdir' obsolete.
49645         * modules/rmdir (Status, Notice): New sections.
49646         * modules/clean-temp (Depends-on): Add rmdir.
49647         * modules/openat (Depends-on): Likewise.
49648
49649 2008-11-02  Bruno Haible  <bruno@clisp.org>
49650
49651         Mark 'raise' obsolete.
49652         * modules/raise (Status, Notice): New sections.
49653         (Include): Specify <signal.h>.
49654         * modules/stdio (Depends-on): Add raise.
49655         * modules/write (Depends-on): Likewise.
49656
49657 2008-11-02  Bruno Haible  <bruno@clisp.org>
49658
49659         Mark 'memset' obsolete.
49660         * modules/memset (Status, Notice): New sections.
49661
49662 2008-11-02  Bruno Haible  <bruno@clisp.org>
49663
49664         Mark 'memmove' obsolete.
49665         * modules/memmove (Status, Notice): New sections.
49666         * modules/argp (Depends-on): Add memmove.
49667         * modules/argz (Depends-on): Likewise.
49668         * modules/canonicalize (Depends-on): Likewise.
49669         * modules/canonicalize-lgpl (Depends-on): Likewise.
49670         * modules/fts (Depends-on): Likewise.
49671         * modules/getcwd (Depends-on): Likewise.
49672         * modules/human (Depends-on): Likewise.
49673         * modules/regex (Depends-on): Likewise.
49674         * modules/striconveh (Depends-on): Likewise.
49675         * modules/trim (Depends-on): Likewise.
49676         * modules/unistr/u8-move (Depends-on): Likewise.
49677         * modules/unistr/u16-move (Depends-on): Likewise.
49678         * modules/unistr/u32-move (Depends-on): Likewise.
49679
49680 2008-11-02  Bruno Haible  <bruno@clisp.org>
49681
49682         Mark 'memcpy' obsolete.
49683         * modules/memcpy (Status, Notice): New sections.
49684
49685 2008-11-02  Bruno Haible  <bruno@clisp.org>
49686
49687         Mark 'memcmp' obsolete.
49688         * modules/memcmp (Status, Notice): New sections.
49689         * modules/argmatch (Depends-on): Add memchr.
49690         * modules/backupfile (Depends-on): Likewise.
49691         * modules/c-strcasestr (Depends-on): Likewise.
49692         * modules/crypto/des (Depends-on): Likewise.
49693         * modules/csharpcomp (Depends-on): Likewise.
49694         * modules/fnmatch (Depends-on): Likewise.
49695         * modules/git-merge-changelog (Depends-on): Likewise.
49696         * modules/isnand (Depends-on): Likewise.
49697         * modules/isnand-nolibm (Depends-on): Likewise.
49698         * modules/isnanf (Depends-on): Likewise.
49699         * modules/isnanf-nolibm (Depends-on): Likewise.
49700         * modules/isnanl (Depends-on): Likewise.
49701         * modules/isnanl-nolibm (Depends-on): Likewise.
49702         * modules/mbchar (Depends-on): Likewise.
49703         * modules/memcoll (Depends-on): Likewise.
49704         * modules/quotearg (Depends-on): Likewise.
49705         * modules/regex (Depends-on): Likewise.
49706         * modules/relocatable-prog (Depends-on): Likewise.
49707         * modules/same (Depends-on): Likewise.
49708         * modules/signbit (Depends-on): Likewise.
49709         * modules/strcasestr-simple (Depends-on): Likewise.
49710         * modules/unictype/gen-ctype (Depends-on): Likewise.
49711         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49712         * modules/uniname/uniname (Depends-on): Likewise.
49713         * modules/unistr/u8-cmp (Depends-on): Likewise.
49714
49715 2008-11-02  Bruno Haible  <bruno@clisp.org>
49716
49717         Mark 'memchr' obsolete.
49718         * modules/memchr (Status, Notice): New sections.
49719         * modules/argp (Depends-on): Add memchr.
49720         * modules/base64 (Depends-on): Likewise.
49721         * modules/c-strcasestr (Depends-on): Likewise.
49722         * modules/chdir-long (Depends-on): Likewise.
49723         * modules/fnmatch (Depends-on): Likewise.
49724         * modules/getsubopt (Depends-on): Likewise.
49725         * modules/git-merge-changelog (Depends-on): Likewise.
49726         * modules/glob (Depends-on): Likewise.
49727         * modules/strcasestr-simple (Depends-on): Likewise.
49728         * modules/strnlen (Depends-on): Likewise.
49729
49730 2008-11-02  Bruno Haible  <bruno@clisp.org>
49731
49732         Mark 'atexit' obsolete.
49733         * modules/atexit (Status, Notice): New sections.
49734         * modules/chdir-long (Depends-on): Add atexit.
49735         * modules/wait-process (Depends-on): Likewise.
49736
49737 2008-11-02  Bruno Haible  <bruno@clisp.org>
49738
49739         * gnulib-tool: New option --with-obsolete.
49740         (func_usage): Document it.
49741         (func_modules_transitive_closure): Drop obsolete dependencies if
49742         incobsolete is not true.
49743         (func_import): Read and save the incobsolete variable to the cache.
49744
49745 2008-11-02  Bruno Haible  <bruno@clisp.org>
49746
49747         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49748         * gnulib-tool: New option --extract-status.
49749         (func_usage): Document it.
49750         (sed_extract_prog): Recognize it.
49751         (func_get_status): New function.
49752
49753 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49754
49755         * modules/sockets (License): Change from LGPL to LGPLv2+.
49756
49757 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49758
49759         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49760
49761 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49762
49763         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49764         Mention times and sys_times.
49765         * modules/sys_times, modules/sys_times-tests: New modules.
49766         * modules/times, modules/times-tests: Likewise
49767         * m4/sys_times_h.m4: New file.
49768         * lib/sys_times.in.h: Likewise
49769         * lib/times.c: Likewise.
49770         * tests/test-sys_times.c: Likewise.
49771         * tests/test-times.c: Likewise.
49772         * doc/posix-headers/sys_times.texi: Update.
49773         * doc/posix-functions/times.texi: Update.
49774
49775 2008-10-28  Jim Meyering  <meyering@redhat.com>
49776
49777         * modules/tempname (Depends-on): Add lstat.
49778
49779         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49780
49781 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49782
49783         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49784         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49785         using idiom used elsewhere in gnulib.
49786
49787 2008-10-27  Jim Meyering  <meyering@redhat.com>
49788
49789         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49790
49791 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49792
49793         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49794         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49795         programs.
49796         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49797
49798 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49799
49800         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49801
49802 2008-10-27  Bruno Haible  <bruno@clisp.org>
49803
49804         * tests/test-lstat.c: Include <stdio.h>.
49805
49806 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49807
49808         * modules/lstat-tests: New module.
49809         * tests/test-lstat.c: New file.
49810
49811 2008-10-26  Jim Meyering  <meyering@redhat.com>
49812
49813         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49814
49815 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49816             Bruno Haible  <bruno@clisp.org>
49817
49818         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49819         * modules/configmake (Include): Add a note that the include must come
49820         after all system headers.
49821         * lib/javaversion.c: Include configmake.h after all other includes.
49822
49823 2008-10-26  Bruno Haible  <bruno@clisp.org>
49824
49825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49826         HAVE_STRUCT_RANDOM_DATA to 1.
49827         (gl_STDLIB_H): Simplify.
49828
49829 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49830
49831         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49832         substitute HAVE_STRUCT_RANDOM_DATA.
49833         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49834         random_data.
49835         * modules/stdlib (Makefile.am): Substitute
49836         HAVE_STRUCT_RANDOM_DATA.
49837
49838 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49839
49840         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49841         * doc/gnulib-intro.texi (Copyright): Likewise.
49842
49843 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49844
49845         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49846         findings.
49847
49848 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49849             Bruno Haible  <bruno@clisp.org>
49850
49851         * lib/unistd.in.h: Include <winsock2.h>.
49852         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49853         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49854         Provide dummy declarations.
49855         (gethostname): Override.
49856         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49857         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49858         gl_PREREQ_SYS_H_WINSOCK2.
49859         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49860         * doc/posix-functions/gethostname.texi: More details.
49861
49862 2008-10-25  Bruno Haible  <bruno@clisp.org>
49863
49864         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49865         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49866         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49867
49868         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49869         here ...
49870         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49871         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49872         gl_UNISTD_H_DEFAULTS.
49873
49874 2008-10-25  Eric Blake  <ebb9@byu.net>
49875
49876         signbit: avoid spurious compiler failure
49877         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49878         declarations inside function.
49879
49880 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49881             Bruno Haible  <bruno@clisp.org>
49882
49883         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49884         * modules/random_r (Depends-on): Add stdint.
49885
49886 2008-10-24  Bruno Haible  <bruno@clisp.org>
49887
49888         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49889         Eggert.
49890         * modules/strerror (License): Likewise.
49891
49892 2008-10-24  Jim Meyering  <meyering@redhat.com>
49893
49894         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49895         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49896
49897 2008-10-24  Eric Blake  <ebb9@byu.net>
49898
49899         getgroups: fix compilation when getgroups is available
49900         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49901         but with <config.h> override of getgroups disabled.
49902
49903 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49904
49905         * doc/gnulib.texi (Header files): Add note about C++ problems.
49906         Explained by Bruno Haible <bruno@clisp.org>.
49907
49908 2008-10-23  Bruno Haible  <bruno@clisp.org>
49909
49910         Define a dummy SA_NODEFER macro on Interix.
49911         * lib/signal.in.h (SA_NODEFER): Define fallback.
49912         Reported by Aleksey Cheusov <cheusov@tut.by> via
49913         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49914
49915 2008-10-23  Bruno Haible  <bruno@clisp.org>
49916
49917         * modules/freadahead (License): Change to LGPLv2+.
49918         Suggested by Simon Josefsson.
49919
49920 2008-10-23  Jim Meyering  <meyering@redhat.com>
49921
49922         random_r: new module
49923         * modules/random_r: New file.
49924         * m4/random_r.m4: New file.
49925         * lib/random_r.c: New file, from glibc.
49926         * modules/random_r-tests: New file.
49927         * tests/test-random_r.c: New file.
49928         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49929          Declare.
49930         (RAND_MAX): Define.
49931         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49932         * modules/stdlib: Substitute them, too.
49933         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49934         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49935         * doc/glibc-functions/random_r.texi: Likewise.
49936         * doc/glibc-functions/setstate_r.texi: Likewise.
49937         * doc/glibc-functions/srandom_r.texi: Likewise.
49938         * config/srclist.txt: Mention it.
49939
49940 2008-10-23  David Lutterkort  <lutter@redhat.com>
49941
49942         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49943         link requirement
49944
49945 2008-10-23  Jim Meyering  <meyering@redhat.com>
49946
49947         selinux-h: mark parameters of stub functions as intentionally unused
49948         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49949         * lib/se-context.in.h: Likewise.
49950
49951 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49952
49953         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49954
49955 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49956
49957         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49958
49959 2008-10-22  Eric Blake  <ebb9@byu.net>
49960
49961         glthread/thread: avoid compiler warning
49962         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49963         Add unreachable abort to silence compiler.
49964
49965 2008-10-22  Eric Blake  <ebb9@byu.net>
49966
49967         netdb: also supply struct addrinfo for cygwin 1.5.x
49968         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49969         older cygwin.
49970         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49971         cygwin.
49972         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49973
49974 2008-10-22  Bruno Haible  <bruno@clisp.org>
49975
49976         * users.txt: Update entry about pspp.
49977
49978 2008-10-21  Bruno Haible  <bruno@clisp.org>
49979
49980         Simplification.
49981         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49982         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49983
49984         Simplification.
49985         * lib/ioctl.c (ioctl): Don't undefine.
49986         * lib/socket.c (socket): Don't undefine.
49987
49988         Remove unused module indicator macros.
49989         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49990         GNULIB_$1 as a C macro.
49991
49992         * doc/posix-functions/close.texi: Undo last change.
49993         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49994         Windows platforms.
49995
49996 2008-10-21  Bruno Haible  <bruno@clisp.org>
49997
49998         Add gethostname() declaration to <unistd.h>.
49999         * lib/unistd.in.h (gethostname): New declaration.
50000         * lib/gethostname.c: Include <unistd.h>.
50001         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50002         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50004         and HAVE_GETHOSTNAME.
50005         * modules/gethostname (Depends-on): Add unistd.
50006         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50007         (Include): Specify <unistd.h>.
50008         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50009         HAVE_GETHOSTNAME.
50010         * tests/test-gethostname.c: Include <unistd.h> first.
50011
50012 2008-10-21  Bruno Haible  <bruno@clisp.org>
50013
50014         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50015         * modules/select-tests (Depends-on): Likewise.
50016         Reported by Simon Josefsson.
50017
50018 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50019
50020         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50021         * lib/accept.c: New file, based on winsock.c.
50022         * lib/bind.c: New file, based on winsock.c.
50023         * lib/connect.c: New file, based on winsock.c.
50024         * lib/getpeername.c: New file, based on winsock.c.
50025         * lib/getsockname.c: New file, based on winsock.c.
50026         * lib/getsockopt.c: New file, based on winsock.c.
50027         * lib/ioctl.c: New file, based on winsock.c.
50028         * lib/listen.c: New file, based on winsock.c.
50029         * lib/recv.c: New file, based on winsock.c.
50030         * lib/recvfrom.c: New file, based on winsock.c.
50031         * lib/send.c: New file, based on winsock.c.
50032         * lib/sendto.c: New file, based on winsock.c.
50033         * lib/setsockopt.c: New file, based on winsock.c.
50034         * lib/shutdown.c: New file, based on winsock.c.
50035         * lib/socket.c: New file, based on winsock.c.
50036         * lib/w32sock.h: New file, based on winsock.c.
50037         * lib/winsock.c: Remove file.
50038         * modules/accept: Likewise.
50039         * modules/bind: Likewise.
50040         * modules/connect: Likewise.
50041         * modules/getpeername: Likewise.
50042         * modules/getsockname: Likewise.
50043         * modules/getsockopt: Likewise.
50044         * modules/ioctl: Likewise.
50045         * modules/listen: Likewise.
50046         * modules/recv: Likewise.
50047         * modules/recvfrom: Likewise.
50048         * modules/send: Likewise.
50049         * modules/sendto: Likewise.
50050         * modules/setsockopt: Likewise.
50051         * modules/shutdown: Likewise.
50052         * modules/socket: Use socket.c instead of winsock.c.
50053         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50054         * doc/posix-functions/accept.texi: Doc fix.
50055         * doc/posix-functions/bind.texi: Doc fix.
50056         * doc/posix-functions/close.texi: Doc fix.
50057         * doc/posix-functions/connect.texi: Doc fix.
50058         * doc/posix-functions/getpeername.texi: Doc fix.
50059         * doc/posix-functions/getsockname.texi: Doc fix.
50060         * doc/posix-functions/getsockopt.texi: Doc fix.
50061         * doc/posix-functions/ioctl.texi: Doc fix.
50062         * doc/posix-functions/listen.texi: Doc fix.
50063         * doc/posix-functions/recv.texi: Doc fix.
50064         * doc/posix-functions/recvfrom.texi: Doc fix.
50065         * doc/posix-functions/send.texi: Doc fix.
50066         * doc/posix-functions/sendto.texi: Doc fix.
50067         * doc/posix-functions/setsockopt.texi: Doc fix.
50068         * doc/posix-functions/shutdown.texi: Doc fix.
50069         * doc/posix-functions/socket.texi: Doc fix.
50070
50071 2008-10-20  Bruno Haible  <bruno@clisp.org>
50072
50073         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50074         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50075         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50076         as an alias for SIGABRT.
50077         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50078         (sigaction): Map it to SIGABRT.
50079         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50080
50081 2008-10-20  Bruno Haible  <bruno@clisp.org>
50082
50083         * lib/fts.c: Don't include lstat.h.
50084         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50085
50086         Move the lstat() declaration to <sys/stat.h>.
50087         * lib/lstat.h: Remove file.
50088         * lib/sys_stat.in.h: Add special invocation convention.
50089         (lstat): New declaration.
50090         * lib/lstat.c (orig_lstat): New function.
50091         (rpl_lstat): Use orig_lstat instead of lstat.
50092         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50093         AC_C_INLINE. Set REPLACE_LSTAT.
50094         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50095         and REPLACE_LSTAT.
50096         * modules/lstat (Files): Remove lib/lstat.h.
50097         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50098         (Include): Specify <sys/stat.h> instead of lstat.h.
50099         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50100         REPLACE_LSTAT.
50101         * NEWS: Mention the change.
50102
50103 2008-10-20  Bruno Haible  <bruno@clisp.org>
50104
50105         * modules/posix_spawn-tests: New file.
50106         * tests/test-posix_spawn3.c: New file.
50107
50108 2008-10-20  Bruno Haible  <bruno@clisp.org>
50109
50110         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50111         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50112         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50113         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50114         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50115
50116 2008-10-20  Bruno Haible  <bruno@clisp.org>
50117
50118         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50119         of posix_spawn on AIX 5.3.
50120
50121 2008-10-20  Bruno Haible  <bruno@clisp.org>
50122
50123         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50124
50125 2008-10-20  Bruno Haible  <bruno@clisp.org>
50126
50127         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50128         of AC_LANG_PROGRAM.
50129
50130 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50131
50132         * lib/netdb.in.h: Don't define GNU specific constants until they
50133         are supported or needed.  Reported by Bruno Haible
50134         <bruno@clisp.org>.
50135
50136 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50137
50138         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50139
50140 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50141
50142         * lib/getaddrinfo.h: Remove file.
50143         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50144         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50145         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50146         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50147         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50148         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50149         * tests/test-getaddrinfo.c: Likewise.
50150         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50151         * NEWS: Mention change.
50152
50153 2008-10-19  Bruno Haible  <bruno@clisp.org>
50154
50155         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50156
50157 2008-10-19  Bruno Haible  <bruno@clisp.org>
50158
50159         * lib/wait-process.c: Include simply <sys/wait.h>.
50160         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50161         WIFSTOPPED): Remove fallback definitions.
50162         * modules/wait-process (Depends-on): Add sys_wait.
50163
50164         New module 'sys_wait'.
50165         * modules/sys_wait: New file.
50166         * lib/sys_wait.in.h: New file, partially copied from
50167         lib/wait-process.c.
50168         * m4/sys_wait_h.m4: New file.
50169         * doc/posix-headers/sys_wait.texi: Mention the new module.
50170
50171 2008-10-19  Bruno Haible  <bruno@clisp.org>
50172
50173         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50174
50175 2008-10-19  Bruno Haible  <bruno@clisp.org>
50176
50177         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50178         * lib/wait-process.c (WAIT_T): Remove type.
50179         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50180         (wait_subprocess): Update.
50181
50182 2008-10-19  Bruno Haible  <bruno@clisp.org>
50183
50184         New module 'atoll'.
50185         * modules/atoll: New file.
50186         * lib/stdlib.in.h (atoll): New declaration.
50187         * lib/atoll.c: New file, from glibc with modifications.
50188         * m4/atoll.m4: New file.
50189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50190         HAVE_ATOLL.
50191         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50192         * doc/posix-functions/atoll.texi: Mention the new module.
50193
50194 2008-10-19  Bruno Haible  <bruno@clisp.org>
50195
50196         Add strtoull() declaration to <stdlib.h>.
50197         * lib/stdlib.in.h (strtoull): New declaration.
50198         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50199         Set HAVE_STRTOULL.
50200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50201         HAVE_STRTOULL.
50202         * modules/strtoull (Depends-on): Add stdlib.
50203         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50204         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50205         HAVE_STRTOULL.
50206
50207 2008-10-19  Bruno Haible  <bruno@clisp.org>
50208
50209         Add strtoll() declaration to <stdlib.h>.
50210         * lib/stdlib.in.h (strtoll): New declaration.
50211         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50212         Set HAVE_STRTOLL.
50213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50214         HAVE_STRTOLL.
50215         * modules/strtoll (Depends-on): Add stdlib.
50216         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50217         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50218
50219 2008-10-19  Bruno Haible  <bruno@clisp.org>
50220
50221         * modules/bcopy (Depends-on): Add strings.
50222         (Include): Specify <strings.h>.
50223
50224 2008-10-19  Bruno Haible  <bruno@clisp.org>
50225
50226         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50227
50228 2008-10-19  Bruno Haible  <bruno@clisp.org>
50229
50230         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50231         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50232         mingw.
50233
50234 2008-10-19  Bruno Haible  <bruno@clisp.org>
50235
50236         * lib/atanl.c: Don't include isnanl.h.
50237         * lib/cosl.c: Likewise.
50238         * lib/ldexpl.c: Likewise.
50239         * lib/logl.c: Likewise.
50240         * lib/sinl.c: Likewise.
50241         * lib/sqrtl.c: Likewise.
50242         * lib/tanl.c: Likewise.
50243
50244         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50245         * lib/isnanf.h: Remove file.
50246         * lib/isnand.h: Remove file.
50247         * lib/isnanl.h: Remove file.
50248         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50249         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50250         macros.
50251         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50252         HAVE_ISNANF, don't define it as a C macro.
50253         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50254         HAVE_ISNAND, don't define it as a C macro.
50255         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50256         HAVE_ISNANL, don't define it as a C macro.
50257         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50258         HAVE_ISNAN[FDL].
50259         * modules/isnanf (Files): Remove lib/isnanf.h.
50260         (Depends-on): Add math.
50261         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50262         (Include): Specify <math.h> instead of isnanf.h.
50263         * modules/isnand (Files): Remove lib/isnand.h.
50264         (Depends-on): Add math.
50265         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50266         (Include): Specify <math.h> instead of isnand.h.
50267         * modules/isnanl (Files): Remove lib/isnanl.h.
50268         (Depends-on): Add math.
50269         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50270         (Include): Specify <math.h> instead of isnanl.h.
50271         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50272         HAVE_ISNAN[FDL].
50273         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50274         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50275         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50276         * NEWS: Mention the change.
50277
50278 2008-10-18  Bruno Haible  <bruno@clisp.org>
50279
50280         Add getusershell(), setusershell(), endusershell() declarations to
50281         <unistd.h>.
50282         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50283         declarations.
50284         * lib/getusershell.c: Include unistd.h.
50285         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50286         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50287         HAVE_GETUSERSHELL.
50288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50289         and HAVE_GETUSERSHELL.
50290         * modules/getusershell (Depends-on): Add unistd, extensions.
50291         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50292         (Include): Specify <unistd.h>.
50293         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50294         HAVE_GETUSERSHELL.
50295
50296 2008-10-18  Bruno Haible  <bruno@clisp.org>
50297
50298         Add a getloadavg() declaration to <stdlib.h>.
50299         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50300         getloadavg declaration.
50301         (getloadavg): New declaration.
50302         * lib/getloadavg.c: Include <stdlib.h> first.
50303         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50304         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50305         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50307         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50308         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50310         (Include): Specify <stdlib.h>.
50311         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50312         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50313
50314 2008-10-18  Bruno Haible  <bruno@clisp.org>
50315
50316         * lib/dirchownmod.c: Don't include lchmod.h.
50317
50318         Move the lchmod() declaration to <sys/stat.h>.
50319         * lib/lchmod.h: Remove file.
50320         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50321         (lchmod): New declaration, moved here from lib/lchown.h.
50322         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50323         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50324         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50325         and HAVE_LCHMOD.
50326         * modules/lchmod (Files): Remove lib/lchmod.h.
50327         (Depends-on): Add sys_stat, extensions.
50328         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50329         (Include): Specify <sys/stat.h> instead of lchmod.h.
50330         * modules/sys_stat (Depends-on): Add link-warning.
50331         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50332         definition of GL_LINK_WARNING.
50333         * NEWS: Mention the change.
50334
50335 2008-10-18  Bruno Haible  <bruno@clisp.org>
50336
50337         * lib/fchdir.c: Don't include dirfd.h.
50338         * lib/fts.c: Likewise.
50339         * lib/getcwd.c: Likewise.
50340         * lib/glob.c: Likewise.
50341
50342         Move the dirfd() declaration to <dirent.h>.
50343         * lib/dirfd.h: Remove file.
50344         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50345         (dirfd): New declaration.
50346         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50347         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50348         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50349         HAVE_DECL_DIRFD.
50350         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50351         HAVE_DECL_DIRFD.
50352         * modules/dirfd (Files): Remove lib/dirfd.h.
50353         (Depends-on): Add dirent, extensions.
50354         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50355         (Include): Specify <dirent.h> instead of dirfd.h.
50356         * modules/dirent (Depends-on): Add link-warning.
50357         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50358         definition of GL_LINK_WARNING.
50359         * NEWS: Mention the change.
50360
50361 2008-10-18  Bruno Haible  <bruno@clisp.org>
50362
50363         Move the euidaccess() declaration to <unistd.h>.
50364         * lib/euidaccess.h: Remove file.
50365         * lib/unistd.in.h (euidaccess): New declaration.
50366         * lib/euidaccess.c: Don't include euidaccess.h.
50367         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50368         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50370         and HAVE_EUIDACCESS.
50371         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50372         (Depends-on): Add unistd.
50373         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50374         (Include): Specify <unistd.h> instead of euidaccess.h.
50375         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50376         HAVE_EUIDACCESS.
50377         * NEWS: Mention the change.
50378
50379 2008-10-18  Bruno Haible  <bruno@clisp.org>
50380
50381         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50382
50383         Move the getdomainname() declaration to <unistd.h>.
50384         * lib/getdomainname.h: Remove file.
50385         * lib/unistd.in.h (getdomainname): New declaration.
50386         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50387         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50388         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50389         HAVE_GETDOMAINNAME.
50390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50391         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50392         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50393         (Depends-on): Add unistd, extensions.
50394         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50395         (Includes): Specify <unistd.h> instead of getdomainname.h.
50396         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50397         HAVE_GETDOMAINNAME.
50398         * NEWS: Mention the change.
50399
50400 2008-10-18  Bruno Haible  <bruno@clisp.org>
50401
50402         * modules/dirent: New file.
50403         * m4/dirent_h.m4: New file.
50404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50405         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50406         * modules/fchdir (Files): Remove lib/dirent.in.h.
50407         (Depends-on): Add dirent.
50408         (Makefile.am): Move rules to modules/dirent.
50409         * doc/posix-headers/dirent.texi: Mention the new module.
50410
50411 2008-10-18  Bruno Haible  <bruno@clisp.org>
50412
50413         Avoid -Wunused-parameter warnings in public gnulib header files.
50414         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50415         macro.
50416         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50417
50418 2008-10-18  Bruno Haible  <bruno@clisp.org>
50419
50420         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50421         * doc/glibc-functions/error.texi: Mention the module 'error'.
50422         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50423         * doc/glibc-functions/getdomainname.texi: Mention the module
50424         'getdomainname'.
50425         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50426         * doc/glibc-functions/getpagesize.texi: Mention the module
50427         'getpagesize'.
50428         * doc/glibc-functions/getusershell.texi: Mention the module
50429         'getusershell'.
50430         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50431         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50432         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50433         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50434         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50435         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50436         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50437         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50438         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50439         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50440         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50441         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50442         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50443         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50444
50445 2008-10-17  Bruno Haible  <bruno@clisp.org>
50446
50447         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50448         HP-UX and IRIX, use -0.0L.
50449         * tests/test-ceill.c (minus_zero): Likewise.
50450         * tests/test-floorl.c (minus_zero): Likewise.
50451         * tests/test-frexpl.c (minus_zero): Likewise.
50452         * tests/test-isnan.c (minus_zerol): Likewise.
50453         * tests/test-isnanl.h (minus_zero): Likewise.
50454         * tests/test-ldexpl.c (minus_zero): Likewise.
50455         * tests/test-roundl.c (minus_zero): Likewise.
50456         * tests/test-signbit.c (minus_zerol): Likewise.
50457         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50458         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50459         * tests/test-truncl.c (minus_zero): Likewise.
50460         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50461         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50462         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50463         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50464
50465 2008-10-17  Bruno Haible  <bruno@clisp.org>
50466
50467         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50468         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50469         that it gets activated only for gcc >= 3.0.
50470         * lib/dirent.in.h: Likewise.
50471         * lib/errno.in.h: Likewise.
50472         * lib/fcntl.in.h: Likewise.
50473         * lib/float.in.h: Likewise.
50474         * lib/iconv.in.h: Likewise.
50475         * lib/inttypes.in.h: Likewise.
50476         * lib/locale.in.h: Likewise.
50477         * lib/math.in.h: Likewise.
50478         * lib/netdb.in.h: Likewise.
50479         * lib/netinet_in.in.h: Likewise.
50480         * lib/search.in.h: Likewise.
50481         * lib/signal.in.h: Likewise.
50482         * lib/spawn.in.h: Likewise.
50483         * lib/stdarg.in.h: Likewise.
50484         * lib/stdint.in.h: Likewise.
50485         * lib/stdio.in.h: Likewise.
50486         * lib/stdlib.in.h: Likewise.
50487         * lib/string.in.h: Likewise.
50488         * lib/strings.in.h: Likewise.
50489         * lib/sys_file.in.h: Likewise.
50490         * lib/sys_ioctl.in.h: Likewise.
50491         * lib/sys_select.in.h: Likewise.
50492         * lib/sys_socket.in.h: Likewise.
50493         * lib/sys_stat.in.h: Likewise.
50494         * lib/sys_time.in.h: Likewise.
50495         * lib/sysexits.in.h: Likewise.
50496         * lib/time.in.h: Likewise.
50497         * lib/unistd.in.h: Likewise.
50498         * lib/wchar.in.h: Likewise.
50499         * lib/wctype.in.h: Likewise.
50500         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50501
50502 2008-10-17  Jim Meyering  <meyering@redhat.com>
50503
50504         ignore-value: don't depend on inline module
50505         * modules/ignore-value (Depends-on): Remove 'inline'.
50506         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50507         Suggestion from Bruno Haible.
50508
50509 2008-10-17  Bruno Haible  <bruno@clisp.org>
50510
50511         New implementation of condition variables for Win32.
50512         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50513         (gl_linked_waitqueue_t): New type.
50514         (gl_cond_t): Use it.
50515         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50516         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50517         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50518         (glthread_cond_init_func, glthread_cond_wait_func,
50519         glthread_cond_timedwait_func, glthread_cond_signal_func,
50520         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50521         Reimplemented on the basis of gl_linked_waitqueue_t.
50522         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50523         gl_waitqueue_t.
50524         (gl_rwlock_t): Update.
50525         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50526
50527 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50528
50529         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50530         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50531
50532 2008-10-17  Jim Meyering  <meyering@redhat.com>
50533
50534         ignore-value: new module
50535         * modules/ignore-value: New file.
50536         * lib/ignore-value.h: New file.
50537         * MODULES.html.sh (Compiler warning management): New section,
50538         just for this module.  More to come.
50539
50540 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50541
50542         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50543         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50544         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50545
50546 2008-10-16  Jim Meyering  <meyering@redhat.com>
50547
50548         openat-die.c: avoid 'no previous prototype' warning
50549         * lib/openat-die.c: Include "openat.h".
50550         Reported by Reuben Thomas <rrt@sc3d.org>.
50551
50552 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50553
50554         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50555         * lib/netdb.in.h: Fix typo.
50556         Reported by Bruno Haible  <bruno@clisp.org>
50557
50558         * lib/netdb.in.h: Include sys/socket.h for platforms without
50559         netdb.h, to get structures like hostent on MinGW.
50560         * modules/netdb (Depends-on): Add sys_socket.
50561
50562 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50563
50564         * modules/netdb, modules/netdb-tests: New file.
50565         * m4/netdb_h.m4: New file.
50566         * lib/netdb.in.h: Add, currently just an empty file pending
50567         definitions.
50568         * tests/test-netdb.c: New file.
50569         * doc/posix-headers/netdb.texi: Mention that we replace it if
50570         needed.
50571         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50572         netdb.
50573
50574 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50575
50576         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50577         with code.
50578
50579 2008-10-13  Bruno Haible  <bruno@clisp.org>
50580
50581         * lib/glthread/cond.c (glthread_cond_wait_func,
50582         glthread_cond_timedwait_func): Add a comment.
50583
50584 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50585
50586         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50587         * tests/test-select.c: Likewise,
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): Fix variable name.
50593         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50594
50595 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50596
50597         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50598         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50599         struct sockaddr.sa_len.
50600         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50601
50602 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50603
50604         * build-aux/pmccabe2html: Add css and css_url parameters.
50605
50606 2008-10-12  Bruno Haible  <bruno@clisp.org>
50607
50608         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50609         calling aclx_get.
50610         Reported by Rainer Tammer <tammer@tammer.net>.
50611
50612 2008-10-12  Bruno Haible  <bruno@clisp.org>
50613
50614         Use msvcrt aware primitives for creation/termination of Win32 threads.
50615         * lib/glthread/thread.c: Include <process.h>.
50616         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50617         (wrapper_func): Update signature.
50618         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50619
50620 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50621             Bruno Haible  <bruno@clisp.org>
50622
50623         Provide a Win32 implementation of the 'cond' module.
50624         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50625         * lib/glthread/cond.c (glthread_cond_init_func,
50626         glthread_cond_wait_func, glthread_cond_timedwait_func,
50627         glthread_cond_signal_func, glthread_cond_broadcast_func,
50628         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50629         * modules/cond (Dependencies): Add gettimeofday.
50630
50631 2008-10-11  Bruno Haible  <bruno@clisp.org>
50632
50633         Make sleep work on older versions of mingw.
50634         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50635         only whether it exists.
50636         * doc/posix-functions/sleep.texi: Mention the problem with older
50637         versions of mingw.
50638
50639 2008-10-11  Bruno Haible  <bruno@clisp.org>
50640
50641         New module 'shutdown'.
50642         * modules/shutdown: New file.
50643         * lib/sys_socket.in.h (shutdown): New declaration.
50644         * lib/winsock.c (shutdown): New function.
50645         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50646         GNULIB_SHUTDOWN.
50647         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50648         * doc/posix-functions/shutdown.texi: Document the new module.
50649
50650 2008-10-11  Jim Meyering  <meyering@redhat.com>
50651
50652         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50653
50654 2008-10-11  Bruno Haible  <bruno@clisp.org>
50655
50656         New module 'fclose'.
50657         * modules/fclose: New file.
50658         * lib/stdio.in.h (fclose): New declaration.
50659         * lib/fclose.c: New file.
50660         * m4/fclose.m4: New file.
50661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50662         REPLACE_FCLOSE.
50663         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50664         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50665         REPLACE_FCLOSE.
50666         * modules/close (Depends-on): fclose.
50667         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50668
50669 2008-10-11  Bruno Haible  <bruno@clisp.org>
50670
50671         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50672         set errno and don't call _close.
50673
50674 2008-10-10  Bruno Haible  <bruno@clisp.org>
50675
50676         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50677         ACL, not afterwards. Fixes test failure on Cygwin.
50678
50679 2008-10-09  Ben Pfaff  <blp@gnu.org>
50680
50681         * build-aux/announce-gen: Fix gnulib version related part of usage
50682         message.  Die with a useful error message if no tarballs are
50683         found.
50684
50685 2008-10-10  Jim Meyering  <meyering@redhat.com>
50686
50687         bootstrap: use git's --depth=N option only if it's supported
50688         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50689         recognize the --depth option.  Reported by Pádraig Brady.
50690
50691 2008-10-09  Bruno Haible  <bruno@clisp.org>
50692
50693         New module 'ioctl'.
50694         * modules/ioctl: New file.
50695         * lib/sys_socket.in.h (ioctl): Remove declaration.
50696         * lib/winsock.c: Include <sys/ioctl.h>.
50697         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50698         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50699         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50700         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50701         * doc/posix-functions/ioctl.texi: Mention the new module.
50702
50703 2008-10-09  Bruno Haible  <bruno@clisp.org>
50704
50705         New module 'sys_ioctl'.
50706         * lib/sys_ioctl.in.h: New file.
50707         * m4/sys_ioctl_h.m4: New file.
50708         * modules/sys_ioctl: New file.
50709         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50710
50711 2008-10-09  Bruno Haible  <bruno@clisp.org>
50712
50713         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50714         * lib/winsock.c: Include <stdarg.h>.
50715         (rpl_ioctl): Change to second argument 'int' and then varargs.
50716
50717 2008-10-09  Bruno Haible  <bruno@clisp.org>
50718
50719         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50720         when the sys_socket module is present and the system has <winsock2.h>.
50721
50722 2008-10-09  Bruno Haible  <bruno@clisp.org>
50723
50724         * doc/posix-functions/close.texi: Mention module 'close' instead of
50725         module 'sys_socket'.
50726
50727 2008-10-09  Bruno Haible  <bruno@clisp.org>
50728
50729         * doc/glibc-headers/sys_ioctl.texi: New file.
50730         * doc/gnulib.texi: Include it.
50731
50732 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50733             Bruno Haible  <bruno@clisp.org>
50734
50735         Combine the two replacements of 'close'.
50736         * lib/sys_socket.in.h (close): Define to a reminder to include
50737         <unistd.h>.
50738         (_gl_close_fd_maybe_socket): New declaration.
50739         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50740         * lib/winsock.c (close): Remove undefinition.
50741         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50742         needed for the gnulib module 'close'.
50743         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50744         define to an error symbol or to a warning, if suitable.
50745         * lib/close.c: Include <sys/socket.h>.
50746         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50747         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50748         UNISTD_H_HAVE_WINSOCK2_H.
50749         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50751         UNISTD_H_HAVE_WINSOCK2_H.
50752         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50753         (configure.ac): Set a module indicator.
50754         (Makefile.am): Substitute GNULIB_CLOSE.
50755         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50756         * modules/poll-tests (Depends-on): Add close.
50757         * modules/select-tests (Depends-on): Likewise.
50758
50759 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50760             Bruno Haible  <bruno@clisp.org>
50761
50762         New module 'close'.
50763         * modules/close: New file.
50764         * lib/unistd.in.h (close): Move declaration out of the
50765         FCHDIR_REPLACEMENT scope.
50766         (_gl_unregister_fd): New declaration.
50767         * lib/close.c: New file.
50768         * lib/fchdir.c (rpl_close): Remove function.
50769         * m4/close.m4: New file.
50770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50771         close.
50772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50773         REPLACE_CLOSE.
50774         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50775         REPLACE_CLOSE.
50776         * modules/fchdir (Depends-on): Add close.
50777
50778 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50779             Bruno Haible  <bruno@clisp.org>
50780
50781         * lib/fcntl.in.h (open): Simplify conditionals.
50782         (_gl_register_fd): New declaration.
50783         * lib/fchdir.c (rpl_open): Remove function.
50784         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50785         also.
50786         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50787         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50788         open.
50789
50790 2008-10-09  Jim Meyering  <meyering@redhat.com>
50791
50792         GNUmakefile: use the more name-space-friendly "_version"
50793         * top/GNUmakefile (_dummy): Update.
50794         (_version): Rename from "version".
50795
50796 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50797             Bruno Haible  <bruno@clisp.org>
50798
50799         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50800         rpl_close.
50801         (_gl_register_fd): New function, extracted from rpl_open.
50802         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50803         (rpl_open, rpl_opendir): Use _gl_register_fd.
50804
50805 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50806
50807         Fix organization of 'open' replacement.
50808         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50809         (gl_FUNC_OPEN): Use it.
50810         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50811
50812 2008-10-08  Bruno Haible  <bruno@clisp.org>
50813
50814         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50815
50816 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50817
50818         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50819         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50820         listen).
50821
50822 2008-10-08  Eric Blake  <ebb9@byu.net>
50823
50824         GNUmakefile: add 'make version' target
50825         * top/GNUmakefile (_curr-ver): Split version update rules...
50826         (version): ...into a target.
50827
50828 2008-10-07  Bruno Haible  <bruno@clisp.org>
50829
50830         Use a more portable replacement expression for -0.0L.
50831         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50832         instead of -0.0L. Fix m4 quotation.
50833
50834         * tests/test-signbit.c: Include <float.h>.
50835         (minus_zero): New variable.
50836         (test_signbitl): Use minus_zero instead of -zero.
50837         * modules/signbit-tests (Depends-on): Add float.
50838
50839         * tests/test-ceill.c: Include <float.h>.
50840         (zero): Remove variable.
50841         (minus_zero): New variable.
50842         (main): Use minus_zero instead of -zero.
50843         * modules/ceill-tests (Depends-on): Add float.
50844
50845         * tests/test-floorl.c: Include <float.h>.
50846         (zero): Remove variable.
50847         (minus_zero): New variable.
50848         (main): Use minus_zero instead of -zero.
50849         * modules/floorl-tests (Depends-on): Add float.
50850
50851         * tests/test-roundl.c: Include <float.h>.
50852         (zero): Remove variable.
50853         (minus_zero): New variable.
50854         (main): Use minus_zero instead of -zero.
50855         * modules/roundl-tests (Depends-on): Add float.
50856
50857         * tests/test-truncl.c: Include <float.h>.
50858         (zero): Remove variable.
50859         (minus_zero): New variable.
50860         (main): Use minus_zero instead of -zero.
50861         * modules/truncl-tests (Depends-on): Add float.
50862
50863         * tests/test-frexpl.c (zero): Remove variable.
50864         (minus_zero): New variable.
50865         (main): Use minus_zero instead of -zero.
50866         * modules/frexpl-tests (Depends-on): Add float.
50867
50868         * tests/test-isnan.c (zerol): Remove variable.
50869         (minus_zerol): New variable.
50870         (test_long_double): Use minus_zerol instead of -zerol.
50871         * modules/isnan-tests (Depends-on): Add float.
50872
50873         * tests/test-isnanl.h (zero): Remove variable.
50874         (minus_zero): New variable.
50875         (main): Use minus_zero instead of -zero.
50876         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50877         * modules/isnanl-tests (Depends-on): Add float.
50878
50879         * tests/test-ldexpl.c (zero): Remove variable.
50880         (minus_zero): New variable.
50881         (main): Use minus_zero instead of -zero.
50882         * modules/ldexpl-tests (Depends-on): Add float.
50883
50884         * tests/test-snprintf-posix.h (zerol): Remove variable.
50885         (minus_zerol): New variable.
50886         (test_function): Use minus_zerol instead of -zerol.
50887         * modules/snprintf-posix-tests (Depends-on): Add float.
50888         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50889
50890         * tests/test-sprintf-posix.h (zerol): Remove variable.
50891         (minus_zerol): New variable.
50892         (test_function): Use minus_zerol instead of -zerol.
50893         * modules/sprintf-posix-tests (Depends-on): Add float.
50894         * modules/vsprintf-posix-tests (Depends-on): Add float.
50895
50896         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50897         (minus_zerol): New variable.
50898         (test_function): Use minus_zerol instead of -zerol.
50899         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50900
50901         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50902         (minus_zerol): New variable.
50903         (test_function): Use minus_zerol instead of -zerol.
50904         * modules/vasprintf-posix-tests (Depends-on): Add float.
50905
50906 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50907
50908         * MODULES.html.sh (Support for building documentation): Mention
50909         pmccabe2html.  Sort entries.
50910
50911         Add pmccabe2html module, from gnupdf.
50912         * build-aux/pmccabe.css: New file.
50913         * build-aux/pmccabe2html: New file.
50914         * m4/pmccabe2html.m4: New file.
50915         * modules/pmccabe2html: New file.
50916
50917 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50918
50919         flock: new module
50920         * MODULES.html.sh: Add to list of modules.
50921         * lib/flock.c: flock implementation for Windows and Unix systems
50922         which have fcntl.
50923         * doc/glibc-functions/flock.texi: Update documentation.
50924         * lib/sys_file.in.h: <sys/file.h> header file.
50925         * m4/flock.m4: M4 macros.
50926         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50927         * modules/flock: flock module.
50928         * modules/flock-tests: flock tests module.
50929         * modules/sys_file: sys/file.h module.
50930         * tests/test-flock.c: test suite for flock.
50931
50932 2008-10-06  Jim Meyering  <meyering@redhat.com>
50933
50934         bootstrap: check for LT_INIT more portably still ;-)
50935         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50936         Spotted by Bruno Haible.
50937
50938 2008-10-06  Eric Blake  <ebb9@byu.net>
50939
50940         test-signbit: avoid tripping Irix cc bug on -0.0L
50941         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50942         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50943         entire testsuite consistent and avoids an Irix 6.2 bug.
50944
50945 2008-10-05  Bruno Haible  <bruno@clisp.org>
50946             Jim Meyering  <jim@meyering.net>
50947
50948         Add an option for ignoring EPIPE during close_stdout.
50949         * lib/closeout.h: Include <stdbool.h>.
50950         (close_stdout_set_ignore_EPIPE): New declaration.
50951         * lib/closeout.c: Include <stdbool.h>.
50952         (ignore_EPIPE): New variable.
50953         (close_stdout_set_ignore_EPIPE): New function.
50954         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50955         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50956         failure.
50957         * modules/closeout (Depends-on): Add stdbool.
50958
50959 2008-10-05  Bruno Haible  <bruno@clisp.org>
50960
50961         * modules/accept: New file.
50962         * modules/bind: New file.
50963         * modules/connect: New file.
50964         * modules/getpeername: New file.
50965         * modules/getsockname: New file.
50966         * modules/getsockopt: New file.
50967         * modules/listen: New file.
50968         * modules/recv: New file.
50969         * modules/recvfrom: New file.
50970         * modules/send: New file.
50971         * modules/sendto: New file.
50972         * modules/setsockopt: New file.
50973         * modules/socket: New file.
50974         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50975         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50976         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50977         the particular module is requested. Add a link warning when the
50978         particular module is not requested.
50979         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50980         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50981         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50982         the particular module is requested.
50983         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50984         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50985         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50986         * modules/sys_socket (Depends-on): Add link-warning.
50987         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50988         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50989         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50990         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50991         GL_LINK_WARNING.
50992         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50993         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50994         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50995         * doc/posix-functions/getpeername.texi: Mention the new module
50996         'getpeername'.
50997         * doc/posix-functions/getsockname.texi: Mention the new module
50998         'getsockname'.
50999         * doc/posix-functions/getsockopt.texi: Mention the new module
51000         'getsockopt'.
51001         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51002         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51003         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51004         * doc/posix-functions/send.texi: Mention the new module 'send'.
51005         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51006         * doc/posix-functions/setsockopt.texi: Mention the new module
51007         'setsockopt'.
51008         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51009         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51010         listen, connect, accept.
51011         * modules/select-tests (Depends-on): Likewise.
51012
51013 2008-10-05  Bruno Haible  <bruno@clisp.org>
51014
51015         * lib/winsock.c (strerror): Remove unused #undef.
51016         (rpl_close): Remove unused local variable.
51017
51018         * modules/sys_socket (Depends-on); Add errno.
51019
51020 2008-10-05  Bruno Haible  <bruno@clisp.org>
51021
51022         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51023         (select): Add a link warning when the 'select' module is not used.
51024         * modules/sys_select (Depends-on): Add link-warning.
51025         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51026         Suggested by Paolo Bonzini.
51027
51028 2008-10-05  Jim Meyering  <meyering@redhat.com>
51029
51030         bootstrap: check for LT_INIT more portably
51031         * build-aux/bootstrap: Avoid using grep -E, since it's not
51032         portable enough.  Suggestion from Bruno Haible.
51033
51034 2008-10-05  Bruno Haible  <bruno@clisp.org>
51035
51036         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51037         as being fixed by gnulib.
51038
51039 2008-10-05  Bruno Haible  <bruno@clisp.org>
51040
51041         * modules/select-tests: New file, mostly copied from
51042         modules/sys_select-tests.
51043         * tests/test-select.c: New file, mostly copied from
51044         tests/test-sys_select.c.
51045         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51046         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51047         (Makefile.am): Remove test_sys_select_LDADD.
51048
51049         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51050         to an undefined symbol, for an error message.
51051         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51052         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51053         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51054         winsock-select.c here.
51055         * modules/sys_select (Files): Remove lib/winsock-select.c.
51056         (Depends-on): Remove alloca.
51057         (Makefile.am): Substitute GNULIB_SELECT.
51058         * modules/select: New file.
51059         * doc/posix-functions/select.texi: Update.
51060
51061 2008-10-05  Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51064         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51065         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51066         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51067         getdtablesize.
51068         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51069         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51070
51071 2008-10-05  Bruno Haible  <bruno@clisp.org>
51072
51073         * modules/getdtablesize-tests: New file.
51074         * tests/test-getdtablesize.c: New file.
51075
51076         New module 'getdtablesize'.
51077         * lib/unistd.in.h (getdtablesize): New declaration.
51078         * lib/getdtablesize.c: New file.
51079         * m4/getdtablesize.m4: New file.
51080         * modules/getdtablesize: New file.
51081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51082         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51083         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51084         HAVE_GETDTABLESIZE.
51085         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51086
51087 2008-10-05  Bruno Haible  <bruno@clisp.org>
51088
51089         * modules/sched (Makefile.am): Fix typo.
51090         Reported by Simon Josefsson.
51091
51092 2008-10-05  Jim Meyering  <meyering@redhat.com>
51093
51094         bootstrap: check for LT_INIT, too
51095         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51096         are deprecated.  Suggestion from Ralf Wildenhues.
51097
51098 2008-10-05  Bruno Haible  <bruno@clisp.org>
51099
51100         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51101         overriding them by ours.
51102         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51103
51104 2008-10-05  Jim Meyering  <meyering@redhat.com>
51105
51106         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51107         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51108         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51109
51110 2008-10-04  Bruno Haible  <bruno@clisp.org>
51111
51112         * modules/dup2 (License): Change to LGPLv2+.
51113         * modules/sleep (License): Likewise.
51114         * modules/perror (License): Likewise.
51115         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51116         Blake.
51117         * modules/signal (License): Likewise.
51118         * modules/sigprocmask (License): Likewise.
51119         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51120         Meyering.
51121
51122 2008-10-04  Bruno Haible  <bruno@clisp.org>
51123
51124         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51125         Reported by Rainer Tammer <tammer@tammer.net>.
51126
51127 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51128             Bruno Haible  <bruno@clisp.org>
51129
51130         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51131         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51132         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51133
51134 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51135
51136         filevercmp: new module
51137         * lib/filevercmp.h: New function filevercmp comparing version strings.
51138         * lib/filevercmp.c: Implementation of filevercmp function.
51139         * modules/filevercmp: Module metadata.
51140         * tests/test-filevercmp.c: Unit test for new module.
51141         * modules/filevercmp-tests: Unit test metadata.
51142         * MODULES.html.sh: Add filevercmp module.
51143
51144 2008-10-03  Bruno Haible  <bruno@clisp.org>
51145
51146         * lib/c-ctype.h: Add comment.
51147         Reported by Jim Meyering.
51148
51149 2008-10-02  Bruno Haible  <bruno@clisp.org>
51150
51151         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51152
51153 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51154
51155         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51156         name of bootstrap.conf accordingly.
51157
51158 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51159
51160         * build-aux/bootstrap: Install git-merge-changelog configuration
51161         items into .gitconfig if needed.
51162
51163 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51164
51165         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51166         git repository, and initialize/update it accordingly.
51167
51168 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51169
51170         * modules/fsync-tests: New file.
51171         * tests/test-fsync.c: New file.
51172
51173         New module 'fsync'.
51174         * lib/fsync.c: New file.
51175         * m4/fsync.m4: New file.
51176         * modules/fsync: New file.
51177         * lib/unistd.in.h (fsync): New declaration.
51178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51179         GNULIB_FSYNC and HAVE_FSYNC.
51180         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51181         * MODULES.html.sh (posix_functions): Add fsync.
51182         * doc/posix-functions/fsync.texi: Mention the new module.
51183
51184 2008-10-02  Jim Meyering  <meyering@redhat.com>
51185
51186         fts.c: sync with similar code from coreutils' remove.c
51187         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51188         Guard also with "#if defined __linux__", since for now at least,
51189         this code is Linux-kernel-specific.
51190
51191 2008-10-02  Jim Meyering  <meyering@redhat.com>
51192
51193         fts: bug fixes
51194         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51195         Include <sys/vfs.h>, not <sys/statfs.h>.
51196
51197         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51198         Include <sys/vfs.h>, not <sys/statfs.h>.
51199
51200 2008-10-01  Bruno Haible  <bruno@clisp.org>
51201
51202         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51203         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51204         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51205         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51206         * doc/posix-functions/posix_spawnp.texi: Likewise.
51207         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51208         whether posix_spawn actually works.
51209         * m4/pipe.m4 (gl_PIPE): Likewise.
51210         * modules/execute (Files): Add m4/posix_spawn.m4.
51211         * modules/pipe (Files): Add m4/posix_spawn.m4.
51212         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51213
51214 2008-10-01  Jim Meyering  <meyering@redhat.com>
51215
51216         remove trailing spaces
51217         * NEWS: Likewise.
51218         * lib/poll.c (poll): Likewise.
51219         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51220         * lib/winsock.c (rpl_close): Likewise.
51221         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51222         * modules/yield: Likewise.
51223         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51224         * tests/test-sys_select.c (connect_to_socket): Likewise.
51225
51226         fts.c: adjust a new interface to be more generally useful
51227         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51228         (fts_build): Adjust caller.
51229
51230 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51231
51232         * modules/cond-tests: New file.
51233         * tests/test-cond.c: New file.
51234
51235 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51236             Bruno Haible  <bruno@clisp.org>
51237
51238         * modules/cond (Dependencies): Add errno, time.
51239         * lib/glthread/cond.h: Include <time.h>.
51240         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51241         across platforms.
51242
51243 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51244             Bruno Haible  <bruno@clisp.org>
51245
51246         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51247
51248 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51249             Bruno Haible  <bruno@clisp.org>
51250
51251         * modules/tls-tests (Depends-on): Add thread, yield.
51252         (configure.ac): Remove all checks.
51253         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51254         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51255         gl_thread_self): Remove definitions. Include glthread/thread.h and
51256         glthread/yield.h instead.
51257         (test_tls): Pass an additional NULL argument to gl_thread_join.
51258
51259 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51260             Bruno Haible  <bruno@clisp.org>
51261
51262         * modules/lock-tests (Depends-on): Add thread, yield.
51263         (configure.ac): Remove all checks.
51264         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51265         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51266         gl_thread_self): Remove definitions. Include glthread/thread.h and
51267         glthread/yield.h instead.
51268         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51269         additional NULL argument to gl_thread_join.
51270
51271 2008-09-30  Bruno Haible  <bruno@clisp.org>
51272
51273         Fix the Win32 implementation of the 'thread' module.
51274         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51275         pointer type.
51276         (gl_thread_self): Invoke gl_thread_self_func.
51277         (gl_thread_self_func): New declaration.
51278         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51279         (do_init_self_key, init_self_key): New functions.
51280         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51281         Remove some fields.
51282         (running_threads, running_lock): Remove variables.
51283         (get_current_thread_handle): New function.
51284         (gl_thread_self_func, wrapper_func, glthread_create_func,
51285         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51286         simplified.
51287
51288 2008-09-30  Bruno Haible  <bruno@clisp.org>
51289
51290         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51291         files.
51292
51293 2008-09-30  Jim Meyering  <meyering@redhat.com>
51294
51295         fts.m4: correct the test for statfs.f_type
51296         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51297         when checking for statfs.f_type.
51298
51299 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51300
51301         tests: avoid some compiler warnings
51302         * tests/test-memchr.c (main): Pass NULL indirectly.
51303         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51304
51305 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51306
51307         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51308         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51309         exactly specified dayshifts.
51310         (dayshift): New rule.
51311         (rel): Add dayshift.
51312         (relative_time_table) [tomorrow, yesterday, today, now]:
51313         Use tDAY_SHIFT in place of tDAY_UNIT.
51314         * tests/test-getdate.c: Add tests for now-disallowed countable
51315         dayshifts, e.g., "4 yesterday ago".
51316
51317 2008-09-29  Bruno Haible  <bruno@clisp.org>
51318
51319         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51320         * tests/test-posix_spawn1.in.sh: Renamed from
51321         tests/test-posix_spawn.in.sh.
51322         * tests/test-posix_spawn2.c: New file.
51323         * tests/test-posix_spawn2.in.sh: New file.
51324         * modules/posix_spawnp-tests (Files): Update.
51325         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51326
51327 2008-09-29  Bruno Haible  <bruno@clisp.org>
51328
51329         Propagate effects of putenv/setenv/unsetenv to child processes.
51330         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51331         * lib/pipe.c (create_pipe): Likewise.
51332
51333 2008-09-29  Bruno Haible  <bruno@clisp.org>
51334
51335         Enable use of shell scripts as executables in mingw.
51336         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51337         run the program as a shell script.
51338         * lib/pipe.c (create_pipe): Likewise.
51339         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51340         resulting array.
51341
51342 2008-09-29  Eric Blake  <ebb9@byu.net>
51343
51344         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51345
51346 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51347
51348         * doc/posix-functions/accept.texi: Update mingw problems.
51349         * doc/posix-functions/bind.texi: Update mingw problems.
51350         * doc/posix-functions/close.texi: Update mingw problems.
51351         * doc/posix-functions/connect.texi: Update mingw problems.
51352         * doc/posix-functions/getpeername.texi: Update mingw problems.
51353         * doc/posix-functions/getsockname.texi: Update mingw problems.
51354         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51355         * doc/posix-functions/ioctl.texi: Update mingw problems.
51356         * doc/posix-functions/listen.texi: Update mingw problems.
51357         * doc/posix-functions/recv.texi: Update mingw problems.
51358         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51359         * doc/posix-functions/select.texi: Update mingw problems.
51360         * doc/posix-functions/send.texi: Update mingw problems.
51361         * doc/posix-functions/sendto.texi: Update mingw problems.
51362         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51363         * doc/posix-functions/socket.texi: Update mingw problems.
51364
51365 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51366             Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/sys_select.in.h: Include sys/time.h.
51369         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51370         * modules/sys_select: Depend on sys_time.
51371         * tests/test-sys_select.c: Test that sys/select.h defines struct
51372         timeval fully.
51373
51374 2008-09-29  Bruno Haible  <bruno@clisp.org>
51375
51376         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51377         * lib/sys_select.in.h: Likewise.
51378
51379 2008-09-29  Bruno Haible  <bruno@clisp.org>
51380
51381         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51382
51383 2008-09-29  Bruno Haible  <bruno@clisp.org>
51384
51385         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51386         Set LIBSOCKET instead of augmenting LIBS.
51387         * modules/sockets (Link): New section.
51388         * modules/sockets-tests (test_sockets_LDADD): New variable.
51389         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51390         * modules/poll-tests (test_poll_LDADD): New variable.
51391         * NEWS: Document the change.
51392
51393 2008-09-29  Bruno Haible  <bruno@clisp.org>
51394
51395         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51396         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51397         ARPA_INET_H directly.
51398         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51399
51400 2008-09-28  Bruno Haible  <bruno@clisp.org>
51401
51402         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51403         from gl_HEADER_SYS_SOCKET.
51404         (gl_HEADER_SYS_SOCKET): Invoke it.
51405         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51406
51407 2008-09-28  Bruno Haible  <bruno@clisp.org>
51408
51409         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51410         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51411         Needed on OSF/1 4.0.
51412
51413 2008-09-28  Bruno Haible  <bruno@clisp.org>
51414
51415         Override open more carefully.
51416         * lib/open.c (orig_open): New function.
51417         (rpl_open): Use orig_open instead of open.
51418         * lib/fcntl.in.h: Add special invocation convention.
51419         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51420         (gl_FUNC_OPEN): Invoke it.
51421
51422         Override freopen more carefully.
51423         * lib/freopen.c (orig_freopen): New function.
51424         (rpl_freopen): Use orig_freopen instead of freopen.
51425         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51426         (gl_FUNC_FREOPEN): Invoke it.
51427
51428         Override fopen more carefully.
51429         * lib/fopen.c (orig_fopen): New function.
51430         (rpl_fopen): Use orig_fopen instead of fopen.
51431         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51432         (gl_FUNC_FOPEN): Invoke it.
51433         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51434
51435 2008-09-28  Bruno Haible  <bruno@clisp.org>
51436
51437         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51438         SIGPIPE.
51439
51440 2008-09-28  Bruno Haible  <bruno@clisp.org>
51441
51442         * tests/test-sigaction.c (handler, main): Disable the check whether
51443         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51444         glibc systems with LinuxThreads.
51445
51446 2008-09-28  Bruno Haible  <bruno@clisp.org>
51447
51448         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51449
51450         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51451         with AIX xlc.
51452         * lib/fcntl.in.h (open): Likewise.
51453         Reported by Rainer Tammer <tammer@tammer.net>.
51454
51455 2008-09-28  Bruno Haible  <bruno@clisp.org>
51456
51457         * modules/posix_spawnp-tests: New file.
51458         * tests/test-posix_spawn.c: New file.
51459         * tests/test-posix_spawn.in.sh: New file.
51460
51461         New module 'posix_spawnp'.
51462         * modules/posix_spawnp: New file.
51463         * lib/spawnp.c: New file, from GNU libc with modifications.
51464         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51465
51466         New module 'posix_spawn'.
51467         * modules/posix_spawn: New file.
51468         * lib/spawn.c: New file, from GNU libc with modifications.
51469         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51470
51471         New module 'posix_spawnattr_destroy'.
51472         * modules/posix_spawnattr_destroy: New file.
51473         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51474         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51475         module.
51476
51477         New module 'posix_spawnattr_setsigmask'.
51478         * modules/posix_spawnattr_setsigmask: New file.
51479         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51480         modifications.
51481         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51482         new module.
51483
51484         New module 'posix_spawnattr_getsigmask'.
51485         * modules/posix_spawnattr_getsigmask: New file.
51486         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51487         modifications.
51488         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51489         new module.
51490
51491         New module 'posix_spawnattr_setsigdefault'.
51492         * modules/posix_spawnattr_setsigdefault: New file.
51493         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51494         modifications.
51495         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51496         new module.
51497
51498         New module 'posix_spawnattr_getsigdefault'.
51499         * modules/posix_spawnattr_getsigdefault: New file.
51500         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51501         modifications.
51502         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51503         new module.
51504
51505         New module 'posix_spawnattr_setschedpolicy'.
51506         * modules/posix_spawnattr_setschedpolicy: New file.
51507         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51508         modifications.
51509         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51510         new module.
51511
51512         New module 'posix_spawnattr_getschedpolicy'.
51513         * modules/posix_spawnattr_getschedpolicy: New file.
51514         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51515         modifications.
51516         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51517         new module.
51518
51519         New module 'posix_spawnattr_setschedparam'.
51520         * modules/posix_spawnattr_setschedparam: New file.
51521         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51522         modifications.
51523         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51524         new module.
51525
51526         New module 'posix_spawnattr_getschedparam'.
51527         * modules/posix_spawnattr_getschedparam: New file.
51528         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51529         modifications.
51530         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51531         new module.
51532
51533         New module 'posix_spawnattr_setpgroup'.
51534         * modules/posix_spawnattr_setpgroup: New file.
51535         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51536         modifications.
51537         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51538         module.
51539
51540         New module 'posix_spawnattr_getpgroup'.
51541         * modules/posix_spawnattr_getpgroup: New file.
51542         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51543         modifications.
51544         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51545         module.
51546
51547         New module 'posix_spawnattr_setflags'.
51548         * modules/posix_spawnattr_setflags: New file.
51549         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51550         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51551         module.
51552
51553         New module 'posix_spawnattr_getflags'.
51554         * modules/posix_spawnattr_getflags: New file.
51555         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51556         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51557         module.
51558
51559         New module 'posix_spawnattr_init'.
51560         * modules/posix_spawnattr_init: New file.
51561         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51562         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51563         module.
51564
51565         New module 'posix_spawn_file_actions_destroy'.
51566         * modules/posix_spawn_file_actions_destroy: New file.
51567         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51568         modifications.
51569         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51570         the new module.
51571
51572         New module 'posix_spawn_file_actions_addopen'.
51573         * modules/posix_spawn_file_actions_addopen: New file.
51574         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51575         modifications.
51576         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51577         the new module.
51578
51579         New module 'posix_spawn_file_actions_adddup2'.
51580         * modules/posix_spawn_file_actions_adddup2: New file.
51581         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51582         modifications.
51583         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51584         the new module.
51585
51586         New module 'posix_spawn_file_actions_addclose'.
51587         * modules/posix_spawn_file_actions_addclose: New file.
51588         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51589         modifications.
51590         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51591         the new module.
51592
51593         New module 'posix_spawn_file_actions_init'.
51594         * modules/posix_spawn_file_actions_init: New file.
51595         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51596         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51597         new module.
51598
51599         New module 'posix_spawn-internal'.
51600         * modules/posix_spawn-internal: New file.
51601         * lib/spawn_int.h: New file, from GNU libc with modifications.
51602         * lib/spawni.c: New file, from GNU libc with modifications.
51603         * m4/posix_spawn.m4: New file.
51604
51605         New module 'spawn'.
51606         * modules/spawn: New file.
51607         * lib/spawn.in.h: New file, from GNU libc with modifications.
51608         * m4/spawn_h.m4: New file.
51609         * doc/posix-headers/spawn.texi: Mention the new module.
51610
51611 2008-09-28  Bruno Haible  <bruno@clisp.org>
51612
51613         * modules/sched-tests: New file.
51614         * tests/test-sched.c: New file.
51615
51616         New module 'sched'.
51617         * modules/sched: New file.
51618         * lib/sched.in.h: New file.
51619         * m4/sched_h.m4: New file.
51620         * doc/posix-headers/sched.texi: Mention the new module.
51621
51622 2008-09-27  Eric Blake  <ebb9@byu.net>
51623
51624         Fix previous patch, and tweak references to $0.
51625         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51626         (func_version, func_gnulib_dir): Don't call this program
51627         gnulib-tool.
51628         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51629         with using $0 in function.
51630         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51631         (func_fatal_error): Reuse the name the user invoked us with.
51632
51633 2008-09-27  Bruno Haible  <bruno@clisp.org>
51634
51635         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51636         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51637         (gl_ICONV_H): Not here.
51638         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51639         instead of assigning ICONV_H directly.
51640
51641         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51643         WCHAR_H directly.
51644
51645 2008-09-27  Bruno Haible  <bruno@clisp.org>
51646
51647         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51648         * modules/arpa_inet (Depends-on): Add link-warning.
51649         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51650         * modules/unistd (Makefile.am): Likewise.
51651
51652 2008-09-26  Bruno Haible  <bruno@clisp.org>
51653
51654         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51655         variables.
51656         (func_version): Essentially copied from gnulib-tool.
51657         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51658         func_readlink): Copied from gnulib-tool.
51659
51660 2008-09-26  Bruno Haible  <bruno@clisp.org>
51661
51662         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51663         invoking git-version-gen.
51664
51665 2008-09-26  Bruno Haible  <bruno@clisp.org>
51666
51667         * posix-modules: Update to directory names changed on 2008-01-19.
51668         Remove commas in output before splitting into words. No more need to
51669         avoid 'ftruncate' since 2007-02-19.
51670
51671 2008-09-26  Bruno Haible  <bruno@clisp.org>
51672
51673         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51674
51675 2008-09-26  Bruno Haible  <bruno@clisp.org>
51676
51677         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51678         * modules/fwriteerror (Depends-on): Add errno.
51679
51680 2008-09-26  Bruno Haible  <bruno@clisp.org>
51681
51682         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51683         * tests/test-vc-list-files-cvs.sh: Likewise.
51684
51685 2008-09-26  Bruno Haible  <bruno@clisp.org>
51686
51687         * doc/posix-headers/sys_resource.texi: Reorder items.
51688
51689 2008-09-26  Jim Meyering  <meyering@redhat.com>
51690
51691         fts: tweak inode comparison function
51692         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51693         inode numbers, as documented.
51694
51695         fts: sort dirent entries on inode number before traversing
51696         This avoids a quadratic, seek-related performance penalty when
51697         operating on a directory containing many entries (measurable at 10k;
51698         3.5 hours at 2 million entries with a cold cache) on certain types
51699         of file systems, including ext3 and ext4, but not tmpfs.
51700         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51701         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51702         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51703         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51704         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51705         (fts_build): Set the stat.st_ino member from D_INO.
51706         If it is likely to be useful, sort dirent entries on inode number.
51707
51708         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51709         and the struct statfs.f_type member.
51710         * modules/fts (Depends-on): Add d-ino.
51711
51712 2008-09-26  Bruno Haible  <bruno@clisp.org>
51713
51714         * modules/sigpipe-die (Depends-on): Add sigpipe.
51715
51716         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51717         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51718         and GNULIB_STDIO_H_SIGPIPE are set.
51719         * lib/stdio-write.c: New file.
51720         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51721         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51722         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51723         REPLACE_STDIO_WRITE_FUNCS.
51724         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51725         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51726         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51727         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51728         * modules/stdio (Files): Add lib/stdio-write.c.
51729         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51730         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51731         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51732         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51733         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51734         REPLACE_FPRINTF_POSIX.
51735         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51736         REPLACE_PRINTF_POSIX.
51737         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51738         REPLACE_VFPRINTF_POSIX.
51739         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51740         REPLACE_VPRINTF_POSIX.
51741         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51742         SIGPIPE issue.
51743         * doc/posix-functions/fputc.texi: Likewise.
51744         * doc/posix-functions/fputs.texi: Likewise.
51745         * doc/posix-functions/fwrite.texi: Likewise.
51746         * doc/posix-functions/printf.texi: Likewise.
51747         * doc/posix-functions/putc.texi: Likewise.
51748         * doc/posix-functions/putchar.texi: Likewise.
51749         * doc/posix-functions/puts.texi: Likewise.
51750         * doc/posix-functions/vfprintf.texi: Likewise.
51751         * doc/posix-functions/vprintf.texi: Likewise.
51752
51753         * modules/safe-write (Depends-on): Add write.
51754
51755         * modules/sigpipe-tests: New file.
51756         * tests/test-sigpipe.c: New file.
51757         * tests/test-sigpipe.sh: New file.
51758
51759         * modules/write: New file.
51760         * lib/unistd.in.h: Include <sys/types.h>.
51761         (write): New declaration.
51762         * lib/write.c: New file.
51763         * m4/write.m4: New file.
51764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51765         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51766         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51767         GNULIB_WRITE, REPLACE_WRITE.
51768         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51769         and the SIGPIPE issue.
51770
51771         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51772         (raise): New declaration.
51773         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51774         (ext_signal): New function.
51775         (rpl_raise): New function.
51776         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51777         GNULIB_SIGNAL_H_SIGPIPE.
51778         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51779         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51780
51781         * modules/sigpipe: New file.
51782         * m4/sigpipe.m4: New file.
51783
51784 2008-09-25  Derek Price  <derek@ximbiot.com>
51785             Bruno Haible  <bruno@clisp.org>
51786
51787         * gnulib-tool (func_import): Report all license incompatibilities, not
51788         just the first one.
51789
51790 2008-09-25  Bruno Haible  <bruno@clisp.org>
51791
51792         * gnulib-tool (func_import): When computing the edits, consider not
51793         only the Makefile.ams that exist but also those that will be generated.
51794
51795 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51796
51797         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51798         fixes gnulib-tool --test warning about duplicate dependency.
51799
51800 2008-09-25  Bruno Haible  <bruno@clisp.org>
51801
51802         * gnulib-tool: Don't ask the user to perform edits in the generated
51803         Makefile.ams.
51804         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51805         apply to the Makefile.am being generated.
51806         (func_emit_tests_Makefile_am): Execute edits that apply to the
51807         Makefile.am being generated.
51808         (func_import): Setup list of Makefile.am edits before emitting the
51809         Makefile.ams, not at the end.
51810         (func_create_testdir): Update.
51811         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51812
51813 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51814
51815         * gnulib-tool (func_import): Store the --tests-base option in the
51816         comment in gnulib-cache.m4.
51817
51818 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51819
51820         * NEWS: Document increased portability that sys_select now provides.
51821
51822         * lib/sys_select.in.h: Install select wrapper.
51823         * lib/sys_socket.in.h: Use more descriptive name when there is no
51824         select wrapper.
51825         * lib/winsock-select.c: New.
51826         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51827         Require gl_HEADER_SYS_SOCKET.
51828         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51829         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51830         * tests/test-sys_select.c: Add functional tests.
51831
51832 2008-09-24  Eric Blake  <ebb9@byu.net>
51833
51834         open, fopen: close fd leak in last patch
51835         * lib/open.c (rpl_open): Close fd before returning error.
51836         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51837         * doc/posix-functions/open.texi (open): Document that Irix also
51838         has the bug.
51839         * doc/posix-functions/fopen.texi (fopen): Likewise.
51840         Reported by Paolo Bonzini.
51841
51842 2008-09-24  Bruno Haible  <bruno@clisp.org>
51843
51844         Ensure that a filename ending in a slash cannot be used to access a
51845         non-directory.
51846         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51847         to check whether it's really a directory.
51848         * lib/fopen.c: Include fcntl.h, unistd.h.
51849         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51850         and fdopen().
51851         * modules/fopen (Depends-on): Add unistd.
51852         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51853         * tests/test-fopen.c (main): Likewise.
51854         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51855         * doc/posix-functions/fopen.texi: Likewise.
51856         Reported by Eric Blake.
51857
51858 2008-09-23  Eric Blake  <ebb9@byu.net>
51859
51860         c-stack: avoid compiler optimizations when provoking overflow
51861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51862         recursion harder to optimize, to ensure a stack overflow occurs.
51863         * tests/test-c-stack.c (recurse): Likewise.
51864         Borrowed from libsigsegv.
51865
51866         c-stack: work around Irix sigaltstack bug
51867         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51868         whether sigaltstack uses wrong end of stack_t (copied in part from
51869         libsigsegv).
51870         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51871         Irix bug, without requiring an over-allocation.
51872         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51873         bug.
51874
51875         fopen: document mingw bug on directories
51876         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51877         not allowing a stream visiting a directory, even though reading
51878         from such a stream is not portable.
51879
51880 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51881
51882         * lib/poll.c: Rewrite.
51883         * modules/poll: Depend on alloca.
51884
51885 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51886
51887         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51888         instead define prototypes for a full set of wrappers.  Ensure
51889         that Cygwin does not use the compatibility code, which is only
51890         for MinGW.
51891         * lib/winsock.c: New.
51892         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51893         * modules/sys_socket: Add lib/winsock.c.
51894
51895         * modules/poll-tests: Add errno and perror.
51896         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51897
51898 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51899
51900         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51901
51902 2008-09-23  Bruno Haible  <bruno@clisp.org>
51903
51904         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51905         * doc/glibc-functions/*: Likewise.
51906
51907 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51908
51909         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51910         success.
51911
51912 2008-09-22  Eric Blake  <ebb9@byu.net>
51913             Bruno Haible  <bruno@clisp.org>
51914
51915         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51916         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51917         supply %A but mishandle pseudo-NaN.
51918         Reported by Simon Josefsson.
51919
51920 2008-09-21  Bruno Haible  <bruno@clisp.org>
51921
51922         * tests/test-lock.c (main): Tweak skip message.
51923         * tests/test-tls.c (main): Likewise.
51924
51925 2008-09-21  Bruno Haible  <bruno@clisp.org>
51926
51927         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51928         whether 'struct sigaction' has sa_sigaction here...
51929         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51930         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51931
51932 2008-09-21  Bruno Haible  <bruno@clisp.org>
51933
51934         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51935         section.
51936         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51937         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51938         the new section.
51939         (Support for obsolete systems lacking POSIX:2001): New section.
51940         (String handling <string.h>): Move strdup to the new section.
51941         Suggested by Simon Josefsson and Paolo Bonzini.
51942
51943 2008-09-21  Bruno Haible  <bruno@clisp.org>
51944
51945         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51946         exponents in %e and %g results on 'long double'. Needed for mingw's
51947         improved *printf functions.
51948         * tests/test-vasprintf-posix.c (test_function): Likewise.
51949         * tests/test-snprintf-posix.h (test_function): Likewise.
51950         * tests/test-sprintf-posix.h (test_function): Likewise.
51951         Reported by Eric Blake.
51952
51953 2008-09-21  Bruno Haible  <bruno@clisp.org>
51954
51955         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51956         * tests/test-sprintf-posix.h (test_function): Likewise.
51957
51958 2008-09-21  Bruno Haible  <bruno@clisp.org>
51959
51960         * modules/getpass (Depends-on): Add strdup-posix.
51961
51962         New module 'strdup-posix'.
51963         * modules/strdup-posix: New file.
51964         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51965         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51967         REPLACE_STRDUP.
51968         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51969         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51970         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51971         strdup-posix.
51972
51973         * modules/strdup (Depends-on): Remove malloc-posix.
51974
51975 2008-09-20  Bruno Haible  <bruno@clisp.org>
51976
51977         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51978         Wildenhues.
51979
51980 2008-09-20  Bruno Haible  <bruno@clisp.org>
51981
51982         Ensure that wint_t gets defined on IRIX 5.3.
51983         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51984         * lib/wctype.in.h (wint_t): Likewise.
51985         (__wctype_wint_t): Remove type.
51986         (isw*): Use wint_t instead of __wctype_wint_t.
51987         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51988         * modules/wchar (Files): Add m4/wint_t.m4.
51989         (Makefile.am): Substitute HAVE_WINT_T.
51990         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51991         * tests/test-wctype.c: Check that wint_t is defined.
51992         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51993         * doc/posix-headers/wctype.texi: Likewise.
51994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51995
51996 2008-09-18  Bruno Haible  <bruno@clisp.org>
51997
51998         * gnulib-tool (func_exit): Update comment.
51999
52000 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52001
52002         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52003         assumes strdup exists and does not depend on strdup to return
52004         ENOMEM on out of memory conditions.
52005
52006 2008-09-18  Bruno Haible  <bruno@clisp.org>
52007
52008         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52009         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52010         digits for the exponent.
52011
52012 2008-09-18  Jim Meyering  <meyering@redhat.com>
52013             Bruno Haible  <bruno@clisp.org>
52014
52015         * lib/vasnprintf.c (decimal_point_char): Define also if
52016         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52017
52018 2008-09-16  Bruno Haible  <bruno@clisp.org>
52019         and Eric Blake  <ebb9@byu.net>
52020
52021         vasnprintf: support Irix 5.3
52022         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52023         that mishandle long double infinity.
52024         Reported by Tom G. Christensen.
52025
52026 2008-09-16  Bruno Haible  <bruno@clisp.org>
52027
52028         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52029         Solaris 9.
52030         * doc/glibc-functions/alphasort.texi: Likewise.
52031         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52032
52033 2008-09-16  Jim Meyering  <meyering@redhat.com>
52034
52035         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52036         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52037         a umask modification leak out of a subshell.  Otherwise, the
52038         opensolaris /bin/sh would be accepted and thus cause unwarranted
52039         failures in the coreutils test suite.
52040
52041 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52042
52043         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52044         to succeed.
52045
52046 2008-09-16  Jim Meyering  <meyering@redhat.com>
52047
52048         avoid spurious test failure when library is built without ACL support
52049         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52050         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52051         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52052         * tests/test-copy-acl.sh: Likewise.
52053
52054 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52055
52056         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52057         based on character occurrence counts.
52058
52059 2008-09-15  Eric Blake  <ebb9@byu.net>
52060
52061         tests: avoid some compiler warnings
52062         * tests/test-memchr.c (main): Pass NULL indirectly.
52063         * tests/test-closein.c (main): Avoid unused variable.
52064
52065 2008-09-15  Bruno Haible  <bruno@clisp.org>
52066
52067         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52068         are missing on OpenBSD 4.0 individually.
52069         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52070
52071 2008-09-15  Bruno Haible  <bruno@clisp.org>
52072
52073         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52074         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52075         * doc/posix-functions/perror.texi: Likewise.
52076         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52077         is missing.
52078         Reported by Eric Blake.
52079
52080         * lib/errno.in.h: Use replacement values >= 2000.
52081         Reported by Eric Blake.
52082
52083 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52084
52085         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52086         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52087         limit.
52088         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52089         compareseq was aborted.
52090
52091 2008-09-14  Bruno Haible  <bruno@clisp.org>
52092
52093         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52094         yvec_edit_count.
52095         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52096         (fstrcmp_bounded): Simplify result computation accordingly.
52097
52098 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52099
52100         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52101         (fstrcmp): Define in terms of fstrcmp_bounded.
52102         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52103         lower_bound argument.
52104         Return quickly if the result is certainly < lower_bound.
52105         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52106
52107 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52108
52109         * lib/diffseq.h (EARLY_ABORT): New macro.
52110         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52111         evaluates to true.
52112
52113 2008-09-14  Bruno Haible  <bruno@clisp.org>
52114
52115         * modules/perror-tests: New file.
52116         * tests/test-perror.sh: New file.
52117         * tests/test-perror.c: New file.
52118
52119         New module 'perror'.
52120         * lib/stdio.in.h (perror): New declaration.
52121         * lib/perror.c: New file.
52122         * m4/perror.m4: New file.
52123         * modules/perror: New file.
52124         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52125         * doc/posix-functions/perror.texi: Mention the perror module.
52126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52127         REPLACE_PERROR.
52128         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52129         REPLACE_PERROR.
52130
52131 2008-09-14  Bruno Haible  <bruno@clisp.org>
52132
52133         * modules/stdio (Makefile.am): Reorder to match the order in
52134         lib/stdio.in.h.
52135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52136
52137 2008-09-13  Bruno Haible  <bruno@clisp.org>
52138
52139         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52140
52141 2008-09-13  Bruno Haible  <bruno@clisp.org>
52142
52143         Extend strerror to cover the added errno values.
52144         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52145         (rpl_strerror): Provide error messages for the added errno values and
52146         for the WSA* values.
52147         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52148         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52149         strerror.
52150         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52151         * modules/strerror (Depends-on): Add errno.
52152         * doc/posix-functions/strerror.texi: Document the change.
52153         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52154         and EOVERFLOW.
52155
52156 2008-09-13  Bruno Haible  <bruno@clisp.org>
52157
52158         * modules/EOVERFLOW: Remove file.
52159         * m4/eoverflow.m4: Remove file.
52160         * modules/EOVERFLOW-tests: Remove file.
52161         * tests/test-EOVERFLOW.c: Remove file.
52162         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52163         * modules/ftell (Depends-on): Likewise.
52164         * modules/getdelim (Depends-on): Likewise.
52165         * modules/getugroups (Depends-on): Likewise.
52166         * modules/poll (Depends-on): Likewise.
52167         * modules/snprintf (Depends-on): Likewise.
52168         * modules/sprintf-posix (Depends-on): Likewise.
52169         * modules/vasnprintf (Depends-on): Likewise.
52170         * modules/vasprintf (Depends-on): Likewise.
52171         * modules/vfprintf-posix (Depends-on): Likewise.
52172         * modules/vsnprintf (Depends-on): Likewise.
52173         * modules/vsprintf-posix (Depends-on): Likewise.
52174         * modules/xvasprintf (Depends-on): Likewise.
52175         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52176         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52177         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52178         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52179         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52180         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52181         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52182         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52183         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52184         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52185         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52186         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52187         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52188         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52189         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52190         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52191         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52192         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52193         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52194         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52195         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52196         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52197         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52198         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52199         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52200         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52201         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52202         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52203         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52204         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52205         * MODULES.html.sh: Remove EOVERFLOW.
52206         * NEWS: Mention the change.
52207
52208 2008-09-13  Bruno Haible  <bruno@clisp.org>
52209
52210         * modules/errno-tests: New file.
52211         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52212
52213         * lib/errno.in.h: New file.
52214         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52215         * modules/errno: New file.
52216         * doc/posix-headers/errno.texi: Update documentation.
52217         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52218
52219 2008-09-13  Bruno Haible  <bruno@clisp.org>
52220
52221         * tests/test-poll.c: Use #if for native Windows, rather than testing
52222         __MSVCRT__.
52223
52224 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52225             Bruno Haible  <bruno@clisp.org>
52226
52227         * lib/glob.c: Don't include <pwd.h> on native Windows.
52228         (WINDOWS32): New macro.
52229         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52230
52231 2008-09-13  Bruno Haible  <bruno@clisp.org>
52232
52233         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52234         (ETIMEDOUT): Remove macro.
52235         (glthread_cond_timedwait_multithreaded): New declaration.
52236         (glthread_cond_timedwait): Use it.
52237         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52238         (glthread_cond_timedwait_multithreaded): New function.
52239
52240 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52241
52242         * modules/poll-tests: Do not check for io.h.
52243         * tests/test-poll.c: Check for __MSVCRT__ instead.
52244
52245 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52246
52247         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52248         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52249         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52250
52251 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52252
52253         * modules/poll-tests: New.
52254         * tests/test-poll.c: New.
52255
52256 2008-09-12  Eric Blake  <ebb9@byu.net>
52257
52258         frexp: test for NetBSD failure on -0.0
52259         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52260         not all, bugs from NetBSD 3.0 have been fixed.
52261         * doc/posix-functions/frexp.texi (frexp): Document bug.
52262         Reported by Thomas Klausner.
52263
52264         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52265         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52266         literal -0.0.
52267         Reported by Jonathan C. Patschke <jp@centtech.com>.
52268
52269 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52270
52271         * lib/glthread/cond.h: Use dummy implementation also if
52272         USE_WIN32_THREADS.
52273
52274 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52275
52276         * modules/fnmatch-posix (License): Change to LGPLv2+.
52277         * modules/fnmatch-gnu (License): Likewise.
52278
52279 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52280
52281         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52282
52283 2008-09-11  Jim Meyering  <meyering@redhat.com>
52284
52285         * users.txt: Add gtk-vnc.
52286
52287 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52288
52289         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52290         rotate amounts.
52291
52292         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52293         required for 16-bit and 8-bit rotates.
52294         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52295         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52296         UINT8_MAX instead of hard-coded constants.
52297         Suggested by Paul Eggert.
52298
52299 2008-09-07  Bruno Haible  <bruno@clisp.org>
52300
52301         * tests/test-striconveh.c (main): Check behaviour when converting from
52302         UTF-7.
52303
52304         Make striconveh work better with stateful encodings.
52305         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52306         that iconv does not increment the inptr when returning -1/EINVAL.
52307
52308 2008-09-07  Bruno Haible  <bruno@clisp.org>
52309
52310         * build-aux/config.rpath: Update according to libtool-2.2.6.
52311         * build-aux/config.libpath: Likewise.
52312
52313 2008-09-06  Bruno Haible  <bruno@clisp.org>
52314
52315         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52316         * lib/freadptr.c (freadptr): Likewise.
52317         * lib/freadseek.c (freadptrinc): Likewise.
52318         Reported by Simon Josefsson.
52319
52320 2008-09-06  Bruno Haible  <bruno@clisp.org>
52321
52322         * modules/freadptr (License): Change to LGPLv2+.
52323         * modules/freadseek (License): Likewise.
52324         Suggested by Eric Blake.
52325
52326         * modules/memchr2 (License): Change to LGPLv2+.
52327         Approved by Eric Blake.
52328
52329 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52330             Bruno Haible  <bruno@clisp.org>
52331
52332         Make gnulib-tool work with native 'sed' on AIX.
52333         * gnulib-tool (sed_noop): New variable.
52334         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52335         func_add_or_update, func_create_testdir): Use it to initialize sed
52336         script variables.
52337         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52338
52339 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52340             Bruno Haible  <bruno@clisp.org>
52341
52342         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52343         also works after #include directives.
52344
52345 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52346
52347         getdate.y: reject an out-of-range timezone value
52348         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52349         the range [-24...+24].  When specified with only one or two digits,
52350         * tests/test-getdate.c: Tests for the fix.
52351         * doc/getdate.texi: Document this change.
52352
52353 2008-09-03  Bruno Haible  <bruno@clisp.org>
52354
52355         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52356
52357 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52358
52359         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52360         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52361         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52362         Blake <ebb9@byu.net>.
52363
52364         * tests/test-bitrotate.c: Add more test vectors.
52365
52366 2008-09-02  Eric Blake  <ebb9@byu.net>
52367
52368         vasnprintf-posix: handle large precision via %.*d
52369         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52370         when handling it ourselves.
52371         * tests/test-vasnprintf-posix.c (test_function): Add test.
52372         * tests/test-snprintf-posix.h (test_function): Likewise.
52373         * tests/test-sprintf-posix.h (test_function): Likewise.
52374         * tests/test-vasprintf-posix.c (test_function): Likewise.
52375         Reported by Alain Guibert.
52376
52377 2008-09-01  Eric Blake  <ebb9@byu.net>
52378
52379         c-stack: make configure-time check more robust
52380         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52381         successful sigaction call.
52382         Reported by Tom G. Christensen.
52383
52384 2008-09-01  Bruno Haible  <bruno@clisp.org>
52385
52386         New module 'findprog-lgpl'.
52387         * modules/findprog-lgpl: New file.
52388         * lib/findprog-lgpl.c: New file.
52389         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52390         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52391         to decide whether to use strdup or xstrdup, concatenated_filename or
52392         xconcatenated_filename.
52393
52394 2008-09-01  Bruno Haible  <bruno@clisp.org>
52395
52396         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52397         'xconcat-filename' (GPL).
52398         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52399         (License): Change to LGPLv2+.
52400         * modules/xconcat-filename: New file.
52401         * lib/concat-filename.h (concatenated_filename): Change specification.
52402         (xconcatenated_filename): New declaration.
52403         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52404         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52405         memory situations.
52406         * lib/xconcat-filename.c: New file.
52407         * NEWS: Mention the change.
52408         * lib/findprog.c: Include concat-filename.h, not filename.h.
52409         (find_in_path): Use xconcatenated_filename instead of
52410         concatenated_filename.
52411         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52412         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52413         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52414         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52415         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52416         instead of concatenated_filename.
52417         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52418         (execute_java_class): Use xconcatenated_filename instead of
52419         concatenated_filename.
52420         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52421         * modules/javacomp (Depends-on): Likewise.
52422         * modules/javaexec (Depends-on): Likewise.
52423
52424 2008-09-01  Bruno Haible  <bruno@clisp.org>
52425
52426         Split module 'filename' into 'filename' and 'concat-filename'.
52427         * modules/filename: Keep only lib/filename.h.
52428         (License): Change to LGPLv2+.
52429         * modules/concat-filename: New file, extracted from modules/filename.
52430         * lib/filename.h (concatenated_filename): Remove declaration.
52431         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52432         * lib/concat-filename.c: Include concat-filename.h.
52433         * NEWS: Mention the change.
52434
52435 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52436
52437         * lib/bitrotate.h (rotl8, rotr8): Add.
52438
52439         * modules/bitrotate (configure.ac): Need
52440         AC_REQUIRE([AC_C_INLINE]).
52441         (Description): Mention stdint.h.  Reported by Bruno Haible
52442         <bruno@clisp.org>.
52443
52444         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52445         Paolo Bonzini <bonzini@gnu.org>.
52446
52447 2008-08-31  Bruno Haible  <bruno@clisp.org>
52448
52449         Assume Solaris specific bi-arch conventions on Solaris systems.
52450         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52451         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52452         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52453         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52454         like acl_libdirstem.
52455         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52456         acl_libdirstem.
52457         * NEWS: Mention the change.
52458         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52459
52460 2008-08-31  Jim Meyering  <meyering@redhat.com>
52461
52462         * lib/strftime.h: Add comments describing the two added arguments.
52463
52464         remove duplicate #include directives
52465         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52466         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52467
52468 2008-08-31  Bruno Haible  <bruno@clisp.org>
52469
52470         New module 'sigpipe-die'.
52471         * modules/sigpipe-die: New file.
52472         * lib/sigpipe-die.h: New file.
52473         * lib/sigpipe-die.c: New file.
52474         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52475
52476 2008-08-31  Bruno Haible  <bruno@clisp.org>
52477
52478         Don't override previously installed signal handlers.
52479         * lib/fatal-signal.c (saved_sigactions): New variable.
52480         (uninstall_handlers): Reset the signal to the saved handler, not
52481         to SIG_DFL (except when ignored).
52482         (install_handlers): Save the previous handlers.
52483
52484 2008-08-30  Bruno Haible  <bruno@clisp.org>
52485
52486         * gnulib-tool (func_reset_sigpipe): New function.
52487         (func_get_automake_snippet, func_modules_transitive_closure,
52488         func_import): Invoke it before a join command that reads from stdin,
52489         to avoid "echo: write error: Broken pipe" error messages on stderr.
52490         Reported by Sam Steingold <sds@gnu.org>.
52491
52492 2008-08-30  Bruno Haible  <bruno@clisp.org>
52493
52494         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52495         Code copied from m4/open.m4.
52496         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52497         access and the filename ends in a slash. Code copied from lib/open.c.
52498         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52499         * tests/test-fopen.c (main): Check against bug with trailing slash.
52500
52501 2008-08-29  Bruno Haible  <bruno@clisp.org>
52502
52503         Avoid some "gcc -pedantic" warnings.
52504         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52505         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52506         * lib/dirent.in.h: Likewise.
52507         * lib/fcntl.in.h: Likewise.
52508         * lib/float.in.h: Likewise.
52509         * lib/iconv.in.h: Likewise.
52510         * lib/inttypes.in.h: Likewise.
52511         * lib/locale.in.h: Likewise.
52512         * lib/math.in.h: Likewise.
52513         * lib/netinet_in.in.h: Likewise.
52514         * lib/search.in.h: Likewise.
52515         * lib/signal.in.h: Likewise.
52516         * lib/stdarg.in.h: Likewise.
52517         * lib/stdint.in.h: Likewise.
52518         * lib/stdio.in.h: Likewise.
52519         * lib/stdlib.in.h: Likewise.
52520         * lib/string.in.h: Likewise.
52521         * lib/strings.in.h: Likewise.
52522         * lib/sys_select.in.h: Likewise.
52523         * lib/sys_socket.in.h: Likewise.
52524         * lib/sys_stat.in.h: Likewise.
52525         * lib/sys_time.in.h: Likewise.
52526         * lib/sysexits.in.h: Likewise.
52527         * lib/time.in.h: Likewise.
52528         * lib/unistd.in.h: Likewise.
52529         * lib/wchar.in.h: Likewise.
52530         * lib/wctype.in.h: Likewise.
52531         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52532         * modules/fchdir (Makefile.am): Likewise.
52533         * modules/fcntl (Makefile.am): Likewise.
52534         * modules/float (Makefile.am): Likewise.
52535         * modules/iconv_open (Makefile.am): Likewise.
52536         * modules/inttypes (Makefile.am): Likewise.
52537         * modules/locale (Makefile.am): Likewise.
52538         * modules/math (Makefile.am): Likewise.
52539         * modules/netinet_in (Makefile.am): Likewise.
52540         * modules/search (Makefile.am): Likewise.
52541         * modules/signal (Makefile.am): Likewise.
52542         * modules/stdarg (Makefile.am): Likewise.
52543         * modules/stdint (Makefile.am): Likewise.
52544         * modules/stdio (Makefile.am): Likewise.
52545         * modules/stdlib (Makefile.am): Likewise.
52546         * modules/string (Makefile.am): Likewise.
52547         * modules/strings (Makefile.am): Likewise.
52548         * modules/sys_select (Makefile.am): Likewise.
52549         * modules/sys_socket (Makefile.am): Likewise.
52550         * modules/sys_stat (Makefile.am): Likewise.
52551         * modules/sys_time (Makefile.am): Likewise.
52552         * modules/sysexits (Makefile.am): Likewise.
52553         * modules/time (Makefile.am): Likewise.
52554         * modules/unistd (Makefile.am): Likewise.
52555         * modules/wchar (Makefile.am): Likewise.
52556         * modules/wctype (Makefile.am): Likewise.
52557         Reported by Reuben Thomas <rrt@sc3d.org>.
52558
52559 2008-08-29  Bruno Haible  <bruno@clisp.org>
52560
52561         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52562         any more.
52563
52564 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52565
52566         * MODULES.html.sh (Misc): Add bitrotate.
52567
52568         * modules/bitrotate: New file.
52569
52570         * lib/bitrotate.h: New file.
52571
52572         * modules/bitrotate-tests: New file.
52573
52574         * tests/test-bitrotate.c: New file.
52575
52576         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52577         on the bitrotate module.
52578
52579         * lib/arctwo.c: Use new bitrotate module.
52580
52581 2008-08-29  Jim Meyering  <meyering@redhat.com>
52582
52583         bootstrap: merge changes from coreutils
52584         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52585         of copied files.  Remove a kludge, now that this is fixed.
52586         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52587         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52588         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52589
52590 2008-08-29  Bruno Haible  <bruno@clisp.org>
52591
52592         * MODULES.html.sh: Remove --cvs-urls option.
52593
52594 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52595
52596         maint.mk: adjust to file name change
52597         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52598
52599 2008-08-28  Jim Meyering  <meyering@redhat.com>
52600
52601         * modules/getndelim2 (License): Relicense to LGPLv2+.
52602         Approved by Richard Stallman for the version of 1995, and by
52603         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52604
52605 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52606
52607         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52608         dummy if one is not available.  Do not touch them if
52609         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52610         (getc_maybe_unlocked): New.
52611         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52612
52613 2008-08-26  Eric Blake  <ebb9@byu.net>
52614
52615         doc/INSTALL: resync from autoconf
52616         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52617         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52618         moving...
52619         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52620         * INSTALL: Regenerate.
52621         * INSTALL.ISO: New file.
52622         * INSTALL.UTF-8: Likewise.
52623
52624 2008-08-26  Jim Meyering  <meyering@redhat.com>
52625
52626         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52627         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52628         these definitions conditional, so that they may be overridden, too.
52629
52630 2008-08-26  Bruno Haible  <bruno@clisp.org>
52631
52632         Generate INSTALL file variants with prettier quotes.
52633         * doc/Makefile (INSTALL_PRELUDE): New macro.
52634         (INSTALL): Use it.
52635         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52636
52637 2008-08-26  Bruno Haible  <bruno@clisp.org>
52638
52639         Run makeinfo in an English locale.
52640         * doc/Makefile (MAKEINFO): New variable.
52641
52642 2008-08-26  Bruno Haible  <bruno@clisp.org>
52643
52644         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52645         Suggested by Eric Blake.
52646
52647 2008-08-25  Bruno Haible  <bruno@clisp.org>
52648
52649         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52650
52651 2008-08-25  Eric Blake  <ebb9@byu.net>
52652
52653         c-stack: test that stack overflow can be caught
52654         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52655         that platform allows handling stack overflow; at least OS/2 EMX
52656         has sigaltstack, but crashes before transferring control to
52657         handler on stack overflow.
52658         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52659         check for HAVE_STACK_OVERFLOW_HANDLING.
52660         Reported by Elbert Pol.
52661
52662 2008-08-25  Bruno Haible  <bruno@clisp.org>
52663
52664         * doc/posix-functions/strftime.texi: Fix description of strftime
52665         module.
52666
52667 2008-08-24  Bruno Haible  <bruno@clisp.org>
52668
52669         * tests/uniwidth/test-uc_width2.c: New file.
52670         * tests/uniwidth/test-uc_width2.sh: New file.
52671         * modules/uniwidth/width-tests (Files): Add the new files.
52672         (TESTS): Add uniwidth/test-uc_width2.sh.
52673         (TESTS_ENVIRONMENT): New variable.
52674         (check_PROGRAMS): Add test-uc_width2.
52675         (test_uc_width2_SOURCES): New variable.
52676
52677         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52678         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52679         not 0x00AB.
52680         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52681
52682 2008-08-22  Eric Blake  <ebb9@byu.net>
52683
52684         test-lock, test-tls: mention why a test is skipped
52685         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52686         skipped.
52687         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52688
52689         count-one-bits: relax license
52690         * modules/count-one-bits (License): Relicense to LGPLv2+.
52691         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52692
52693 2008-08-22  Andreas Schwab  <schwab@suse.de>
52694
52695         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52696         Remove spurious space in assignment.
52697
52698 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52699
52700         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52701         Paul Eggert <eggert@CS.UCLA.EDU>.
52702
52703 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52704
52705         * modules/gettext: Add m4/threadlib.m4.
52706
52707 2008-08-19  Eric Blake  <ebb9@byu.net>
52708
52709         test-c-stack: fix compilation failure on FreeBSD 5.0
52710         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52711         headers before <sys/resource.h>.
52712         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52713         the bug.
52714         Reported by Nelson H. F. Beebe.
52715
52716         strverscmp: migrate from "strverscmp.h" to <string.h>
52717         * modules/string (Makefile.am): Add new hooks.
52718         * modules/strverscmp (Files): Remove strverscmp.h.
52719         (Depends-on): Add string.
52720         (configure.ac): Add indicator.
52721         (Include): Mention new header.
52722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52723         defaults.
52724         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52725         results.
52726         * lib/strverscmp.h: Delete.
52727         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52728         * tests/test-strverscmp.c (includes): Adjust client.
52729         * lib/check-version.c (includes): Likewise.
52730         * NEWS: Document the change.
52731
52732         strverscmp: add unit test
52733         * modules/strverscmp-tests: New file.
52734         * tests/test-strverscmp.c: Likewise.
52735
52736 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52737
52738         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52739         regarding Windows crypto stuff, from Mono.
52740
52741 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52742
52743         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52744         if present, for intel RND.  Return error on failures.
52745
52746 2008-08-18  Ben Pfaff  <blp@gnu.org>
52747
52748         gitlog-to-changelog: give better diagnostic for failed pipe-open
52749         * build-aux/gitlog-to-changelog: Improve error message: suggest
52750         that the version of Git may be too old.
52751
52752 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52753
52754         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52755         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52756
52757 2008-08-18  Bruno Haible  <bruno@clisp.org>
52758
52759         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52760         pthread_in_use().
52761
52762 2008-08-18  Bruno Haible  <bruno@clisp.org>
52763
52764         * lib/glthread/threadlib.c: Include <pthread.h>.
52765
52766 2008-08-18  Bruno Haible  <bruno@clisp.org>
52767
52768         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52769         glthread_recursive_lock_* macros.
52770         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52771         Fix syntax error.
52772
52773 2008-08-18  Bruno Haible  <bruno@clisp.org>
52774
52775         * lib/glthread/thread.c: Avoid forcing a context switch right after
52776         thread creation.
52777
52778 2008-08-17  Bruno Haible  <bruno@clisp.org>
52779
52780         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52781         * lib/glthread/thread.h: Provide Win32 specific implementation.
52782         * modules/thread (Files): Add lib/glthread/thread.c.
52783         (Depends-on): Add lock.
52784         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52785
52786 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52787
52788         New module 'yield'.
52789         * modules/yield: New file.
52790         * lib/glthread/yield.h: New file.
52791         * m4/yield.m4: New file.
52792         * MODULES.html.sh (Multithreading): Add yield.
52793
52794 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52795
52796         New module 'thread'.
52797         * modules/thread: New file.
52798         * lib/glthread/thread.h: New file.
52799         * m4/thread.m4: New file.
52800         * MODULES.html.sh (Multithreading): Add thread.
52801
52802 2008-08-17  Bruno Haible  <bruno@clisp.org>
52803
52804         * lib/glthread/lock.h: Include <stdlib.h> always.
52805         * lib/glthread/tls.h: Likewise.
52806         * lib/glthread/cond.h: Likewise.
52807
52808 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52809
52810         New module 'cond'.
52811         * modules/cond: New file.
52812         * lib/glthread/cond.h: New file.
52813         * lib/glthread/cond.c: New file.
52814         * m4/cond.m4: New file.
52815         * MODULES.html.sh (Multithreading): Add cond.
52816
52817 2008-08-16  Eric Blake  <ebb9@byu.net>
52818
52819         c-stack: fix regression on Irix 5.3 from 2008-06-21
52820         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52821         sa_sigaction...
52822         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52823         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52824         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52825         * modules/signal (Makefile.am): Use the value.
52826         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52827         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52828         * doc/posix-headers/signal.texi (signal.h): Document this
52829         portability issue.
52830         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52831         Reported by Tom G. Christensen.
52832
52833 2008-08-17  Bruno Haible  <bruno@clisp.org>
52834
52835         New module 'threadlib'.
52836         * modules/threadlib: New file.
52837         * lib/glthread/threadlib.c: New file, extracted from
52838         lib/glthread/lock.c.
52839         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52840         functions.
52841         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52842         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52843         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52844         macros.
52845         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52846         (gl_DISABLE_THREADS): Remove macro.
52847         * modules/lock (Files): Remove build-aux/config.rpath.
52848         (Depends-on): Remove havelib. Add threadlib.
52849         (configure.ac-early): Remove section.
52850         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52851         * modules/tls (Depends-on): Remove lock. Add threadlib.
52852         (Link): New section, copied from threadlib.
52853         * MODULES.html.sh (Multithreading): Add threadlib.
52854
52855 2008-08-14  Bruno Haible  <bruno@clisp.org>
52856
52857         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52858         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52859         glthread_rwlock_unlock, glthread_rwlock_destroy,
52860         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52861         glthread_recursive_lock_destroy): Define as macros always.
52862         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52863         glthread_lock_lock.
52864         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52865         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52866         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52867         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52868         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52869         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52870         (glthread_recursive_lock_lock_func): Renamed from
52871         glthread_recursive_lock_lock.
52872         (glthread_recursive_lock_unlock_func): Renamed from
52873         glthread_recursive_lock_unlock.
52874         (glthread_recursive_lock_destroy_func): Renamed from
52875         glthread_recursive_lock_destroy.
52876
52877 2008-08-14  Bruno Haible  <bruno@clisp.org>
52878
52879         * lib/glthread/lock.h: Renamed from lib/lock.h.
52880         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52881         * lib/glthread/tls.h: Renamed from lib/tls.h.
52882         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52883         * lib/fstrcmp.c: Update includes.
52884         * lib/strsignal.c: Update includes.
52885         * modules/lock (Files, Makefile.am): Update.
52886         (Include): Change to "glthread/lock.h".
52887         * modules/tls (Files, Makefile.am): Update.
52888         (Include): Change to "glthread/tls.h".
52889         * tests/test-lock.c: Update includes.
52890         * tests/test-tls.c: Update includes.
52891         * NEWS: Mention the renamed header files.
52892
52893 2008-08-11  Jim Meyering  <meyering@redhat.com>
52894
52895         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52896
52897 2008-08-11  Eric Blake  <ebb9@byu.net>
52898
52899         test-c-stack: avoid C99-ism
52900         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52901         before statement.
52902         Reported by Alain Guibert.
52903
52904 2008-08-10  Jim Meyering  <meyering@redhat.com>
52905
52906         ensure that return value of uinttostr et al are not ignored
52907         * lib/inttostr.h (__GNUC_PREREQ): Define.
52908         (__attribute_warn_unused_result__): Define.
52909         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52910
52911 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52912
52913         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52914         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52915
52916 2008-08-07  Jim Meyering  <meyering@redhat.com>
52917
52918         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52919
52920         * modules/mkstemp (License): Relicense under LGPLv2+.
52921         * modules/tempname (License): Likewise.
52922
52923 2008-08-06  Bruno Haible  <bruno@clisp.org>
52924
52925         * lib/poll.c (poll): Further micro-optimization.
52926
52927 2008-08-06  Jim Meyering  <meyering@redhat.com>
52928
52929         inet_pton.c: use locale-independent tolower
52930         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52931         (inet_pton6): Use c_tolower rather than tolower.
52932         * modules/inet_pton (Depends-on): Add c-ctype.
52933
52934 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52935
52936         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52937         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52938
52939 2008-08-06  Jim Meyering  <meyering@redhat.com>
52940
52941         * modules/inet_pton (License): Relicense under LGPLv2+.
52942
52943 2008-08-03  Bruno Haible  <bruno@clisp.org>
52944
52945         Additional non-aborting API for lock and tls.
52946         * lib/lock.h: Include <errno.h>.
52947         (glthread_lock_init): New macro/function.
52948         (gl_lock_init): Define as wrapper around glthread_lock_init.
52949         (glthread_lock_lock): New macro/function.
52950         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52951         (glthread_lock_unlock): New macro/function.
52952         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52953         (glthread_lock_destroy): New macro/function.
52954         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52955         (glthread_rwlock_init): New macro/function.
52956         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52957         (glthread_rwlock_rdlock): New macro/function.
52958         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52959         (glthread_rwlock_wrlock): New macro/function.
52960         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52961         (glthread_rwlock_unlock): New macro/function.
52962         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52963         (glthread_rwlock_destroy): New macro/function.
52964         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52965         (glthread_recursive_lock_init): New macro/function.
52966         (gl_recursive_lock_init): Define as wrapper around
52967         glthread_recursive_lock_init.
52968         (glthread_recursive_lock_lock): New macro/function.
52969         (gl_recursive_lock_lock): Define as wrapper around
52970         glthread_recursive_lock_lock.
52971         (glthread_recursive_lock_unlock): New macro/function.
52972         (gl_recursive_lock_unlock): Define as wrapper around
52973         glthread_recursive_lock_unlock.
52974         (glthread_recursive_lock_destroy): New macro/function.
52975         (gl_recursive_lock_destroy): Define as wrapper around
52976         glthread_recursive_lock_destroy.
52977         (glthread_once): New macro/function.
52978         (gl_once): Define as wrapper around glthread_once.
52979         Update function declarations.
52980         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52981         glthread_rwlock_init. Return error code.
52982         (glthread_rwlock_rdlock_multithreaded): Renamed from
52983         glthread_rwlock_rdlock. Return error code.
52984         (glthread_rwlock_wrlock_multithreaded): Renamed from
52985         glthread_rwlock_wrlock. Return error code.
52986         (glthread_rwlock_unlock_multithreaded): Renamed from
52987         glthread_rwlock_unlock. Return error code.
52988         (glthread_rwlock_destroy_multithreaded): Renamed from
52989         glthread_rwlock_destroy. Return error code.
52990         (glthread_recursive_lock_init_multithreaded): Renamed from
52991         glthread_recursive_lock_init. Return error code.
52992         (glthread_recursive_lock_lock_multithreaded): Renamed from
52993         glthread_recursive_lock_lock. Return error code.
52994         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52995         glthread_recursive_lock_unlock. Return error code.
52996         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52997         glthread_recursive_lock_destroy. Return error code.
52998         (glthread_once_call): Make static.
52999         (glthread_once_multithreaded): Renamed from glthread_once.
53000         * lib/tls.h: Include <errno.h>.
53001         (glthread_tls_key_init): New macro/function.
53002         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53003         (glthread_tls_set): New macro/function.
53004         (gl_tls_set): Define as wrapper around glthread_tls_set.
53005         (glthread_tls_key_destroy): New macro/function.
53006         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53007         Update function declarations.
53008         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53009         glthread_tls_get.
53010         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53011
53012 2008-08-04  Eric Blake  <ebb9@byu.net>
53013
53014         gnumakefile: use space, not TAB, outside of targets
53015         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53016
53017 2008-08-02  Jim Meyering  <meyering@redhat.com>
53018
53019         getdate.y: avoid locale-dependent date parsing failure
53020         In Turkish locales, getdate would fail to recognize keywords
53021         containing a lowercase "i".  The solution is not to rely on
53022         locale-sensitive case-conversion.
53023         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53024         (lookup_word): Use c_toupper in place of toupper.
53025         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53026         Reported by Vefa Bicakci <bicave@superonline.com> in
53027         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53028         * modules/getdate (Depends-on): Add c-ctype.
53029
53030 2008-08-02  Bruno Haible  <bruno@clisp.org>
53031
53032         * gnulib-tool (func_import): When updating or creating a .gitignore
53033         file, prepend each added line with a slash, and ignore leading slashes
53034         from the existing lines.
53035         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53036
53037 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53038
53039         Portability fix for GNU make 3.79.1.
53040         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53041         versions do not understand.
53042
53043 2008-08-01  Bruno Haible  <bruno@clisp.org>
53044
53045         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53046         * tests/test-isnanf.h (zero): New variable.
53047         (main): Avoid literal -0.0f.
53048         * tests/test-isnand.h (zero): New variable.
53049         (main): Avoid literal -0.0.
53050         * tests/test-isnanl.h (zero): New variable.
53051         (main): Avoid literal -0.0L.
53052         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53053         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53054         -0.0, -0.0L.
53055         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53056         (test_signbitd): Avoid literal -0.0.
53057         (test_signbitl): Avoid literal -0.0L.
53058         * tests/test-ceilf1.c (zero): New variable.
53059         (main): Avoid literal -0.0f.
53060         * tests/test-ceill.c (zero): New variable.
53061         (main): Avoid literal -0.0L.
53062         * tests/test-floorf1.c (zero): New variable.
53063         (main): Avoid literal -0.0f.
53064         * tests/test-floorl.c (zero): New variable.
53065         (main): Avoid literal -0.0L.
53066         * tests/test-roundf1.c (zero): New variable.
53067         (main): Avoid literal -0.0f.
53068         * tests/test-round1.c (zero): New variable.
53069         (main): Avoid literal -0.0.
53070         * tests/test-roundl.c (zero): New variable.
53071         (main): Avoid literal -0.0L.
53072         * tests/test-truncf1.c (zero): New variable.
53073         (main): Avoid literal -0.0f.
53074         * tests/test-trunc1.c (zero): New variable.
53075         (main): Avoid literal -0.0.
53076         * tests/test-truncl.c (zero): New variable.
53077         (main): Avoid literal -0.0L.
53078         * tests/test-frexp.c (zero): New variable.
53079         (main): Avoid literal -0.0.
53080         * tests/test-frexpl.c (zero): New variable.
53081         (main): Avoid literal -0.0L.
53082         * tests/test-ldexpl.c (zero): New variable.
53083         (main): Avoid literal -0.0L.
53084         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53085         (zerod, zerol): New variables.
53086         (test_function): Avoid literals -0.0, -0.0L.
53087         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53088         (zerod, zerol): New variables.
53089         (test_function): Avoid literals -0.0, -0.0L.
53090         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53091         (zerod, zerol): New variables.
53092         (test_function): Avoid literals -0.0, -0.0L.
53093         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53094         (zerod, zerol): New variables.
53095         (test_function): Avoid literals -0.0, -0.0L.
53096         * tests/test-strtod.c (zero): New variable.
53097         (main): Avoid literal -0.0.
53098         Reported by Jonathan C. Patschke <jp@centtech.com>.
53099
53100 2008-07-31  Jim Meyering  <meyering@redhat.com>
53101
53102         sha256.h: correct definition of SHA224_DIGEST_SIZE
53103         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53104         Reported by Paulie Pena IV <paulie4@gmail.com>.
53105         Define as 224 / 8, rather than as a literal.
53106         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53107         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53108         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53109
53110 2008-07-31  Bruno Haible  <bruno@clisp.org>
53111
53112         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53113         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53114         Reported by Jonathan Patschke <jp@centtech.com>.
53115
53116 2008-07-31  Bruno Haible  <bruno@clisp.org>
53117
53118         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53119         Reported by Paolo Bonzini <bonzini@gnu.org>.
53120
53121 2008-07-30  Eric Blake  <ebb9@byu.net>
53122
53123         test-strtod: allow compilation without -lm
53124         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53125         Reported by Dennis Clarke <blastwave@gmail.com>.
53126
53127 2008-07-28  Jim Meyering  <meyering@redhat.com>
53128
53129         bootstrap: work also when there are no .po files in po/
53130         * build-aux/bootstrap (update_po_files): Complete the change
53131         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53132
53133 2008-07-27  Jim Meyering  <meyering@redhat.com>
53134
53135         * users.txt: Add zile.
53136
53137 2008-07-26  Ben Pfaff  <blp@gnu.org>
53138
53139         Add missing dependencies on new m4/exponent[fdl].m4 files.
53140         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53141         * modules/isnand-nolibm: Add m4/exponentd.m4.
53142         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53143         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53144         m4/isnan[fdl].m4, because the macros actually used moved.
53145         Reported by Jim Meyering.
53146
53147 2008-07-14  Ben Pfaff  <blp@gnu.org>
53148
53149         Add isinf module.
53150         * lib/isinf.c: New file.
53151         * lib/math.in.h: Define isinf macro if we have decided to replace
53152         it.
53153         * m4/isinf.m4: New file.
53154         * m4/math_h.m4: Initialize and substitute variables for isinf
53155         module.
53156         * modules/isinf: New file.
53157         * modules/isinf-tests: New file.
53158         * modules/math: Add substitutions for new module.
53159         * tests/test-isinf.c: New file.
53160         * doc/posix-functions/isinf.texi: Mention new module.
53161         * MODULES.html.sh: Mention new module.
53162
53163 2008-07-14  Ben Pfaff  <blp@gnu.org>
53164
53165         Factor out some macros for use by additional modules.
53166         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53167         exponentf.m4.
53168         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53169         exponentd.m4.
53170         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53171         file exponentl.m4.
53172         * m4/exponentf.m4: New file.
53173         * m4/exponentd.m4: New file.
53174         * m4/exponentl.m4: New file.
53175         * modules/isnanf: Use new file m4/exponentf.m4.
53176         * modules/isnand: Use new file m4/exponentd.m4.
53177         * modules/isnanl: Use new file m4/exponentl.m4.
53178
53179 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53180
53181         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53182         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53183         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53184         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53185
53186         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53187         readlink on platforms without PATH_MAX.
53188
53189 2008-07-21  Eric Blake  <ebb9@byu.net>
53190
53191         Warn, not fail, on stale version.
53192         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53193
53194         Don't allow installation with stale devel version number.
53195         * top/GNUmakefile (_is-install-target): New macro.
53196         (_curr-ver): Forbid installation with stale version number.
53197
53198 2008-07-20  Bruno Haible  <bruno@clisp.org>
53199
53200         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53201         TESTS_ENVIRONMENT.
53202         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53203
53204 2008-07-20  Bruno Haible  <bruno@clisp.org>
53205
53206         * lib/c-stack.h (c_stack_action): Add documentation.
53207         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53208
53209 2008-07-20  Bruno Haible  <bruno@clisp.org>
53210
53211         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53212         * modules/readlink (License): Likewise.
53213
53214 2008-07-17  Eric Blake  <ebb9@byu.net>
53215
53216         * modules/c-stack (Link): Fix typo.
53217
53218         Make c-stack use libsigsegv, when available.
53219         * modules/c-stack (Depends-on): Add libsigsegv.
53220         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53221         needed.
53222         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53223         (segv_handler, overflow_handler, c_stack_action)
53224         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53225         implementation when libsigsegv is available, but only when using
53226         the library is necessary.
53227         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53228         comment, explaining why XSI check fails on Linux.
53229         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53230         * tests/test-c-stack2.sh: Tweak skip message.
53231         * NEWS: Document new link-time requirements.
53232
53233 2008-07-16  Eric Blake  <ebb9@byu.net>
53234
53235         c-stack: Expose false positives when not using libsigsegv.
53236         * modules/c-stack-tests (Files): Expand test.
53237         * tests/test-c-stack.c (main): Add means to conditionally trigger
53238         non-overflow SIGSEGV.
53239         * tests/test-c-stack2.sh: New file.
53240
53241 2008-07-14  Bruno Haible  <bruno@clisp.org>
53242
53243         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53244         Reported by Eric Blake.
53245
53246 2008-07-14  Sam Steingold  <sds@gnu.org>
53247             Bruno Haible  <bruno@clisp.org>
53248
53249         New module libsigsegv.
53250         * modules/libsigsegv: New file.
53251         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53252         modifications.
53253         * MODULES.html.sh (Signal handling): New section.
53254
53255 2008-07-14  Bruno Haible  <bruno@clisp.org>
53256
53257         * modules/unictype/ctype-* (Description): Add the word "function".
53258         Improves the resulting doc in MODULES.html.
53259
53260 2008-07-12  Ben Pfaff  <blp@gnu.org>
53261
53262         Add longlong module.
53263         * modules/longlong: New file.
53264
53265 2008-07-12  Bruno Haible  <bruno@clisp.org>
53266
53267         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53268         to empty.
53269
53270 2008-07-10  Ben Pfaff  <blp@gnu.org>
53271
53272         Add isnan module.
53273         * doc/posix-functions/isnan.texi: Mention new module.
53274         * lib/math.in.h: Define isnan macro if we have decided to replace
53275         it.
53276         * m4/isnan.m4: New file.
53277         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53278         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53279         also.
53280         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53281         redundancy.
53282         * m4/math_h.m4: Initialize and substitute variables for isnan
53283         module.
53284         * modules/isnan: New file.
53285         * modules/isnan-tests: New file.
53286         * modules/math: Add substitutions for new module.
53287         * tests/test-isnan.c: New file.
53288         * MODULES.html.sh: Mention new module.
53289
53290 2008-07-10  Ben Pfaff  <blp@gnu.org>
53291
53292         Add isnanf module.
53293         * lib/isnanf.m4: New file.
53294         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53295         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53296         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53297         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53298         * modules/isnanf: New file.
53299         * modules/isnanf-tests: New file.
53300         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53301         files.
53302         * tests/test-isnanf-nolibm.c: factored most of its contents into
53303         new file tests/test-isnanf.h.
53304         * tests/test-isnanf.h: New file.
53305         * tests/test-isnanf.c: New file.
53306         * MODULES.html.sh: Mention new module.
53307         * doc/glibc-functions/isnanf.texi: Mention new module.
53308
53309 2008-07-10  Ben Pfaff  <blp@gnu.org>
53310
53311         Add isnand module.
53312         * lib/isnand.h: New file.
53313         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53314         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53315         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53316         functionality also.
53317         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53318         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53319         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53320         * modules/isnand: New file.
53321         * modules/isnand-tests: New file.
53322         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53323         files.
53324         * tests/test-isnand-nolibm.c: factored most of its contents into
53325         new file tests/test-isnand.h.
53326         * tests/test-isnand.h: New file.
53327         * tests/test-isnand.c: New file.
53328         * MODULES.html.sh: Mention new module.
53329
53330 2008-07-10  Ben Pfaff  <blp@gnu.org>
53331
53332         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53333         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53334         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53335         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53336         * modules/isnanf-nolibm: Update references to renamed files.
53337         * modules/isnand-nolibm: Likewise.
53338         * modules/isnanf-nolibm-tests: Likewise.
53339         * modules/isnand-nolibm-tests: Likewise.
53340         * lib/frexp.c: Likewise.
53341         * lib/isfinite.c: Likewise.
53342         * lib/signbitd.c: Likewise.
53343         * lib/signbitf.c: Likewise.
53344         * lib/vasnprintf.c: Likewise.
53345         * tests/test-ceilf1.c: Likewise.
53346         * tests/test-ceilf2.c: Likewise.
53347         * tests/test-floorf1.c: Likewise.
53348         * tests/test-floorf2.c: Likewise.
53349         * tests/test-frexp.c: Likewise.
53350         * tests/test-round1.c: Likewise.
53351         * tests/test-round2.c: Likewise.
53352         * tests/test-roundf1.c: Likewise.
53353         * tests/test-strtod.c: Likewise.
53354         * tests/test-trunc1.c: Likewise.
53355         * tests/test-trunc2.c: Likewise.
53356         * tests/test-truncf1.c: Likewise.
53357         * tests/test-truncf2.c: Likewise.
53358         * NEWS: Mention the renamed header files.
53359
53360 2008-07-11  Jim Meyering  <meyering@redhat.com>
53361
53362         vc-list-files: make the last-resort awk code more portable
53363         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53364         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53365         does not support it.
53366
53367 2008-07-10  Eric Blake  <ebb9@byu.net>
53368
53369         Work with tar's bootstrap.
53370         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53371         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53372         an m4 comment.
53373
53374 2008-07-09  Jim Meyering  <meyering@redhat.com>
53375
53376         posix-shell.m4: fix typo that made this test malfunction
53377         * m4/posix-shell.m4: Remove capitalization in variable name.
53378
53379 2008-07-08  Bruno Haible  <bruno@clisp.org>
53380
53381         * m4/onceonly.m4: Update comments.
53382         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53383
53384 2008-07-04  Jim Meyering  <meyering@redhat.com>
53385
53386         * users.txt: Add vc-dwim.
53387         (bison, coreutils): Use the gitweb URL.
53388
53389 2008-07-03  Jim Meyering  <meyering@redhat.com>
53390
53391         * users.txt: Add libffcall.  From Sam Steingold.
53392
53393 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53394
53395         getdate.y: do not ignore TZ with relative day, month or year offset
53396         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53397         relative-date-handling, since otherwise, the latter would clobber the
53398         sole output (an updated Start value) of the tz-handling block.
53399         * tests/test-getdate.c: Tests for the fix
53400
53401 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53402
53403         Recognize 'foo_LIBRARIES += libgnu.a'.
53404         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53405         makefile snippet has already specified an installation location,
53406         also using '+='.
53407
53408 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53409
53410         getdate.y: factor out common actions
53411         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53412         Use them in place of open-coded actions.
53413
53414 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53415
53416         Add self-test for getdate module.
53417         * modules/getdate-tests: New file.
53418         * tests/test-getdate.c: New file.
53419
53420 2008-06-29  Bruno Haible  <bruno@clisp.org>
53421
53422         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53423         .gitignore.
53424         Reported by Sylvain Beucler <beuc@beuc.net>.
53425
53426 2008-06-29  Bruno Haible  <bruno@clisp.org>
53427
53428         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53429         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53430
53431 2008-06-29  Bruno Haible  <bruno@clisp.org>
53432
53433         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53434         EXTRA_DIST.
53435         Reported by Sylvain Beucler <beuc@beuc.net>.
53436
53437 2008-06-26  Jim Meyering  <meyering@redhat.com>
53438
53439         make several modules depend on the "open" module
53440         This provides slightly increased consistency when opening-for-write
53441         the name of a non-directory spelled with a trailing slash.
53442         * modules/chdir-safer: Likewise.
53443         * modules/chown: Likewise.
53444         * modules/clean-temp: Likewise.
53445         * modules/copy-file: Likewise.
53446         * modules/fchdir: Likewise.
53447         * modules/fcntl-safer: Likewise.
53448         * modules/pipe: Likewise.
53449         * modules/utime: Likewise.
53450         Prompted by Eric Blake and Bruno Haible.
53451
53452 2008-06-24  Andreas Schwab  <schwab@suse.de>
53453
53454         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53455         literals can be used as initializers for global variables.
53456
53457 2008-06-23  Eric Blake  <ebb9@byu.net>
53458
53459         Make gnulib-cache.m4 easier to diff.
53460         * gnulib-tool (func_import): Allow newlines when reading cached
53461         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53462
53463 2008-06-23  Bruno Haible  <bruno@clisp.org>
53464
53465         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53466         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53467         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53468         m4/signalblocking.m4.
53469         (gl_PREREQ_SIGACTION): Don't invoke it.
53470         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53471         gl_PREREQ_SIG_HANDLER_H.
53472         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53473         Don't check for sigaction here.
53474
53475 2008-06-23  Bruno Haible  <bruno@clisp.org>
53476
53477         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53478         (install_handlers): Don't set the SA_RESETHAND flag.
53479
53480 2008-06-23  Bruno Haible  <bruno@clisp.org>
53481
53482         * m4/sigaction.m4: Comment fixes.
53483         * lib/signal.in.h: Likewise.
53484
53485 2008-06-23  Eric Blake  <ebb9@byu.net>
53486
53487         Fix typo.
53488         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53489
53490         Avoid SA_ namespace.
53491         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53492         Reported by Ralf Wildenhues.
53493
53494         Avoid test failure due to SA_RESTORER.
53495         * tests/test-sigaction.c (SA_MASK): New macro.
53496         (main): Avoid failing due to extension flags being set.
53497         Reported by Jim Meyering.
53498
53499         Revert use of sig-handler.h in sigprocmask.c.
53500         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53501         it requires the existence of struct sigaction.
53502         * lib/sigprocmask.c (handler_t): Restore typedef.
53503         (rpl_signal, old_handlers): Use local type.
53504
53505 2008-06-22  Bruno Haible  <bruno@clisp.org>
53506
53507         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53508         conditionally.
53509         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53510
53511 2008-06-22  Bruno Haible  <bruno@clisp.org>
53512
53513         * doc/posix-functions/siginterrupt.texi: Move note.
53514
53515         * lib/signal.in.h (SA_RESTART): New macro.
53516         * lib/sigaction.c: Update comment.
53517
53518         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53519
53520         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53521         (gl_PREREQ_SIGPROCMASK): Invoke it.
53522         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53523
53524         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53525
53526         * lib/sigprocmask.c: Update a comment.
53527
53528 2008-06-21  Eric Blake  <ebb9@byu.net>
53529
53530         Use sigaction module rather than signal().
53531         * modules/c-stack (Depends-on): Add sigaction.
53532         * modules/fatal-signal (Depends-on): Likewise.
53533         * modules/nanosleep (Depends-on): Likewise.
53534         * modules/sigprocmask (Files): Add sig-handler.h.
53535         * modules/sigaction (Files): Likewise.
53536         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53537         Eggert.
53538         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53539         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53540         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53541         (init_fatal_signals): Likewise.
53542         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53543         (siginterrupt): Delete fallback.
53544         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53545         instead.
53546         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53547         siginterrupt.
53548
53549         New module sigaction, for mingw.
53550         * modules/sigaction: New module...
53551         * modules/sigaction-tests: ...and its test.
53552         * m4/sigaction.m4: New file.
53553         * lib/sigaction.c: Likewise.
53554         * tests/test-sigaction.c: Likewise.
53555         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53556         * modules/signal (Makefile.am): Likewise.
53557         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53558         needed.
53559         * doc/posix-headers/signal.texi (signal.h): Mention provided
53560         types.
53561         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53562         that sigaction is preferable.
53563         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53564         module.
53565         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53566         sigaction.
53567
53568         Improve robustness of sigprocmask by overriding signal.
53569         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53570         is in use.
53571         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53572         (SIGKILL, SIGSTOP): Provide fallbacks.
53573         (rpl_signal): Implement.
53574         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53575         signal can be called inside handlers.
53576
53577         Fix nanosleep module on mingw.
53578         * modules/nanosleep (Depends-on): Add sys_select.
53579         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53580
53581         Fix licensing of sigprocmask.
53582         * modules/raise (License): Relicense as LGPL.
53583
53584 2008-06-21  Bruno Haible  <bruno@clisp.org>
53585
53586         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53587         result if it contains question marks.
53588         Reported by Michael Geng <linux@michaelgeng.de>.
53589
53590 2008-06-19  Bruno Haible  <bruno@clisp.org>
53591
53592         Fix CVS-ism.
53593         * doc/gnulib.texi: Include updated-stamp.texi.
53594         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53595         (updated-stamp.texi): New rule.
53596         (gnulib.info): Depend on it.
53597         * doc/.gitignore: Add updated-stamp.texi.
53598         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53599
53600 2008-06-19  Bruno Haible  <bruno@clisp.org>
53601
53602         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53603         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53604
53605 2008-06-19  Eric Blake  <ebb9@byu.net>
53606
53607         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53608         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53609         Reported by Stepan Kasal.
53610
53611 2008-06-18  Bruno Haible  <bruno@clisp.org>
53612
53613         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53614         Reported by Eric Blake.
53615
53616 2008-06-18  Eric Blake  <ebb9@byu.net>
53617
53618         Work around cygwin 1.5.25 strsignal bug.
53619         * tests/test-strsignal.c: Allow for const char *.
53620         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53621
53622 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53623
53624         * users.txt: Update URL to article and add author/date
53625         information.
53626
53627 2008-06-17  Bruno Haible  <bruno@clisp.org>
53628
53629         New macro gl_DISABLE_THREADS.
53630         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53631         if the user did not pass --enable-threads or --disable-threads option.
53632         (gl_DISABLE_THREADS): New macro.
53633         Reported by Eric Blake <ebb9@byu.net>.
53634
53635 2008-06-17  Bruno Haible  <bruno@clisp.org>
53636
53637         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53638         when the macro ignores it.
53639         Based on a patch by Eric Blake <ebb9@byu.net>.
53640
53641 2008-06-17  Bruno Haible  <bruno@clisp.org>
53642
53643         * modules/tls (License): Change to LGPLv2+.
53644         Reported by Eric Blake.
53645
53646 2008-06-17  Eric Blake  <ebb9@byu.net>
53647
53648         Simplify c-stack prerequisites.
53649         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53650         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53651         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53652         check.
53653         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53654         <sys/resource.h>.
53655
53656         Move c-stack test into testsuite.
53657         * modules/c-stack-tests: New file.
53658         * lib/c-stack.c [DEBUG]: Move test program...
53659         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53660         fail test if sigaltstack is lacking.
53661         * tests/test-c-stack.sh: New driver file.
53662
53663 2008-06-16  Eric Blake  <ebb9@byu.net>
53664
53665         Use raise module consistently.
53666         * modules/fatal-signal (Depends-on): Add raise.
53667         * modules/sigprocmask (Depends-on): Likewise.
53668         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53669         * lib/sigprocmask.c (sigprocmask): Likewise.
53670         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53671         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53672
53673         Fix compliance bug in sigpending.
53674         * lib/sigprocmask.c (sigpending): Return pending array via
53675         parameter, not return value.
53676
53677 2008-06-14  Eric Blake  <ebb9@byu.net>
53678
53679         Improve obstack-printf test code.
53680         * tests/test-obstack-printf.c (test_function): Fix comment, and
53681         simplify usage of obstack_* in macros.  Add a test for coverage.
53682         Reported by Bruno Haible.
53683
53684 2008-06-14  Bruno Haible  <bruno@clisp.org>
53685
53686         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53687         array size as a constant, not as a const variable.
53688         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53689         AC_USE_SYSTEM_EXTENSIONS.
53690         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53691         Test whether the obstack_printf function actually exists.
53692         * modules/obstack-printf (Depends-on): Add extensions.
53693         (Include): Remove obstack.h.
53694         * modules/obstack-printf-posix (Depends-on): Add extensions.
53695         (Include): Remove obstack.h.
53696
53697 2008-06-13  Eric Blake  <ebb9@byu.net>
53698
53699         Add obstack-printf and obstack-printf-posix modules.
53700         * modules/obstack-printf: New file.
53701         * modules/obstack-printf-posix: Likewise.
53702         * MODULES.html.sh (Misc): Mention them.
53703         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53704         Likewise.
53705         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53706         Likewise.
53707         * modules/stdio (Makefile.am): Accomodate new modules.
53708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53709         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53710         Declare.
53711         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53712         functions.
53713         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53714         (gl_REPLACE_OBSTACK_PRINTF): New macros
53715         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53716         * tests/test-obstack-printf.c: New file.
53717         * modules/obstack-printf-tests: Likewise.
53718         * modules/obstack-printf-posix-tests: Likewise.
53719
53720 2008-06-11  Bruno Haible  <bruno@clisp.org>
53721
53722         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53723         * lib/open.c: Include errno.h.
53724         (open): Fail when attempting to write to a file that has a trailing
53725         slash.
53726         * tests/test-open.c (main): Test against trailing slash bug.
53727         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53728
53729 2008-06-10  Bruno Haible  <bruno@clisp.org>
53730
53731         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53732         for $? to work inside the trap command, with various /bin/sh-s.
53733         * tests/test-vc-list-files-cvs.sh: Likewise.
53734
53735 2008-06-10  Bruno Haible  <bruno@clisp.org>
53736
53737         * lib/acl-internal.h: Don't include gettext.h here.
53738         * lib/set-mode-acl.c: Include gettext.h here.
53739         * lib/copy-acl.c: Likewise.
53740
53741 2008-06-10  Bruno Haible  <bruno@clisp.org>
53742
53743         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53744         * lib/wait-process.c (wait_subprocess): Likewise.
53745         * lib/execute.h (execute): Add termsigp argument.
53746         * lib/execute.c (execute): Likewise.
53747         * lib/csharpcomp.c (compile_csharp_using_pnet,
53748         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53749         * lib/csharpexec.c (execute_csharp_using_pnet,
53750         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53751         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53752         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53753         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53754         is_jikes_present): Update.
53755         * lib/javaexec.c (execute_java_class): Update.
53756         * lib/javaversion.c (execute_and_read_line): Update.
53757         * NEWS: Document the changes.
53758         Reported by Eric Blake.
53759
53760 2008-06-10  Eric Blake  <ebb9@byu.net>
53761
53762         Add missing include.
53763         * tests/test-strstr.c (includes): Add <signal.h>.
53764         * tests/test-strcasestr.c (includes): Likewise.
53765         * tests/test-memmem.c (includes): Likewise.
53766
53767 2008-06-10  Bruno Haible  <bruno@clisp.org>
53768
53769         * lib/wait-process.c (wait_subprocess): Add an assertion.
53770
53771 2008-06-10  Bruno Haible  <bruno@clisp.org>
53772
53773         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53774
53775 2008-06-10  Bruno Haible  <bruno@clisp.org>
53776
53777         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53778         using alarm().
53779         * tests/test-strcasestr.c (main): Likewise.
53780         * tests/test-strstr.c (main): Likewise.
53781
53782 2008-06-09  Bruno Haible  <bruno@clisp.org>
53783
53784         Work around the Solaris 10 ACE ACLs ABI change.
53785         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53786         declare if ACL_NO_TRIVIAL is present.
53787         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53788         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53789         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53790         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53791         define if ACL_NO_TRIVIAL is present.
53792         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53793         and use the current ABI.
53794         (file_has_acl): Use same #if condition as elsewhere.
53795         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53796         in use, and use the current ABI.
53797         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53798         Reported by Jim Meyering.
53799
53800 2008-06-09  Eric Blake  <ebb9@byu.net>
53801
53802         Work around environments that (stupidly) ignore SIGALRM.
53803         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53804         before using alarm().
53805         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53806         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53807         Reported by Ian Beckwith <ianb@erislabs.net>.
53808
53809         Produce autobuild blurb earlier in log.
53810         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53811
53812 2008-06-09  Jim Meyering  <meyering@redhat.com>
53813         and OndÅ™ej Vašík  <ovasik@redhat.com>
53814
53815         utimens.c: correct kernel bug work-around
53816         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53817         failure, not success, and the kernel bug we're trying to work
53818         around affects not just the utimensat call, but also the fallback
53819         futimens call.
53820         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53821         not success.
53822         [HAVE_FUTIMENS]: Use the same work-around, here.
53823
53824 2008-06-09  Jim Meyering  <meyering@redhat.com>
53825
53826         add more guards around definition of ACE_-related code
53827         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53828         ALLOW and ACE_OWNER are also defined.
53829
53830 2008-06-08  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/acl-internal.h: Add me as co-author.
53833         * lib/file-has-acl.c: Likewise.
53834         * lib/set-mode-acl.c: Likewise.
53835         * lib/copy-acl.c: Likewise.
53836
53837 2008-06-08  Bruno Haible  <bruno@clisp.org>
53838
53839         Add support for AIX ACLs.
53840         * lib/acl-internal.h (acl_nontrivial): New declaration.
53841         * lib/file-has-acl.c (acl_nontrivial): New function.
53842         (file_has_acl): Add implementation using AIX 4 ACL API.
53843         * lib/set-mode-acl.c (qset_acl): Likewise.
53844         * lib/copy-acl.c (qcopy_acl): Likewise.
53845
53846 2008-06-08  Bruno Haible  <bruno@clisp.org>
53847
53848         Add support for HP-UX ACLs.
53849         * lib/acl-internal.h (acl_nontrivial): New declaration.
53850         * lib/file-has-acl.c (acl_nontrivial): New function.
53851         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53852         * lib/set-mode-acl.c (qset_acl): Likewise.
53853         * lib/copy-acl.c (qcopy_acl): Likewise.
53854
53855 2008-06-08  Bruno Haible  <bruno@clisp.org>
53856
53857         Add support for Cygwin ACLs.
53858         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53859         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53860         the chmod_or_fchmod call.
53861         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53862
53863 2008-06-08  Bruno Haible  <bruno@clisp.org>
53864
53865         Fix bug with setuid modes in Solaris 10+ code.
53866         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53867         succeeded, when the mode contains some special bits.
53868
53869 2008-06-08  Bruno Haible  <bruno@clisp.org>
53870
53871         Add support for Solaris 7..10 ACLs.
53872         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53873         declarations.
53874         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53875         functions.
53876         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53877         * lib/set-mode-acl.c (qset_acl): Likewise.
53878         * lib/copy-acl.c (qcopy_acl): Likewise.
53879
53880 2008-06-08  Bruno Haible  <bruno@clisp.org>
53881
53882         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53883         declaration.
53884         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53885         (acl_access_nontrivial): Remove MacOS X case.
53886         (file_has_acl): Use acl_extended_nontrivial.
53887         * lib/copy-acl.c (qcopy_acl): Likewise.
53888
53889 2008-06-08  Bruno Haible  <bruno@clisp.org>
53890
53891         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53892
53893 2008-06-08  Jim Meyering  <meyering@redhat.com>
53894
53895         * modules/acl (Maintainer): Add Bruno Haible.
53896
53897 2008-06-07  Bruno Haible  <bruno@clisp.org>
53898
53899         Improve support for Tru64 ACLs.
53900         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53901         ACL on OSF/1.
53902
53903 2008-06-07  Bruno Haible  <bruno@clisp.org>
53904
53905         Add support for MacOS X ACLs.
53906         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53907         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53908         * lib/set-mode-acl.c (qset_acl): Likewise.
53909         * lib/copy-acl.c (qcopy_acl): Likewise.
53910
53911 2008-06-07  Bruno Haible  <bruno@clisp.org>
53912
53913         Fix memory leak introduced on 2008-05-22.
53914         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53915         use.
53916
53917 2008-06-07  Bruno Haible  <bruno@clisp.org>
53918
53919         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53920         to construct an empty ACL.
53921
53922 2008-06-07  Bruno Haible  <bruno@clisp.org>
53923
53924         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53925         precisely.
53926         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53927
53928 2008-06-07  Bruno Haible  <bruno@clisp.org>
53929
53930         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53931         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53932
53933 2008-06-07  Bruno Haible  <bruno@clisp.org>
53934
53935         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53936         regardless of POSIX.
53937         * doc/posix-functions/_longjmp.texi: Likewise.
53938         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53939         SystemV platform in this case.
53940
53941 2008-06-06  Eric Blake  <ebb9@byu.net>
53942
53943         Document abort() bugs.
53944         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53945
53946         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53947         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53948         sigsetjmp.
53949         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53950         siglongjmp, but only as a macro.
53951         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53952         is obsolete.
53953         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53954
53955         Tweak documentation to cover cygwin argz bugs.
53956         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53957         argz bug fix; no code change needed since no cygwin releases
53958         occurred between the last fix and the bug being tested.
53959         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53960         module and recently fixed cygwin bugs.
53961         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53962         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53963         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53964         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53965         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53966         Likewise.
53967         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53968         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53969         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53970         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53971         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53972         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53973         Likewise.
53974
53975         Avoid gcc warning on cygwin.
53976         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53977         !ACL_NO_TRIVIAL]: Avoid unused variable.
53978
53979 2008-06-05  Eric Blake  <ebb9@byu.net>
53980
53981         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53982         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53983         git-version-gen fails to come up with a version.
53984         Reported by Simon Josefsson.
53985
53986 2008-06-05  Jim Meyering  <meyering@redhat.com>
53987             Paul Eggert  <eggert@cs.ucla.edu>
53988
53989         utimens.c: work around a probable Linux kernel bug
53990         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53991         appears to be a kernel bug that causes utimensat to return 280
53992         instead of 0, indicating success.
53993
53994 2008-06-04  Bruno Haible  <bruno@clisp.org>
53995
53996         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53997         2008-06-01 commit.
53998
53999 2008-06-04  Bruno Haible  <bruno@clisp.org>
54000
54001         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54002         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54003         (file_has_acl): Use it. Save errno afterwards.
54004         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54005
54006 2008-06-03  Bruno Haible  <bruno@clisp.org>
54007
54008         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54009         draft code. Simplify #ifs.
54010         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54011         Put Solaris code after POSIX-draft code. Fix comments regarding
54012         Solaris 10, HP-UX. Mention Cygwin.
54013         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54014
54015 2008-06-03  Eric Blake  <ebb9@byu.net>
54016
54017         Provide fallback for older kernels.
54018         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54019         Provide runtime fallback if kernel lacks support.
54020         Reported by Mike Frysinger.
54021
54022 2008-06-02  Bruno Haible  <bruno@clisp.org>
54023
54024         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54025         it exists.
54026
54027 2008-06-02  Bruno Haible  <bruno@clisp.org>
54028
54029         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54030         * lib/copy-acl.c (qcopy_acl): Update comment.
54031
54032 2008-06-02  Bruno Haible  <bruno@clisp.org>
54033
54034         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54035         like ACL APIs.
54036
54037 2008-06-02  Bruno Haible  <bruno@clisp.org>
54038
54039         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54040         * tests/test-set-mode-acl.sh: Likewise.
54041         * tests/test-copy-acl.sh: Likewise.
54042         * tests/test-copy-file.sh: Likewise.
54043
54044 2008-06-02  Bruno Haible  <bruno@clisp.org>
54045
54046         * tests/test-file-has-acl.sh: Remove unused code.
54047
54048 2008-06-01  Bruno Haible  <bruno@clisp.org>
54049
54050         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54051         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54052         messages.
54053         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54054
54055 2008-06-01  Bruno Haible  <bruno@clisp.org>
54056
54057         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54058         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54059         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54060         APIs.
54061         * modules/acl-tests (configure.ac): Remove tests now contained in
54062         m4/acl.m4.
54063
54064 2008-06-02  Jim Meyering  <meyering@redhat.com>
54065
54066         announce-gen: use a better key-server host name
54067         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54068         it may be more consistently reliable.  Suggested by Werner Koch
54069         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54070
54071 2008-06-01  Bruno Haible  <bruno@clisp.org>
54072
54073         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54074         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54075
54076 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54077
54078         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54079
54080 2008-06-01  Bruno Haible  <bruno@clisp.org>
54081
54082         New ACL tests.
54083         * tests/test-file-has-acl.sh: New file.
54084         * tests/test-file-has-acl.c: New file.
54085         * tests/test-set-mode-acl.sh: New file.
54086         * tests/test-set-mode-acl.c: New file.
54087         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54088         * tests/test-copy-acl.c: New file.
54089         * modules/acl-tests: New file, based on modules/copy-file-tests.
54090         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54091         (Depends-on): Add acl-tests.
54092         (configure.ac): Remove checks.
54093         (Makefile.am): Don't create test-sameacls program here any more.
54094
54095 2008-06-01  Bruno Haible  <bruno@clisp.org>
54096
54097         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54098         * tests/test-sameacls.c: Include progname.h.
54099         (main): Invoke set_program_name. Portability fixes for MacOS X,
54100         Solaris, HP-UX.
54101
54102 2008-06-01  Bruno Haible  <bruno@clisp.org>
54103
54104         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54105         function.
54106         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54107
54108 2008-06-01  Bruno Haible  <bruno@clisp.org>
54109
54110         * modules/rpmatch (Depends-on): Add strdup.
54111
54112 2008-06-01  Bruno Haible  <bruno@clisp.org>
54113
54114         * lib/pipe.c: Include unistd-safer.h.
54115         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54116         * modules/pipe (Depends-on): Add unistd-safer.
54117
54118 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54119
54120         * modules/autobuild (configure.ac): Call AB_INIT.
54121
54122 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54123
54124         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54125         Suggested by Bruno Haible <bruno@clisp.org>.
54126
54127 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54128
54129         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54130         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54131         <bruno@clisp.org>.
54132
54133 2008-05-29  Eric Blake  <ebb9@byu.net>
54134
54135         Prefer new POSIX 200x interfaces over futimesat.
54136         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54137         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54138         when available.
54139         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54140
54141 2008-05-28  Bruno Haible  <bruno@clisp.org>
54142
54143         * modules/stpcpy (License): Change to LGPLv2+.
54144         Requested by David Lutterkort <dlutter@redhat.com>.
54145
54146 2008-05-27  Bruno Haible  <bruno@clisp.org>
54147
54148         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54149         current mingw.
54150         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54151
54152 2008-05-27  Bruno Haible  <bruno@clisp.org>
54153
54154         * modules/iconv_open (Link): New section, from module 'iconv'.
54155         * modules/striconv (Link): Likewise.
54156         * modules/striconveh (Link): Likewise.
54157         * modules/xstriconv (Link): Likewise.
54158         * modules/unicodeio (Link): Likewise.
54159         * modules/propername (Link): Likewise.
54160         Reported by Jim Meyering.
54161
54162 2008-05-26  Jim Meyering  <meyering@redhat.com>
54163
54164         sha256: do not artificially restrict buffer length to be < 2^32
54165         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54166         uint32_t to size_t.
54167         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54168         to match.
54169
54170         avoid unaligned access errors, e.g., on sparc
54171         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54172         direct access through a possibly-unaligned uint64* pointer.
54173         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54174         direct access through a possibly-unaligned uint32* pointer.
54175         Prompted by this patch from Tom "spot" Callaway:
54176         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54177
54178         sha512.c: fix typo in comment
54179         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54180
54181 2008-05-25  Bruno Haible  <bruno@clisp.org>
54182
54183         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54184         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54185         (Makefile.am): Update lib_SOURCES.
54186
54187 2008-05-25  Bruno Haible  <bruno@clisp.org>
54188
54189         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54190
54191 2008-05-25  Jim Meyering  <meyering@redhat.com>
54192
54193         useless-if-before-free: freed expr may have white-space differences
54194         * build-aux/useless-if-before-free: Recognize cases in which the
54195         freed expression differs from the tested one in embedded white
54196         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54197         $1 was used, so we can't make any regexp shy.  Improved tests now
54198         detect this.
54199
54200         useless-if-before-free: accept white space in the expression.
54201         * build-aux/useless-if-before-free: For now, any white space
54202         in the expression must be identical in the free argument.
54203
54204         useless-if-before-free: efficiency tweak
54205         * build-aux/useless-if-before-free: Make the expression-matching
54206         regexp "shy".
54207         Make the *outer* regexp shy, not the expr-matching one.
54208
54209         update code-in-comment to accept cast of free arg
54210         * build-aux/useless-if-before-free: Update regexp.
54211
54212 2008-05-25  Bruno Haible  <bruno@clisp.org>
54213
54214         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54215         * modules/copy-file-tests (Files, Makefile.am): Update.
54216         * tests/test-copy-file.c (func_test_copy): Update.
54217
54218 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54219
54220         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54221
54222 2008-05-23  Bruno Haible  <bruno@clisp.org>
54223
54224         Improve support for ACLs on OSF/1.
54225         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54226         Remove fallback for unknown flavors of ACLs.
54227
54228 2008-05-22  Bruno Haible  <bruno@clisp.org>
54229
54230         Add support for ACLs on OSF/1.
54231         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54232         replacements.
54233         (acl_free_text): New macro fallback.
54234         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54235         acl_free.
54236         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54237         acl_free_text function. Require AC_C_INLINE.
54238
54239 2008-05-22  Bruno Haible  <bruno@clisp.org>
54240
54241         Make copy_acl work on MacOS X 10.5.
54242         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54243         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54244         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54245         If MODE_INSIDE_ACL, don't assume that every system has the same text
54246         representation for ACLs as FreeBSD.
54247         * lib/copy-acl.c (copy_acl): Add support for platforms with
54248         !MODE_INSIDE_ACL.
54249         * lib/file-has-acl.c (file_has_acl): Likewise.
54250         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54251         FreeBSD, MacOS X, or IRIX, respectively.
54252
54253 2008-05-22  Bruno Haible  <bruno@clisp.org>
54254
54255         * lib/acl.h: Don't include <sys/acl.h>.
54256         (GETACLCNT): Move fallback to lib/acl-internal.h.
54257         * lib/acl-internal.h: Include <sys/acl.h> here.
54258         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54259
54260 2008-05-22  Bruno Haible  <bruno@clisp.org>
54261
54262         Split off copy_acl function to separate file.
54263         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54264         * lib/acl.c (copy_acl): Moved function to separate file.
54265         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54266         * modules/acl (Files): Add lib/copy-acl.c.
54267         (Makefiles.am): Augment lib_SOURCES.
54268
54269 2008-05-22  Bruno Haible  <bruno@clisp.org>
54270
54271         * modules/copy-file-tests: New file.
54272         * tests/test-copy-file.sh: New file.
54273         * tests/test-copy-file.c: New file.
54274         * tests/test-copy-file-sameacls.c: New file.
54275
54276 2008-05-22  Eric Blake  <ebb9@byu.net>
54277
54278         Avoid gcc warning.
54279         * tests/test-memcmp.c (main): Pass NULL indirectly.
54280
54281 2008-05-21  Bruno Haible  <bruno@clisp.org>
54282
54283         Add reference doc about ACLs.
54284         * doc/acl-resources.txt: New file.
54285         * doc/acl-cygwin.txt: New file.
54286
54287 2008-05-21  Bruno Haible  <bruno@clisp.org>
54288
54289         Avoid one more warning from gcc.
54290         * lib/vasnprintf.c (IF_LINT): Update comments.
54291         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54292
54293 2008-05-21  Jim Meyering  <meyering@redhat.com>
54294
54295         avoid a warning from gcc
54296         * lib/vasnprintf.c (IF_LINT): Define.
54297         (scale10_round_decimal_long_double):
54298         Use it to avoid a "may be used uninitialized" warning.
54299         (scale10_round_decimal_double): Likewise.
54300
54301 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54302
54303         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54304         declared.
54305
54306 2008-05-20  Bruno Haible  <bruno@clisp.org>
54307
54308         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54309         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54310
54311 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54312
54313         * modules/memcmp-tests: New file.
54314         * tests/test-memcmp.c: New file.
54315
54316 2008-05-19  Bruno Haible  <bruno@clisp.org>
54317
54318         * modules/propername (Notice, configure.ac): Put quoted "..." into
54319         --keyword option.
54320         * lib/propername.h: Update comments accordingly.
54321         Reported by Eric Blake.
54322
54323 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54324
54325         * modules/getpass-gnu (Depends-on): Add fseeko.
54326
54327 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54328
54329         * modules/base64-tests: New file.
54330
54331 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54332
54333         * lib/base64.c (base64_decode_ctx): If a decode context structure
54334         was passed in use it to ignore newlines.  If a context structure
54335         was _not_ passed in, continue to treat newlines as garbage (this
54336         is the historical behavior).  Formerly base64_decode.
54337         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54338         takes a decode context structure.
54339         * lib/base64.h (base64_decode): Macro for four-argument calls.
54340         (base64_decode_alloc): Likewise.
54341         * lib/base64.c (base64_decode_ctx): If a decode context structure
54342         was passed in use it to ignore newlines.  If a context structure
54343         was _not_ passed in, continue to treat newlines as garbage (this
54344         is the historical behavior).  Formerly base64_decode.
54345         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54346         takes a decode context structure.
54347         * lib/base64.h (base64_decode): Macro for four-argument calls.
54348         (base64_decode_alloc): Likewise.
54349
54350 2008-05-19  Jim Meyering  <meyering@redhat.com>
54351
54352         avoid a warning from gcc
54353         * lib/trim.c (IF_LINT): Define.
54354         (trim2): Use it to avoid a "may be used uninitialized" warning.
54355
54356         Fix doc typo.
54357         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54358
54359 2008-05-19  Bruno Haible  <bruno@clisp.org>
54360
54361         * doc/glibc-functions/getpass.texi: Document limits of other
54362         implementations.
54363
54364 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54365             Bruno Haible <bruno@clisp.org>
54366
54367         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54368
54369 2008-05-18  Bruno Haible  <bruno@clisp.org>
54370
54371         * modules/propername: New file, from GNU gettext.
54372         * lib/propername.h: New file, from GNU gettext.
54373         * lib/propername.c: New file, from GNU gettext.
54374         * MODULES.html.sh (Internationalization functions): Add propername.
54375
54376 2008-05-16  Jim Meyering  <meyering@redhat.com>
54377             Bruno Haible  <bruno@clisp.org>
54378
54379         Avoid some warnings from "gcc -Wshadow".
54380         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54381
54382 2008-05-15  Eric Blake  <ebb9@byu.net>
54383
54384         Extend previous patch to cygwin 1.7.0.
54385         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54386         fast implementation in cygwin >= 1.7.0.
54387         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54388         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54389
54390 2008-05-15  Bruno Haible  <bruno@clisp.org>
54391
54392         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54393         implementation in glibc >= 2.9.
54394         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54396
54397 2008-05-15  Bruno Haible  <bruno@clisp.org>
54398
54399         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54400         (Unicode string functions): Add unilbrk/*.
54401         Reported by Karl Berry.
54402
54403 2008-05-15  Eric Blake  <ebb9@byu.net>
54404
54405         Fix violation of <stdbool.h> replacement in regex.
54406         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54407         * lib/regexec.c (re_search_internal): Likewise.
54408         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54409
54410 2008-05-15  Jim Meyering  <meyering@redhat.com>
54411
54412         avoid distracting test output when git or cvs is not found
54413         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54414         * tests/test-vc-list-files-git.sh: Likewise.
54415
54416 2008-05-15  Eric Blake  <ebb9@byu.net>
54417
54418         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54419         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54420         glibc version.
54421         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54422         * doc/posix-functions/strstr.texi (strstr): Likewise.
54423         * lib/str-two-way.h (MAX): Sychronize with glibc.
54424
54425 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54426
54427         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54428         opr.ctx_type.
54429         (calc_first): Initialize constraint field.
54430         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54431         Fix grammar.
54432         (duplicate_node): Merge constraint field for all node types.
54433         (calc_eclosure_iter): Look at constraint field for all node types.
54434         * lib/regex_internal.c (create_cd_newstate): Don't look at
54435         opr.ctx_type.
54436
54437 2008-05-14  Bruno Haible  <bruno@clisp.org>
54438
54439         Help GCC to do better code generation.
54440         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54441         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54442         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54443         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54444         Declare with attribute 'malloc' if supported.
54445
54446 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54447
54448         use "echo STR|wc -c" rather than unportable "expr length STR"
54449         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54450         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54451
54452 2008-05-14  Jim Meyering  <meyering@redhat.com>
54453
54454         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54455         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54456         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54457         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54458         via Collin Lasse.
54459
54460 2008-05-14  Eric Blake  <ebb9@byu.net>
54461
54462         Avoid quadratic growth in gl_LIBSOURCES.
54463         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54464         Suggested by Bruno Haible.
54465
54466         Test xmemdup0.
54467         * modules/xmemdup0-tests: New file.
54468         * tests/test-xmemdup0.c: Likewise.
54469
54470 2008-05-13  Eric Blake  <ebb9@byu.net>
54471
54472         Split xmemdup0 into its own module.
54473         * modules/xmemdup0: New file.
54474         * lib/xmemdup0.h: Likewise.
54475         * lib/xmemdup0.c: Likewise.
54476         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54477         * lib/xalloc.h (xmemdup0): Remove.
54478         * lib/xmalloc.c (xmemdup0): Likewise.
54479
54480 2008-05-13  Eric Blake  <ebb9@byu.net>
54481             Bruno Haible  <bruno@clisp.org>
54482
54483         Reduce number of forks required during autoconf.
54484         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54485         and gl_LIBSOURCES_DIR.
54486         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54487         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54488         m4_syscmd per file.
54489         <m4_foreach_w>: Move...
54490         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54491
54492 2008-05-13  Eric Blake  <ebb9@byu.net>
54493
54494         * gnulib-tool: Fix various comment typos.
54495
54496 2008-05-12  Bruno Haible  <bruno@clisp.org>
54497
54498         Tailor the linebreaking algorithm.
54499         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54500
54501 2008-05-12  Bruno Haible  <bruno@clisp.org>
54502
54503         Update to Unicode 5.0.0.
54504         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54505         LBP_JV, LBP_JT. Redistribute values.
54506         (unilbrk_table): Change size.
54507         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54508         Unicode TR#14 rev. 22.
54509         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54510         LBP_JV, LBP_JT. Redistribute values.
54511         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54512         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54513         Update.
54514         * lib/unilbrk/lbrkprop1.h: Regenerated.
54515         * lib/unilbrk/lbrkprop2.h: Regenerated.
54516         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54517         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54518         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54519         Likewise.
54520         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54521         Likewise.
54522         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54523         result.
54524         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54525         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54526         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54527         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54528         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54529         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54530
54531 2008-05-11  Bruno Haible  <bruno@clisp.org>
54532
54533         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54534
54535 2008-05-11  Bruno Haible  <bruno@clisp.org>
54536
54537         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54538         * modules/unilbrk/gen-lbrk: New file.
54539
54540 2008-05-11  Bruno Haible  <bruno@clisp.org>
54541
54542         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54543         * m4/sha512.m4 (gl_SHA512): Likewise.
54544
54545 2008-05-11  Jim Meyering  <meyering@redhat.com>
54546
54547         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54548         * modules/crypto/sha256: New file.
54549         * modules/crypto/sha512: Likewise.
54550         * lib/sha256.c: Likewise.
54551         * lib/sha256.h: Likewise.
54552         * lib/sha512.c: Likewise.
54553         * lib/sha512.h: Likewise.
54554         * lib/u64.h: Likewise.
54555         * m4/sha256.m4: Likewise.
54556         * m4/sha512.m4: Likewise.
54557         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54558
54559 2008-05-10  Bruno Haible  <bruno@clisp.org>
54560
54561         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54562         (Input/Output <stdio.h>): Add xprintf.
54563         (Signal handling <signal.h>): Add strsignal.
54564         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54565         (Core language properties): Add func.
54566         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54567         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54568         strings.
54569         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54570         (Input/output): New section.
54571         (File system functions): Add openat-die, stat-macros.
54572         (Networking functions): Add sockets.
54573         (Unicode string functions): Add unictype/*.
54574         (Support for building libraries and executables): Add gperf.
54575         (Support for building documentation): Add agpl-3.0.
54576         (Misc): Add nocrash.
54577
54578 2008-05-10  Bruno Haible  <bruno@clisp.org>
54579
54580         * modules/unictype/gen-ctype: New file.
54581
54582 2008-05-10  Jim Meyering  <meyering@redhat.com>
54583
54584         Make chdir-safer.c more efficient on a system with no symlinks.
54585         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54586         also if ELOOP is zero.  Suggested by Bruno Haible.
54587
54588         Make chdir-safer.c slightly safer.
54589         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54590         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54591
54592         Avoid compile failure on systems without ELOOP (like mingw).
54593         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54594         Reported by Bruno Haible.
54595
54596 2008-05-10  Bruno Haible  <bruno@clisp.org>
54597
54598         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54599         (is_utf8_encoding): Use a case-insensitive comparison.
54600         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54601         streq.
54602
54603 2008-05-10  Bruno Haible  <bruno@clisp.org>
54604
54605         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54606         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54607         * lib/unilbrk/ulc-common.h (iconv_string_length,
54608         iconv_string_keeping_offsets): Remove declarations.
54609         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54610         Don't include <iconv.h>, streq.h, xsize.h.
54611         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54612         conversion.
54613         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54614         <iconv.h>, streq.h, xsize.h.
54615         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54616         conversion.
54617         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54618         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54619         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54620         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54621
54622 2008-05-10  Bruno Haible  <bruno@clisp.org>
54623
54624         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54625         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54626
54627         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54628         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54629
54630         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54631         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54632
54633         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54634         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54635
54636         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54637         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54638
54639         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54640         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54641
54642         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54643         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54644
54645         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54646         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54647
54648 2008-05-10  Bruno Haible  <bruno@clisp.org>
54649
54650         Split up 'linebreak' module.
54651         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54652         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54653         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54654         modifications.
54655         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54656         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54657         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54658         lib/linebreak.c.
54659         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54660         lib/linebreak.c.
54661         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54662         lib/linebreak.c.
54663         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54664         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54665         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54666         lib/linebreak.c.
54667         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54668         lib/linebreak.c.
54669         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54670         lib/linebreak.c.
54671         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54672         lib/linebreak.c.
54673         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54674         lib/linebreak.c.
54675         * modules/unilbrk/base: New file.
54676         * modules/unilbrk/tables: New file.
54677         * modules/unilbrk/u8-possible-linebreaks: New file.
54678         * modules/unilbrk/u16-possible-linebreaks: New file.
54679         * modules/unilbrk/u32-possible-linebreaks: New file.
54680         * modules/unilbrk/ulc-common: New file.
54681         * modules/unilbrk/ulc-possible-linebreaks: New file.
54682         * modules/unilbrk/u8-width-linebreaks: New file.
54683         * modules/unilbrk/u16-width-linebreaks: New file.
54684         * modules/unilbrk/u32-width-linebreaks: New file.
54685         * modules/unilbrk/ulc-width-linebreaks: New file.
54686         * lib/linebreak.h: Remove file.
54687         * lib/linebreak.c: Remove file.
54688         * m4/linebreak.m4: Remove file.
54689         * modules/linebreak: Remove file.
54690         * NEWS: Mention the changes.
54691
54692 2008-05-09  Eric Blake  <ebb9@byu.net>
54693
54694         Add xmemdup0.
54695         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54696         implementation.
54697         * lib/xmalloc.c (xmemdup0): New C implementation.
54698
54699 2008-05-08  Bruno Haible  <bruno@clisp.org>
54700
54701         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54702
54703 2008-05-07  Eric Blake  <ebb9@byu.net>
54704
54705         Support cross-compilation of <wctype.h>.
54706         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54707         AC_CACHE_CHECK.
54708
54709 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54710
54711         * build-aux/vc-list-files: Add support for bzr.
54712
54713 2008-05-03  Jim Meyering  <meyering@redhat.com>
54714
54715         avoid failed assertion with tight malloc
54716         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54717
54718 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54719
54720         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54721         are needed from arpa/inet.h.
54722         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54723         Reported by Bruno Haible.
54724
54725 2008-05-02  Jim Meyering  <meyering@redhat.com>
54726
54727         avoid compilation error on FreeBSD 6
54728         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54729
54730 2008-05-01  Jim Meyering  <meyering@redhat.com>
54731
54732         useless-if-before-free: correct --help's exit status description
54733         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54734         for one or more matches, etc.  Reported by Bruno Haible.
54735
54736         vc-list-files: make the stand-alone gnulib test work
54737         * modules/vc-list-files-tests (configure.ac):
54738         Define and AC_SUBST abs_aux_dir.
54739         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54740         $(abs_top_srcdir) to each script and having each of them
54741         duplicate the work of setting PATH, set PATH here, using
54742         the new variable, abs_aux_dir instead.
54743         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54744         * tests/test-vc-list-files-git.sh: Likewise.
54745         Reported by Bruno Haible.
54746
54747 2008-05-01  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54750         reallocation. Rename 'done' to 'found_delimiter'.
54751
54752 2008-05-01  Jim Meyering  <meyering@redhat.com>
54753
54754         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54755         * build-aux/vc-list-files: Use `...`, not $(...).
54756
54757 2008-04-30  Jim Meyering  <meyering@redhat.com>
54758
54759         add tests for vc-list-files
54760         * modules/vc-list-files-tests: New module.
54761         * tests/test-vc-list-files-cvs.sh: New file.
54762         * tests/test-vc-list-files-git.sh: New file.
54763
54764         avoid a warning from gcc
54765         * lib/getndelim2.c (IF_LINT): Define.
54766         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54767
54768         vc-list-files: work properly with build-aux/cvsu, too
54769         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54770         to all cvs-based clauses.
54771
54772         vc-list-files: work properly in the CVS+awk case, too
54773         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54774
54775         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54776         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54777         take more than one file argument, so .  Add quotes, just in case $dir
54778         ever contains a shell meta-character.  Prompted by Soren Hansen in
54779         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54780
54781 2008-04-29  Eric Blake  <ebb9@byu.net>
54782
54783         Optimize getndelim2 to use block operations when possible.
54784         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54785         freadseek, and memchr2.
54786         * lib/getndelim2.c (getndelim2): Use them for block reads.
54787
54788 2008-04-29  Bruno Haible  <bruno@clisp.org>
54789
54790         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54791         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54792         * modules/inet_ntop (Depends-on): Add extensions.
54793         * modules/inet_pton (Depends-on): Likewise.
54794         Reported by Simon Josefsson.
54795
54796 2008-04-29  Jim Meyering  <meyering@redhat.com>
54797
54798         When the is more than one match in a block, match all of them.
54799         * build-aux/useless-if-before-free: Iterate through each block
54800         until there are no more matches.
54801
54802         Fix broken useless-if-before-free script.
54803         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54804         the expression to match cast of argument to free-like function.
54805
54806 2008-04-29  Eric Blake  <ebb9@byu.net>
54807
54808         Use new header.
54809         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54810
54811 2008-04-29  Jim Meyering  <meyering@redhat.com>
54812
54813         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54814         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54815         by gnulib to exist and to declare e.g., inet_ntop.
54816         Don't include "inet_ntop.h", now removed.
54817
54818         * m4/arpa_inet_h.m4: Remove trailing blanks.
54819
54820 2008-04-29  Eric Blake  <ebb9@byu.net>
54821
54822         Silence valgrind on safe reads beyond potential array bounds.
54823         * lib/rawmemchr.valgrind: New file.
54824         * lib/strchrnul.valgrind: Likewise.
54825         * modules/rawmemchr (Files): Distribute new file.
54826         * modules/strchrnul (Files): Likewise.
54827         Suggested by Bruno Haible.
54828
54829 2008-04-29  Bruno Haible  <bruno@clisp.org>
54830
54831         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54832         (inet_ntop, inet_pton): Change portability warning's wording.
54833         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54834         Invoke gl_CHECK_NEXT_HEADERS.
54835         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54836         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54837         set ARPA_INET_H.
54838         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54839         * modules/arpa_inet (Description): No longer only for systems that
54840         lack it.
54841         (Depends-on): Add include_next.
54842         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54843         HAVE_ARPA_INET_H.
54844
54845 2008-04-29  Jim Meyering  <meyering@redhat.com>
54846
54847         * modules/mkdir (License): Re-license as LGPLv2+.
54848
54849 2008-04-29  Bruno Haible  <bruno@clisp.org>
54850
54851         * modules/rawmemchr (Maintainer): Set to Eric.
54852         * modules/strchrnul (Maintainer): Likewise.
54853
54854 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54855
54856         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54857         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54858
54859         * modules/arpa_inet (arpa/inet.h): Use them.
54860
54861 2008-04-28  Eric Blake  <ebb9@byu.net>
54862
54863         Test getndelim2.
54864         * modules/getndelim2-tests: New file.
54865         * tests/test-getndelim2.c: Likewise.
54866         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54867         stream.
54868         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54869
54870         * MODULES.html.sh: Document new module.
54871
54872 2008-04-20  Bruno Haible  <bruno@clisp.org>
54873
54874         * lib/c-stack.c (die): Use raise.
54875         * modules/c-stack (Depends-on): Add raise.
54876
54877 2008-04-28  Bruno Haible  <bruno@clisp.org>
54878
54879         Expect rpmatch to be declared.
54880         * lib/yesno.c (rpmatch): Remove declaration.
54881
54882         Declare rpmatch.
54883         * lib/stdlib.in.h (rpmatch): New declaration.
54884         * lib/rpmatch.c: Include <stdlib.h> first.
54885         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54886         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54888         HAVE_RPMATCH.
54889         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54890         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54891         (Include): Set to <stdlib.h>.
54892         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54893         HAVE_RPMATCH.
54894         * NEWS: Document the change.
54895
54896 2008-04-28  Bruno Haible  <bruno@clisp.org>
54897
54898         Change rpmatch to use nl_langinfo when appropriate.
54899         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54900         (N_): New macro.
54901         (localized_pattern): New function/macro.
54902         (try): Remove match, nomatch arguments. Copy the pattern into safe
54903         memory before caching it.
54904         (rpmatch): Use localized_pattern. Add translator comments.
54905         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54906         Suggested by Eric Blake.
54907         * modules/rpmatch (Depends-on): Add stdbool.
54908
54909 2008-04-28  Eric Blake  <ebb9@byu.net>
54910
54911         Add rawmemchr module, matching glibc.
54912         * modules/string (Makefile.am): New indicator.
54913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54914         * lib/string.in.h (rawmemchr): Declare when appropriate.
54915         * modules/rawmemchr: New file.
54916         * m4/rawmemchr.m4: Likewise.
54917         * lib/rawmemchr.c: Likewise.
54918         * modules/rawmemchr-tests: Likewise.
54919         * tests/test-rawmemchr.c: Likewise.
54920         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54921         module.
54922         * modules/strchrnul (Depends-on): Add rawmemchr.
54923         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54924
54925         Whitespace cleanup.
54926         * tests/test-strchrnul.c: Reindent.
54927         * lib/strchrnul.c: Likewise.
54928
54929         Optimize and test strchrnul.
54930         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54931         * modules/strchrnul-tests: New file.
54932         * tests/test-strchrnul.c: Likewise.
54933
54934         Remove intprops dependency.
54935         * modules/memchr (Depends-on): Remove intprops.
54936         * modules/memrchr (Depends-on): Likewise.
54937         * modules/memchr2 (Depends-on): Likewise.
54938         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54939         * lib/memrchr.c (__memrchr): Likewise.
54940         * lib/memrchr2.c (memchr2): Likewise.
54941         Reported by Simon Josefsson.
54942
54943 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54944
54945         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54946         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54947
54948 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54949
54950         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54951
54952         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54953
54954         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54955
54956         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54957         declarations.
54958         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54959
54960         * m4/inet_pton.m4: Don't check for header files.
54961
54962         * m4/inet_ntop.m4: Don't check for header files.
54963
54964 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54965
54966         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54967         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54968         trigger for cygwin).
54969         Reported by Bruno Haible  <bruno@clisp.org>.
54970
54971 2008-04-28  Bruno Haible  <bruno@clisp.org>
54972
54973         * doc/posix-functions/strdup.texi: Mention mingw problem.
54974
54975 2008-04-27  Bruno Haible  <bruno@clisp.org>
54976
54977         * modules/stat-time-tests (Depends-on): Add sleep.
54978         * tests/test-stat-time.c (force_unlink): New function.
54979         (cleanup): Use it.
54980         (test_mtime): Remove the ctime related tests.
54981         (test_ctime): New function, containing the ctime related tests.
54982         (main): Call test_ctime, except on native Windows platforms.
54983
54984 2008-04-27  Bruno Haible  <bruno@clisp.org>
54985
54986         * lib/rpmatch.c (rpmatch): Add some comments.
54987         Reported by James Youngman <jay@gnu.org>.
54988
54989 2008-04-27  Bruno Haible  <bruno@clisp.org>
54990
54991         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54992         quiet NaNs.
54993
54994 2008-04-27  Bruno Haible  <bruno@clisp.org>
54995
54996         Make test-yesno.sh work on mingw.
54997         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54998         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54999         (main): Set stdin to binary mode.
55000         * modules/yesno-tests (Depends-on): Add binary-io.
55001
55002 2008-04-27  Bruno Haible  <bruno@clisp.org>
55003
55004         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55005         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55006         argument that lie outside the IEEE 854 domain.
55007         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55008         (gl_ISFINITE): Use it.
55009         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55010
55011 2008-04-27  Bruno Haible  <bruno@clisp.org>
55012
55013         Allow local renaming in config.h.
55014         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55015
55016 2008-04-27  Bruno Haible  <bruno@clisp.org>
55017
55018         * lib/memchr.c (__memchr): Change type of 'i'.
55019         * lib/memchr2.c (memchr2): Likewise.
55020
55021 2008-04-26  Eric Blake  <ebb9@byu.net>
55022         and Bruno Haible  <bruno@clisp.org>
55023
55024         Optimize and test memrchr.
55025         * modules/memrchr (Depends-on): Add intprops.
55026         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55027         * modules/memrchr-tests: New file.
55028         * tests/test-memrchr.c: New file.
55029
55030 2008-04-26  Bruno Haible  <bruno@clisp.org>
55031
55032         Add tentative support for DragonFly BSD.
55033         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55034         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55035         fp.
55036         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55037         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55038         * lib/fpurge.c (fpurge): Likewise.
55039         * lib/freadable.c (freaadable): Likewise.
55040         * lib/freadahead.c (freadahead): Likewise.
55041         * lib/freading.c (freading): Likewise.
55042         * lib/freadptr.c (freadptr): Likewise.
55043         * lib/freadseek.c (freadptrinc): Likewise.
55044         * lib/fseeko.c (fseeko): Likewise.
55045         * lib/fseterr.c (fseterr): Likewise.
55046         * lib/fwritable.c (fwritable): Likewise.
55047         * lib/fwriting.c (fwriting): Likewise.
55048
55049 2008-04-26  Bruno Haible  <bruno@clisp.org>
55050
55051         * lib/stdio-impl.h: New file.
55052         * lib/fbufmode.c: Include stdio-impl.h.
55053         (fbufmode): Use fp_, remove redundant #defines.
55054         * lib/fflush.c: Include stdio-impl.h.
55055         (clear_ungetc_buffer): Remove redundant #defines.
55056         * lib/fpurge.c: Include stdio-impl.h.
55057         (fpurge): Remove redundant #defines.
55058         * lib/freadable.c: Include stdio-impl.h.
55059         (freadable): Remove redundant #defines.
55060         * lib/freadahead.c: Include stdio-impl.h.
55061         (freadahead): Remove redundant #defines.
55062         * lib/freading.c: Include stdio-impl.h.
55063         (freading): Remove redundant #defines.
55064         * lib/freadptr.c: Include stdio-impl.h.
55065         (freadptr): Remove redundant #defines.
55066         * lib/freadseek.c: Include stdio-impl.h.
55067         (freadptrinc): Remove redundant #defines.
55068         * lib/fseeko.c: Include stdio-impl.h.
55069         (rpl_fseeko): Remove redundant #defines.
55070         * lib/fseterr.c: Include stdio-impl.h.
55071         (fseterr): Remove redundant #defines.
55072         * lib/fwritable.c: Include stdio-impl.h.
55073         (fwritable: Remove redundant #defines.
55074         * lib/fwriting.c: Include stdio-impl.h.
55075         (fwriting): Remove redundant #defines.
55076         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55077         * modules/fflush (Files): Likewise.
55078         * modules/fpurge (Files): Likewise.
55079         * modules/freadable (Files): Likewise.
55080         * modules/freadahead (Files): Likewise.
55081         * modules/freading (Files): Likewise.
55082         * modules/freadptr (Files): Likewise.
55083         * modules/freadseek (Files): Likewise.
55084         * modules/fseeko (Files): Likewise.
55085         * modules/fseterr (Files): Likewise.
55086         * modules/fwritable (Files): Likewise.
55087         * modules/fwriting (Files): Likewise.
55088
55089 2008-04-26  Bruno Haible  <bruno@clisp.org>
55090
55091         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55092         restore_seek_optimization, update_fpos_cache): New functions, extracted
55093         from rpl_fflush.
55094         (rpl_fflush): Use them.
55095         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55096         (gl_REPLACE_FFLUSH): Use it.
55097
55098 2008-04-26  Bruno Haible  <bruno@clisp.org>
55099
55100         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55101         on Solaris.
55102         * tests/test-xstrtoimax.sh: Likewise.
55103         * tests/test-xstrtoumax.sh: Likewise.
55104         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55105
55106 2008-04-26  Bruno Haible  <bruno@clisp.org>
55107
55108         * modules/memchr-tests: New file.
55109         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55110
55111 2008-04-26  Eric Blake  <ebb9@byu.net>
55112             Bruno Haible  <bruno@clisp.org>
55113
55114         * lib/memchr.c: Include intprops.h.
55115         (__memchr): Optimize parallel detection of matching bytes. Rename local
55116         variables. Add explanatory comments.
55117
55118 2008-04-26  Bruno Haible  <bruno@clisp.org>
55119
55120         Fix module 'memchr', broken since 2000-10-28.
55121         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55122
55123 2008-04-26  Bruno Haible  <bruno@clisp.org>
55124
55125         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55126         comments.
55127
55128 2008-04-25  Eric Blake  <ebb9@byu.net>
55129
55130         Use native fstatat on cygwin 1.7.0.
55131         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55132         first.
55133
55134 2008-04-23  Eric Blake  <ebb9@byu.net>
55135
55136         Improve memchr2 performance.
55137         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55138         NUL bytes.
55139         * modules/memchr2 (Depends-on): Use intprops.h.
55140
55141 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55142
55143         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55144         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55145         <blp@cs.stanford.edu>.
55146
55147 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55148
55149         * lib/arpa_inet.in.h: New file.
55150
55151         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55152         (Makefile.am): Sed in substitute header file.
55153
55154         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55155         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55156
55157         * modules/inet_ntop (configure.ac): Use
55158         gl_ARPA_INET_MODULE_INDICATOR.
55159
55160         * modules/inet_pton (configure.ac): Use
55161         gl_ARPA_INET_MODULE_INDICATOR.
55162
55163 2008-04-22  Jim Meyering  <meyering@redhat.com>
55164
55165         * modules/verify (License): Re-license as LGPLv2+.
55166
55167 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55168
55169         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55170         parameter to void* as per POSIX standard (MinGW uses char*).
55171
55172 2008-04-21  Bruno Haible  <bruno@clisp.org>
55173
55174         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55175         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55176         Define to replacements if REPLACE_ISWCNTRL is 1.
55177         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55178         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55179         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55180         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55181         what it fixes.
55182         * doc/posix-functions/iswalpha.texi: Likewise.
55183         * doc/posix-functions/iswblank.texi: Likewise.
55184         * doc/posix-functions/iswcntrl.texi: Likewise.
55185         * doc/posix-functions/iswdigit.texi: Likewise.
55186         * doc/posix-functions/iswgraph.texi: Likewise.
55187         * doc/posix-functions/iswlower.texi: Likewise.
55188         * doc/posix-functions/iswprint.texi: Likewise.
55189         * doc/posix-functions/iswpunct.texi: Likewise.
55190         * doc/posix-functions/iswspace.texi: Likewise.
55191         * doc/posix-functions/iswupper.texi: Likewise.
55192         * doc/posix-functions/iswxdigit.texi: Likewise.
55193         Reported by Alain Guibert.
55194
55195 2008-04-21  Bruno Haible  <bruno@clisp.org>
55196
55197         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55198         Patch by Alain Guibert.
55199
55200 2008-04-21  Bruno Haible  <bruno@clisp.org>
55201
55202         Fix test failures on mingw.
55203         * tests/test-xstrtol.c (print_no_progname): New function.
55204         (main): Install it in error_print_progname hook.
55205         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55206         * tests/test-xstrtoimax.sh: Likewise.
55207         * tests/test-xstrtoumax.sh: Likewise.
55208
55209 2008-04-21  Bruno Haible  <bruno@clisp.org>
55210
55211         Fix test failure on mingw.
55212         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55213
55214 2008-04-21  Bruno Haible  <bruno@clisp.org>
55215
55216         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55217         Actually assign a value.
55218
55219 2008-04-20  Bruno Haible  <bruno@clisp.org>
55220
55221         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55222         take 2.
55223         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55224         'canonicalize-lgpl' module is also used.
55225         * lib/canonicalize-lgpl.c: Undo last change.
55226         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55227
55228 2008-04-20  Bruno Haible  <bruno@clisp.org>
55229
55230         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55231         config.h. Provide _mkdir based fallback for mingw.
55232         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55233         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55234         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55235         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55236         rather than defining mkdir in config.h.
55237         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55238         (gl_SYS_STAT_H_DEFAULTS): New macro.
55239         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55240         HAVE_IO_H any more.
55241         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55242         HAVE_DECL_MKDIR and HAVE_IO_H.
55243
55244 2008-04-20  Bruno Haible  <bruno@clisp.org>
55245
55246         * lib/isapipe.c: Port to native Windows platforms.
55247
55248 2008-04-20  Bruno Haible  <bruno@clisp.org>
55249
55250         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55251
55252 2008-04-21  Eric Blake  <ebb9@byu.net>
55253
55254         Work around preprocessors that don't handle UINTMAX_MAX.
55255         * lib/memchr2.c (memchr2): Avoid embedded #if.
55256         Reported by Alain Guibert, fix suggested by Bruno Haible.
55257
55258 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55259
55260         * doc/posix-functions/strftime.texi (strftime): Explain better
55261         Windows incompatibility.  Suggested by Micah Cowan
55262         <micah@cowan.name>.
55263
55264 2008-04-20  Bruno Haible  <bruno@clisp.org>
55265
55266         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55267         unistr/u8-mblen.
55268
55269 2008-04-20  Bruno Haible  <bruno@clisp.org>
55270
55271         Fix test failure on platforms with non-GNU iconv.
55272         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55273         (U_TO_U8): Use it, rather than u16_to_u8.
55274         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55275         units at the end of the input string.
55276         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55277
55278 2008-04-20  Bruno Haible  <bruno@clisp.org>
55279
55280         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55281         when the resulting length is 0.
55282         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55283
55284 2008-04-20  Bruno Haible  <bruno@clisp.org>
55285
55286         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55287         works.
55288         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55289
55290 2008-04-20  Bruno Haible  <bruno@clisp.org>
55291
55292         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55293         * modules/tsearch-tests (configure.ac): Test for initstate function.
55294
55295 2008-04-20  Bruno Haible  <bruno@clisp.org>
55296
55297         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55298         for nlink_t if missing.
55299         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55300
55301 2008-04-19  Bruno Haible  <bruno@clisp.org>
55302
55303         Work around snprintf bug on Linux libc5.
55304         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55305         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55306         gl_SNPRINTF_SIZE1.
55307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55308         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55309         that test failed.
55310         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55311         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55312         * modules/snprintf (Files): Add m4/printf.m4.
55313         * modules/vsnprintf (Files): Likewise.
55314         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55315         * doc/posix-functions/vsnprintf.texi: Likewise.
55316
55317 2008-04-19  Bruno Haible  <bruno@clisp.org>
55318
55319         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55320         from 0.0058 to less than 10^-7.
55321
55322 2008-04-19  Bruno Haible  <bruno@clisp.org>
55323
55324         Fix rounding when a precision is given.
55325         * lib/vasnprintf.c (is_borderline): New function.
55326         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55327         9...9x.
55328         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55329         %e, %g.
55330         * tests/test-vasprintf-posix.c (test_function): Likewise.
55331         * tests/test-snprintf-posix.h (test_function): Likewise.
55332         * tests/test-sprintf-posix.h (test_function): Likewise.
55333         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55334         * tests/test-printf-posix.h (test_function): Likewise.
55335         * tests/test-printf-posix.output: Update.
55336         Reported by John Darrington <john@darrington.wattle.id.au> via
55337         Ben Pfaff <blp@cs.stanford.edu>.
55338
55339 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55340
55341         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55342         Suggested by Bruno Haible <bruno@clisp.org>.
55343
55344 2008-04-17  Bruno Haible  <bruno@clisp.org>
55345
55346         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55347         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55348         implementation.
55349         Patch by Bruce Merry <bmerry@gmail.com>.
55350
55351 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55352
55353         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55354         doesn't work under Windows.
55355
55356 2008-04-16  Bruno Haible  <bruno@clisp.org>
55357
55358         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55359         New macros.
55360         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55361         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55362         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55363         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55364         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55365         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55366         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55367         macros.
55368         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55369         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55370         Northern Sotho, Uighur.
55371
55372 2008-04-16  Bruno Haible  <bruno@clisp.org>
55373
55374         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55375         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55376         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55377         Reported by Daniel Bergström <daniel@octocode.com>.
55378
55379 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55380             Bruno Haible  <bruno@clisp.org>
55381
55382         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55383         function.
55384         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55385         New functions, mostly extracted from gl_locale_name_default.
55386         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55387
55388 2008-04-16  Eric Blake  <ebb9@byu.net>
55389
55390         Adjust strtod detection to catch glibc 2.7 bug.
55391         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55392         Reported by John Gatewood Ham.
55393
55394 2008-04-16  Bruno Haible  <bruno@clisp.org>
55395
55396         Add tentative support for Linux libc5.
55397         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55398         * lib/fpurge.c (fpurge): Likewise.
55399         * lib/freadable.c (freadable): Likewise.
55400         * lib/freadahead.c (freadahead): Likewise.
55401         * lib/freading.c (freading): Likewise.
55402         * lib/freadptr.c (freadptr): Likewise.
55403         * lib/freadseek.c (freadptrinc): Likewise.
55404         * lib/fseeko.c (rpl_fseeko): Likewise.
55405         * lib/fseterr.c (fseterr): Likewise.
55406         * lib/fwritable.c (fwritable): Likewise.
55407         * lib/fwriting.c (fwriting): Likewise.
55408         Reported by Alain Guibert <alguibert+bts@free.fr>.
55409
55410 2008-04-15  Bruno Haible  <bruno@clisp.org>
55411
55412         * modules/mathl (configure.ac): Define module indicator.
55413
55414 2008-04-15  Bruno Haible  <bruno@clisp.org>
55415
55416         * lib/logl.c (logl): Remove unused variables.
55417
55418 2008-04-15  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55421         fails.
55422
55423 2008-04-15  Bruno Haible  <bruno@clisp.org>
55424
55425         * lib/trim.c (trim2): Fix argument of isspace() macro.
55426
55427 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55428
55429         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55430         to 0.
55431         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55432
55433 2008-04-14  Bruno Haible  <bruno@clisp.org>
55434
55435         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55436         AC_LANG_PROGRAM argument.
55437         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55438         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55439         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55440         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55441         * m4/math_h.m4 (gl_MATH_H): Likewise.
55442         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55443         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55444         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55445         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55446         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55447         * m4/regex.m4 (gl_REGEX): Likewise.
55448         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55449         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55451         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55452         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55453         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55454         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55455         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55456
55457 2008-04-14  Jim Meyering  <meyering@redhat.com>
55458
55459         test-strtod: fix typos: s/abs/fabs/
55460         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55461
55462 2008-04-13  Bruno Haible  <bruno@clisp.org>
55463
55464         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55465         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55466         module is also used and while not building the reloc-wrapper.
55467
55468 2008-04-13  Bruno Haible  <bruno@clisp.org>
55469
55470         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55471
55472 2008-04-13  Bruno Haible  <bruno@clisp.org>
55473
55474         Fix AIX compilation failure introduced on 2008-04-02.
55475         * tests/test-frexp.c (exp): Undefine before redefining.
55476         * tests/test-frexpl.c (exp): Likewise.
55477
55478 2008-04-13  Bruno Haible  <bruno@clisp.org>
55479
55480         Work around a HP-UX stdio bug.
55481         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55482         * tests/test-ftello.c (main): Likewise.
55483         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55484         * doc/posix-functions/ftello.texi: Likewise.
55485
55486 2008-04-13  Bruno Haible  <bruno@clisp.org>
55487
55488         Make test-signbit pass on HP-UX/hppa.
55489         * tests/test-signbit.c (minus_zerol): New variable.
55490         (test_signbitl): Use it.
55491
55492 2008-04-13  Bruno Haible  <bruno@clisp.org>
55493
55494         Make truncl work on OSF/1 4.0.
55495         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55496         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55497         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55499         HAVE_DECL_TRUNCL.
55500         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55501         HAVE_DECL_TRUNCL.
55502         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55503
55504 2008-04-13  Bruno Haible  <bruno@clisp.org>
55505
55506         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55507
55508 2008-04-13  Bruno Haible  <bruno@clisp.org>
55509
55510         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55511         expression, so as to avoid HP-UX 11 cc compiler bug.
55512
55513 2008-04-13  Bruno Haible  <bruno@clisp.org>
55514
55515         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55516
55517 2008-04-13  Bruno Haible  <bruno@clisp.org>
55518
55519         * lib/git-merge-changelog.c: Remove empty declaration outside of
55520         functions.
55521
55522 2008-04-13  Bruno Haible  <bruno@clisp.org>
55523
55524         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55525
55526 2008-04-13  Bruno Haible  <bruno@clisp.org>
55527
55528         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55529         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55531         also if it exists but lacks definitions of the SHUT_* macros.
55532         * modules/sys_socket (Description): Update.
55533         Reported by Elbert Pol <e.pol@chello.nl>.
55534
55535 2008-04-13  Bruno Haible  <bruno@clisp.org>
55536
55537         * lib/localcharset.c (OS2): Don't redefine if already defined.
55538         Reported by Elbert Pol <e.pol@chello.nl>.
55539
55540 2008-04-13  Bruno Haible  <bruno@clisp.org>
55541
55542         * lib/binary-io.h [__EMX__]: Include <io.h>.
55543         Reported by Elbert Pol <e.pol@chello.nl>.
55544
55545 2008-04-12  Bruno Haible  <bruno@clisp.org>
55546
55547         * lib/fpucw.h: Enable the definitions also for x86_64.
55548         Needed for NetBSD/x86_64.
55549         Reported by Thomas Klausner <tk@giga.or.at>.
55550
55551 2008-04-12  Bruno Haible  <bruno@clisp.org>
55552
55553         * tests/test-strtod.c: Include isnand.h.
55554         (main): Use isnand instead of isnan.
55555         Reported by Jim Meyering.
55556
55557 2008-04-12  Bruno Haible  <bruno@clisp.org>
55558
55559         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55560         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55561
55562 2008-04-12  Jim Meyering  <meyering@redhat.com>
55563
55564         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55565
55566 2008-04-12  Bruno Haible  <bruno@clisp.org>
55567
55568         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55569         Reported by Elbert Pol <e.pol@chello.nl>.
55570
55571 2008-04-12  Eric Blake  <ebb9@byu.net>
55572
55573         Work around Solaris 10 math.h bug.
55574         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55575         (gl_MATH_H_DEFAULTS): Set up default.
55576         * modules/math (Makefile.am): Replace new indicators.
55577         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55578         * tests/test-math.c (main): Test this.
55579         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55580         * doc/posix-headers/math.texi (math.h): Mention bug.
55581         Reported by Nelson H. F. Beebe and Jim Meyering.
55582
55583 2008-04-11  Bruno Haible  <bruno@clisp.org>
55584
55585         Adapt to future versions of Apple GCC.
55586         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55587         Reported by Peter O'Gorman <peter@pogma.com>.
55588
55589 2008-04-11  Bruno Haible  <bruno@clisp.org>
55590
55591         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55592
55593 2008-04-11  Bruno Haible  <bruno@clisp.org>
55594
55595         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55596
55597         * modules/getaddrinfo-tests (Makefile.am): Define
55598         test_getaddrinfo_LDADD.
55599
55600 2008-04-11  Bruno Haible  <bruno@clisp.org>
55601
55602         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55603         (init): Fix syntax error.
55604         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55605         is declared.
55606
55607 2008-04-11  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55610         * modules/glob (Depends-on): Add stdbool.
55611
55612 2008-04-11  Bruno Haible  <bruno@clisp.org>
55613
55614         * lib/trim.c: Include <string.h>.
55615
55616 2008-04-11  Eric Blake  <ebb9@byu.net>
55617
55618         Avoid compile failure on OS/2.
55619         * lib/regex_internal.h (internal_function): Disable optimization
55620         on OS/2 (__EMX__), where it caused compiler error.
55621         Reported by Elbert Pol.
55622
55623 2008-04-11  Bruno Haible  <bruno@clisp.org>
55624
55625         Flush the standard error stream before aborting. Needed on mingw.
55626         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55627         * tests/test-array_list.c (ASSERT): Likewise.
55628         * tests/test-array_oset.c (ASSERT): Likewise.
55629         * tests/test-avltree_list.c (ASSERT): Likewise.
55630         * tests/test-avltree_oset.c (ASSERT): Likewise.
55631         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55632         * tests/test-binary-io.c (ASSERT): Likewise.
55633         * tests/test-byteswap.c (ASSERT): Likewise.
55634         * tests/test-c-ctype.c (ASSERT): Likewise.
55635         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55636         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55637         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55638         * tests/test-c-strstr.c (ASSERT): Likewise.
55639         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55640         * tests/test-canonicalize.c (ASSERT): Likewise.
55641         * tests/test-carray_list.c (ASSERT): Likewise.
55642         * tests/test-ceilf1.c (ASSERT): Likewise.
55643         * tests/test-ceilf2.c (ASSERT): Likewise.
55644         * tests/test-ceill.c (ASSERT): Likewise.
55645         * tests/test-count-one-bits.c (ASSERT): Likewise.
55646         * tests/test-fbufmode.c (ASSERT): Likewise.
55647         * tests/test-fflush2.c (ASSERT): Likewise.
55648         * tests/test-floorf1.c (ASSERT): Likewise.
55649         * tests/test-floorf2.c (ASSERT): Likewise.
55650         * tests/test-floorl.c (ASSERT): Likewise.
55651         * tests/test-fopen.c (ASSERT): Likewise.
55652         * tests/test-fpending.c (ASSERT): Likewise.
55653         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55654         * tests/test-fpurge.c (ASSERT): Likewise.
55655         * tests/test-freadable.c (ASSERT): Likewise.
55656         * tests/test-freadahead.c (ASSERT): Likewise.
55657         * tests/test-freading.c (ASSERT): Likewise.
55658         * tests/test-freadptr.c (ASSERT): Likewise.
55659         * tests/test-freadptr2.c (ASSERT): Likewise.
55660         * tests/test-freadseek.c (ASSERT): Likewise.
55661         * tests/test-freopen.c (ASSERT): Likewise.
55662         * tests/test-frexp.c (ASSERT): Likewise.
55663         * tests/test-frexpl.c (ASSERT): Likewise.
55664         * tests/test-fseek.c (ASSERT): Likewise.
55665         * tests/test-fseeko.c (ASSERT): Likewise.
55666         * tests/test-fstrcmp.c (ASSERT): Likewise.
55667         * tests/test-ftell.c (ASSERT): Likewise.
55668         * tests/test-ftello.c (ASSERT): Likewise.
55669         * tests/test-func.c (ASSERT): Likewise.
55670         * tests/test-fwritable.c (ASSERT): Likewise.
55671         * tests/test-fwriting.c (ASSERT): Likewise.
55672         * tests/test-getdelim.c (ASSERT): Likewise.
55673         * tests/test-getline.c (ASSERT): Likewise.
55674         * tests/test-i-ring.c (ASSERT): Likewise.
55675         * tests/test-iconv-utf.c (ASSERT): Likewise.
55676         * tests/test-iconv.c (ASSERT): Likewise.
55677         * tests/test-isfinite.c (ASSERT): Likewise.
55678         * tests/test-isnand.c (ASSERT): Likewise.
55679         * tests/test-isnanf.c (ASSERT): Likewise.
55680         * tests/test-isnanl.h (ASSERT): Likewise.
55681         * tests/test-ldexpl.c (ASSERT): Likewise.
55682         * tests/test-linked_list.c (ASSERT): Likewise.
55683         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55684         * tests/test-localename.c (ASSERT): Likewise.
55685         * tests/test-lseek.c (ASSERT): Likewise.
55686         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55687         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55688         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55689         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55690         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55691         * tests/test-mbschr.c (ASSERT): Likewise.
55692         * tests/test-mbscspn.c (ASSERT): Likewise.
55693         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55694         * tests/test-mbspbrk.c (ASSERT): Likewise.
55695         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55696         * tests/test-mbsrchr.c (ASSERT): Likewise.
55697         * tests/test-mbsspn.c (ASSERT): Likewise.
55698         * tests/test-mbsstr1.c (ASSERT): Likewise.
55699         * tests/test-mbsstr2.c (ASSERT): Likewise.
55700         * tests/test-mbsstr3.c (ASSERT): Likewise.
55701         * tests/test-memchr2.c (ASSERT): Likewise.
55702         * tests/test-memmem.c (ASSERT): Likewise.
55703         * tests/test-open.c (ASSERT): Likewise.
55704         * tests/test-printf-frexp.c (ASSERT): Likewise.
55705         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55706         * tests/test-printf-posix.c (ASSERT): Likewise.
55707         * tests/test-quotearg.c (ASSERT): Likewise.
55708         * tests/test-rbtree_list.c (ASSERT): Likewise.
55709         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55710         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55711         * tests/test-round1.c (ASSERT): Likewise.
55712         * tests/test-roundf1.c (ASSERT): Likewise.
55713         * tests/test-roundl.c (ASSERT): Likewise.
55714         * tests/test-signbit.c (ASSERT): Likewise.
55715         * tests/test-sleep.c (ASSERT): Likewise.
55716         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55717         * tests/test-snprintf.c (ASSERT): Likewise.
55718         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55719         * tests/test-stat-time.c (ASSERT): Likewise.
55720         * tests/test-strcasestr.c (ASSERT): Likewise.
55721         * tests/test-strerror.c (ASSERT): Likewise.
55722         * tests/test-striconv.c (ASSERT): Likewise.
55723         * tests/test-striconveh.c (ASSERT): Likewise.
55724         * tests/test-striconveha.c (ASSERT): Likewise.
55725         * tests/test-strsignal.c (ASSERT): Likewise.
55726         * tests/test-strstr.c (ASSERT): Likewise.
55727         * tests/test-strtod.c (ASSERT): Likewise.
55728         * tests/test-trunc1.c (ASSERT): Likewise.
55729         * tests/test-trunc2.c (ASSERT): Likewise.
55730         * tests/test-truncf1.c (ASSERT): Likewise.
55731         * tests/test-truncf2.c (ASSERT): Likewise.
55732         * tests/test-truncl.c (ASSERT): Likewise.
55733         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55734         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55735         * tests/test-vasnprintf.c (ASSERT): Likewise.
55736         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55737         * tests/test-vasprintf.c (ASSERT): Likewise.
55738         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55739         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55740         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55741         * tests/test-vsnprintf.c (ASSERT): Likewise.
55742         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55743         * tests/test-wcwidth.c (ASSERT): Likewise.
55744         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55745         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55746         * tests/test-xvasprintf.c (ASSERT): Likewise.
55747         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55748         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55749         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55750         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55751         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55752         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55753         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55754         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55755         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55756         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55757         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55758         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55759         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55760         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55761         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55762         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55763         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55764         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55765         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55766         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55767         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55768         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55769         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55770         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55771         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55772         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55773         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55774         * tests/unictype/test-combining.c (ASSERT): Likewise.
55775         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55776         * tests/unictype/test-digit.c (ASSERT): Likewise.
55777         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55778         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55779         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55780         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55781         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55782         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55783         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55784         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55785         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55786         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55787         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55788         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55789         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55790         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55791         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55792         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55793         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55794         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55795         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55796         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55797         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55798         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55799         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55800         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55801         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55802         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55803         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55804         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55805         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55806         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55807         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55808         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55809         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55810         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55811         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55812         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55813         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55814         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55815         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55816         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55817         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55818         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55819         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55820         Reported by Eric Blake.
55821
55822 2008-04-11  Bruno Haible  <bruno@clisp.org>
55823
55824         * lib/wchar.in.h: Tweak comment.
55825
55826 2008-04-11  Bruno Haible  <bruno@clisp.org>
55827
55828         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55829         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55830         gl_COMMON.
55831         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55832
55833 2008-04-11  Bruno Haible  <bruno@clisp.org>
55834
55835         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55836
55837 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55838
55839         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55840         of attempting to use non-existing /dev/*random.  Based on patch
55841         from Adam Strzelecki <ono@java.pl> in
55842         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55843
55844 2008-04-08  Bruno Haible  <bruno@clisp.org>
55845
55846         Add tentative support for emx+gcc.
55847         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55848         * lib/fpurge.c (fpurge): Likewise.
55849         * lib/freadable.c (freadable): Likewise.
55850         * lib/freadahead.c (freadahead): Likewise.
55851         * lib/freading.c (freading): Likewise.
55852         * lib/freadptr.c (freadptr): Likewise.
55853         * lib/freadseek.c (freadptrinc): Likewise.
55854         * lib/fseeko.c (rpl_fseeko): Likewise.
55855         * lib/fseterr.c (fseterr): Likewise.
55856         * lib/fwritable.c (fwritable): Likewise.
55857         * lib/fwriting.c (fwriting): Likewise.
55858         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55859
55860 2008-04-09  Eric Blake  <ebb9@byu.net>
55861
55862         Avoid some autoconf warnings.
55863         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55864         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55865         * m4/afs.m4 (gl_AFS): Likewise.
55866         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55867         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55868         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55869         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55870         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55871         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55872         (AC_CHECK_DECLS_ONCE): Likewise.
55873         Rename file...
55874         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55875         gnulib-tool requires autoconf 2.59 or better.
55876         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55877
55878 2008-04-08  Eric Blake  <ebb9@byu.net>
55879
55880         Use 'git describe --match' if present (added in git 1.5.5).
55881         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55882         if possible.
55883
55884 2008-04-08  Bruno Haible  <bruno@clisp.org>
55885
55886         Add tentative support for OpenServer.
55887         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55888         _ptr, _cnt.
55889         * lib/fpurge.c (fpurge): Likewise.
55890         * lib/freadable.c (freadable): Likewise.
55891         * lib/freadahead.c (freadahead): Likewise.
55892         * lib/freading.c (freading): Likewise.
55893         * lib/freadptr.c (freadptr): Likewise.
55894         * lib/freadseek.c (freadptrinc): Likewise.
55895         * lib/fseeko.c (rpl_fseeko): Likewise.
55896         * lib/fseterr.c (fseterr): Likewise.
55897         * lib/fwritable.c (fwritable): Likewise.
55898         * lib/fwriting.c (fwriting): Likewise.
55899         Reported by Roger Cornelius <rac@tenzing.org> and
55900         Brian K. White <brian@aljex.com>.
55901
55902 2008-04-06  Jim Meyering  <meyering@redhat.com>
55903
55904         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55905
55906 2008-04-06  Bruno Haible  <bruno@clisp.org>
55907
55908         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55909         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55910         * tests/test-printf-posix.sh: Likewise.
55911         * tests/test-vfprintf-posix.sh: Likewise.
55912         * tests/test-vprintf-posix.sh: Likewise.
55913         * tests/test-xprintf-posix.sh: Likewise.
55914
55915 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55916
55917         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55918         hide error from 'ls', needed on OS/2.
55919         Report by Elbert Pol <elbert.pol@gmail.com>.
55920
55921 2008-04-04  Eric Blake  <ebb9@byu.net>
55922
55923         Make test-fseeko.c failures meaningful.
55924         * tests/test-fseeko.c: Print line number on failure.
55925         * tests/test-fseek.c: Likewise.
55926         Reported by Nelson H. F. Beebe.
55927
55928         Improve strtod bug detection check.
55929         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55930         required for Solaris 10.
55931         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55932
55933 2008-04-04  Bruno Haible  <bruno@clisp.org>
55934
55935         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55936         by m4/setenv.m4.
55937
55938 2008-04-03  Eric Blake  <ebb9@byu.net>
55939
55940         Ensure sane .version contents.
55941         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55942         version string.
55943         * build-aux/git-version-gen: Improve documentation.
55944
55945         Make GNU make output nicer.
55946         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55947         MAKECMDGOALS to enforce message for all command line targets.  Set
55948         srcdir for use in maint.mk.
55949
55950         Another maintainer tweak.
55951         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55952         a target that regenerates version.
55953
55954 2008-04-03  Jim Meyering  <meyering@redhat.com>
55955
55956         vc-list-files: don't cause coreutils "make po-check" failure
55957         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55958
55959 2008-04-03  Eric Blake  <ebb9@byu.net>
55960
55961         Allow VPATH usage of vc-list-files.
55962         * build-aux/vc-list-files (scriptversion): Add timestamp.
55963         (options): Add --help, --version, -C.
55964         (CVS): Support installed cvsu.
55965
55966 2008-04-02  Bruno Haible  <bruno@clisp.org>
55967
55968         Avoid some "statement with no effect" warnings from gcc.
55969         * tests/test-wctype.c (main): Explicitly ignore unused values.
55970         Reported by Jim Meyering.
55971
55972 2008-04-02  Jim Meyering  <meyering@redhat.com>
55973
55974         Avoid some warnings from "gcc -Wshadow".
55975         * tests/test-frexp.c (exp): Define to a different identifier.
55976         * tests/test-frexpl.c (exp): Likewise.
55977
55978 2008-04-03  Jim Meyering  <meyering@redhat.com>
55979
55980         bootstrap: remove dangling *.[ch] symlinks from lib
55981         * build-aux/bootstrap [dangling symlink removal]: Move find's
55982         -depth option to precede all others, to avoid a warning.
55983         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55984
55985 2008-04-02  Bruno Haible  <bruno@clisp.org>
55986
55987         Avoid some warnings from "gcc -Wshadow".
55988         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55989         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55990         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55991         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55992         Reported by Jim Meyering.
55993
55994 2008-04-01  Bruno Haible  <bruno@clisp.org>
55995
55996         Fix test to work on IRIX 6.5 with cc.
55997         * tests/test-math.c (numeric_equal): New function.
55998         (main): Use it.
55999
56000 2008-04-01  Bruno Haible  <bruno@clisp.org>
56001
56002         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56003
56004 2008-04-01  Bruno Haible  <bruno@clisp.org>
56005
56006         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56007         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56008         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56009         (Depends-on): Remove math.
56010
56011         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56012         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56013         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56014         (Depends-on): Remove math.
56015
56016         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56017         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56018         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56019         (Depends-on): Remove math.
56020         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56021         (Depends-on): Remove math.
56022
56023         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56024         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56025         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56026         (Depends-on): Remove math.
56027         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56028         (Depends-on): Remove math.
56029
56030         * tests/test-round1.c: Include nan.h.
56031         (main): Use NaNd instead of NAN.
56032         * modules/round-tests (Files): Add tests/nan.h.
56033
56034         * tests/test-trunc1.c: Include nan.h.
56035         (main): Use NaNd instead of NAN.
56036         * modules/trunc-tests (Files): Add tests/nan.h.
56037
56038         * tests/test-roundf1.c: Include nan.h.
56039         (main): Use NaNf instead of NAN.
56040         * modules/roundf-tests (Files): Add tests/nan.h.
56041
56042         * tests/test-truncf1.c: Include nan.h.
56043         (main): Use NaNf instead of NAN.
56044         * modules/truncf-tests (Files): Add tests/nan.h.
56045
56046         * tests/test-ceilf1.c: Include nan.h.
56047         (main): Use NaNf instead of NAN.
56048         * modules/ceilf-tests (Files): Add tests/nan.h.
56049
56050         * tests/test-floorf1.c: Include nan.h.
56051         (main): Use NaNf instead of NAN.
56052         * modules/floorf-tests (Files): Add tests/nan.h.
56053
56054         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56055         (main): Use NaNf instead of NAN.
56056         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56057
56058         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56059         (main): Use NaNd instead of NAN.
56060         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56061
56062         * tests/test-frexp.c: Include nan.h.
56063         (main): Use NaNd instead of NAN.
56064         * modules/frexp-tests (Files): Add tests/nan.h.
56065
56066         * lib/isnan.c: Don't include <math.h>.
56067         (FUNC): Don't use NAN macro.
56068         * modules/isnand-nolibm (Depends-on): Remove math.
56069         * modules/isnanf-nolibm (Depends-on): Remove math.
56070         * modules/isnanl (Depends-on): Remove math.
56071         * modules/isnanl-nolibm (Depends-on): Remove math.
56072
56073         * tests/nan.h: New file.
56074
56075 2008-04-01  Eric Blake  <ebb9@byu.net>
56076
56077         Fix typos.
56078         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56079         values to be the right type.
56080
56081         For now, cater to gnulib strtod inaccuracies.
56082         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56083         fractional results.  While not as nice from a QoI perspective, it
56084         is a quicker patch than correctly implementing decimal to binary
56085         rounding.
56086
56087 2008-03-31  Eric Blake  <ebb9@byu.net>
56088
56089         Guarantee a definition of NAN.
56090         * lib/math.in.h (NAN): Define if missing.
56091         * tests/test-math.c (main): Test it.
56092         * doc/posix-headers/math.texi (math.h): Document this.
56093         * lib/isnan.c (rpl_isnand): Use it.
56094         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56095         * tests/test-floorf1.c (NaN): Likewise.
56096         * tests/test-frexp.c (NaN): Likewise.
56097         * tests/test-isnand.c (NaN): Likewise.
56098         * tests/test-isnanf.c (NaN): Likewise.
56099         * tests/test-round1.c (NaN): Likewise.
56100         * tests/test-roundf1.c (NaN): Likewise.
56101         * tests/test-snprintf-posix.h (NaN): Likewise.
56102         * tests/test-sprintf-posix.h (NaN): Likewise.
56103         * tests/test-trunc1.c (NaN): Likewise.
56104         * tests/test-truncf1.c (NaN): Likewise.
56105         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56106         * tests/test-vasprintf-posix.c (NaN): Likewise.
56107         * modules/isnand-nolibm (Depends-on): Add math.
56108         * modules/isnanf-nolibm (Depends-on): Likewise.
56109         * modules/isnanl (Depends-on): Likewise.
56110         * modules/isnanl-nolibm (Depends-on): Likewise.
56111         * modules/snprintf-posix-tests (Depends-on): Likewise.
56112         * modules/sprintf-posix-tests (Depends-on): Likewise.
56113         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56114         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56115         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56116         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56117
56118 2008-03-31  Bruno Haible  <bruno@clisp.org>
56119
56120         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56121         * doc/posix-functions/strtod.texi: Likewise.
56122
56123 2008-03-31  Bruno Haible  <bruno@clisp.org>
56124
56125         * tests/test-strtod.c (main): Don't use C99 syntax.
56126
56127 2008-03-31  Bruno Haible  <bruno@clisp.org>
56128
56129         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56130         Reported by Eric Blake.
56131
56132 2008-03-31  Jim Meyering  <meyering@redhat.com>
56133
56134         Don't compare actual signbit return values.
56135         * tests/test-strtod.c (main): Rather, compare only their
56136         zero/non-zero nature.
56137
56138 2008-03-31  Eric Blake  <ebb9@byu.net>
56139
56140         More strtod documentation.
56141         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56142         failures as distinct bugs.
56143
56144 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56145
56146         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56147         Problem reported by Erik Benada in
56148         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56149
56150 2008-03-30  Bruno Haible  <bruno@clisp.org>
56151
56152         * tests/test-strtod.c: Add comments about which assertion fails on which
56153         platform.
56154         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56155
56156 2008-03-30  Eric Blake  <ebb9@byu.net>
56157
56158         Test signbit behavior on zeros.
56159         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56160         (test_signbitd, test_signbitl): Likewise.
56161
56162         More strtod touchups.
56163         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56164         sign of negative underflow, for now.  Use .5, not .1.
56165         * doc/posix-functions/strtod.texi (strtod): Mention these
56166         limitations.
56167         Reported by Jim Meyering.
56168
56169 2008-03-30  Bruno Haible  <bruno@clisp.org>
56170
56171         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56172         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56173
56174 2008-03-30  Bruno Haible  <bruno@clisp.org>
56175
56176         Avoid failure when attempting to return empty iconv results on some
56177         platforms.
56178         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56179         allocation, don't report ENOMEM when the resulting string is empty.
56180
56181 2008-03-30  Bruno Haible  <bruno@clisp.org>
56182
56183         Fix buffer overrun.
56184         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56185         Don't consider the width for tmp_length. Check count against tmp_length
56186         before doing the padding. Ensure enough allocation during padding.
56187
56188 2008-03-30  Eric Blake  <ebb9@byu.net>
56189
56190         strtod touchups.
56191         * lib/strtod.c (strtod): Avoid compiler warnings.
56192         Reported by Jim Meyering.
56193
56194 2008-03-30  Bruno Haible  <bruno@clisp.org>
56195
56196         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56197         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56198         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56199         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56200         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56201         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56202         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56203         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56204
56205         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56206         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56207         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56208         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56209         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56210         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56211         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56212         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56213
56214         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56215         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56216         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56217         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56218         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56219         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56220         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56221         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56222
56223         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56224         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56225
56226         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56227         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56228
56229         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56230         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56231
56232         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56234         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56235
56236         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56238         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56239
56240         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56241         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56242         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56243
56244         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56245         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56246         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56247
56248         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56249         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56250         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56251         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56252         (Depends-on): Add EOVERFLOW.
56253         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56254         (Depends-on): Add EOVERFLOW.
56255         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56256         (Depends-on): Add EOVERFLOW.
56257         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56258         (Depends-on): Add EOVERFLOW.
56259         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56260         (Depends-on): Add EOVERFLOW.
56261         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56262         (Depends-on): Add EOVERFLOW.
56263         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56264         (Depends-on): Add EOVERFLOW.
56265         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56266         (Depends-on): Add EOVERFLOW.
56267
56268         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56269         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56270         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56271
56272         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56274         * modules/snprintf (Depends-on): Add EOVERFLOW.
56275
56276         * lib/poll.c (EOVERFLOW): Remove fallback.
56277         * modules/poll (Depends-on): Add EOVERFLOW.
56278
56279         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56280         * modules/getugroups (Depends-on): Add EOVERFLOW.
56281
56282         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56283         * modules/getdelim (Depends-on): Add EOVERFLOW.
56284
56285         * lib/ftell.c (EOVERFLOW): Remove fallback.
56286         * modules/ftell (Depends-on): Add EOVERFLOW.
56287
56288         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56289         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56290         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56291
56292         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56293
56294         * modules/EOVERFLOW-tests: New file.
56295         * tests/test-EOVERFLOW.c: New file.
56296
56297         * modules/EOVERFLOW: New file.
56298         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56299
56300 2008-03-30  Bruno Haible  <bruno@clisp.org>
56301
56302         Fix bug introduced on 2007-06-10.
56303         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56304         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56305
56306 2008-03-30  Bruno Haible  <bruno@clisp.org>
56307
56308         Improve freadseek's efficiency after ungetc.
56309         * lib/freadseek.c: Include freadahead.h.
56310         (freadptrinc): New function, extracted from freadseek.
56311         (freadseek): Use it in a loop. Use freadahead to determine the number
56312         of loop iterations.
56313         * modules/freadseek (Depends-on): Add freadahead.
56314         (configure.ac): Require AC_C_INLINE.
56315
56316 2008-03-30  Bruno Haible  <bruno@clisp.org>
56317
56318         * lib/freadseek.c (freadseek): Don't ignore the return value of
56319         freadptr.
56320
56321 2008-03-29  Eric Blake  <ebb9@byu.net>
56322
56323         Add hex float support.
56324         * modules/strtod (Depends-on): Add c-ctype.
56325         (Link): Mention POW_LIB.
56326         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56327         whitespace between 'e' and exponent.
56328         * tests/test-strtod.c (main): Enable hex float tests.
56329         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56330         now provides.
56331
56332         Document various strtod bugs, with some fixes.
56333         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56334         "-0x", "inf", "nan", and hex constants.
56335         * doc/posix-functions/atof.texi (atof): Likewise.
56336         * modules/stdlib (Makefile.am): Support strtod.
56337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56338         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56339         detect additional strtod bugs.
56340         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56341         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56342         bool where appropriate.  Parse 'inf' and 'nan'.
56343         * tests/test-strtod.c: New file.
56344         * modules/strtod (Depends-on): Add stdbool, stdlib.
56345         (configure.ac): Turn on module indicator.
56346         * modules/strtod-tests: New module.
56347
56348 2008-03-29  Eric Blake  <ebb9@byu.net>
56349
56350         Fix ftell on mingw.
56351         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56352         * modules/ftell-tests (Depends-on): Add binary-io.
56353         * modules/ftello-tests (Depends-on): Likewise.
56354         * tests/test-ftell.c (main): Enhance test to cover behavior after
56355         ungetc.  Enforce binary mode.
56356         * tests/test-ftello.c (main): Likewise.
56357
56358         Pass test-freadseek on cygwin.
56359         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56360         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56361         ungetc buffer.
56362
56363         * tests/test-fflush2.c (main): Fix typo.
56364
56365 2008-03-29  Bruno Haible  <bruno@clisp.org>
56366
56367         * tests/test-fflush2.c (main): Temporarily disable the contents of
56368         this test.
56369         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56370         Reported by Eric Blake.
56371
56372 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56373
56374         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56375         (GC_SHA224_DIGEST_SIZE): Add.
56376
56377         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56378         (gc_hash_digest_length): Likewise.
56379         (gc_hash_buffer): Likewise.
56380
56381 2008-03-25  Bruno Haible  <bruno@clisp.org>
56382
56383         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56384         detail which gettext release to use.
56385         Reported by Simon Josefsson.
56386
56387 2008-03-26  Jim Meyering  <meyering@redhat.com>
56388
56389         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56390         * modules/gnumakefile (clean-GNUmakefile): Also, use
56391         test ... && ... || : syntax rather than if-then ... fi.
56392
56393         gnumakefile: Don't double-quote-expand $(VPATH) value.
56394         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56395
56396 2008-03-24  Eric Blake  <ebb9@byu.net>
56397
56398         Alter GNUmakefile to install into top directory.
56399         * modules/maintainer-makefile: Split, and add dependency...
56400         * modules/gnumakefile: to this new module.
56401         * build-aux/GNUmakefile: Move...
56402         * top/GNUmakefile: ...here.
56403         * build-aux/maint.mk: Move...
56404         * top/maint.mk: ...here.
56405         * MODULES.html.sh (Support for maintaining...): Document new
56406         module.
56407
56408 2008-03-23  Bruno Haible  <bruno@clisp.org>
56409
56410         * gnulib-tool: New options --vc-files, --no-vc-files.
56411         (func_usage): Document them.
56412         (vc_files): New variable.
56413         (func_import): Consider vc_files.
56414         (func_create_testdir): Set vc_files to empty.
56415         Suggested by Jim Meyering and Karl Berry.
56416
56417 2008-03-23  Bruno Haible  <bruno@clisp.org>
56418
56419         Fix regex compilation error on HP-UX 11.
56420         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56421         * modules/regex (Files): Add m4/mbstate_t.m4.
56422         Reported by Ton Voon <ton.voon@altinity.com>.
56423
56424 2008-03-23  Bruno Haible  <bruno@clisp.org>
56425
56426         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56427
56428 2008-03-23  Eric Blake  <ebb9@byu.net>
56429             Bruno Haible  <bruno@clisp.org>
56430
56431         Install files from top/ in the destination directory.
56432         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56433         augmentation also for the files from top/.
56434         (func_import, func_create_testdir): Rewrite file names:
56435         top/filename -> filename.
56436
56437 2008-03-23  Bruno Haible  <bruno@clisp.org>
56438
56439         Tweak "gnulib --version" output.
56440         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56441
56442 2008-03-23  Bruno Haible  <bruno@clisp.org>
56443
56444         Tweak "gnulib --version" output.
56445         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56446         rather than contents of ChangeLog, when possible.
56447
56448 2008-03-21  Eric Blake  <ebb9@byu.net>
56449
56450         More --version tweaks.
56451         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56452         date of last ChangeLog entry.
56453
56454 2008-03-21  Jim Meyering  <meyering@redhat.com>
56455
56456         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56457
56458 2008-03-20  Eric Blake  <ebb9@byu.net>
56459
56460         VPATH fix.
56461         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56462
56463 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56464
56465         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56466         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56467
56468 2008-03-20  Eric Blake  <ebb9@byu.net>
56469
56470         Sync GNUmakefile with coreutils.
56471         * build-aux/GNUmakefile (have-Makefile): Rename...
56472         (_have-Makefile): ...to this, for namespace consideration.
56473         (GNUmakefile.cfg): Include, if present.
56474         (_autoreconf): Define a default.
56475         (_is-dist-target): New rule for rebuilds to pick up intra-release
56476         version.
56477         (maint-cfg.mk): Rename...
56478         (cfg.mk): ...to this.
56479
56480 2008-03-18  Jim Meyering  <meyering@redhat.com>
56481
56482         New script and module: mktempd
56483         * MODULES.html.sh (maint+release support): Add mktempd.
56484         * build-aux/mktempd: New file.
56485         * modules/mktempd: New file.
56486
56487 2008-03-15  Jim Meyering  <meyering@redhat.com>
56488
56489         Undo last change.
56490         * lib/sha1.c, lib/md5.c: 63 != ~63.
56491         Reported by Andreas Schwab.
56492
56493         sha1.c, md5.c: Hoist a redundant expression.
56494         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56495         "ctx->buflen" only once, before calling *_process_block.
56496         * lib/md5.c (md5_process_bytes): Likewise.
56497
56498 2008-03-14  Eric Blake  <ebb9@byu.net>
56499
56500         Bump copyright year in files generated by gnulib-tool.
56501         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56502         gnulib-tool, rather than hard-coding it.
56503
56504         Fix 'gnulib-tool --version' output to work with git.
56505         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56506         (startup): ...here.
56507         (func_version): Use it to invoke git-version-gen, rather than
56508         relying on CVS keyword expansion.  Modernize wording.
56509         (cvsdatestamp, last_checkin_date, version): Kill unused
56510         variables.
56511
56512 2008-03-12  Jim Meyering  <meyering@redhat.com>
56513
56514         Recognize optional cast of the argument to free.
56515         * build-aux/useless-if-before-free: Update regexps.
56516
56517         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56518
56519 2008-03-11  Bruno Haible  <bruno@clisp.org>
56520
56521         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56522         by a single package.
56523         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56524         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56525         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56526         Reported by Sam Steingold <sds@gnu.org>.
56527
56528 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56529
56530         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56531         repositories.
56532
56533 2008-03-11  Bruno Haible  <bruno@clisp.org>
56534
56535         Avoid conflicts between local macro definitions.
56536         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56537         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56538
56539 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56540             Bruno Haible  <bruno@clisp.org>
56541
56542         Make va_copy work with some version of xlc on AIX 5.1.
56543         * lib/stdarg.in.h: New file.
56544         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56545         On AIX, use a <stdarg.h> file substitute.
56546         * modules/stdarg (Files): Add lib/stdarg.in.h.
56547         (Depends-on): Add include_next.
56548         (Makefile.am): Build a stdarg.h substitute if requested.
56549         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56550
56551 2008-03-10  Bruno Haible  <bruno@clisp.org>
56552
56553         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56554         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56555         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56556
56557 2008-03-10  Bruno Haible  <bruno@clisp.org>
56558
56559         * modules/stdlib (Depends-on): Add include_next, remove
56560         absolute-header.
56561
56562 2008-03-09  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/freadahead.h (freadahead): Document more precisely.
56565         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56566         the sum of both buffer sizes.
56567         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56568         * NEWS: Document the change.
56569
56570 2008-03-09  Bruno Haible  <bruno@clisp.org>
56571
56572         Extend freadptr to return also the buffer size.
56573         * lib/freadptr.h (freadptr): Add sizep argument.
56574         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56575         (freadptr): Add sizep argument. Determine buffer size like freadahead
56576         does.
56577         * tests/test-freadptr.c: Don't include freadahead.h.
56578         (main): Adapt for new calling convention of freadptr.
56579         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56580         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56581         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56582         tests/test-freadptr2.sh.
56583         (Depends): Remove freadahead.
56584         (TESTS): Add test-freadptr2.sh.
56585         (check_PROGRAMS): Add test-freadptr2.
56586
56587 2008-03-09  Bruno Haible  <bruno@clisp.org>
56588
56589         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56590         Report and solution by Simon Josefsson.
56591
56592 2008-03-06  Bruno Haible  <bruno@clisp.org>
56593
56594         Make fflush after ungetc work on BSD platforms.
56595         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56596         * tests/test-fflush2.c: New file.
56597         * tests/test-fflush2.sh: New file.
56598         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56599         tests/test-fflush2.c.
56600         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56601         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56602
56603 2008-03-06  Eric Blake  <ebb9@byu.net>
56604
56605         Likewise for ftello.
56606         * modules/ftello (Dependencies): Add extensions.
56607         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56608
56609 2008-03-06  Bruno Haible  <bruno@clisp.org>
56610
56611         * modules/fseeko (Dependencies): Add extensions.
56612         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56613         Needed on glibc systems.
56614
56615 2008-03-06  Bruno Haible  <bruno@clisp.org>
56616
56617         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56618         email address.
56619         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56620
56621 2008-03-06  Bruno Haible  <bruno@clisp.org>
56622
56623         * users.txt: Add libgnupdf.
56624
56625 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56626
56627         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56628         (Header File Substitutes, Function Substitutes,
56629         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56630         (Build robot for gnulib): Fix typo.
56631
56632 2008-03-06  Bruno Haible  <bruno@clisp.org>
56633
56634         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56635         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56636
56637 2008-03-06  Bruno Haible  <bruno@clisp.org>
56638
56639         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56640         * doc/gnulib.texi: Include it.
56641
56642 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56643
56644         * modules/func (License): Change license to unlimited; there was
56645         no LGPL parts in the module anyway.
56646
56647 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56648
56649         * modules/__func__: Renamed to modules/func.
56650         * modules/__func__-tests: Renamed to modules/func-tests.
56651         * tests/test-__func__.c: Renamed to tests/test-func.c.
56652         * m4/__func__.m4: Renamed to m4/func.m4.
56653         * doc/gnulib.texi (__func__): Section renamed to func.
56654         Suggested by Eric Blake <ebb9@byu.net>.
56655
56656 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56657
56658         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56659         about __func__.  Make example self-contained.  Suggested by Eric
56660         Blake <ebb9@byu.net>.
56661
56662         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56663         Suggested by Eric Blake <ebb9@byu.net>.
56664
56665 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56666
56667         * modules/__func__: New file.
56668         * modules/__func__-tests: New file.
56669         * tests/test-__func__.c: New file.
56670         * m4/__func__.m4: New file.
56671         * doc/gnulib.texi (__func__): Document __func__ module.
56672
56673 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56674
56675         * modules/byteswap (License): Re-license as LGPLv2+.
56676
56677 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56678
56679         * doc/Makefile: Add pdf target.
56680
56681 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56682
56683         * modules/inline (License): Use 'unlimited', since there are only
56684         *.m4 files in this module.
56685
56686 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56687             Bruno Haible  <bruno@clisp.org>
56688
56689         Add support for HP C 7.1 on OpenVMS 8.3.
56690         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56691
56692 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56693
56694         Update VMS specifics.
56695         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56696
56697 2008-03-02  Jim Meyering  <meyering@redhat.com>
56698
56699         Remove the last dependency on the "free" module.
56700         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56701         Reported by Bob Proulx.
56702
56703         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56704
56705         Remove useless "if" tests before free.  Deprecate "free" module.
56706         * doc/posix-functions/free.texi: Mention that this
56707         module is no longer useful.
56708         * modules/free (Notice): Say this module is obsolete.
56709         * modules/readutmp (Depends-on): Remove free.
56710         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56711         * lib/putenv.c (putenv): Likewise.
56712         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56713         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56714         * tests/test-c-strcasestr.c (main): Likewise.
56715         * tests/test-c-strstr.c (main): Likewise.
56716         * tests/test-mbscasestr1.c (main): Likewise.
56717         * tests/test-mbscasestr2.c (main): Likewise.
56718         * tests/test-mbsstr1.c (main): Likewise.
56719         * tests/test-mbsstr2.c (main): Likewise.
56720         * tests/test-memmem.c (main): Likewise.
56721         * tests/test-strcasestr.c (main): Likewise.
56722         * tests/test-striconv.c (main): Likewise.
56723         * tests/test-striconveh.c (main): Likewise.
56724         * tests/test-striconveha.c (main): Likewise.
56725         * tests/test-strstr.c (main): Likewise.
56726
56727         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56728
56729         bootstrap: sync from coreutils again
56730         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56731
56732 2008-03-01  Jim Meyering  <meyering@redhat.com>
56733
56734         bootstrap: sync from coreutils
56735         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56736         also when the target doesn't exist.
56737
56738 2008-03-01  Eric Blake  <ebb9@byu.net>
56739
56740         Fix bugs in last patch.
56741         * lib/memchr2.c (memchr2): Fix typo.
56742         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56743         extension.
56744         Reported by Bruce Korb.
56745
56746         New module 'memchr2'.
56747         * modules/memchr2: New file.
56748         * modules/memchr2-tests: Likewise.
56749         * lib/memchr2.h: Likewise.
56750         * lib/memchr2.c: Likewise, based on memchr.c.
56751         * tests/test-memchr2.c: New test.
56752         * MODULES.html.sh (String handling): Add memchr2.
56753
56754 2008-02-29  Bruno Haible  <bruno@clisp.org>
56755
56756         * modules/freadseek-tests: New file.
56757         * tests/test-freadseek.sh: New file.
56758         * tests/test-freadseek.c: New file.
56759
56760         New module 'freadseek'.
56761         * modules/freadseek: New file.
56762         * lib/freadseek.h: New file.
56763         * lib/freadseek.c: New file.
56764         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56765
56766 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56767
56768         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56769         wydawca.
56770
56771         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56772         program_invocation_name and program_invocation_short_name are
56773         present.
56774
56775 2008-02-28  Bruno Haible  <bruno@clisp.org>
56776
56777         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56778         * tests/test-freadptr.sh: Also test non-seekable stdin.
56779
56780 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56781
56782         * build-aux/bootstrap (source_base, m4_base)
56783         (doc_base, tests_base): New variables.
56784         (gnulib_tool_options): Do not hardcode base directories, use
56785         the above variables instead.
56786
56787 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56788
56789         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56790
56791 2008-02-28  Bruno Haible  <bruno@clisp.org>
56792
56793         * modules/freadptr-tests: New file.
56794         * tests/test-freadptr.sh: New file.
56795         * tests/test-freadptr.c: New file.
56796
56797         New module 'freadptr'.
56798         * modules/freadptr: New file.
56799         * lib/freadptr.h: New file.
56800         * lib/freadptr.c: New file.
56801         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56802
56803 2008-02-26  Karl Berry  <karl@freefriends.org>
56804
56805         Sync from Libtool:
56806         * libltdl/argz.c (argz_add, argz_count): New functions.
56807         * libltdl/argz.in.h: Declare them.
56808         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56809
56810 2008-02-22  Bruno Haible  <bruno@clisp.org>
56811
56812         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56813         is a pointer type.  Needed for HP-UX 10.
56814         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56815         * doc/posix-functions/gmtime_r.texi: Likewise.
56816         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56817
56818 2008-02-24  Bruno Haible  <bruno@clisp.org>
56819
56820         * modules/environ-tests: New file.
56821         * tests/test-environ.c: New file.
56822
56823         New module 'environ'.
56824         * modules/environ: New file.
56825         * lib/unistd.in.h (environ): New declaration.
56826         * m4/environ.m4: New file.
56827         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56828         after use.
56829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56830         HAVE_DECL_ENVIRON.
56831         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56832         HAVE_DECL_ENVIRON.
56833         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56834         wrong claim that 'environ' is missing on some systems.
56835         * modules/execute (Depends-on): Add environ.
56836         * lib/execute.c (environ): Remove fallback declaration.
56837         * modules/pipe (Depends-on): Add environ.
56838         * lib/pipe.c (environ): Remove fallback declaration.
56839         * modules/setenv (Depends-on): Add environ.
56840         * lib/setenv.c (environ): Remove fallback declaration.
56841         * modules/unsetenv (Depends-on): Add environ.
56842         * lib/unsetenv.c (environ): Remove fallback declaration.
56843         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56844         m4/environ.m4.
56845         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56846         (gl_PREREQ_UNSETENV): Likewise.
56847
56848 2008-02-24  Bruno Haible  <bruno@clisp.org>
56849
56850         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56851
56852 2008-02-20  Bob Proulx  <bob@proulx.com>
56853
56854         Enable use of older two part flavor 'git describe'.
56855         * build-aux/git-version-gen: If using the older two part flavor of
56856         git version then recreate the third part now present in the
56857         newer three part flavor of git describe.
56858
56859 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56860
56861         * lib/fts.c (fts_build): Typo correction to comment.
56862
56863 2008-02-17  Bruno Haible  <bruno@clisp.org>
56864
56865         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56866         generating no-op conflicts.
56867
56868 2008-02-17  Bruno Haible  <bruno@clisp.org>
56869
56870         Speed up by 10%.
56871         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56872         result_entries, rather than an index-based loop.
56873
56874 2008-02-17  Bruno Haible  <bruno@clisp.org>
56875
56876         Speed up by 25%.
56877         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56878         'hashcode_cached'.
56879         (entry_create): New function.
56880         (entry_hashcode): Use the cached hashcode if possible.
56881         (read_changelog_file, try_split_merged_entry): Use entry_create.
56882
56883 2008-02-17  Bruno Haible  <bruno@clisp.org>
56884
56885         Speed up from O(n^2) to O(n) for long ChangeLog files.
56886         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56887         (read_changelog_file): Change implementation of entries_reversed list
56888         to rbtreehash.
56889         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56890
56891 2008-02-17  Bruno Haible  <bruno@clisp.org>
56892
56893         New option --split-merged-entry.
56894         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56895         (find_paragraph_end, try_split_merged_entry): New functions.
56896         (long_options): Add option --split-merged-entry.
56897         (usage): Document option --split-merged-entry.
56898         (main): Implement option --split-merged-entry.
56899         Reported by Eric Blake.
56900
56901 2008-02-17  Bruno Haible  <bruno@clisp.org>
56902
56903         * lib/git-merge-changelog.c: Include c-strstr.h.
56904         (main): Support the "git pull --rebase" situation.
56905         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56906         Reported by Eric Blake.
56907
56908 2008-02-16  Eric Blake  <ebb9@byu.net>
56909
56910         Avoid doubling \ in common case of "c-maybe" quoting style.
56911         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56912         eliding outer quotes.
56913         * lib/quotearg.h: Document this.
56914         * tests/test-quotearg.c (result_strings, inputs, results_g)
56915         (flag_results, locale_results): Test it by adding a new string to
56916         each test group.
56917         (compare_strings): Test new string.
56918
56919 2008-02-13  Eric Blake  <ebb9@byu.net>
56920
56921         Avoid trigraph quoting in default output.
56922         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56923         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56924         unless explicitly requested.
56925         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56926
56927 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56928
56929         Don't rely on signed integer overflowing to negative value.
56930         * lib/getugroups.c (getugroups): Include <limits.h>.
56931         Instead, compare against INT_MAX, and increment only if the test passes.
56932
56933 2008-02-13  Jim Meyering  <meyering@redhat.com>
56934         and Eric Blake  <ebb9@byu.net>
56935
56936         Avoid shadowing warning and compile errors on Linux.
56937         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56938         forwarding macros on Linux.
56939         (dcgettext): Define a stub, for Linux.
56940         (results_g, main): Avoid warnings.
56941
56942 2008-02-12  Eric Blake  <ebb9@byu.net>
56943
56944         Silence warning in last patch.
56945         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56946
56947         Quotearg part 4: add tests, fix c-maybe colon quoting.
56948         * lib/quotearg.h: Improve documentation.
56949         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56950         escapes when adding outer quotes.  When quoting trigraphs, use
56951         valid C notation.  When quoting NUL, omit extra characters if next
56952         character is not digit.  Alter prototype.
56953         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56954         callers.
56955         * modules/quotearg-tests: New module.
56956         * tests/test-quotearg.c: New test.
56957
56958 2008-02-07  Eric Blake  <ebb9@byu.net>
56959
56960         Quotearg part 3: add flag to control outer quote elision.
56961         * lib/quotearg.h (c_maybe_quoting_style): New style.
56962         (enum quoting_flags): Better documentation of flags.
56963         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56964         c-maybe style.
56965         (quotearg_buffer_restyled): Handle new flag to elide outer
56966         quotes.
56967
56968         Quotearg part 2: add flag that can control NUL elision.
56969         * lib/quotearg.h (set_quoting_flags): New prototype.
56970         * lib/quotearg.c (struct quoting_options): Add flag field.
56971         (set_quoting_flags): New function.
56972         (quotearg_buffer_restyled): Add flags parameter.
56973         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56974         (quotearg_n_options): Set the flag, since length cannot be
56975         returned.
56976         (quoting_options_from_style): Default flags correctly.
56977
56978         Quotearg part 1: more wrappers, restore quotearg_char state.
56979         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56980         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56981         (quotearg_colon_mem): New wrappers.
56982         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56983         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56984         functions.
56985         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56986         (quotearg_colon_mem): New functions.
56987
56988 2008-02-11  Bruno Haible  <bruno@clisp.org>
56989
56990         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56991         library in the current directory: it does not work with parallel make.
56992         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56993
56994 2008-02-11  Bruno Haible  <bruno@clisp.org>
56995
56996         * .gitattributes: New file.
56997
56998 2008-02-11  Jim Meyering  <meyering@redhat.com>
56999
57000         useless-if-before-free: Fix reversed exit values.
57001         * build-aux/useless-if-before-free: Use correct values
57002         for EXIT_MATCH and EXIT_NO_MATCH.
57003
57004         * build-aux/useless-if-before-free: Close stdout carefully.
57005
57006 2008-02-10  Bruno Haible  <bruno@clisp.org>
57007
57008         New module 'git-merge-changelog'.
57009         * modules/git-merge-changelog: New file.
57010         * lib/git-merge-changelog.c: New file.
57011
57012 2008-02-10  Jim Meyering  <meyering@redhat.com>
57013
57014         useless-if-before-free: New option: --list (-l).
57015
57016         useless-if-before-free: Don't exit immediately upon open failure.
57017         * build-aux/useless-if-before-free: Exit 2 for errors.
57018         Upon failure to open a file, don't exit immediately.
57019         Rather, just warn and continue with any remaining files.
57020
57021 2008-02-10  Bruno Haible  <bruno@clisp.org>
57022
57023         New abstract list operation 'node_set_value'.
57024         * lib/gl_list.h (gl_list_node_set_value): New function.
57025         (struct gl_list_implementation): New field node_set_value.
57026         * lib/gl_list.c (gl_list_node_set_value): New function.
57027         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57028         (gl_array_list_implementation): Update.
57029         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57030         (gl_carray_list_implementation): Update.
57031         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57032         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57033         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57034         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57035         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57036         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57037         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57038         Update.
57039         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57040         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57041         (gl_sublist_list_implementation): Update.
57042
57043 2008-02-10  Bruno Haible  <bruno@clisp.org>
57044
57045         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57046         Needed when ELEMENT is #defined to 'some_type *'.
57047
57048 2008-02-10  Jim Meyering  <meyering@redhat.com>
57049
57050         New script and module: useless-if-before-free
57051         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57052         * build-aux/useless-if-before-free: New file.
57053         * modules/useless-if-before-free: New file.
57054
57055         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57056
57057         xstrtol_error: Fix typo.
57058         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57059         s/exit_failure/exit_status/.
57060
57061 2008-02-09  Jim Meyering  <meyering@redhat.com>
57062
57063         New script and module: gitlog-to-changelog
57064         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57065         * modules/gitlog-to-changelog: New file.
57066         * build-aux/gitlog-to-changelog: New file.
57067
57068 2008-02-08  Jim Meyering  <meyering@redhat.com>
57069
57070         Avoid two "parameter unused" warnings.
57071         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57072         Mark "st" as used.
57073
57074         Use "git COMMAND", not "git-COMMAND".
57075         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57076         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57077         * build-aux/git-version-gen: Use "git status", not "git-status".
57078
57079 2008-02-07  Bruno Haible  <bruno@clisp.org>
57080
57081         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57082         Avoids a crash on Windows Vista.
57083         Reported by Adam Strzelecki <ono@java.pl> via
57084         Simon Josefsson <simon@josefsson.org>.
57085
57086 2008-02-06  Bruno Haible  <bruno@clisp.org>
57087
57088         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57089         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57090         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57091         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57092         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57093         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57094         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57095         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57096         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57097         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57099         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57100         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57101         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57102         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57103         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57104         left-adjust flag.
57105         * tests/test-snprintf-posix.h (test_function): Likewise.
57106         * tests/test-sprintf-posix.h (test_function): Likewise.
57107         * tests/test-vasprintf-posix.c (test_function): Likewise.
57108         * doc/posix-functions/fprintf.texi: Update.
57109         * doc/posix-functions/printf.texi: Update.
57110         * doc/posix-functions/snprintf.texi: Update.
57111         * doc/posix-functions/sprintf.texi: Update.
57112         * doc/posix-functions/vfprintf.texi: Update.
57113         * doc/posix-functions/vprintf.texi: Update.
57114         * doc/posix-functions/vsnprintf.texi: Update.
57115         * doc/posix-functions/vsprintf.texi: Update.
57116         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57117
57118 2008-02-06  Bruno Haible  <bruno@clisp.org>
57119
57120         Fix bug introduced on 2008-01-26.
57121         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57122
57123 2008-02-06  Bruno Haible  <bruno@clisp.org>
57124
57125         Fix bug introduced on 2007-06-10.
57126         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57127         !NEED_PRINTF_FLAG_ZERO.
57128
57129 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57130
57131         getloadavg: use libperfstat on AIX5
57132         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57133
57134 2008-02-03  Bruno Haible  <bruno@clisp.org>
57135
57136         * lib/diffseq.h: Add comments about required #includes.
57137         Reported by Michael Biggs <gnulib@doubleplum.net>.
57138
57139 2008-02-01  Bruno Haible  <bruno@clisp.org>
57140
57141         * users.txt: Add gnuit.
57142
57143 2008-01-31  Bruno Haible  <bruno@clisp.org>
57144
57145         * lib/md4.c (set_uint32): Mark as inline.
57146         * lib/md5.c (set_uint32): Likewise.
57147         * lib/sha1.c (set_uint32): Likewise.
57148         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57149         * m4/md5.m4 (gl_MD5): Likewise.
57150         * m4/sha1.m4 (gl_SHA1): Likewise.
57151
57152 2008-01-31  Jim Meyering  <meyering@redhat.com>
57153
57154         Use "sizeof VAR", rather than a literal "4".
57155         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57156         * lib/md4.c (md4_read_ctx): Likewise.
57157         * lib/sha1.c (sha1_read_ctx): Likewise.
57158
57159 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57160
57161         * tests/test-sha1.c: New file, based on test-md5.c.
57162
57163         * modules/crypto/sha1-tests: New file.
57164
57165 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57166
57167         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57168
57169 2008-01-31  Jim Meyering  <meyering@redhat.com>
57170
57171         Prefer "sizeof v" over the equivalent "4".
57172         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57173         * lib/md5.c (set_uint32): Likewise.
57174         * lib/sha1.c (set_uint32): Likewise.
57175
57176 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57177
57178         * lib/sha1.c (set_uint32): Mark function as static.
57179
57180 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57181
57182         md2: clarify comments to say that alignment is not required.
57183         * lib/md2.h: Remove warning about alignment in comment.
57184         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57185         never been required.
57186
57187 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57188
57189         md4: adapt alignment constraint fix from sha1.
57190         * lib/md4.c (set_uint32): New function, from sha1.c
57191         (md4_read_ctx): Use it.
57192         (md4_finish_ctx): Doc fix.
57193         * lib/md4.h: Doc fix.
57194
57195 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57196
57197         md5: adapt alignment constraint fix from sha1.
57198         * lib/md5.c (set_uint32): New function, from sha1.c
57199         (md5_read_ctx): Use it.
57200         (md5_finish_ctx): Doc fix.
57201         * lib/md5.h: Doc fix.
57202
57203 2008-01-30  Peter Palfrader  <weasel@debian.org>
57204
57205         sha1: remove the result buffer alignment constraint
57206         * lib/sha1.c (set_uint32): New function.
57207         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57208         constraint.
57209         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57210         * lib/sha1.h: Likewise.
57211
57212 2008-01-30  Andreas Schwab  <schwab@suse.de>
57213             Bruno Haible  <bruno@clisp.org>
57214
57215         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57216         correct definition of LDBL_MIN_EXP.
57217
57218 2008-01-30  Karl Berry  <karl@gnu.org>
57219
57220         * config/srclist-update: try to preserve x bit on updates.
57221         * config/srclistvars.sh: update for karl.
57222
57223 2008-01-29  Jim Meyering  <meyering@redhat.com>
57224
57225         vasnprintf.c: Avoid warning about unused label
57226         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57227         "overflow" label definition and associated code with the
57228         same cpp condition that guards the sole use of that label.
57229
57230 2008-01-26  Bruno Haible  <bruno@clisp.org>
57231
57232         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57233         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57234         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57235         * lib/isnanl-nolibm.h (isnanl): Likewise.
57236         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57237
57238 2008-01-26  Bruno Haible  <bruno@clisp.org>
57239
57240         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57241         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57242
57243 2008-01-26  Bruno Haible  <bruno@clisp.org>
57244
57245         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57246         GCC >= 4.0 built-in.
57247         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57248
57249 2008-01-26  Bruno Haible  <bruno@clisp.org>
57250
57251         Rename isnan, applicable to 'double' only, to isnand.
57252         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57253         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57254         (configure.ac): Update.
57255         (Include): Replace "isnan.h" with "isnand.h".
57256         * m4/isnand.m4: Renamed from m4/isnan.m4.
57257         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57258         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57259         instead of isnan.c.
57260         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57261         instead of HAVE_ISNAN_IN_LIBC.
57262         (isnand): Renamed from isnan.
57263         * lib/isnand.c: New file.
57264         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57265         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57266         (Makefile.am): Update.
57267         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57268         Include isnand.h instead of isnan.h.
57269         (main): Test isnand instead of isnan.
57270         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57271         isnan-nolibm.
57272         * modules/frexp (Depends-on): Likewise.
57273         * modules/frexp-tests (Depends-on): Likewise.
57274         * modules/frexp-nolibm (Depends-on): Likewise.
57275         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57276         * modules/isfinite (Depends-on): Likewise.
57277         * modules/round-tests (Depends-on): Likewise.
57278         * modules/signbit (Depends-on): Likewise.
57279         * modules/signbit-tests (Depends-on): Likewise.
57280         * modules/snprintf-posix (Depends-on): Likewise.
57281         * modules/sprintf-posix (Depends-on): Likewise.
57282         * modules/trunc-tests (Depends-on): Likewise.
57283         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57284         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57285         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57286         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57287         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57288         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57289         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57290         * modules/vasnprintf-posix (Depends-on): Likewise.
57291         * modules/vasprintf-posix (Depends-on): Likewise.
57292         * modules/vfprintf-posix (Depends-on): Likewise.
57293         * modules/vsnprintf-posix (Depends-on): Likewise.
57294         * modules/vsprintf-posix (Depends-on): Likewise.
57295         * lib/frexp.c: Include isnand.h instead of isnan.h.
57296         (ISNAN): Set to isnand instead of isnan.
57297         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57298         (gl_isfinited): Use isnand instead of isnan.
57299         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57300         (gl_signbitd): Use isnand instead of isnan.
57301         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57302         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57303         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57304         (main): Use isnand instead of isnan.
57305         * tests/test-round1.c: Include isnand.h.
57306         (main): Use isnand instead of isnan.
57307         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57308         (ISNAN): Set to isnand instead of isnan.
57309         * tests/test-trunc1.c: Include isnand.h.
57310         (main): Use isnand instead of isnan.
57311         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57312         (equal): Use isnand instead of isnan.
57313         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57314         isnand-nolibm.
57315         * NEWS: Mention the change.
57316
57317 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57318             Bruno Haible  <bruno@clisp.org>
57319
57320         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57321         the GCC builtins for signbits are present and set
57322         REPLACE_SIGNBIT_USING_GCC if so.
57323         * lib/math.in.h (signbit): Define using GCC builtins if
57324         REPLACE_SIGNBIT_USING_GCC is set.
57325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57326         REPLACE_SIGNBIT_USING_GCC.
57327         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57328
57329 2008-01-25  Jim Meyering  <meyering@redhat.com>
57330
57331         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57332         * lib/poll.c: Include <config.h>, not "config.h".
57333         * tests/test-getaddrinfo.c: Likewise.
57334
57335 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57336
57337         * modules/sockets-tests: New file.
57338
57339 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57340
57341         * modules/sockets: New module, can be used to call WSA_Startup and
57342         WSA_Cleanup when needed.
57343
57344         * lib/sockets.h, lib/sockets.c: New files.
57345
57346         * m4/sockets.m4: New file.
57347
57348         * tests/test-sockets.c: New file.
57349
57350 2008-01-19  Bruno Haible  <bruno@clisp.org>
57351
57352         * doc/posix-headers: Renamed from doc/headers.
57353         * doc/posix-functions: Renamed from doc/functions.
57354         * doc/gnulib.texi: Update.
57355
57356 2008-01-19  Bruno Haible  <bruno@clisp.org>
57357
57358         * doc/glibc-functions/strcasestr.texi: Include contents of
57359         doc/functions/strcasestr.texi, fixing the list of platforms.
57360         * doc/functions/strcasestr.texi: Remove file.
57361
57362 2008-01-19  Bruno Haible  <bruno@clisp.org>
57363
57364         * doc/glibc-functions/memmem.texi: Include contents of
57365         doc/functions/memmem.texi.
57366         * doc/functions/memmem.texi: Remove file.
57367
57368 2008-01-18  Bruno Haible  <bruno@clisp.org>
57369
57370         * doc/glibc-functions/*.texi: New files.
57371         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57372         to use the new files.
57373
57374 2008-01-17  Bruno Haible  <bruno@clisp.org>
57375
57376         * tests/test-gethostname.c (main): Fix printf statement.
57377
57378 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57379
57380         * modules/gethostname-tests: New file.
57381
57382         * tests/test-gethostname.c: New file.
57383
57384 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57385
57386         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57387         used by the UNAME case.  Reported by Bruno Haible
57388         <bruno@clisp.org>.
57389
57390 2008-01-17  Eric Blake  <ebb9@byu.net>
57391
57392         Convert c-strcasestr to be more efficient.
57393         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57394         (Depends-on): Add c-strcase, remove malloca, strnlen.
57395         * tests/test-c-strcasestr.c (main): Enhance test.
57396         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57397
57398 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57399
57400         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57401         Use it in creating po/Makevars.
57402
57403 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57404
57405         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57406         Applications that requires it should initialize libgcrypt
57407         manually.
57408
57409 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57410
57411         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57412
57413 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57414
57415         Fix problem with getdate on mingw32 reported by Simon Josefsson
57416         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57417         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57418         tzname", when deciding whether to declare tzname.
57419         * lib/strftime.c (tzname): Likewise.
57420
57421 2008-01-15  Bruno Haible  <bruno@clisp.org>
57422
57423         Work around a MacOS X 10.5 bug in frexpl().
57424         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57425         * doc/functions/frexpl.texi: Document the bug.
57426         Reported by Elias Pipping <pipping@gentoo.org>.
57427
57428 2008-01-14  Eric Blake  <ebb9@byu.net>
57429
57430         Touch up previous patch.
57431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57432         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57433
57434         Convert strcasestr module to use Two-Way algorithm.
57435         * modules/strcasestr-simple: New module, based on the old
57436         strcasestr, but with Two-Way rather than KMP.
57437         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57438         * lib/string.in.h (rpl_strcasestr): Declare.
57439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57440         performance.
57441         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57442         * modules/string (Makefile.am): Support strcasestr.
57443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57444         * modules/strcasestr-tests (Depends-on): Check for alarm.
57445         * tests/test-strcasestr.c: Augment test.
57446         * lib/str-two-way.h: Clean up stray macro.
57447         * NEWS: Document new module.
57448         * MODULES.html.sh (string handling): Likewise.
57449         * doc/functions/strcasestr.texi: New file.
57450         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57451         here, since it is not a POSIX function.
57452
57453 2008-01-14  Colin Watson  <cjwatson@debian.org>
57454             Bruno Haible  <bruno@clisp.org>
57455
57456         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57457         works fine; if not, set REPLACE_STRSIGNAL.
57458         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57460         REPLACE_STRSIGNAL.
57461         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57462         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57463         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57464
57465 2008-01-14  Bruno Haible  <bruno@clisp.org>
57466
57467         * modules/strsignal (Include): Change to <string.h>.
57468
57469 2008-01-14  Colin Watson  <cjwatson@debian.org>
57470
57471         * modules/argp (Notice): Add a notice recommending to change
57472         XGETTEXT_OPTIONS.
57473         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57474
57475 2008-01-13  Colin Watson  <cjwatson@debian.org>
57476
57477         * modules/strsignal-tests: New file.
57478         * tests/test-strsignal.c: New file.
57479
57480         * lib/strsignal.c: New file, from glibc with modifications.
57481         * lib/siglist.h: New file, from glibc with modifications.
57482         * lib/string.in.h (strsignal): New declaration.
57483         * m4/strsignal.m4: New file.
57484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57485         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57486         * modules/strsignal: New file.
57487         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57488         HAVE_DECL_STRSIGNAL.
57489
57490 2008-01-13  Bruno Haible  <bruno@clisp.org>
57491
57492         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57493         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57494         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57495         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57496
57497 2008-01-13  Bruno Haible  <bruno@clisp.org>
57498
57499         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57500         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57501         * lib/argp.h (__attribute__): Likewise.
57502         * lib/c-stack.c (__attribute__): Likewise.
57503         * lib/error.h (__attribute__): Likewise.
57504         * lib/fts.c (__attribute__): Likewise.
57505         * lib/openat.h (__attribute__): Likewise.
57506         * lib/stdio.in.h (__attribute__): Likewise.
57507         * lib/string.in.h (__attribute__): Likewise.
57508         * lib/utimens.c (__attribute__): Likewise.
57509         * lib/vasnprintf.h (__attribute__): Likewise.
57510         * lib/xalloc.h (__attribute__): Likewise.
57511         * lib/xprintf.h (__attribute__): Likewise.
57512         * lib/xstrtol.h (__attribute__): Likewise.
57513         * lib/xvasprintf.h (__attribute__): Likewise.
57514
57515 2008-01-12  Bruno Haible  <bruno@clisp.org>
57516
57517         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57518         * doc/glibc-headers/a.out.texi: New file.
57519         * doc/glibc-headers/aliases.texi: New file.
57520         * doc/glibc-headers/alloca.texi: New file.
57521         * doc/glibc-headers/ar.texi: New file.
57522         * doc/glibc-headers/argp.texi: New file.
57523         * doc/glibc-headers/argz.texi: New file.
57524         * doc/glibc-headers/byteswap.texi: New file.
57525         * doc/glibc-headers/crypt.texi: New file.
57526         * doc/glibc-headers/endian.texi: New file.
57527         * doc/glibc-headers/envz.texi: New file.
57528         * doc/glibc-headers/err.texi: New file.
57529         * doc/glibc-headers/error.texi: New file.
57530         * doc/glibc-headers/execinfo.texi: New file.
57531         * doc/glibc-headers/fpu_control.texi: New file.
57532         * doc/glibc-headers/fstab.texi: New file.
57533         * doc/glibc-headers/fts.texi: New file.
57534         * doc/glibc-headers/getopt.texi: New file.
57535         * doc/glibc-headers/ieee754.texi: New file.
57536         * doc/glibc-headers/ifaddrs.texi: New file.
57537         * doc/glibc-headers/libintl.texi: New file.
57538         * doc/glibc-headers/mcheck.texi: New file.
57539         * doc/glibc-headers/mntent.texi: New file.
57540         * doc/glibc-headers/obstack.texi: New file.
57541         * doc/glibc-headers/paths.texi: New file.
57542         * doc/glibc-headers/printf.texi: New file.
57543         * doc/glibc-headers/pty.texi: New file.
57544         * doc/glibc-headers/resolv.texi: New file.
57545         * doc/glibc-headers/shadow.texi: New file.
57546         * doc/glibc-headers/sysexits.texi: New file.
57547         * doc/glibc-headers/ttyent.texi: New file.
57548
57549 2008-01-12  Jim Meyering  <meyering@redhat.com>
57550
57551         announce-gen: emit Gnulib's git-based version string.
57552         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57553         New option --gnulib-version=V, where V is expected to be
57554         the output of running git describe in the gnulib directory.
57555         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57556         not useful, and plan to stop publishing an xdelta file with each
57557         coreutils release.
57558
57559         * build-aux/announce-gen: Also check for lzma-compressed files.
57560
57561 2008-01-11  Bruno Haible  <bruno@clisp.org>
57562
57563         * tests/test-memmem.c (main): Increase maximum allowed time.
57564         * tests/test-strstr.c (main): Likewise.
57565
57566 2008-01-11  Bruno Haible  <bruno@clisp.org>
57567
57568         * doc/functions/memmem.texi: Add more precisions about platforms.
57569         * doc/functions/strstr.texi: Likewise.
57570
57571 2008-01-10  Eric Blake  <ebb9@byu.net>
57572
57573         * m4/strstr.m4: Delete cruft from copy-n-paste.
57574         Reported by Bruno Haible.
57575
57576 2008-01-10  Bruno Haible  <bruno@clisp.org>
57577
57578         Make c-strstr rely on strstr.
57579         * lib/c-strstr.c: Don't include str-kmp.h.
57580         (c_strstr): Define in terms of strstr.
57581         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57582         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57583
57584 2008-01-10  Bruno Haible  <bruno@clisp.org>
57585
57586         * doc/gnulib.texi (String Functions in C Locale): New section.
57587         * doc/c-ctype.texi: New file.
57588         * doc/c-strcase.texi: New file.
57589         * doc/c-strcaseeq.texi: New file.
57590         * doc/c-strcasestr.texi: New file.
57591         * doc/c-strstr.texi: New file.
57592         * doc/c-strtod.texi: New file.
57593         * doc/c-strtold.texi: New file.
57594
57595 2008-01-10  Eric Blake  <ebb9@byu.net>
57596
57597         * lib/relocatable.h: Fix a comment.
57598
57599 2008-01-10  Eric Blake  <ebb9@byu.net>
57600
57601         Share two-way algorithm.
57602         * lib/str-two-way.h: New file, merged from...
57603         * lib/memmem.c: ...here...
57604         * lib/strstr.c: ...and here.
57605         * modules/memmem (Files): Use it.
57606         * modules/strstr (Files): Likewise.
57607
57608         Avoid quadratic strstr implementations.
57609         * lib/strstr.c: New file.
57610         * m4/strstr.m4: Likewise.
57611         * modules/strstr: Likewise.
57612         * modules/strstr-tests: Likewise.
57613         * tests/test-strstr.c: Likewise.
57614         * lib/string.in.h (rpl_strstr): Declare.
57615         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57616         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57617         * modules/string (Makefile.am): Likewise.
57618         * MODULES.html.sh (string handling): Mention new module.
57619         * doc/functions/strstr.texi (strstr): Document the bug.
57620
57621 2008-01-10  Bruno Haible  <bruno@clisp.org>
57622
57623         * lib/relocatable.h (relocate): State whether result is freshly
57624         allocated or not.
57625         * lib/relocatable.c (relocate): Return a freshly allocated string
57626         instead of a pointer to a privately held string.
57627         Reported by Sylvain Beucler <beuc@gnu.org>.
57628
57629 2008-01-10  Colin Watson  <cjwatson@debian.org>
57630
57631         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57632         s/S_ISNLK/S_ISLNK/.
57633
57634 2008-01-09  Bruno Haible  <bruno@clisp.org>
57635
57636         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57637         and other files.
57638         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57639         if it's only a guess.
57640         * modules/memmem: Simplify by depending on memmem-simple.
57641
57642 2008-01-09  Bruno Haible  <bruno@clisp.org>
57643
57644         Work around OpenBSD 4.0 tdelete() bug.
57645         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57646         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57647         macros and don't redefine the enum values.
57648         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57649         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57650         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57651
57652 2008-01-09  Bruno Haible  <bruno@clisp.org>
57653
57654         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57655         (main): Don't perform the tests if setlocale did not install a UTF-8
57656         locale. Needed on OpenBSD 4.0.
57657         * modules/wcwidth-tests (Depends-on): Add localcharset.
57658
57659 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57660
57661         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57662         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57663         * NEWS: announce this.
57664         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57665
57666 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57667         and Eric Blake  <ebb9@byu.net>
57668
57669         Add memmem-simple module.
57670         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57671         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57672         * modules/memmem-simple: New file.
57673         * modules/memmem (Description): Tweak.
57674         * MODULES.html.sh (string handling): Mention new module.
57675         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57676         addressed by memmem-simple.
57677         * NEWS: Document the difference.
57678
57679 2008-01-09  Eric Blake  <ebb9@byu.net>
57680
57681         Give gcc some memmem optimization hints.
57682         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57683         (strcasestr): Declare as pure.
57684         * modules/memmem (Maintainer): Claim my implementation.
57685
57686 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57687
57688         Support AIX 6.1 and higher.
57689         * build-aux/config.libpath: Likewise.
57690         * build-aux/config.rpath: Likewise.
57691
57692 2008-01-08  Jim Meyering  <meyering@redhat.com>
57693             Bruno Haible  <bruno@clisp.org>
57694
57695         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57696         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57697         Reported by Peter Fales in
57698         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57699
57700 2008-01-08  Bruno Haible  <bruno@clisp.org>
57701
57702         * modules/unictype/category-of (Depends-on): Add
57703         unictype/category-none.
57704         * modules/unictype/category-and-tests (Depends-on): Add
57705         unictype/category-{L,N,Lu,Nd}.
57706         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57707         * modules/unictype/category-or-tests (Depends-on): Add
57708         unictype/category-{L,N}.
57709         * modules/unictype/category-name-tests (Depends-on): Add
57710         unictype/category-{Z,Nl}.
57711         Reported by Simon Josefsson.
57712
57713 2008-01-08  Bruno Haible  <bruno@clisp.org>
57714
57715         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57716         convention better.
57717         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57718         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57719         Reported by Peter Miller <millerp@canb.auug.org.au>.
57720
57721 2008-01-08  Eric Blake  <ebb9@byu.net>
57722
57723         Rewrite memmem to guarantee linear complexity without malloc.
57724         * lib/memmem.c (memmem): Use Two-Way rather than
57725         Knuth-Morris-Pratt, to allow O(1) space usage.
57726         (critical_factorization, two_way_short_needle)
57727         (two_way_long_needle): New functions.
57728         (knuth_morris_pratt): Delete.
57729         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57730         Add stdint.
57731         * tests/test-memmem.c (main): Add tests for periodic needle and
57732         sublinear performance.
57733         * doc/functions/memmem.texi (memmem): Document other deficiencies
57734         in cygwin and older glibc.
57735
57736 2008-01-08  Bruno Haible  <bruno@clisp.org>
57737
57738         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57739         augmentation.
57740
57741 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57742
57743         Add a configure time option: --disable-acl.
57744         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57745         AC_ARG_ENABLE(acl).
57746
57747 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57748
57749         * tests/test-localename.c: Don't include obsolete "setenv.h".
57750
57751         * modules/localename-tests (Depends-on): Need unsetenv.
57752
57753 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57754
57755         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57756
57757 2008-01-06  Colin Watson  <cjwatson@debian.org>
57758
57759         * users.txt: Add man-db.
57760
57761 2008-01-07  Bruno Haible  <bruno@clisp.org>
57762
57763         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57764         previous section name.
57765
57766 2008-01-07  Bruno Haible  <bruno@clisp.org>
57767
57768         * lib/progname.c (set_program_name): Don't strip off a leading
57769         "lt-" prefix outside a .libs directory.
57770         Suggested by Paul Eggert.
57771
57772 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57773             Bruno Haible  <bruno@clisp.org>
57774
57775         Improve memory cleanup in 'relocatable' module.
57776         * lib/relocatable.h (compute_curr_prefix): Change return type to
57777         'char *'.
57778         * lib/relocatable.c (compute_curr_prefix): Change return type to
57779         'char *'. Free curr_installdir after use.
57780         (relocate): Free curr_prefix_better after use.
57781         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57782
57783 2008-01-01  Bruno Haible  <bruno@clisp.org>
57784
57785         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57786         failure on older glibc systems.
57787         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57788
57789 2008-01-05  Eric Blake  <ebb9@byu.net>
57790
57791         Avoid quadratic system memmem.
57792         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57793         Reported by Ralf Wildenhues.
57794
57795         Fix memmem test for mingw.
57796         * modules/memmem-tests (configure.ac): Check for alarm.
57797         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57798         it.
57799         * doc/functions/memmem.texi: New file.
57800         * doc/gnulib.texi (Function Substitutes): Add memmem.
57801         Reported by Bruno Haible.
57802
57803 2008-01-04  Bruno Haible  <bruno@clisp.org>
57804
57805         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57806         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57807         gl_HEADER_STRING_H_DEFAULTS.
57808
57809 2008-01-04  Eric Blake  <ebb9@byu.net>
57810
57811         Shorten duration of memmem test.
57812         * tests/test-memmem.c (main): Use alarm to declare failure if test
57813         is taking too long.
57814         Reported by Ralf Wildenhues.
57815
57816 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57817
57818         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57819         string, needed by strerror.
57820
57821 2008-01-03  Colin Watson  <cjwatson@debian.org>
57822             Bruno Haible  <bruno@clisp.org>
57823
57824         * doc/gnulib-tool.texi (Localization): New section.
57825
57826 2008-01-02  Bruno Haible  <bruno@clisp.org>
57827
57828         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57829         variables to 'unsigned char *' type.
57830         Reported by Paul Eggert.
57831
57832 2008-01-02  Jim Meyering  <jim@meyering.net>
57833
57834         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57835
57836 2007-12-31  Jim Meyering  <jim@meyering.net>
57837
57838         Avoid use of private FTS type name.
57839         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57840
57841 2007-12-30  Karl Berry  <karl@gnu.org>
57842
57843         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57844         work around defect in Texinfo and/or the standalone Info browser.
57845
57846 2007-12-30  Bruno Haible  <bruno@clisp.org>
57847
57848         Unify 5 copies of the KMP code.
57849         * lib/str-kmp.h: New file.
57850         * lib/c-strcasestr.c: Include str-kmp.h.
57851         (knuth_morris_pratt): Remove function.
57852         (c_strcasestr): Update.
57853         * lib/c-strstr.c: Include str-kmp.h.
57854         (knuth_morris_pratt): Remove function.
57855         (c_strcasestr): Update.
57856         * lib/mbscasestr.c: Include str-kmp.h.
57857         (knuth_morris_pratt_unibyte): Remove function.
57858         * lib/mbsstr.c: Include str-kmp.h.
57859         (knuth_morris_pratt_unibyte): Remove function.
57860         * lib/strcasestr.c: Include str-kmp.h.
57861         (knuth_morris_pratt): Remove function.
57862         (strcasestr): Update.
57863         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57864         * modules/c-strstr (Files): Likewise.
57865         * modules/mbscasestr (Files): Likewise.
57866         * modules/mbsstr (Files): Likewise.
57867         * modules/strcasestr (Files): Likewise.
57868         Suggested by Paul Eggert.
57869
57870 2007-12-30  Bruno Haible  <bruno@clisp.org>
57871
57872         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57873         defined.
57874
57875 2007-12-30  Bruno Haible  <bruno@clisp.org>
57876
57877         * lib/xmalloca.h: Include xalloc.h.
57878         (xnmalloca): New macro.
57879
57880 2007-12-30  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/malloca.h (nmalloca): New macro.
57883         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57884         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57885         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57886         knuth_morris_pratt_multibyte): Likewise.
57887         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57888         knuth_morris_pratt_multibyte): Likewise.
57889         * lib/memmem.c (knuth_morris_pratt): Likewise.
57890         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57891
57892 2007-12-25  Bruno Haible  <bruno@clisp.org>
57893
57894         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57895         * lib/glob.c: Don't include openat.h.
57896         (link_exists2_p): Add back the code that deals with the
57897         !GLOB_ALTDIRFUNC case.
57898         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57899         let it do the filename concatenation.
57900         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57901         * modules/glob (Depends-on): Remove openat.
57902
57903 2007-12-31  Bruno Haible  <bruno@clisp.org>
57904
57905         * modules/dirfd (License): Change to LGPLv2+.
57906         Approved by Jim Meyering.
57907
57908 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57909
57910         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57911         when multiplying M by sizeof (size_t).
57912
57913 2007-12-10  Martin Lambers  <marlam@marlam.de>
57914
57915         Override getpagesize on mingw.
57916         * lib/getpagesize.c: New file.
57917         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57918         * modules/getpagesize (Files): Add lib/getpagesize.c.
57919         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57921         REPLACE_GETPAGESIZE.
57922         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57923
57924 2007-12-25  Bruno Haible  <bruno@clisp.org>
57925
57926         * modules/localcharset (Notice): New field.
57927         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57928         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57929
57930 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57931             Bruno Haible  <bruno@clisp.org>
57932
57933         Avoid using the syntax symbol() in formatted documentation.
57934         * MODULES.html.sh (func_module): When replacing symbol() with a
57935         hyperlink, remove the parentheses. Show an error if some remain.
57936         Recognize and render the '...' syntax.
57937         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57938         Rework. Add paragraph about GCC's inlining.
57939         * doc/alloca.texi: Likewise.
57940         * doc/error.texi: Remove parentheses from symbol reference.
57941         * doc/gnulib-intro.texi: Likewise.
57942         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57943         * modules/fnmatch (Description): Reword to say "the ... function".
57944         * modules/full-read (Description): Likewise.
57945         * modules/full-write (Description): Likewise.
57946         * modules/safe-read (Description): Likewise.
57947         * modules/safe-write (Description): Likewise.
57948         * modules/strchrnul (Description): Likewise.
57949         * modules/trim (Description): Likewise.
57950         * modules/error (Description): Remove parentheses from symbol
57951         references.
57952         * modules/verror (Description): Likewise.
57953         Reported by Karl Berry.
57954
57955 2007-12-25  Bruno Haible  <bruno@clisp.org>
57956
57957         Fixup after 2007-10-16 commit.
57958         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57959
57960 2007-12-24  Bruno Haible  <bruno@clisp.org>
57961
57962         Make --enable-relocatable work with DESTDIR.
57963         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57964         to compute installdir from destprog.
57965         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57966         also set the RELOC_DESTDIR variable.
57967         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57968
57969 2007-12-24  Bruno Haible  <bruno@clisp.org>
57970
57971         Fix link error due to xalloc_die().
57972         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57973         of xreadlink.
57974         * lib/relocwrapper.c: Update comments.
57975         * build-aux/install-reloc: Remove xreadlink.c from file list.
57976         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57977         xreadlink.c.
57978         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57979
57980 2007-12-24  Bruno Haible  <bruno@clisp.org>
57981
57982         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57983         * lib/setenv.h: Remove file.
57984         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57985         lib/setenv.h.
57986         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57987         (Depends-on): Add stdlib.
57988         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57989         gl_FUNC_UNSETENV.
57990         (Include): Replace setenv.h with <stdlib.h>.
57991         * modules/unsetenv: New file.
57992         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57993         * lib/unsetenv.c: Include <stdlib.h> first.
57994         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57995         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57996         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57997         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57998         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57999         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58001         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58002         * doc/functions/unsetenv.texi: Update.
58003         * modules/xsetenv (Depends-on): Add unsetenv.
58004         * modules/getdate (Depends-on): Likewise.
58005         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58006         * lib/xsetenv.c: Don't include setenv.h.
58007         * lib/getdate.y: Likewise.
58008         * lib/relocwrapper.c: Likewise.
58009         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58010         (Depends-on): Add stdlib.
58011         * NEWS: Mention the changes.
58012         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58013
58014 2007-12-23  Bruno Haible  <bruno@clisp.org>
58015
58016         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58017         indentation.
58018
58019 2007-12-23  Bruno Haible  <bruno@clisp.org>
58020
58021         * lib/c-strcasestr.c: Add more comments.
58022         * lib/c-strstr.c: Likewise.
58023         * lib/mbscasestr.c: Likewise.
58024         * lib/mbsstr.c: Likewise.
58025         * lib/strcasestr.c: Likewise.
58026         * lib/memmem.c: Likewise.
58027
58028 2007-12-23  Bruno Haible  <bruno@clisp.org>
58029
58030         * tests/test-memmem.c: Include <string.h> first.
58031
58032 2007-12-22  Bruno Haible  <bruno@clisp.org>
58033
58034         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58035         the contents of $testsbase.
58036         Reported by Ralf Wildenhues.
58037
58038 2007-12-22  Bruno Haible  <bruno@clisp.org>
58039
58040         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58041         two variables local_ldadd_before, local_ldadd_last.
58042
58043 2007-12-20  Eric Blake  <ebb9@byu.net>
58044
58045         Work around circular library issue when cross-compiling.
58046         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58047         that progname.o does not need to pull in rpl_memcmp.
58048
58049 2007-12-19  Eric Blake  <ebb9@byu.net>
58050
58051         Fix memmem to avoid O(n^2) worst-case complexity.
58052         * lib/memmem.c (knuth_morris_pratt): New function.
58053         (memmem): Use it if first few naive iterations fail.
58054         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58055         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58056         * modules/memchr (License): Likewise.
58057         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58058         malloca.
58059         * tests/test-memmem.c: Rewrite, borrowing ideas from
58060         test-mbsstr1.c; the old version wouldn't even compile!
58061         * modules/memmem-tests: New file.
58062         * lib/string.in.h (rpl_memmem): Add declaration.
58063         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58065         REPLACE_MEMMEM.
58066
58067 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58068
58069         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58070         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58071         before any system include files, and undef after them all.  This
58072         should fix a problem on VMS reported by John E. Malmberg in
58073         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58074
58075 2007-12-17  Eric Blake  <ebb9@byu.net>
58076
58077         Revert addition of verify, for BSD/OS.
58078         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58079         can't handle large files, for the sake of obsolete platforms.
58080         * modules/fseeko (Depends-on): Remove verify.
58081         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58082         * doc/functions/ftello.texi (ftello): Likewise.
58083         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58084         Reported by Larry Jones.
58085
58086 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58087
58088         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58089         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58090
58091 2007-12-17  Jim Meyering  <meyering@redhat.com>
58092
58093         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58094         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58095         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58096         * modules/getcwd (Depends-on): Add openat.
58097         Reported by Petr Salinger.
58098
58099 2007-12-17  Bruno Haible  <bruno@clisp.org>
58100
58101         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58102         avoid a segmentation fault of the configure test on x86_64 systems.
58103
58104 2007-12-15  Jim Meyering  <meyering@redhat.com>
58105
58106         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58107
58108 2007-12-13  Eric Blake  <ebb9@byu.net>
58109
58110         Another fseek test.
58111         * tests/test-fseek.c (main): Also test ungetc handling.
58112         * tests/test-fseeko.c (main): Likewise.
58113         * modules/fseeko (Depends-on): Add verify.
58114         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58115         large.
58116         Reported by Larry Jones.
58117
58118         Fix fseeko on mingw.
58119         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58120         seek.
58121
58122         Beef up fseek tests.
58123         * tests/test-fseek.c (main): Also test eof handling.
58124         * tests/test-fseeko.c (main): Likewise.
58125         Reported by Larry Jones.
58126
58127 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58128
58129         Fix fseeko on BSD-based platforms.
58130         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58131         successful seek.
58132
58133 2007-12-12  Eric Blake  <ebb9@byu.net>
58134
58135         Allow circular dependency of separate libtests.a
58136         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58137         when use_libtests.
58138
58139 2007-12-11  Eric Blake  <ebb9@byu.net>
58140
58141         Fix bug with -0.0L in previous patch.
58142         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58143         * tests/test-isnan.c (main): Also test on zeroes.
58144         * tests/test-isnanf.c (main): Likewise.
58145         * tests/test-isnanl.h (main): Likewise.
58146
58147         Detect pseudo-denormals on x86 even when cross-compiling.
58148         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58149         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58150         invalid bit patterns that happen to satisfy ==.
58151
58152         Avoid link failures with separate libtests.a.
58153         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58154         last, to satisfy circular dependencies.
58155
58156 2007-12-11  Eric Blake  <ebb9@byu.net>
58157         and Bruno Haible  <bruno@clisp.org>
58158
58159         Fix OpenBSD 4.0 <float.h> handling of long double.
58160         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58161         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58162         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58163
58164 2007-12-11  Jim Meyering  <meyering@redhat.com>
58165
58166         * users.txt: Add libvirt.
58167
58168         Support versions of autoconf prior to 2.59c.
58169         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58170         if it is not already defined.
58171
58172 2007-12-09  Bruno Haible  <bruno@clisp.org>
58173
58174         Let 'gnulib-tool --import' collect sources needed for the tests in
58175         tests/ rather than in lib/.
58176         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58177         argument. If true, add rules to generate libtests.a, and put libtests.a
58178         into $(LDADD). Consider source files in subdirectories and set
58179         uses_subdirs.
58180         (func_emit_initmacro_start, func_emit_initmacro_end,
58181         func_emit_initmacro_done): Pass all arguments explicitly.
58182         (func_import): Determine two module lists main_modules,
58183         testsrelated_modules. Determine use_libtests. Determine two variables
58184         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58185         instead of just sed_transform_lib_file. Determine two variables
58186         main_files and testsrelated_files. Compute 'files' as the union of
58187         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58188         func_add_or_update. In the generated gnulib-comp.m4, collect the
58189         object files for tests/ in different variables than those for lib/.
58190         Substitute LIBTESTS_LIBDEPS.
58191         (func_create_testdir): Combine the uses_subdirs results from
58192         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58193
58194 2007-12-09  Bruno Haible  <bruno@clisp.org>
58195
58196         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58197         the build-aux directory.
58198
58199 2007-12-09  Bruno Haible  <bruno@clisp.org>
58200
58201         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58202         introduced on 2006-09-09.
58203
58204 2007-12-07  Jim Meyering  <meyering@redhat.com>
58205
58206         Let these macros work also with autoconf-2.59.
58207         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58208         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58209         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58210
58211 2007-12-06  Jim Meyering  <meyering@redhat.com>
58212
58213         Avoid a configure-time syntax error in gl_FUNC_ACL.
58214         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58215         function in each branch, before testing the cache variable.
58216
58217 2007-12-04  Eric Blake  <ebb9@byu.net>
58218
58219         Make scripts executable.
58220         * build-aux/config.guess: Add execute permissions.
58221         * build-aux/config.sub: Likewise.
58222         * build-aux/gendocs.sh: Likewise.
58223
58224         Fix frexp on mingw.
58225         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58226         cross-compiling.
58227         * doc/functions/frexp.texi (frexp): Document the bug.
58228
58229         Make cygwin fseeko check more reliable.
58230         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58231         version numbers, rather than unrelated feature check.
58232         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58233         * doc/functions/ftello.texi (ftello): Likewise.
58234         Reported by Bruno Haible.
58235
58236         * m4/strerror.m4: Bump version number.
58237
58238 2007-12-03  Bruno Haible  <bruno@clisp.org>
58239
58240         * doc/functions/mprotect.texi: Mention the mingw problem.
58241
58242 2007-12-03  Eric Blake  <ebb9@byu.net>
58243
58244         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58245         REPLACE_STRERROR is initialized before this macro.
58246
58247 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58248
58249         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58250         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58251         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58252         put -lsec in even for programs other than 'ls'.  This fixes a problem
58253         for gettext reported by Bruno Haible in
58254         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58255         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58256         Add support for Solaris 10.  This isn't efficient, but should get the
58257         job done for now.
58258
58259 2007-12-03  James Youngman  <jay@gnu.org>
58260
58261         * doc/regexprops-generic.texi: change "an close-group" to "a
58262         close-group" and "illegal" to "not allowed".
58263
58264 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58265
58266         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58267         pr_byname.h. Needed for the rare case when the maintainer has done
58268         "make maintainer-clean" in the source directory and then attempts a
58269         build outside the source directory.
58270         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58271         scripts_byname.h.
58272
58273 2007-12-02  Martin Lambers <marlam@marlam.de>
58274             Bruno Haible  <bruno@clisp.org>
58275
58276         * lib/getpagesize.h: Remove file.
58277         * lib/unistd.in.h: Include declaration of getpagesize here.
58278         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58279         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58280         HAVE_SYS_PARAM_H.
58281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58282         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58283         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58284         (Depends-on): Add unistd.
58285         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58286         (Include): Use <unistd.h> instead of getpagesize.h.
58287         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58288         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58289         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58290         gl_GETPAGESIZE invocation, already handled by module dependency.
58291         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58292
58293 2007-12-02  Bruno Haible  <bruno@clisp.org>
58294
58295         * modules/strings-tests: New file.
58296         * tests/test-strings.c: New file.
58297
58298         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58299         * lib/strings.in.h: New file.
58300         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58301         * m4/strings_h.m4: New file.
58302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58303         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58304         * modules/strings: New file.
58305         * modules/string (Makefile.am): Update.
58306         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58307         Reported by Karl Berry.
58308
58309 2007-12-01  Eric Blake  <ebb9@byu.net>
58310
58311         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58312         accomodate fix in cygwin 1.5.25.
58313
58314 2007-12-01  Jim Meyering  <meyering@redhat.com>
58315
58316         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58317         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58318         that would inhibit utf8-optimization of a regexp containing line-
58319         or buffer-anchors, e.g., `^', `$'.
58320
58321 2007-11-30  Bruno Haible  <bruno@clisp.org>
58322
58323         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58324         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58325         glthread_recursive_lock_init.
58326         * lib/lock.c (glthread_recursive_lock_init)
58327         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58328         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58329
58330 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58331
58332         New function qset_acl, like set_acl but with syscall semantics.
58333         * lib/acl.h (qset_acl): New decl.
58334         * lib/acl.c (qset_acl): New function.
58335         (set_acl): Use new function.  Use more-consistent diagnostics.
58336
58337 2007-11-28  Jim Meyering  <meyering@redhat.com>
58338
58339         * modules/physmem (License): Change from GPL to LGPLv2+.
58340
58341 2007-11-26  Bruno Haible  <bruno@clisp.org>
58342
58343         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58344         'long double' type has excess precision.
58345         Reported by Jim Meyering in
58346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58347
58348 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58349
58350         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58351         Sync from <http://gnu.org/licenses>.
58352         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58353         with license text from same location.
58354         * doc/maintain.texi, doc/standards.texi:  Sync from
58355         <http://savannah.gnu.org/projects/gnustandards>.
58356
58357 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58358         and Jim Meyering  <meyering@redhat.com>
58359
58360         Adjust getdate' grammar to accept a slightly more regular language.
58361         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58362         Before, the former was rejected.
58363         * lib/getdate.y (digits_to_date_time): New function, factored
58364         out of ...
58365         (number): ...here.  Just call digits_to_date_time.
58366         (hybrid): New non-terminal to handle an <unsigned number,
58367         signed relative offset> sequence consistently.
58368
58369 2007-11-18  Jim Meyering  <meyering@redhat.com>
58370
58371         Pull my changes from coreutils:
58372         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58373         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58374         use of $gnulib_tool_option_extras, so that it's separated from the
58375         preceding argument.
58376
58377         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58378         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58379         parent destination directories before copying a file into place.
58380
58381 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58382
58383         bootstrap: work also with 4-argument variant of AC_INIT
58384         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58385
58386 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58387
58388         Port test-getaddrinfo to Solaris.
58389         Problem reported by Bruno Haible in
58390         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58391         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58392         explanation of setting 'hints'.
58393         Don't reject an implementation merely because it returns EAI_SERVICE.
58394         (EAI_SERVICE): Define to 0 if not defined.
58395
58396 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58397
58398         The license of gnu-make and posix-shell is now "GPLed build tool".
58399         * modules/gnu-make (License): Likewise.
58400         * modules/posix-shell (License): Likewise.
58401
58402         New module posix-shell, for determining a POSIX shell
58403         or perhaps something that is close enough to a POSIX shell.
58404         * m4/posix-shell.m4: New file.
58405         * modules/posix-shell: New file.
58406
58407         * MODULES.html.sh: Mention new module.
58408
58409         New module gnu-make, for determining whether we're using GNU Make.
58410         * m4/gnu-make.m4: New file.
58411         * modules/gnu-make: New file.
58412         * MODULES.html.sh: Mention new module.
58413
58414 2007-11-14  Jim Meyering  <meyering@redhat.com>
58415
58416         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58417         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58418         use this macro to create a function _definition_.
58419         Remove useless "#undef ARGMATCH_DIE".
58420
58421 2007-11-14  Bruno Haible  <bruno@clisp.org>
58422
58423         * lib/config.charset: Update for OpenBSD 4.1.
58424         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58425
58426 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58427
58428         Document 64-bit #if problems in stdint.texi.
58429         * doc/headers/stdint.texi (stdint.h): Mention problems with
58430         64-bit-#if, and how to work around them.
58431
58432         Don't insist on 'long long int' support in the preprocessor.  It
58433         breaks too many things.  For example, PRIdMAX still uses a 'long
58434         long int' format with the latest Sun compiler, even though
58435         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58436         preprocessor problem.  This causes the latest coreutils to dump
58437         core on Solaris 10 sparc with the Sun C compiler.
58438         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58439         the troublesome expressions at configure-time, not at #if-time.
58440         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58441         preprocessor.
58442         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58443         compile-time C checks, done at 'configure'-time.
58444         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58445         * modules/inttypes (Makefile): Substitute the new symbols that
58446         gl_INTTYPES_H now generates.
58447         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58448
58449 2007-11-12  Bruno Haible  <bruno@clisp.org>
58450
58451         Tests for Unicode character classification functions.
58452
58453         * modules/unictype/bidicategory-byname-tests: New file.
58454         * modules/unictype/bidicategory-name-tests: New file.
58455         * modules/unictype/bidicategory-of-tests: New file.
58456         * modules/unictype/bidicategory-test-tests: New file.
58457         * modules/unictype/block-list-tests: New file.
58458         * modules/unictype/block-of-tests: New file.
58459         * modules/unictype/block-test-tests: New file.
58460         * modules/unictype/category-C-tests: New file.
58461         * modules/unictype/category-Cc-tests: New file.
58462         * modules/unictype/category-Cf-tests: New file.
58463         * modules/unictype/category-Cn-tests: New file.
58464         * modules/unictype/category-Co-tests: New file.
58465         * modules/unictype/category-Cs-tests: New file.
58466         * modules/unictype/category-L-tests: New file.
58467         * modules/unictype/category-Ll-tests: New file.
58468         * modules/unictype/category-Lm-tests: New file.
58469         * modules/unictype/category-Lo-tests: New file.
58470         * modules/unictype/category-Lt-tests: New file.
58471         * modules/unictype/category-Lu-tests: New file.
58472         * modules/unictype/category-M-tests: New file.
58473         * modules/unictype/category-Mc-tests: New file.
58474         * modules/unictype/category-Me-tests: New file.
58475         * modules/unictype/category-Mn-tests: New file.
58476         * modules/unictype/category-N-tests: New file.
58477         * modules/unictype/category-Nd-tests: New file.
58478         * modules/unictype/category-Nl-tests: New file.
58479         * modules/unictype/category-No-tests: New file.
58480         * modules/unictype/category-P-tests: New file.
58481         * modules/unictype/category-Pc-tests: New file.
58482         * modules/unictype/category-Pd-tests: New file.
58483         * modules/unictype/category-Pe-tests: New file.
58484         * modules/unictype/category-Pf-tests: New file.
58485         * modules/unictype/category-Pi-tests: New file.
58486         * modules/unictype/category-Po-tests: New file.
58487         * modules/unictype/category-Ps-tests: New file.
58488         * modules/unictype/category-S-tests: New file.
58489         * modules/unictype/category-Sc-tests: New file.
58490         * modules/unictype/category-Sk-tests: New file.
58491         * modules/unictype/category-Sm-tests: New file.
58492         * modules/unictype/category-So-tests: New file.
58493         * modules/unictype/category-Z-tests: New file.
58494         * modules/unictype/category-Zl-tests: New file.
58495         * modules/unictype/category-Zp-tests: New file.
58496         * modules/unictype/category-Zs-tests: New file.
58497         * modules/unictype/category-and-not-tests: New file.
58498         * modules/unictype/category-and-tests: New file.
58499         * modules/unictype/category-byname-tests: New file.
58500         * modules/unictype/category-name-tests: New file.
58501         * modules/unictype/category-none-tests: New file.
58502         * modules/unictype/category-of-tests: New file.
58503         * modules/unictype/category-or-tests: New file.
58504         * modules/unictype/category-test-withtable-tests: New file.
58505         * modules/unictype/combining-class-tests: New file.
58506         * modules/unictype/ctype-alnum-tests: New file.
58507         * modules/unictype/ctype-alpha-tests: New file.
58508         * modules/unictype/ctype-blank-tests: New file.
58509         * modules/unictype/ctype-cntrl-tests: New file.
58510         * modules/unictype/ctype-digit-tests: New file.
58511         * modules/unictype/ctype-graph-tests: New file.
58512         * modules/unictype/ctype-lower-tests: New file.
58513         * modules/unictype/ctype-print-tests: New file.
58514         * modules/unictype/ctype-punct-tests: New file.
58515         * modules/unictype/ctype-space-tests: New file.
58516         * modules/unictype/ctype-upper-tests: New file.
58517         * modules/unictype/ctype-xdigit-tests: New file.
58518         * modules/unictype/decimal-digit-tests: New file.
58519         * modules/unictype/digit-tests: New file.
58520         * modules/unictype/mirror-tests: New file.
58521         * modules/unictype/numeric-tests: New file.
58522         * modules/unictype/property-alphabetic-tests: New file.
58523         * modules/unictype/property-ascii-hex-digit-tests: New file.
58524         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58525         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58526         * modules/unictype/property-bidi-block-separator-tests: New file.
58527         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58528         * modules/unictype/property-bidi-common-separator-tests: New file.
58529         * modules/unictype/property-bidi-control-tests: New file.
58530         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58531         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58532         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58533         * modules/unictype/property-bidi-european-digit-tests: New file.
58534         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58535         * modules/unictype/property-bidi-left-to-right-tests: New file.
58536         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58537         * modules/unictype/property-bidi-other-neutral-tests: New file.
58538         * modules/unictype/property-bidi-pdf-tests: New file.
58539         * modules/unictype/property-bidi-segment-separator-tests: New file.
58540         * modules/unictype/property-bidi-whitespace-tests: New file.
58541         * modules/unictype/property-byname-tests: New file.
58542         * modules/unictype/property-combining-tests: New file.
58543         * modules/unictype/property-composite-tests: New file.
58544         * modules/unictype/property-currency-symbol-tests: New file.
58545         * modules/unictype/property-dash-tests: New file.
58546         * modules/unictype/property-decimal-digit-tests: New file.
58547         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58548         * modules/unictype/property-deprecated-tests: New file.
58549         * modules/unictype/property-diacritic-tests: New file.
58550         * modules/unictype/property-extender-tests: New file.
58551         * modules/unictype/property-format-control-tests: New file.
58552         * modules/unictype/property-grapheme-base-tests: New file.
58553         * modules/unictype/property-grapheme-extend-tests: New file.
58554         * modules/unictype/property-grapheme-link-tests: New file.
58555         * modules/unictype/property-hex-digit-tests: New file.
58556         * modules/unictype/property-hyphen-tests: New file.
58557         * modules/unictype/property-id-continue-tests: New file.
58558         * modules/unictype/property-id-start-tests: New file.
58559         * modules/unictype/property-ideographic-tests: New file.
58560         * modules/unictype/property-ids-binary-operator-tests: New file.
58561         * modules/unictype/property-ids-trinary-operator-tests: New file.
58562         * modules/unictype/property-ignorable-control-tests: New file.
58563         * modules/unictype/property-iso-control-tests: New file.
58564         * modules/unictype/property-join-control-tests: New file.
58565         * modules/unictype/property-left-of-pair-tests: New file.
58566         * modules/unictype/property-line-separator-tests: New file.
58567         * modules/unictype/property-logical-order-exception-tests: New file.
58568         * modules/unictype/property-lowercase-tests: New file.
58569         * modules/unictype/property-math-tests: New file.
58570         * modules/unictype/property-non-break-tests: New file.
58571         * modules/unictype/property-not-a-character-tests: New file.
58572         * modules/unictype/property-numeric-tests: New file.
58573         * modules/unictype/property-other-alphabetic-tests: New file.
58574         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58575         * modules/unictype/property-other-grapheme-extend-tests: New file.
58576         * modules/unictype/property-other-id-continue-tests: New file.
58577         * modules/unictype/property-other-id-start-tests: New file.
58578         * modules/unictype/property-other-lowercase-tests: New file.
58579         * modules/unictype/property-other-math-tests: New file.
58580         * modules/unictype/property-other-uppercase-tests: New file.
58581         * modules/unictype/property-paired-punctuation-tests: New file.
58582         * modules/unictype/property-paragraph-separator-tests: New file.
58583         * modules/unictype/property-pattern-syntax-tests: New file.
58584         * modules/unictype/property-pattern-white-space-tests: New file.
58585         * modules/unictype/property-private-use-tests: New file.
58586         * modules/unictype/property-punctuation-tests: New file.
58587         * modules/unictype/property-quotation-mark-tests: New file.
58588         * modules/unictype/property-radical-tests: New file.
58589         * modules/unictype/property-sentence-terminal-tests: New file.
58590         * modules/unictype/property-soft-dotted-tests: New file.
58591         * modules/unictype/property-space-tests: New file.
58592         * modules/unictype/property-terminal-punctuation-tests: New file.
58593         * modules/unictype/property-test-tests: New file.
58594         * modules/unictype/property-titlecase-tests: New file.
58595         * modules/unictype/property-unassigned-code-value-tests: New file.
58596         * modules/unictype/property-unified-ideograph-tests: New file.
58597         * modules/unictype/property-uppercase-tests: New file.
58598         * modules/unictype/property-variation-selector-tests: New file.
58599         * modules/unictype/property-white-space-tests: New file.
58600         * modules/unictype/property-xid-continue-tests: New file.
58601         * modules/unictype/property-xid-start-tests: New file.
58602         * modules/unictype/property-zero-width-tests: New file.
58603         * modules/unictype/scripts-tests: New file.
58604         * modules/unictype/syntax-c-ident-tests: New file.
58605         * modules/unictype/syntax-c-whitespace-tests: New file.
58606         * modules/unictype/syntax-java-ident-tests: New file.
58607         * modules/unictype/syntax-java-whitespace-tests: New file.
58608         * tests/unictype/test-bidi_byname.c: New file.
58609         * tests/unictype/test-bidi_name.c: New file.
58610         * tests/unictype/test-bidi_of.c: New file.
58611         * tests/unictype/test-bidi_test.c: New file.
58612         * tests/unictype/test-block_list.c: New file.
58613         * tests/unictype/test-block_of.c: New file.
58614         * tests/unictype/test-block_test.c: New file.
58615         * tests/unictype/test-categ_and.c: New file.
58616         * tests/unictype/test-categ_and_not.c: New file.
58617         * tests/unictype/test-categ_byname.c: New file.
58618         * tests/unictype/test-categ_name.c: New file.
58619         * tests/unictype/test-categ_none.c: New file.
58620         * tests/unictype/test-categ_of.c: New file.
58621         * tests/unictype/test-categ_or.c: New file.
58622         * tests/unictype/test-categ_test_withtable.c: New file.
58623         * tests/unictype/test-combining.c: New file.
58624         * tests/unictype/test-decdigit.c: New file.
58625         * tests/unictype/test-digit.c: New file.
58626         * tests/unictype/test-mirror.c: New file.
58627         * tests/unictype/test-numeric.c: New file.
58628         * tests/unictype/test-pr_byname.c: New file.
58629         * tests/unictype/test-pr_test.c: New file.
58630         * tests/unictype/test-predicate-part1.h: New file.
58631         * tests/unictype/test-predicate-part2.h: New file.
58632         * tests/unictype/test-scripts.c: New file.
58633         * tests/unictype/test-sy_c_ident.c: New file.
58634         * tests/unictype/test-sy_java_ident.c: New file.
58635
58636         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58637         for Unicode 5.0.0.
58638         * tests/unictype/test-categ_Cc.c: Likewise.
58639         * tests/unictype/test-categ_Cf.c: Likewise.
58640         * tests/unictype/test-categ_Cn.c: Likewise.
58641         * tests/unictype/test-categ_Co.c: Likewise.
58642         * tests/unictype/test-categ_Cs.c: Likewise.
58643         * tests/unictype/test-categ_L.c: Likewise.
58644         * tests/unictype/test-categ_Ll.c: Likewise.
58645         * tests/unictype/test-categ_Lm.c: Likewise.
58646         * tests/unictype/test-categ_Lo.c: Likewise.
58647         * tests/unictype/test-categ_Lt.c: Likewise.
58648         * tests/unictype/test-categ_Lu.c: Likewise.
58649         * tests/unictype/test-categ_M.c: Likewise.
58650         * tests/unictype/test-categ_Mc.c: Likewise.
58651         * tests/unictype/test-categ_Me.c: Likewise.
58652         * tests/unictype/test-categ_Mn.c: Likewise.
58653         * tests/unictype/test-categ_N.c: Likewise.
58654         * tests/unictype/test-categ_Nd.c: Likewise.
58655         * tests/unictype/test-categ_Nl.c: Likewise.
58656         * tests/unictype/test-categ_No.c: Likewise.
58657         * tests/unictype/test-categ_P.c: Likewise.
58658         * tests/unictype/test-categ_Pc.c: Likewise.
58659         * tests/unictype/test-categ_Pd.c: Likewise.
58660         * tests/unictype/test-categ_Pe.c: Likewise.
58661         * tests/unictype/test-categ_Pf.c: Likewise.
58662         * tests/unictype/test-categ_Pi.c: Likewise.
58663         * tests/unictype/test-categ_Po.c: Likewise.
58664         * tests/unictype/test-categ_Ps.c: Likewise.
58665         * tests/unictype/test-categ_S.c: Likewise.
58666         * tests/unictype/test-categ_Sc.c: Likewise.
58667         * tests/unictype/test-categ_Sk.c: Likewise.
58668         * tests/unictype/test-categ_Sm.c: Likewise.
58669         * tests/unictype/test-categ_So.c: Likewise.
58670         * tests/unictype/test-categ_Z.c: Likewise.
58671         * tests/unictype/test-categ_Zl.c: Likewise.
58672         * tests/unictype/test-categ_Zp.c: Likewise.
58673         * tests/unictype/test-categ_Zs.c: Likewise.
58674         * tests/unictype/test-ctype_alnum.c: Likewise.
58675         * tests/unictype/test-ctype_alpha.c: Likewise.
58676         * tests/unictype/test-ctype_blank.c: Likewise.
58677         * tests/unictype/test-ctype_cntrl.c: Likewise.
58678         * tests/unictype/test-ctype_digit.c: Likewise.
58679         * tests/unictype/test-ctype_graph.c: Likewise.
58680         * tests/unictype/test-ctype_lower.c: Likewise.
58681         * tests/unictype/test-ctype_print.c: Likewise.
58682         * tests/unictype/test-ctype_punct.c: Likewise.
58683         * tests/unictype/test-ctype_space.c: Likewise.
58684         * tests/unictype/test-ctype_upper.c: Likewise.
58685         * tests/unictype/test-ctype_xdigit.c: Likewise.
58686         * tests/unictype/test-decdigit.h: Likewise.
58687         * tests/unictype/test-digit.h: Likewise.
58688         * tests/unictype/test-numeric.h: Likewise.
58689         * tests/unictype/test-pr_alphabetic.c: Likewise.
58690         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58691         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58692         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58693         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58694         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58695         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58696         * tests/unictype/test-pr_bidi_control.c: Likewise.
58697         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58698         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58699         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58700         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58701         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58702         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58703         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58704         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58705         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58706         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58707         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58708         * tests/unictype/test-pr_combining.c: Likewise.
58709         * tests/unictype/test-pr_composite.c: Likewise.
58710         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58711         * tests/unictype/test-pr_dash.c: Likewise.
58712         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58713         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58714         * tests/unictype/test-pr_deprecated.c: Likewise.
58715         * tests/unictype/test-pr_diacritic.c: Likewise.
58716         * tests/unictype/test-pr_extender.c: Likewise.
58717         * tests/unictype/test-pr_format_control.c: Likewise.
58718         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58719         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58720         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58721         * tests/unictype/test-pr_hex_digit.c: Likewise.
58722         * tests/unictype/test-pr_hyphen.c: Likewise.
58723         * tests/unictype/test-pr_id_continue.c: Likewise.
58724         * tests/unictype/test-pr_id_start.c: Likewise.
58725         * tests/unictype/test-pr_ideographic.c: Likewise.
58726         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58727         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58728         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58729         * tests/unictype/test-pr_iso_control.c: Likewise.
58730         * tests/unictype/test-pr_join_control.c: Likewise.
58731         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58732         * tests/unictype/test-pr_line_separator.c: Likewise.
58733         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58734         * tests/unictype/test-pr_lowercase.c: Likewise.
58735         * tests/unictype/test-pr_math.c: Likewise.
58736         * tests/unictype/test-pr_non_break.c: Likewise.
58737         * tests/unictype/test-pr_not_a_character.c: Likewise.
58738         * tests/unictype/test-pr_numeric.c: Likewise.
58739         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58740         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58741         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58742         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58743         * tests/unictype/test-pr_other_id_start.c: Likewise.
58744         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58745         * tests/unictype/test-pr_other_math.c: Likewise.
58746         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58747         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58748         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58749         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58750         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58751         * tests/unictype/test-pr_private_use.c: Likewise.
58752         * tests/unictype/test-pr_punctuation.c: Likewise.
58753         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58754         * tests/unictype/test-pr_radical.c: Likewise.
58755         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58756         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58757         * tests/unictype/test-pr_space.c: Likewise.
58758         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58759         * tests/unictype/test-pr_titlecase.c: Likewise.
58760         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58761         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58762         * tests/unictype/test-pr_uppercase.c: Likewise.
58763         * tests/unictype/test-pr_variation_selector.c: Likewise.
58764         * tests/unictype/test-pr_white_space.c: Likewise.
58765         * tests/unictype/test-pr_xid_continue.c: Likewise.
58766         * tests/unictype/test-pr_xid_start.c: Likewise.
58767         * tests/unictype/test-pr_zero_width.c: Likewise.
58768         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58769         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58770
58771 2007-11-12  Bruno Haible  <bruno@clisp.org>
58772
58773         Unicode character classification functions.
58774         * lib/unictype.h: New file.
58775         * modules/unictype/base: New file.
58776         * modules/unictype/category-L: New file.
58777         * modules/unictype/category-Lu: New file.
58778         * modules/unictype/category-Ll: New file.
58779         * modules/unictype/category-Lt: New file.
58780         * modules/unictype/category-Lm: New file.
58781         * modules/unictype/category-Lo: New file.
58782         * modules/unictype/category-M: New file.
58783         * modules/unictype/category-Mn: New file.
58784         * modules/unictype/category-Mc: New file.
58785         * modules/unictype/category-Me: New file.
58786         * modules/unictype/category-N: New file.
58787         * modules/unictype/category-Nd: New file.
58788         * modules/unictype/category-Nl: New file.
58789         * modules/unictype/category-No: New file.
58790         * modules/unictype/category-P: New file.
58791         * modules/unictype/category-Pc: New file.
58792         * modules/unictype/category-Pd: New file.
58793         * modules/unictype/category-Ps: New file.
58794         * modules/unictype/category-Pe: New file.
58795         * modules/unictype/category-Pi: New file.
58796         * modules/unictype/category-Pf: New file.
58797         * modules/unictype/category-Po: New file.
58798         * modules/unictype/category-S: New file.
58799         * modules/unictype/category-Sm: New file.
58800         * modules/unictype/category-Sc: New file.
58801         * modules/unictype/category-Sk: New file.
58802         * modules/unictype/category-So: New file.
58803         * modules/unictype/category-Z: New file.
58804         * modules/unictype/category-Zs: New file.
58805         * modules/unictype/category-Zl: New file.
58806         * modules/unictype/category-Zp: New file.
58807         * modules/unictype/category-C: New file.
58808         * modules/unictype/category-Cc: New file.
58809         * modules/unictype/category-Cf: New file.
58810         * modules/unictype/category-Cs: New file.
58811         * modules/unictype/category-Co: New file.
58812         * modules/unictype/category-Cn: New file.
58813         * modules/unictype/category-or: New file.
58814         * modules/unictype/category-of: New file.
58815         * modules/unictype/category-test: New file.
58816         * modules/unictype/category-test-withtable: New file.
58817         * modules/unictype/category-byname: New file.
58818         * modules/unictype/category-none: New file.
58819         * modules/unictype/category-and: New file.
58820         * modules/unictype/category-and-not: New file.
58821         * modules/unictype/category-name: New file.
58822         * modules/unictype/combining-class: New file.
58823         * modules/unictype/category-all: New file.
58824         * modules/unictype/bidicategory-all: New file.
58825         * modules/unictype/bidicategory-byname: New file.
58826         * modules/unictype/bidicategory-name: New file.
58827         * modules/unictype/bidicategory-of: New file.
58828         * modules/unictype/bidicategory-test: New file.
58829         * modules/unictype/decimal-digit: New file.
58830         * modules/unictype/digit: New file.
58831         * modules/unictype/numeric: New file.
58832         * modules/unictype/mirror: New file.
58833         * modules/unictype/property-white-space: New file.
58834         * modules/unictype/property-alphabetic: New file.
58835         * modules/unictype/property-other-alphabetic: New file.
58836         * modules/unictype/property-not-a-character: New file.
58837         * modules/unictype/property-default-ignorable-code-point: New file.
58838         * modules/unictype/property-other-default-ignorable-code-point: New
58839         file.
58840         * modules/unictype/property-deprecated: New file.
58841         * modules/unictype/property-logical-order-exception: New file.
58842         * modules/unictype/property-variation-selector: New file.
58843         * modules/unictype/property-private-use: New file.
58844         * modules/unictype/property-unassigned-code-value: New file.
58845         * modules/unictype/property-uppercase: New file.
58846         * modules/unictype/property-other-uppercase: New file.
58847         * modules/unictype/property-lowercase: New file.
58848         * modules/unictype/property-other-lowercase: New file.
58849         * modules/unictype/property-titlecase: New file.
58850         * modules/unictype/property-soft-dotted: New file.
58851         * modules/unictype/property-id-start: New file.
58852         * modules/unictype/property-other-id-start: New file.
58853         * modules/unictype/property-id-continue: New file.
58854         * modules/unictype/property-other-id-continue: New file.
58855         * modules/unictype/property-xid-start: New file.
58856         * modules/unictype/property-xid-continue: New file.
58857         * modules/unictype/property-pattern-white-space: New file.
58858         * modules/unictype/property-pattern-syntax: New file.
58859         * modules/unictype/property-join-control: New file.
58860         * modules/unictype/property-grapheme-base: New file.
58861         * modules/unictype/property-grapheme-extend: New file.
58862         * modules/unictype/property-other-grapheme-extend: New file.
58863         * modules/unictype/property-grapheme-link: New file.
58864         * modules/unictype/property-bidi-control: New file.
58865         * modules/unictype/property-bidi-left-to-right: New file.
58866         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58867         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58868         * modules/unictype/property-bidi-european-digit: New file.
58869         * modules/unictype/property-bidi-eur-num-separator: New file.
58870         * modules/unictype/property-bidi-eur-num-terminator: New file.
58871         * modules/unictype/property-bidi-arabic-digit: New file.
58872         * modules/unictype/property-bidi-common-separator: New file.
58873         * modules/unictype/property-bidi-block-separator: New file.
58874         * modules/unictype/property-bidi-segment-separator: New file.
58875         * modules/unictype/property-bidi-whitespace: New file.
58876         * modules/unictype/property-bidi-non-spacing-mark: New file.
58877         * modules/unictype/property-bidi-boundary-neutral: New file.
58878         * modules/unictype/property-bidi-pdf: New file.
58879         * modules/unictype/property-bidi-embedding-or-override: New file.
58880         * modules/unictype/property-bidi-other-neutral: New file.
58881         * modules/unictype/property-hex-digit: New file.
58882         * modules/unictype/property-ascii-hex-digit: New file.
58883         * modules/unictype/property-ideographic: New file.
58884         * modules/unictype/property-unified-ideograph: New file.
58885         * modules/unictype/property-radical: New file.
58886         * modules/unictype/property-ids-binary-operator: New file.
58887         * modules/unictype/property-ids-trinary-operator: New file.
58888         * modules/unictype/property-zero-width: New file.
58889         * modules/unictype/property-space: New file.
58890         * modules/unictype/property-non-break: New file.
58891         * modules/unictype/property-iso-control: New file.
58892         * modules/unictype/property-format-control: New file.
58893         * modules/unictype/property-dash: New file.
58894         * modules/unictype/property-hyphen: New file.
58895         * modules/unictype/property-punctuation: New file.
58896         * modules/unictype/property-line-separator: New file.
58897         * modules/unictype/property-paragraph-separator: New file.
58898         * modules/unictype/property-quotation-mark: New file.
58899         * modules/unictype/property-sentence-terminal: New file.
58900         * modules/unictype/property-terminal-punctuation: New file.
58901         * modules/unictype/property-currency-symbol: New file.
58902         * modules/unictype/property-math: New file.
58903         * modules/unictype/property-other-math: New file.
58904         * modules/unictype/property-paired-punctuation: New file.
58905         * modules/unictype/property-left-of-pair: New file.
58906         * modules/unictype/property-combining: New file.
58907         * modules/unictype/property-composite: New file.
58908         * modules/unictype/property-decimal-digit: New file.
58909         * modules/unictype/property-numeric: New file.
58910         * modules/unictype/property-diacritic: New file.
58911         * modules/unictype/property-extender: New file.
58912         * modules/unictype/property-ignorable-control: New file.
58913         * modules/unictype/property-test: New file.
58914         * modules/unictype/property-byname: New file.
58915         * modules/unictype/property-all: New file.
58916         * modules/unictype/scripts: New file.
58917         * modules/unictype/scripts-all: New file.
58918         * modules/unictype/block-of: New file.
58919         * modules/unictype/block-test: New file.
58920         * modules/unictype/block-list: New file.
58921         * modules/unictype/block-all: New file.
58922         * modules/unictype/syntax-c-whitespace: New file.
58923         * modules/unictype/syntax-java-whitespace: New file.
58924         * modules/unictype/syntax-c-ident: New file.
58925         * modules/unictype/syntax-java-ident: New file.
58926         * modules/unictype/ctype-alnum: New file.
58927         * modules/unictype/ctype-alpha: New file.
58928         * modules/unictype/ctype-cntrl: New file.
58929         * modules/unictype/ctype-digit: New file.
58930         * modules/unictype/ctype-graph: New file.
58931         * modules/unictype/ctype-lower: New file.
58932         * modules/unictype/ctype-print: New file.
58933         * modules/unictype/ctype-punct: New file.
58934         * modules/unictype/ctype-space: New file.
58935         * modules/unictype/ctype-upper: New file.
58936         * modules/unictype/ctype-xdigit: New file.
58937         * modules/unictype/ctype-blank: New file.
58938         * lib/unictype/bidi_byname.c: New file.
58939         * lib/unictype/bidi_name.c: New file.
58940         * lib/unictype/bidi_of.c: New file.
58941         * lib/unictype/bidi_test.c: New file.
58942         * lib/unictype/bitmap.h: New file.
58943         * lib/unictype/block_test.c: New file.
58944         * lib/unictype/blocks.c: New file.
58945         * lib/unictype/categ_C.c: New file.
58946         * lib/unictype/categ_Cc.c: New file.
58947         * lib/unictype/categ_Cf.c: New file.
58948         * lib/unictype/categ_Cn.c: New file.
58949         * lib/unictype/categ_Co.c: New file.
58950         * lib/unictype/categ_Cs.c: New file.
58951         * lib/unictype/categ_L.c: New file.
58952         * lib/unictype/categ_Ll.c: New file.
58953         * lib/unictype/categ_Lm.c: New file.
58954         * lib/unictype/categ_Lo.c: New file.
58955         * lib/unictype/categ_Lt.c: New file.
58956         * lib/unictype/categ_Lu.c: New file.
58957         * lib/unictype/categ_M.c: New file.
58958         * lib/unictype/categ_Mc.c: New file.
58959         * lib/unictype/categ_Me.c: New file.
58960         * lib/unictype/categ_Mn.c: New file.
58961         * lib/unictype/categ_N.c: New file.
58962         * lib/unictype/categ_Nd.c: New file.
58963         * lib/unictype/categ_Nl.c: New file.
58964         * lib/unictype/categ_No.c: New file.
58965         * lib/unictype/categ_P.c: New file.
58966         * lib/unictype/categ_Pc.c: New file.
58967         * lib/unictype/categ_Pd.c: New file.
58968         * lib/unictype/categ_Pe.c: New file.
58969         * lib/unictype/categ_Pf.c: New file.
58970         * lib/unictype/categ_Pi.c: New file.
58971         * lib/unictype/categ_Po.c: New file.
58972         * lib/unictype/categ_Ps.c: New file.
58973         * lib/unictype/categ_S.c: New file.
58974         * lib/unictype/categ_Sc.c: New file.
58975         * lib/unictype/categ_Sk.c: New file.
58976         * lib/unictype/categ_Sm.c: New file.
58977         * lib/unictype/categ_So.c: New file.
58978         * lib/unictype/categ_Z.c: New file.
58979         * lib/unictype/categ_Zl.c: New file.
58980         * lib/unictype/categ_Zp.c: New file.
58981         * lib/unictype/categ_Zs.c: New file.
58982         * lib/unictype/categ_and.c: New file.
58983         * lib/unictype/categ_and_not.c: New file.
58984         * lib/unictype/categ_byname.c: New file.
58985         * lib/unictype/categ_name.c: New file.
58986         * lib/unictype/categ_none.c: New file.
58987         * lib/unictype/categ_of.c: New file.
58988         * lib/unictype/categ_or.c: New file.
58989         * lib/unictype/categ_test.c: New file.
58990         * lib/unictype/combining.c: New file.
58991         * lib/unictype/ctype_alnum.c: New file.
58992         * lib/unictype/ctype_alpha.c: New file.
58993         * lib/unictype/ctype_blank.c: New file.
58994         * lib/unictype/ctype_cntrl.c: New file.
58995         * lib/unictype/ctype_digit.c: New file.
58996         * lib/unictype/ctype_graph.c: New file.
58997         * lib/unictype/ctype_lower.c: New file.
58998         * lib/unictype/ctype_print.c: New file.
58999         * lib/unictype/ctype_punct.c: New file.
59000         * lib/unictype/ctype_space.c: New file.
59001         * lib/unictype/ctype_upper.c: New file.
59002         * lib/unictype/ctype_xdigit.c: New file.
59003         * lib/unictype/decdigit.c: New file.
59004         * lib/unictype/digit.c: New file.
59005         * lib/unictype/identsyntaxmap.h: New file.
59006         * lib/unictype/mirror.c: New file.
59007         * lib/unictype/numeric.c: New file.
59008         * lib/unictype/pr_alphabetic.c: New file.
59009         * lib/unictype/pr_ascii_hex_digit.c: New file.
59010         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59011         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59012         * lib/unictype/pr_bidi_block_separator.c: New file.
59013         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59014         * lib/unictype/pr_bidi_common_separator.c: New file.
59015         * lib/unictype/pr_bidi_control.c: New file.
59016         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59017         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59018         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59019         * lib/unictype/pr_bidi_european_digit.c: New file.
59020         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59021         * lib/unictype/pr_bidi_left_to_right.c: New file.
59022         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59023         * lib/unictype/pr_bidi_other_neutral.c: New file.
59024         * lib/unictype/pr_bidi_pdf.c: New file.
59025         * lib/unictype/pr_bidi_segment_separator.c: New file.
59026         * lib/unictype/pr_bidi_whitespace.c: New file.
59027         * lib/unictype/pr_byname.c: New file.
59028         * lib/unictype/pr_byname.gperf: New file.
59029         * lib/unictype/pr_combining.c: New file.
59030         * lib/unictype/pr_composite.c: New file.
59031         * lib/unictype/pr_currency_symbol.c: New file.
59032         * lib/unictype/pr_dash.c: New file.
59033         * lib/unictype/pr_decimal_digit.c: New file.
59034         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59035         * lib/unictype/pr_deprecated.c: New file.
59036         * lib/unictype/pr_diacritic.c: New file.
59037         * lib/unictype/pr_extender.c: New file.
59038         * lib/unictype/pr_format_control.c: New file.
59039         * lib/unictype/pr_grapheme_base.c: New file.
59040         * lib/unictype/pr_grapheme_extend.c: New file.
59041         * lib/unictype/pr_grapheme_link.c: New file.
59042         * lib/unictype/pr_hex_digit.c: New file.
59043         * lib/unictype/pr_hyphen.c: New file.
59044         * lib/unictype/pr_id_continue.c: New file.
59045         * lib/unictype/pr_id_start.c: New file.
59046         * lib/unictype/pr_ideographic.c: New file.
59047         * lib/unictype/pr_ids_binary_operator.c: New file.
59048         * lib/unictype/pr_ids_trinary_operator.c: New file.
59049         * lib/unictype/pr_ignorable_control.c: New file.
59050         * lib/unictype/pr_iso_control.c: New file.
59051         * lib/unictype/pr_join_control.c: New file.
59052         * lib/unictype/pr_left_of_pair.c: New file.
59053         * lib/unictype/pr_line_separator.c: New file.
59054         * lib/unictype/pr_logical_order_exception.c: New file.
59055         * lib/unictype/pr_lowercase.c: New file.
59056         * lib/unictype/pr_math.c: New file.
59057         * lib/unictype/pr_non_break.c: New file.
59058         * lib/unictype/pr_not_a_character.c: New file.
59059         * lib/unictype/pr_numeric.c: New file.
59060         * lib/unictype/pr_other_alphabetic.c: New file.
59061         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59062         * lib/unictype/pr_other_grapheme_extend.c: New file.
59063         * lib/unictype/pr_other_id_continue.c: New file.
59064         * lib/unictype/pr_other_id_start.c: New file.
59065         * lib/unictype/pr_other_lowercase.c: New file.
59066         * lib/unictype/pr_other_math.c: New file.
59067         * lib/unictype/pr_other_uppercase.c: New file.
59068         * lib/unictype/pr_paired_punctuation.c: New file.
59069         * lib/unictype/pr_paragraph_separator.c: New file.
59070         * lib/unictype/pr_pattern_syntax.c: New file.
59071         * lib/unictype/pr_pattern_white_space.c: New file.
59072         * lib/unictype/pr_private_use.c: New file.
59073         * lib/unictype/pr_punctuation.c: New file.
59074         * lib/unictype/pr_quotation_mark.c: New file.
59075         * lib/unictype/pr_radical.c: New file.
59076         * lib/unictype/pr_sentence_terminal.c: New file.
59077         * lib/unictype/pr_soft_dotted.c: New file.
59078         * lib/unictype/pr_space.c: New file.
59079         * lib/unictype/pr_terminal_punctuation.c: New file.
59080         * lib/unictype/pr_test.c: New file.
59081         * lib/unictype/pr_titlecase.c: New file.
59082         * lib/unictype/pr_unassigned_code_value.c: New file.
59083         * lib/unictype/pr_unified_ideograph.c: New file.
59084         * lib/unictype/pr_uppercase.c: New file.
59085         * lib/unictype/pr_variation_selector.c: New file.
59086         * lib/unictype/pr_white_space.c: New file.
59087         * lib/unictype/pr_xid_continue.c: New file.
59088         * lib/unictype/pr_xid_start.c: New file.
59089         * lib/unictype/pr_zero_width.c: New file.
59090         * lib/unictype/scripts.c: New file.
59091         * lib/unictype/sy_c_ident.c: New file.
59092         * lib/unictype/sy_c_whitespace.c: New file.
59093         * lib/unictype/sy_java_ident.c: New file.
59094         * lib/unictype/sy_java_whitespace.c: New file.
59095
59096         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59097         Unicode 5.0.0.
59098         * lib/unictype/blocks.h: Likewise.
59099         * lib/unictype/categ_C.h: Likewise.
59100         * lib/unictype/categ_Cc.h: Likewise.
59101         * lib/unictype/categ_Cf.h: Likewise.
59102         * lib/unictype/categ_Cn.h: Likewise.
59103         * lib/unictype/categ_Co.h: Likewise.
59104         * lib/unictype/categ_Cs.h: Likewise.
59105         * lib/unictype/categ_L.h: Likewise.
59106         * lib/unictype/categ_Ll.h: Likewise.
59107         * lib/unictype/categ_Lm.h: Likewise.
59108         * lib/unictype/categ_Lo.h: Likewise.
59109         * lib/unictype/categ_Lt.h: Likewise.
59110         * lib/unictype/categ_Lu.h: Likewise.
59111         * lib/unictype/categ_M.h: Likewise.
59112         * lib/unictype/categ_Mc.h: Likewise.
59113         * lib/unictype/categ_Me.h: Likewise.
59114         * lib/unictype/categ_Mn.h: Likewise.
59115         * lib/unictype/categ_N.h: Likewise.
59116         * lib/unictype/categ_Nd.h: Likewise.
59117         * lib/unictype/categ_Nl.h: Likewise.
59118         * lib/unictype/categ_No.h: Likewise.
59119         * lib/unictype/categ_P.h: Likewise.
59120         * lib/unictype/categ_Pc.h: Likewise.
59121         * lib/unictype/categ_Pd.h: Likewise.
59122         * lib/unictype/categ_Pe.h: Likewise.
59123         * lib/unictype/categ_Pf.h: Likewise.
59124         * lib/unictype/categ_Pi.h: Likewise.
59125         * lib/unictype/categ_Po.h: Likewise.
59126         * lib/unictype/categ_Ps.h: Likewise.
59127         * lib/unictype/categ_S.h: Likewise.
59128         * lib/unictype/categ_Sc.h: Likewise.
59129         * lib/unictype/categ_Sk.h: Likewise.
59130         * lib/unictype/categ_Sm.h: Likewise.
59131         * lib/unictype/categ_So.h: Likewise.
59132         * lib/unictype/categ_Z.h: Likewise.
59133         * lib/unictype/categ_Zl.h: Likewise.
59134         * lib/unictype/categ_Zp.h: Likewise.
59135         * lib/unictype/categ_Zs.h: Likewise.
59136         * lib/unictype/categ_of.h: Likewise.
59137         * lib/unictype/combining.h: Likewise.
59138         * lib/unictype/ctype_alnum.h: Likewise.
59139         * lib/unictype/ctype_alpha.h: Likewise.
59140         * lib/unictype/ctype_blank.h: Likewise.
59141         * lib/unictype/ctype_cntrl.h: Likewise.
59142         * lib/unictype/ctype_digit.h: Likewise.
59143         * lib/unictype/ctype_graph.h: Likewise.
59144         * lib/unictype/ctype_lower.h: Likewise.
59145         * lib/unictype/ctype_print.h: Likewise.
59146         * lib/unictype/ctype_punct.h: Likewise.
59147         * lib/unictype/ctype_space.h: Likewise.
59148         * lib/unictype/ctype_upper.h: Likewise.
59149         * lib/unictype/ctype_xdigit.h: Likewise.
59150         * lib/unictype/decdigit.h: Likewise.
59151         * lib/unictype/digit.h: Likewise.
59152         * lib/unictype/mirror.h: Likewise.
59153         * lib/unictype/numeric.h: Likewise.
59154         * lib/unictype/pr_alphabetic.h: Likewise.
59155         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59156         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59157         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59158         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59159         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59160         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59161         * lib/unictype/pr_bidi_control.h: Likewise.
59162         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59163         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59164         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59165         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59166         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59167         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59168         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59169         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59170         * lib/unictype/pr_bidi_pdf.h: Likewise.
59171         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59172         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59173         * lib/unictype/pr_combining.h: Likewise.
59174         * lib/unictype/pr_composite.h: Likewise.
59175         * lib/unictype/pr_currency_symbol.h: Likewise.
59176         * lib/unictype/pr_dash.h: Likewise.
59177         * lib/unictype/pr_decimal_digit.h: Likewise.
59178         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59179         * lib/unictype/pr_deprecated.h: Likewise.
59180         * lib/unictype/pr_diacritic.h: Likewise.
59181         * lib/unictype/pr_extender.h: Likewise.
59182         * lib/unictype/pr_format_control.h: Likewise.
59183         * lib/unictype/pr_grapheme_base.h: Likewise.
59184         * lib/unictype/pr_grapheme_extend.h: Likewise.
59185         * lib/unictype/pr_grapheme_link.h: Likewise.
59186         * lib/unictype/pr_hex_digit.h: Likewise.
59187         * lib/unictype/pr_hyphen.h: Likewise.
59188         * lib/unictype/pr_id_continue.h: Likewise.
59189         * lib/unictype/pr_id_start.h: Likewise.
59190         * lib/unictype/pr_ideographic.h: Likewise.
59191         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59192         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59193         * lib/unictype/pr_ignorable_control.h: Likewise.
59194         * lib/unictype/pr_iso_control.h: Likewise.
59195         * lib/unictype/pr_join_control.h: Likewise.
59196         * lib/unictype/pr_left_of_pair.h: Likewise.
59197         * lib/unictype/pr_line_separator.h: Likewise.
59198         * lib/unictype/pr_logical_order_exception.h: Likewise.
59199         * lib/unictype/pr_lowercase.h: Likewise.
59200         * lib/unictype/pr_math.h: Likewise.
59201         * lib/unictype/pr_non_break.h: Likewise.
59202         * lib/unictype/pr_not_a_character.h: Likewise.
59203         * lib/unictype/pr_numeric.h: Likewise.
59204         * lib/unictype/pr_other_alphabetic.h: Likewise.
59205         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59206         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59207         * lib/unictype/pr_other_id_continue.h: Likewise.
59208         * lib/unictype/pr_other_id_start.h: Likewise.
59209         * lib/unictype/pr_other_lowercase.h: Likewise.
59210         * lib/unictype/pr_other_math.h: Likewise.
59211         * lib/unictype/pr_other_uppercase.h: Likewise.
59212         * lib/unictype/pr_paired_punctuation.h: Likewise.
59213         * lib/unictype/pr_paragraph_separator.h: Likewise.
59214         * lib/unictype/pr_pattern_syntax.h: Likewise.
59215         * lib/unictype/pr_pattern_white_space.h: Likewise.
59216         * lib/unictype/pr_private_use.h: Likewise.
59217         * lib/unictype/pr_punctuation.h: Likewise.
59218         * lib/unictype/pr_quotation_mark.h: Likewise.
59219         * lib/unictype/pr_radical.h: Likewise.
59220         * lib/unictype/pr_sentence_terminal.h: Likewise.
59221         * lib/unictype/pr_soft_dotted.h: Likewise.
59222         * lib/unictype/pr_space.h: Likewise.
59223         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59224         * lib/unictype/pr_titlecase.h: Likewise.
59225         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59226         * lib/unictype/pr_unified_ideograph.h: Likewise.
59227         * lib/unictype/pr_uppercase.h: Likewise.
59228         * lib/unictype/pr_variation_selector.h: Likewise.
59229         * lib/unictype/pr_white_space.h: Likewise.
59230         * lib/unictype/pr_xid_continue.h: Likewise.
59231         * lib/unictype/pr_xid_start.h: Likewise.
59232         * lib/unictype/pr_zero_width.h: Likewise.
59233         * lib/unictype/scripts.h: Likewise.
59234         * lib/unictype/scripts_byname.gperf: Likewise.
59235         * lib/unictype/sy_c_ident.h: Likewise.
59236         * lib/unictype/sy_c_whitespace.h: Likewise.
59237         * lib/unictype/sy_java_ident.h: Likewise.
59238         * lib/unictype/sy_java_whitespace.h: Likewise.
59239
59240         * lib/unictype/Makefile: New file.
59241         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59242         glibc.
59243         * lib/unictype/3level.h: New file, copied from glibc.
59244         * lib/unictype/3levelbit.h: New file.
59245
59246 2007-11-11  Bruno Haible  <bruno@clisp.org>
59247
59248         * modules/gperf: New file.
59249         * modules/iconv_open (Depends-on): Add it.
59250         (Makefile.am): Remove the GPERF definition.
59251
59252 2007-11-11  Bruno Haible  <bruno@clisp.org>
59253
59254         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59255         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59256
59257 2007-11-11  Bruno Haible  <bruno@clisp.org>
59258
59259         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59260         (usage): Remove function.
59261
59262 2007-11-11  Bruno Haible  <bruno@clisp.org>
59263
59264         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59265         gl_FUNC_CEILF_LIBS.
59266         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59267         gl_FUNC_CEIL_LIBS.
59268         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59269         gl_FUNC_CEILL_LIBS.
59270         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59271         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59272         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59273
59274 2007-11-11  Bruno Haible  <bruno@clisp.org>
59275
59276         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59277         roundf were declared but do not exist on functions.
59278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59279         roundl were declared but do not exist on functions.
59280         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59281         HAVE_FLOORL_AND_CEILL, respectively.
59282         Needed for Sun C on Solaris 10.
59283
59284 2007-11-11  Bruno Haible  <bruno@clisp.org>
59285
59286         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59287         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59288         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59289         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59290         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59291         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59292         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59293         HAVE_DECL_ROUNDF.
59294         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59295         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59297         of HAVE_DECL_ROUND*.
59298         * modules/math (Makefile.am): Update.
59299
59300 2007-11-10  Bruno Haible  <bruno@clisp.org>
59301
59302         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59303         ptrdiff_t as m4/intl.m4.
59304
59305 2007-11-10  Jim Meyering  <meyering@redhat.com>
59306
59307         Avoid link failure for the argmatch test.
59308         * tests/test-argmatch.c (usage): Define function to avoid a link
59309         failure: argmatch_die requires a usage function.
59310
59311 2007-11-09  Bruno Haible  <bruno@clisp.org>
59312
59313         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59314         * doc/functions/vsnprintf.texi: Likewise.
59315         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59316         with a size argument < 2.
59317
59318 2007-11-09  Bruno Haible  <bruno@clisp.org>
59319
59320         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59321         buffer. Fixes an inefficiency introduced on 2007-11-03.
59322
59323 2007-11-09  Bruno Haible  <bruno@clisp.org>
59324
59325         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59326         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59327
59328 2007-11-08  Jim Meyering  <meyering@redhat.com>
59329
59330         Change cache variable name prefix "jm_" to "gl_" everywhere.
59331         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59332         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59333         * m4/uptime.m4: s/gl_/jm_/
59334
59335 2007-11-07  Bruno Haible  <bruno@clisp.org>
59336
59337         Update to GNU gettext 0.17.
59338         * m4/intl.m4: Update to GNU gettext 0.17.
59339         * m4/po.m4: Likewise.
59340         * modules/gettext (Files): Remove m4/ulonglong.m4.
59341         (configure.ac): Require gettext infrastructure from version 0.17.
59342
59343 2007-11-06  Bruno Haible  <bruno@clisp.org>
59344
59345         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59346         symbolic values are not defined in a public header.
59347         * lib/freadable.c (freadable) [QNX]: Likewise.
59348         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59349         * lib/freading.c (freading) [QNX]: Likewise.
59350         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59351         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59352         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59353         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59354         Reported by Alain Magloire.
59355
59356         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59357
59358 2007-11-05  Bruno Haible  <bruno@clisp.org>
59359
59360         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59361         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59362         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59363         Reported by Eric Blake.
59364
59365 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59366             Bruno Haible  <bruno@clisp.org>
59367
59368         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59369         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59370         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59371         (malloc): Undefine also before including <stdlib.h>.
59372         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59373         Needed on OSF/1 4.0.
59374
59375 2007-11-05  Jim Meyering  <meyering@redhat.com>
59376
59377         git-version-gen: sync from coreutils.
59378         * build-aux/git-version-gen: Add comments.
59379         Change the first '-' to '.' in the snapshot version string,
59380         e.g., 6.9-377-08144 -> 6.9.377-08144
59381         Remove first parameter.
59382         Don't declare a version "-dirty" merely because a time
59383         stamp has changed.
59384
59385 2007-11-04  Bruno Haible  <bruno@clisp.org>
59386
59387         * lib/lock.h: Protect all macro definitions containing an 'if'
59388         statement through a "do { ... } while (0)".
59389         * lib/tls.h: Likewise.
59390
59391 2007-11-04  Bruno Haible  <bruno@clisp.org>
59392
59393         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59394
59395 2007-11-04  Bruno Haible  <bruno@clisp.org>
59396
59397         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59398         * modules/fprintf-posix (Depends-on): Add nocrash.
59399         * modules/snprintf-posix (Depends-on): Likewise.
59400         * modules/sprintf-posix (Depends-on): Likewise.
59401         * modules/vasnprintf-posix (Depends-on): Likewise.
59402         * modules/vasprintf-posix (Depends-on): Likewise.
59403         * modules/vfprintf-posix (Depends-on): Likewise.
59404         * modules/vsnprintf-posix (Depends-on): Likewise.
59405         * modules/vsprintf-posix (Depends-on): Likewise.
59406         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59407         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59408         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59409         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59410         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59411         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59412         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59413
59414 2007-11-04  Bruno Haible  <bruno@clisp.org>
59415
59416         * modules/nocrash: New file.
59417         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59418         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59419
59420 2007-11-04  Bruno Haible  <bruno@clisp.org>
59421
59422         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59423         precision handling.
59424         * tests/test-vasprintf-posix.c (test_function): Likewise.
59425         * tests/test-snprintf-posix.h (test_function): Likewise.
59426         * tests/test-sprintf-posix.h (test_function): Likewise.
59427
59428         Fix *printf behaviour for large precisions on mingw and BeOS.
59429         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59430         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59431         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59432         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59433         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59434         gl_PRINTF_PRECISION and test its result. Invoke
59435         gl_PREREQ_VASNPRINTF_PRECISION.
59436         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59437         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59439         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59440         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59442         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59443         * doc/functions/fprintf.texi: Update.
59444         * doc/functions/printf.texi: Update.
59445         * doc/functions/snprintf.texi: Update.
59446         * doc/functions/sprintf.texi: Update.
59447         * doc/functions/vfprintf.texi: Update.
59448         * doc/functions/vprintf.texi: Update.
59449         * doc/functions/vsnprintf.texi: Update.
59450         * doc/functions/vsprintf.texi: Update.
59451
59452 2007-11-04  Bruno Haible  <bruno@clisp.org>
59453
59454         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59455
59456 2007-11-04  Bruno Haible  <bruno@clisp.org>
59457
59458         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59459         Reported by Sylvain Beucler <beuc@gnu.org>.
59460
59461 2007-11-03  Bruno Haible  <bruno@clisp.org>
59462
59463         * tests/test-fprintf-posix2.sh: New file.
59464         * tests/test-fprintf-posix2.c: New file.
59465         * modules/fprintf-posix-tests (Files): Add them.
59466         (TESTS): Add test-fprintf-posix2.sh.
59467         (configure.ac): Check for getrlimit and setrlimit.
59468         (check_PROGRAMS): Add test-fprintf-posix2.
59469
59470         * tests/test-printf-posix2.sh: New file.
59471         * tests/test-printf-posix2.c: New file.
59472         * modules/printf-posix-tests (Files): Add them.
59473         (TESTS): Add test-printf-posix2.sh.
59474         (configure.ac): Check for getrlimit and setrlimit.
59475         (check_PROGRAMS): Add test-printf-posix2.
59476
59477         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59478         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59479         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59480         (decode_double): New function, copied from decode_long_double.
59481         (scale10_round_decimal_decoded): New function, extracted from
59482         scale10_round_decimal_long_double.
59483         (scale10_round_decimal_long_double): Use it.
59484         (scale10_round_decimal_double): New function.
59485         (floorlog10): New function.
59486         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59488         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59489         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59490         gl_PRINTF_ENOMEM and test its result. Invoke
59491         gl_PREREQ_VASNPRINTF_ENOMEM.
59492         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59493         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59494         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59495         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59496         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59497         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59498         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59499         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59500         * modules/snprintf-posix (Depends-on): Likewise.
59501         * modules/sprintf-posix (Depends-on): Likewise.
59502         * modules/vasnprintf-posix (Depends-on): Likewise.
59503         * modules/vasprintf-posix (Depends-on): Likewise.
59504         * modules/vfprintf-posix (Depends-on): Likewise.
59505         * modules/vsnprintf-posix (Depends-on): Likewise.
59506         * modules/vsprintf-posix (Depends-on): Likewise.
59507         * doc/functions/fprintf.texi: Update.
59508         * doc/functions/printf.texi: Update.
59509         * doc/functions/snprintf.texi: Update.
59510         * doc/functions/sprintf.texi: Update.
59511         * doc/functions/vfprintf.texi: Update.
59512         * doc/functions/vprintf.texi: Update.
59513         * doc/functions/vsnprintf.texi: Update.
59514         * doc/functions/vsprintf.texi: Update.
59515
59516 2007-11-03  Bruno Haible  <bruno@clisp.org>
59517
59518         * modules/frexp-nolibm-tests: New file.
59519
59520         * modules/frexp-nolibm: New file.
59521         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59522
59523 2007-11-03  Bruno Haible  <bruno@clisp.org>
59524
59525         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59526         value is C99 compliant.
59527         Needed for OSF/1 5.1.
59528
59529 2007-11-03  Bruno Haible  <bruno@clisp.org>
59530
59531         Fix out-of-memory handling of vasnprintf.
59532         * lib/printf-parse.c: Include <errno.h>.
59533         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59534         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59535         is already set.
59536
59537 2007-11-02  Eric Blake  <ebb9@byu.net>
59538
59539         Fix tests on cygwin.
59540         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59541
59542 2007-11-01  Bruno Haible  <bruno@clisp.org>
59543
59544         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59545         warning.
59546         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59547         needed for POSIX compatibility.
59548
59549 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59550
59551         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59552         for compatibility with GNU.
59553
59554 2007-11-01  Bruno Haible  <bruno@clisp.org>
59555
59556         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59557         (putenv): Renamed from rpl_putenv. Change argument type from
59558         'const char *' to 'char *'.
59559         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59560         of defining putenv in config.h, just set REPLACE_PUTENV.
59561         * modules/putenv (Depends-on): Add stdlib.
59562         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59563         (Include): Use <stdlib.h>.
59564         * lib/stdlib.in.h (putenv): New declaration.
59565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59566         REPLACE_PUTENV.
59567         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59568         REPLACE_PUTENV.
59569         Needed for MacOS X 10.5.0.
59570         Reported by Peter O'Gorman <peter@pogma.com>.
59571
59572 2007-11-01  Jim Meyering  <meyering@redhat.com>
59573
59574         Treat an empty date string exactly like "0".
59575         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59576         if the remaining date string (to be parsed) is empty, use "0".
59577         Reported by Mischa Molhoek and discussed in this thread:
59578         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59579
59580 2007-10-31  Bruno Haible  <bruno@clisp.org>
59581
59582         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59583         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59584         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59585         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59586         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59587         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59588
59589 2007-10-31  Bruno Haible  <bruno@clisp.org>
59590
59591         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59592         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59593         (AC_TYPE_LONG_LONG_INT): Use it.
59594         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59595         it as well.
59596         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59597         to m4/longlong.m4.
59598         * modules/stdint (Files): Remove m4/ulonglong.m4.
59599         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59600         m4/ulonglong.m4.
59601         * modules/strtoumax (Files): Likewise.
59602
59603 2007-10-30  Bruno Haible  <bruno@clisp.org>
59604
59605         * modules/xvasprintf-posix: New file.
59606         Suggested by Eric Blake.
59607
59608 2007-10-30  Bruno Haible  <bruno@clisp.org>
59609
59610         * modules/xprintf-posix-tests: New file.
59611         * tests/test-xprintf-posix.sh: New file.
59612         * tests/test-xprintf-posix.c: New file.
59613         * tests/test-xfprintf-posix.c: New file.
59614
59615         * modules/xprintf-posix: New file.
59616
59617 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59618
59619         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59620         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59621         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59622
59623 2007-10-29  Bruno Haible  <bruno@clisp.org>
59624
59625         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59626         contain the special marker '_cv_'.
59627         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59628         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59629         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59630         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59631         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59632         Reported by Ralf Wildenhues.
59633
59634 2007-10-29  Bruno Haible  <bruno@clisp.org>
59635
59636         * gnulib-tool (func_import): When --lgpl is not specified, set
59637         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59638         GPLv3.
59639         Reported by Simon Josefsson.
59640
59641 2007-10-28  Bruno Haible  <bruno@clisp.org>
59642
59643         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59644         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59645         HAVE_DECL_ISFINITE.
59646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59647         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59648         HAVE_DECL_ISFINITE.
59649
59650 2007-10-28  Bruno Haible  <bruno@clisp.org>
59651
59652         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59653         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59654
59655 2007-10-28  Bruno Haible  <bruno@clisp.org>
59656
59657         Fix link errors with Sun C 5.0 on Solaris 10.
59658         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59659         function is declared but not present in the compiler's libm.
59660         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59661         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59662         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59663         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59664         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59665         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59666         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59668         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59669         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59670         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59671         HAVE_DECL_FLOORL.
59672
59673 2007-10-28  Bruno Haible  <bruno@clisp.org>
59674
59675         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59676         gl_FUNC_FLOORL. Cache the result.
59677         (gl_FUNC_FLOORL): Use it.
59678         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59679         gl_FUNC_CEILL. Cache the result.
59680         (gl_FUNC_CEILL): Use it.
59681
59682         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59683         gl_FUNC_FLOOR. Cache the result.
59684         (gl_FUNC_FLOOR): Use it.
59685         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59686         gl_FUNC_CEIL. Cache the result.
59687         (gl_FUNC_CEIL): Use it.
59688
59689         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59690         gl_FUNC_FLOORF. Cache the result.
59691         (gl_FUNC_FLOORF): Use it.
59692         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59693         gl_FUNC_CEILF. Cache the result.
59694         (gl_FUNC_CEILF): Use it.
59695
59696 2007-10-28  Bruno Haible  <bruno@clisp.org>
59697
59698         * gnulib-tool: Allow specifying the LGPL version number through
59699         --lgpl=2 or --lgpl=3.
59700         (func_usage): Document --lgpl with argument.
59701         Handle --lgpl=... arguments.
59702         (func_import): Recognize also gl_LGPL calls with an argument. When
59703         --lgpl=2 is used and the module's license is just LGPL, report an
59704         error. Set sed_transform_lib_file according to the lgpl variable. In
59705         the generated files, use --lgpl or gl_LGPL invocations with argument,
59706         if necessary.
59707         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59708         an LGPv2+ license.
59709         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59710         gl_LGPL macro.
59711
59712 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59713             Bruno Haible  <bruno@clisp.org>
59714
59715         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59716         (u16_uctomb_aux): Likewise.
59717         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59718         !HAVE_INLINE.
59719         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59720
59721 2007-10-28  Bruno Haible  <bruno@clisp.org>
59722
59723         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59724         Invoke AM_GETTEXT_OPTION if it exists.
59725         * modules/vasprintf: Likewise.
59726         * modules/verror: Likewise.
59727         * modules/xprintf: Likewise.
59728         * modules/xvasprintf: Likewise.
59729
59730 2007-10-27  Ben Pfaff  <blp@gnu.org>
59731
59732         * lib/math.in.h: Define isfinite macro and prototypes for
59733         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59734         implementations.
59735         * m4/math_h.m4: New substitutions for isfinite module.
59736         * lib/isfinite.c: New file.
59737         * m4/isfinite.m4: New file.
59738         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59739         * modules/isfinite: New file.
59740         * modules/isfinite-tests: New file.
59741         * tests/tests-isfinite.c: New file.
59742         * doc/functions/isfinite.texi: Mention isfinite module.
59743         * MODULES.html.sh: Mention new module.
59744
59745 2007-10-27  Ben Pfaff  <blp@gnu.org>
59746
59747         Ralf Wildenhues reported that Tru64 4.0D declares the round
59748         functions but does not have definitions.
59749         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59750         cannot be found in any library, set the output variable to
59751         "missing" instead of "".
59752         * m4/round.m4: Also use our substitute if we cannot find round in
59753         any library, even if it is declared.
59754         * m4/roundf.m4: Likewise for roundf.
59755         * m4/roundl.m4: Likewise for roundl.
59756         * lib/math.in.h: Undefine roundf, round, roundl before defining
59757         their replacements, to allow for hypothetical systems where these
59758         may be defined as macros but not available in libraries.
59759
59760 2007-10-27  Bruno Haible  <bruno@clisp.org>
59761
59762         * doc/gnulib.texi: Invoke @firstparagraphindent.
59763         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59764         changes in gnulib.
59765         (Source changes): New section.
59766
59767 2007-10-26  Bruno Haible  <bruno@clisp.org>
59768
59769         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59770         borrowed from autoconf.
59771
59772 2007-10-26  Bruno Haible  <bruno@clisp.org>
59773
59774         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59775         strerror returned the empty string. Needed on HP-UX 11.00.
59776
59777 2007-10-24  Micah Cowan  <micah@cowan.name>
59778
59779         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59780         * build-aux/bootstrap: Remove support for now-unnecessary option,
59781         --cvs-user, and envvars CVS_USER, CVS_RSH.
59782
59783 2007-10-24  Jim Meyering  <meyering@redhat.com>
59784
59785         Avoid diagnostics from sha1sum when there is no cached checksum.
59786         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59787         if the po.s1 file hasn't been created yet.
59788
59789         * build-aux/bootstrap: Sync from coreutils:
59790         2007-10-24  Jim Meyering  <meyering@redhat.com>
59791         Get gnulib from the git repository, not from an obsolete cvs one.
59792         * build-aux/bootstrap: Suggestion from Micah Cowan.
59793         2007-10-04  Jim Meyering  <jim@meyering.net>
59794         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59795         (update_po_files): Work also when there are no .po files in po/.
59796
59797 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59798
59799         * README: Append ".git" to git and cg examples.
59800         Problem reported by Benoit Sigoure.
59801
59802 2007-10-23  Micah Cowan  <micah@cowan.name>
59803
59804         * users.txt: Add wget.
59805
59806 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59807
59808         Fix linking of some unistdio tests on FreeBSD.
59809         * modules/unistdio/u16-vsnprintf-tests
59810         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59811         * modules/unistdio/u16-vsprintf-tests
59812         (test_u16_vsnprintf1_LDADD): Likewise.
59813         * modules/unistdio/u32-vsnprintf-tests
59814         (test_u32_vsnprintf1_LDADD): Likewise.
59815         * modules/unistdio/u32-vsprintf-tests
59816         (test_u32_vsprintf1_LDADD): Likewise.
59817         * modules/unistdio/u8-vsnprintf-tests
59818         (test_u8_vsnprintf1_LDADD): Likewise.
59819         * modules/unistdio/u8-vsprintf-tests
59820         (test_u8_vsprintf1_LDADD): Likewise.
59821         * modules/unistdio/ulc-vsnprintf-tests
59822         (test_ulc_vsnprintf1_LDADD): Likewise.
59823         * modules/unistdio/ulc-vsprintf-tests
59824         (test_ulc_vsprintf1_LDADD): Likewise.
59825
59826         Fix linking of some uniconv tests on FreeBSD.
59827         * modules/uniconv/u16-conv-from-enc-tests
59828         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59829         * modules/uniconv/u16-conv-to-enc-tests
59830         (test_u16_conv_to_enc_LDADD): Likewise.
59831         * modules/uniconv/u16-strconv-from-enc-tests
59832         (test_u16_strconv_from_enc_LDADD): Likewise.
59833         * modules/uniconv/u16-strconv-to-enc-tests
59834         (test_u16_strconv_to_enc_LDADD): Likewise.
59835         * modules/uniconv/u32-conv-from-enc-tests
59836         (test_u32_conv_from_enc_LDADD): Likewise.
59837         * modules/uniconv/u32-conv-to-enc-tests
59838         (test_u32_conv_to_enc_LDADD): Likewise.
59839         * modules/uniconv/u32-strconv-from-enc-tests
59840         (test_u32_strconv_from_enc_LDADD): Likewise.
59841         * modules/uniconv/u32-strconv-to-enc-tests
59842         (test_u32_strconv_to_enc_LDADD): Likewise.
59843         * modules/uniconv/u8-conv-from-enc-tests
59844         (test_u8_conv_from_enc_LDADD): Likewise.
59845         * modules/uniconv/u8-conv-to-enc-tests
59846         (test_u8_conv_to_enc_LDADD): Likewise.
59847         * modules/uniconv/u8-strconv-from-enc-tests
59848         (test_u8_strconv_from_enc_LDADD): Likewise.
59849         * modules/uniconv/u8-strconv-to-enc-tests
59850         (test_u8_strconv_to_enc_LDADD): Likewise.
59851
59852 2007-10-22  Bruno Haible  <bruno@clisp.org>
59853
59854         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59855         size.
59856
59857 2007-10-22  Eric Blake  <ebb9@byu.net>
59858
59859         Tweak x*printf documentation.
59860         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59861         variable name and comments.
59862         Suggested by Bruno Haible.
59863
59864 2007-10-22  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/acl.c (copy_acl): Fix file name in comment.
59867
59868 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59869
59870         Fix Tru64 problem with stdbool.h.
59871         * lib/stdbool.in.h (false, true):
59872         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59873         Don't declare as an enum in this situation; it runs afoul of Tru64.
59874         Problem reported by Steven M. Schweda in
59875         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59876
59877 2007-10-22  Eric Blake  <ebb9@byu.net>
59878
59879         Also wrap vf?printf.
59880         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59881         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59882         (xvprintf, xvfprintf): New functions.
59883
59884 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59885
59886         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59887         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59888
59889         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59890         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59891
59892 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59893
59894         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59895         by Bruno Haible.
59896
59897 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59898
59899         * lib/getloadavg.c
59900         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59901         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59902
59903         * tests/test-i-ring.c: Work for C89.
59904
59905 2007-10-22  Bruno Haible  <bruno@clisp.org>
59906
59907         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59908         -1u, in preprocessor expression, so that we don't test for the bug
59909         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59910         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59911
59912 2007-10-22  Eric Blake  <ebb9@byu.net>
59913
59914         * tests/test-yesno.sh: Silence stderr during test.
59915
59916 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59917
59918         * modules/crypto/gc-camellia: New file.
59919
59920         * m4/gc-camellia.m4: New file.
59921
59922         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59923
59924         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59925
59926 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59927
59928         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59929         --help to stdout.  Reported by sms@antinode.org (Steven
59930         M. Schweda).
59931
59932 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59933
59934         * users.txt: Fix link to libksba.
59935
59936 2007-10-21  Ben Pfaff  <blp@gnu.org>
59937
59938         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59939         round.c roundf implementation that depends on floorf and ceilf to
59940         be tested unconditionally.
59941
59942 2007-10-21  Ben Pfaff  <blp@gnu.org>
59943
59944         * m4/check-libm-func.m4: Removed.
59945         * m4/check-math-lib.m4: New file.
59946         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59947         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59948         definition and lack of AC_LIBOBJ([roundf]).
59949         * m4/roundl.m4: Ditto, and similarly for roundl.
59950         * modules/round: Reference new m4 file.
59951         * modules/roundf: Ditto.
59952         * modules/roundl: Ditto.
59953         * tests/test-round2.c (main): Use ROUND instead of round.
59954         Bug report from Bruno Haible.
59955
59956 2007-10-21  Bruno Haible  <bruno@clisp.org>
59957
59958         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59959         context.
59960
59961 2007-10-21  Bruno Haible  <bruno@clisp.org>
59962
59963         * tests/test-wcwidth.c (main): Allow negative result for some control
59964         characters.
59965
59966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59967         Needed on OSF/1 5.1.
59968
59969 2007-10-21  Bruno Haible  <bruno@clisp.org>
59970
59971         * tests/test-floorf1.c: Include isnanf.h.
59972         (main): Use isnanf() instead of isnan().
59973         * tests/test-ceilf1.c: Include isnanf.h.
59974         (main): Use isnanf() instead of isnan().
59975         * tests/test-truncf1.c: Include isnanf.h.
59976         (main): Use isnanf() instead of isnan().
59977         * tests/test-roundf1.c: Include isnanf.h.
59978         (main): Use isnanf() instead of isnan().
59979
59980 2007-10-21  Eric Blake  <ebb9@byu.net>
59981
59982         * users.txt: Update URL for m4.
59983
59984 2007-10-21  Bruno Haible  <bruno@clisp.org>
59985
59986         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59987
59988 2007-10-21  Bruno Haible  <bruno@clisp.org>
59989
59990         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59991         Git's management files if the CVS files are not present.
59992
59993 2007-10-20  Bruno Haible  <bruno@clisp.org>
59994
59995         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59996         gcc-3.4.x.
59997
59998 2007-10-20  Ben Pfaff  <blp@gnu.org>
59999
60000         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60001         implementations.
60002         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60003         * lib/round.c: New file.
60004         * lib/roundf.c: New file.
60005         * lib/roundl.c: New file.
60006         * m4/round.m4: New file.
60007         * m4/roundf.m4: New file.
60008         * m4/roundl.m4: New file.
60009         * m4/check-libm-func-m4: New file.
60010         * modules/math: Replace round, roundf, roundl related @VARS@ in
60011         math.in.h.
60012         * modules/round: New file.
60013         * modules/round-tests: New file.
60014         * modules/roundf: New file.
60015         * modules/roundf-tests: New file.
60016         * modules/roundl: New file.
60017         * modules/roundl-tests: New file.
60018         * tests/test-round1.c: New file.
60019         * tests/test-round2.c: New file.
60020         * tests/test-roundf1.c: New file.
60021         * tests/test-roundf2.c: New file.
60022         * tests/test-roundl.c: New file.
60023         * doc/functions/round.texi: Mention round module.
60024         * doc/functions/roundf.texi: Mention roundf module.
60025         * doc/functions/roundl.texi: Mention roundl module.
60026         * MODULES.html.sh: Mention new modules.
60027         Thanks to Bruno Haible for suggestions.
60028
60029 2007-10-20  Jim Meyering  <meyering@redhat.com>
60030
60031         * lib/xprintf.c: Include <config.h> unconditionally.
60032
60033         Change xprintf's license to GPL.
60034         * modules/xprintf (License): s/LGPL/GPL/, since this module
60035         depends on modules (exit and exitfail) which are GPL.
60036         Suggestion from Bruno Haible.
60037
60038         xprintf fixes.
60039         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60040         Use a clearer diagnostic.
60041         Patch from Bruno Haible.
60042
60043 2007-10-20  Bruno Haible  <bruno@clisp.org>
60044
60045         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60046         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60047         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60048
60049 2007-10-20  Bruno Haible  <bruno@clisp.org>
60050
60051         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60052         precision in the comparison result > x - 1 or similar.
60053         * tests/test-ceilf2.c (correct_result_p): Likewise.
60054         * tests/test-truncf2.c (correct_result_p): Likewise.
60055         * tests/test-trunc2.c (correct_result_p): Likewise.
60056         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60057
60058 2007-10-20  Bruno Haible  <bruno@clisp.org>
60059
60060         * modules/ceil: New file.
60061         * m4/ceil.m4: New file.
60062         * doc/functions/ceil.texi: Mention the 'ceil' module.
60063
60064 2007-10-20  Bruno Haible  <bruno@clisp.org>
60065
60066         * modules/floor: New file.
60067         * m4/floor.m4: New file.
60068         * doc/functions/floor.texi: Mention the 'floor' module.
60069
60070 2007-10-20  Bruno Haible  <bruno@clisp.org>
60071
60072         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60073         of %a.
60074         * modules/floorf-tests (Depends-on): Likewise.
60075         * modules/truncf-tests (Depends-on): Likewise.
60076         * modules/trunc-tests (Depends-on): Likewise.
60077         Reported by Ben Pfaff.
60078
60079 2007-10-19  Jim Meyering  <meyering@redhat.com>
60080
60081         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60082         Don't bother testing specific errno values.  Just test ferror.
60083
60084         New module: xprintf
60085         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60086
60087 2007-10-19  Bruno Haible  <bruno@clisp.org>
60088
60089         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60090         syntax.
60091         * modules/javaexec (Makefile.am): Likewise.
60092         * modules/relocatable-prog (Makefile.am): Likewise.
60093         Suggested by Jim Meyering.
60094
60095 2007-10-18  Bruno Haible  <bruno@clisp.org>
60096
60097         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60098         Reported by Jim Meyering.
60099
60100 2007-10-18  Eric Blake  <ebb9@byu.net>
60101
60102         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60103
60104 2007-10-18  Bruno Haible  <bruno@clisp.org>
60105
60106         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60107         the format string into writable memory. Needed in Fortify conditions.
60108
60109 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60110             Bruno Haible  <bruno@clisp.org>
60111
60112         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60113         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60114         * modules/trim (Depends-on): Add mbchar.
60115         (configure.ac): Add gl_FUNC_MBRTOWC.
60116         (Makefile.am): Augment lib_SOURCES.
60117
60118 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60119
60120         Modify glob.c to use fstatat and dirfd, to simplify it.
60121         Suggested by Eric Blake.
60122         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60123         Don't include <stdbool.h>; not used.
60124         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60125         (link_exists_p): Simplify implementation, since we can now assume
60126         dirfd and fstatat.
60127         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60128
60129 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60130
60131         * gnulib-tool (func_get_dependencies): Fix sed script to
60132         match only tests.
60133
60134 2007-10-17  Bruno Haible  <bruno@clisp.org>
60135
60136         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60137         allow locale names without encoding suffix.
60138         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60139         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60140
60141 2007-10-16  Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60144         * lib/getgroups.c (getgroups): Likewise.
60145         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60146
60147 2007-10-16  Bruno Haible  <bruno@clisp.org>
60148
60149         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60150         * modules/malloc-posix (License): Likewise.
60151         * modules/realloc-posix (License): Likewise.
60152         * modules/calloc-posix (License): Likewise.
60153         * modules/intprops (License): Change from GPL to LGPL, with
60154         Paul Eggert's approval.
60155
60156 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60157
60158         Merge glibc changes into lib/glob.c.
60159
60160         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60161         2007-10-15 04:59:03 UTC.  Here are the changes:
60162
60163         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60164
60165         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60166
60167         * lib/glob.c: Add some branch prediction throughout.
60168
60169         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60170
60171         [BZ #5103]
60172         * lib/glob.c (glob): Recognize patterns starting \/.
60173
60174         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60175
60176         [BZ #3996]
60177         * lib/glob.c (attribute_hidden): Define if not defined.
60178         (glob): Unescape dirname, filename or username when needed and not
60179         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60180         is NULL.  Handle unescaped [ in pattern without closing ].
60181         Don't pass GLOB_CHECK down to recursive glob for directories.
60182         (__glob_pattern_type): New function.
60183         (__glob_pattern_p): Implement using __glob_pattern_type.
60184         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60185         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60186         Remove unreachable code.
60187
60188         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60189
60190         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60191         explain why there are no leaks.
60192
60193         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60194
60195         [BZ #3253]
60196         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60197         time, rather allocate increasingly bigger arrays of pointers, if
60198         possible with alloca, if too large with malloc.
60199
60200 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60201
60202         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60203         Problem reported by H.Merijn Brand in
60204         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60205         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60206         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60207
60208 2007-10-15  Bruno Haible  <bruno@clisp.org>
60209
60210         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60211         with explicit rpl_ prefix.
60212         * lib/fopen.c (fopen): Likewise.
60213         * lib/freopen.c (freopen): Likewise.
60214         * lib/iconv.c (iconv): Likewise.
60215         * lib/iconv_close.c (iconv_close): Likewise.
60216
60217 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60218
60219         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60220
60221 2007-10-15  Bruno Haible  <bruno@clisp.org>
60222
60223         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60224         <stddef.h> instead of <stdlib.h> since we only need NULL.
60225         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60226
60227 2007-10-15  Bruno Haible  <bruno@clisp.org>
60228
60229         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60230         Replace paragraph talking about LIBOBJS.
60231         Reported by Colin Watson <cjwatson@debian.org>.
60232
60233 2007-10-15  Bruno Haible  <bruno@clisp.org>
60234
60235         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60236         <stdlib.h> before using NULL.
60237
60238 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60239
60240         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60241         Reported by Albert Chin <china@thewrittenword.com>.
60242
60243 2007-10-14  Bruno Haible  <bruno@clisp.org>
60244
60245         * modules/iconv_open-utf-tests: New file.
60246         * tests/test-iconv-utf.c: New file.
60247
60248         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60249         * modules/iconv_open-utf: New file.
60250         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60251         (iconv, iconv_close): New declarations.
60252         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60253         be defined.
60254         (iconv_open): Add special handling of conversion between UTF-8 and
60255         UTF-{16,32}{BE,LE}.
60256         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60257         * lib/iconv_close.c: New file.
60258         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60259         gl_FUNC_ICONV_OPEN.
60260         (gl_FUNC_ICONV_OPEN): Use it.
60261         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60262         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60263         and REPLACE_ICONV_UTF.
60264         * modules/iconv_open (Depends-on): Add c-strcase.
60265         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60266         ICONV_CONST.
60267         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60268
60269 2007-10-13  Albert Chin  <china@thewrittenword.com>
60270             Bruno Haible  <bruno@clisp.org>
60271
60272         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60273         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60274
60275 2007-10-13  Bruno Haible  <bruno@clisp.org>
60276
60277         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60278         defined, use the ISO C99 inline semantics.
60279         * lib/argp.h (ARGP_EI): Likewise.
60280
60281 2007-10-13  Bruno Haible  <bruno@clisp.org>
60282
60283         Handle 'inline' change in gcc 4.3.0.
60284         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60285         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60286         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60287         argp_fmtstream_point): Disable 'extern' declaration if the function
60288         definition is going to be provided inline.
60289         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60290         semantics, not the ISO C99 inline semantics.
60291         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60292         'extern' declaration if the function definition is going to be provided
60293         inline.
60294         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60295         the GNU C inline semantics, not the ISO C99 inline semantics. With
60296         GCC 4.2, avoid a warning.
60297
60298 2007-10-13  Bruno Haible  <bruno@clisp.org>
60299
60300         * lib/freading.h (freading): Enable the use of __freading for
60301         glibc >= 2.7.
60302         * lib/freading.c (freading): Likewise.
60303
60304 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60305
60306         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60307         "warning: C99 inline functions are not supported; using GNU89".
60308
60309 2007-10-12  Bruno Haible  <bruno@clisp.org>
60310
60311         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60312         of 2.
60313         * tests/test-ceilf2.c: New file.
60314         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60315
60316         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60317         * modules/ceilf-tests: Update.
60318
60319 2007-10-12  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60322         of 2.
60323         * tests/test-floorf2.c: New file.
60324         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60325
60326         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60327         * modules/floorf-tests: Update.
60328
60329 2007-10-12  Bruno Haible  <bruno@clisp.org>
60330
60331         * tests/test-trunc2.c: New file.
60332         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60333
60334         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60335         * modules/trunc-tests: Update.
60336
60337 2007-10-12  Bruno Haible  <bruno@clisp.org>
60338
60339         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60340         of 2.
60341         * tests/test-truncf2.c: New file.
60342         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60343
60344         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60345         * modules/truncf-tests: Update.
60346
60347 2007-10-11  Eric Blake  <ebb9@byu.net>
60348
60349         Don't claim strerror is broken on Interix.
60350         * doc/functions/strerror.texi (strerror): Known broken systems are
60351         now Solaris 8, and not Interix.
60352         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60353         Interix on cross-compile.
60354         Reported by Martin Koeppe in
60355         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60356
60357 2007-10-11  Bruno Haible  <bruno@clisp.org>
60358
60359         * modules/i-ring-tests: New file.
60360         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60361         instead of assert.
60362
60363 2007-10-11  Bruno Haible  <bruno@clisp.org>
60364
60365         * modules/filenamecat-tests: New file.
60366         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60367         * lib/filenamecat.c: Remove test code.
60368
60369 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60370
60371         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60372
60373         * lib/strerror.c: Include <string.h> always, to test interface,
60374         and to remove the need for the dummy.
60375         Include intprops.h to compute width instead of doing it ourselves
60376         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60377         (strerror): Define it to return NULL if there's no system strerror.
60378         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60379         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60380         ancient pre-strerror Unix systems well any more.  Saying "unknown
60381         system error" is enough.
60382         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60383         simpler strerror.c implementation.
60384         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60385         Simplify the tests to reflect the simpler strerror implementation.
60386         * modules/strerror (Depends-on): Add intprops.
60387
60388 2007-10-09  Eric Blake  <ebb9@byu.net>
60389
60390         Silence test-fpending.
60391         * modules/fpending-tests (Files): Add wrapper script.
60392         * tests/test-fpending.sh: New file.
60393
60394 2007-10-09  Bruno Haible  <bruno@clisp.org>
60395
60396         * MODULES.html.sh (func_module): Don't create a hyperlink for
60397         function names like 'printf_frexp'.
60398         (Misc): Add crc, memxor.
60399         (Characteristics of floating types): New section.
60400         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60401         isnanf-nolibm, signbit, trunc, truncf, truncl.
60402         (Enhancements for ISO C 99 functions): New subsection Input/output.
60403         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60404         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60405         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60406         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60407         (Enhancements for POSIX:2001 functions): Add chdir-long.
60408         (File system functions): Add areadlink, chdir-safer, read-file.
60409         Remove cycle-check.
60410         (File system as inode set): New section.
60411         (Date and time): Add gethrxtime.
60412         (Multithreading): Add openmp.
60413         (Internationalization functions): Add localename.
60414         (Unicode string functions): Add unistr/u*-mbsnlen.
60415         (Support for maintaining and releasing projects): Add git-version-gen.
60416         (Lone files): Remove directories.
60417
60418 2007-10-08  Ben Pfaff  <blp@gnu.org>
60419
60420         * lib/xmalloca.h: Fix typo in comment.
60421
60422 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60423
60424         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60425         when avoiding problems with integer overflow.  Use a portable test
60426         instead.
60427
60428 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60429
60430         * modules/dummy (License): Change to LGPLv2+.
60431         * modules/float (License): Likewise
60432         * modules/realloc (License): Likewise
60433         * modules/stdlib (License): Likewise
60434
60435 2007-10-07  Bruno Haible  <bruno@clisp.org>
60436
60437         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60438         * floor.c (TWO_MANT_DIG): Likewise.
60439         * ceil.c (TWO_MANT_DIG): Likewise.
60440         Reported by Ben Pfaff.
60441
60442 2007-10-07  Bruno Haible  <bruno@clisp.org>
60443
60444         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60445         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60446         * lib/frexp.c (FUNC): Likewise.
60447         * lib/printf-frexp.h (printf_frexp): Likewise.
60448         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60449         * lib/printf-frexp.c (FUNC): Likewise.
60450         Suggested by Jim Meyering.
60451
60452 2007-10-07  Jim Meyering  <meyering@redhat.com>
60453
60454         Make xnanosleep's integer overflow test more robust.
60455         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60456         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60457
60458 2007-10-07  Bruno Haible  <bruno@clisp.org>
60459
60460         * NEWS: Mention the license change.
60461
60462         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60463         abbreviations in the modules files.
60464
60465         Change copyright notice from GPLv2+ to GPLv3+.
60466         * README: Change copyright notice.
60467         * MODULES.html.sh: Likewise.
60468         * build-aux/bootstrap.conf: Likewise.
60469         * build-aux/config.libpath: Likewise.
60470         * build-aux/csharpcomp.sh.in: Likewise.
60471         * build-aux/csharpexec.sh.in: Likewise.
60472         * build-aux/install-reloc: Likewise.
60473         * build-aux/javacomp.sh.in: Likewise.
60474         * build-aux/javaexec.sh.in: Likewise.
60475         * build-aux/ldd.sh.in: Likewise.
60476         * build-aux/reloc-ldflags: Likewise.
60477         * build-aux/relocatable.sh.in: Likewise.
60478         * build-aux/x-to-1.in: Likewise.
60479         * check-module: Likewise.
60480         * config/srclistvars.sh: Likewise.
60481         * gnulib-tool: Likewise.
60482         * lib/acl-internal.h: Likewise.
60483         * lib/acl.c: Likewise.
60484         * lib/acl.h: Likewise.
60485         * lib/acl_entries.c: Likewise.
60486         * lib/areadlink-with-size.c: Likewise.
60487         * lib/areadlink.c: Likewise.
60488         * lib/areadlink.h: Likewise.
60489         * lib/argmatch.c: Likewise.
60490         * lib/argmatch.h: Likewise.
60491         * lib/argp-ba.c: Likewise.
60492         * lib/argp-eexst.c: Likewise.
60493         * lib/argp-fmtstream.c: Likewise.
60494         * lib/argp-fmtstream.h: Likewise.
60495         * lib/argp-fs-xinl.c: Likewise.
60496         * lib/argp-help.c: Likewise.
60497         * lib/argp-namefrob.h: Likewise.
60498         * lib/argp-parse.c: Likewise.
60499         * lib/argp-pin.c: Likewise.
60500         * lib/argp-pv.c: Likewise.
60501         * lib/argp-pvh.c: Likewise.
60502         * lib/argp-xinl.c: Likewise.
60503         * lib/argp.h: Likewise.
60504         * lib/at-func.c: Likewise.
60505         * lib/atanl.c: Likewise.
60506         * lib/backupfile.c: Likewise.
60507         * lib/backupfile.h: Likewise.
60508         * lib/basename.c: Likewise.
60509         * lib/binary-io.h: Likewise.
60510         * lib/byteswap.in.h: Likewise.
60511         * lib/c-stack.c: Likewise.
60512         * lib/c-stack.h: Likewise.
60513         * lib/c-strcasestr.c: Likewise.
60514         * lib/c-strcasestr.h: Likewise.
60515         * lib/c-strstr.c: Likewise.
60516         * lib/c-strstr.h: Likewise.
60517         * lib/c-strtod.c: Likewise.
60518         * lib/calloc.c: Likewise.
60519         * lib/canon-host.c: Likewise.
60520         * lib/canon-host.h: Likewise.
60521         * lib/canonicalize-lgpl.c: Likewise.
60522         * lib/canonicalize.c: Likewise.
60523         * lib/canonicalize.h: Likewise.
60524         * lib/ceil.c: Likewise.
60525         * lib/ceilf.c: Likewise.
60526         * lib/ceill.c: Likewise.
60527         * lib/chdir-long.c: Likewise.
60528         * lib/chdir-long.h: Likewise.
60529         * lib/chdir-safer.c: Likewise.
60530         * lib/chdir-safer.h: Likewise.
60531         * lib/chown.c: Likewise.
60532         * lib/classpath.c: Likewise.
60533         * lib/classpath.h: Likewise.
60534         * lib/clean-temp.c: Likewise.
60535         * lib/clean-temp.h: Likewise.
60536         * lib/cloexec.c: Likewise.
60537         * lib/close-stream.c: Likewise.
60538         * lib/closein.c: Likewise.
60539         * lib/closein.h: Likewise.
60540         * lib/closeout.c: Likewise.
60541         * lib/closeout.h: Likewise.
60542         * lib/concat-filename.c: Likewise.
60543         * lib/copy-file.c: Likewise.
60544         * lib/copy-file.h: Likewise.
60545         * lib/count-one-bits.h: Likewise.
60546         * lib/crc.c: Likewise.
60547         * lib/crc.h: Likewise.
60548         * lib/creat-safer.c: Likewise.
60549         * lib/csharpcomp.c: Likewise.
60550         * lib/csharpcomp.h: Likewise.
60551         * lib/csharpexec.c: Likewise.
60552         * lib/csharpexec.h: Likewise.
60553         * lib/cycle-check.c: Likewise.
60554         * lib/cycle-check.h: Likewise.
60555         * lib/diacrit.c: Likewise.
60556         * lib/diacrit.h: Likewise.
60557         * lib/diffseq.h: Likewise.
60558         * lib/dirchownmod.c: Likewise.
60559         * lib/dirent.in.h: Likewise.
60560         * lib/dirfd.c: Likewise.
60561         * lib/dirfd.h: Likewise.
60562         * lib/dirname.c: Likewise.
60563         * lib/dirname.h: Likewise.
60564         * lib/dummy.c: Likewise.
60565         * lib/dup-safer.c: Likewise.
60566         * lib/dup2.c: Likewise.
60567         * lib/eealloc.h: Likewise.
60568         * lib/error.c: Likewise.
60569         * lib/error.h: Likewise.
60570         * lib/euidaccess.c: Likewise.
60571         * lib/exclude.c: Likewise.
60572         * lib/exclude.h: Likewise.
60573         * lib/execute.c: Likewise.
60574         * lib/execute.h: Likewise.
60575         * lib/exitfail.c: Likewise.
60576         * lib/exitfail.h: Likewise.
60577         * lib/expl.c: Likewise.
60578         * lib/fatal-signal.c: Likewise.
60579         * lib/fatal-signal.h: Likewise.
60580         * lib/fbufmode.c: Likewise.
60581         * lib/fbufmode.h: Likewise.
60582         * lib/fchdir.c: Likewise.
60583         * lib/fchmodat.c: Likewise.
60584         * lib/fchownat.c: Likewise.
60585         * lib/fcntl--.h: Likewise.
60586         * lib/fcntl-safer.h: Likewise.
60587         * lib/fcntl.in.h: Likewise.
60588         * lib/fd-safer.c: Likewise.
60589         * lib/fflush.c: Likewise.
60590         * lib/file-has-acl.c: Likewise.
60591         * lib/file-set.c: Likewise.
60592         * lib/file-type.c: Likewise.
60593         * lib/file-type.h: Likewise.
60594         * lib/fileblocks.c: Likewise.
60595         * lib/filemode.c: Likewise.
60596         * lib/filemode.h: Likewise.
60597         * lib/filename.h: Likewise.
60598         * lib/filenamecat.c: Likewise.
60599         * lib/filenamecat.h: Likewise.
60600         * lib/findprog.c: Likewise.
60601         * lib/findprog.h: Likewise.
60602         * lib/float.in.h: Likewise.
60603         * lib/floor.c: Likewise.
60604         * lib/floorf.c: Likewise.
60605         * lib/floorl.c: Likewise.
60606         * lib/fopen-safer.c: Likewise.
60607         * lib/fopen.c: Likewise.
60608         * lib/fpending.c: Likewise.
60609         * lib/fpending.h: Likewise.
60610         * lib/fprintf.c: Likewise.
60611         * lib/fprintftime.h: Likewise.
60612         * lib/fpucw.h: Likewise.
60613         * lib/fpurge.c: Likewise.
60614         * lib/fpurge.h: Likewise.
60615         * lib/freadable.c: Likewise.
60616         * lib/freadable.h: Likewise.
60617         * lib/freadahead.c: Likewise.
60618         * lib/freadahead.h: Likewise.
60619         * lib/freading.c: Likewise.
60620         * lib/freading.h: Likewise.
60621         * lib/free.c: Likewise.
60622         * lib/freopen.c: Likewise.
60623         * lib/frexp.c: Likewise.
60624         * lib/frexpl.c: Likewise.
60625         * lib/fseek.c: Likewise.
60626         * lib/fseterr.c: Likewise.
60627         * lib/fseterr.h: Likewise.
60628         * lib/fstatat.c: Likewise.
60629         * lib/fstrcmp.c: Likewise.
60630         * lib/fstrcmp.h: Likewise.
60631         * lib/fsusage.c: Likewise.
60632         * lib/fsusage.h: Likewise.
60633         * lib/ftell.c: Likewise.
60634         * lib/ftello.c: Likewise.
60635         * lib/fts-cycle.c: Likewise.
60636         * lib/fts.c: Likewise.
60637         * lib/fts_.h: Likewise.
60638         * lib/full-read.c: Likewise.
60639         * lib/full-read.h: Likewise.
60640         * lib/full-write.c: Likewise.
60641         * lib/full-write.h: Likewise.
60642         * lib/fwritable.c: Likewise.
60643         * lib/fwritable.h: Likewise.
60644         * lib/fwriteerror.c: Likewise.
60645         * lib/fwriteerror.h: Likewise.
60646         * lib/fwriting.c: Likewise.
60647         * lib/fwriting.h: Likewise.
60648         * lib/gcd.c: Likewise.
60649         * lib/gcd.h: Likewise.
60650         * lib/getcwd.c: Likewise.
60651         * lib/getdate.h: Likewise.
60652         * lib/getdate.y: Likewise.
60653         * lib/getdomainname.c: Likewise.
60654         * lib/getdomainname.h: Likewise.
60655         * lib/getgroups.c: Likewise.
60656         * lib/gethostname.c: Likewise.
60657         * lib/gethrxtime.c: Likewise.
60658         * lib/gethrxtime.h: Likewise.
60659         * lib/getloadavg.c: Likewise.
60660         * lib/getndelim2.c: Likewise.
60661         * lib/getndelim2.h: Likewise.
60662         * lib/getnline.c: Likewise.
60663         * lib/getnline.h: Likewise.
60664         * lib/getopt.c: Likewise.
60665         * lib/getopt.in.h: Likewise.
60666         * lib/getopt1.c: Likewise.
60667         * lib/getopt_int.h: Likewise.
60668         * lib/getpagesize.h: Likewise.
60669         * lib/getsubopt.c: Likewise.
60670         * lib/gettime.c: Likewise.
60671         * lib/getugroups.c: Likewise.
60672         * lib/getugroups.h: Likewise.
60673         * lib/getusershell.c: Likewise.
60674         * lib/gl_anyavltree_list1.h: Likewise.
60675         * lib/gl_anyavltree_list2.h: Likewise.
60676         * lib/gl_anyhash_list1.h: Likewise.
60677         * lib/gl_anyhash_list2.h: Likewise.
60678         * lib/gl_anylinked_list1.h: Likewise.
60679         * lib/gl_anylinked_list2.h: Likewise.
60680         * lib/gl_anyrbtree_list1.h: Likewise.
60681         * lib/gl_anyrbtree_list2.h: Likewise.
60682         * lib/gl_anytree_list1.h: Likewise.
60683         * lib/gl_anytree_list2.h: Likewise.
60684         * lib/gl_anytree_oset.h: Likewise.
60685         * lib/gl_anytreehash_list1.h: Likewise.
60686         * lib/gl_anytreehash_list2.h: Likewise.
60687         * lib/gl_array_list.c: Likewise.
60688         * lib/gl_array_list.h: Likewise.
60689         * lib/gl_array_oset.c: Likewise.
60690         * lib/gl_array_oset.h: Likewise.
60691         * lib/gl_avltree_list.c: Likewise.
60692         * lib/gl_avltree_list.h: Likewise.
60693         * lib/gl_avltree_oset.c: Likewise.
60694         * lib/gl_avltree_oset.h: Likewise.
60695         * lib/gl_avltreehash_list.c: Likewise.
60696         * lib/gl_avltreehash_list.h: Likewise.
60697         * lib/gl_carray_list.c: Likewise.
60698         * lib/gl_carray_list.h: Likewise.
60699         * lib/gl_linked_list.c: Likewise.
60700         * lib/gl_linked_list.h: Likewise.
60701         * lib/gl_linkedhash_list.c: Likewise.
60702         * lib/gl_linkedhash_list.h: Likewise.
60703         * lib/gl_list.c: Likewise.
60704         * lib/gl_list.h: Likewise.
60705         * lib/gl_oset.c: Likewise.
60706         * lib/gl_oset.h: Likewise.
60707         * lib/gl_rbtree_list.c: Likewise.
60708         * lib/gl_rbtree_list.h: Likewise.
60709         * lib/gl_rbtree_oset.c: Likewise.
60710         * lib/gl_rbtree_oset.h: Likewise.
60711         * lib/gl_rbtreehash_list.c: Likewise.
60712         * lib/gl_rbtreehash_list.h: Likewise.
60713         * lib/gl_sublist.c: Likewise.
60714         * lib/gl_sublist.h: Likewise.
60715         * lib/group-member.c: Likewise.
60716         * lib/group-member.h: Likewise.
60717         * lib/hard-locale.c: Likewise.
60718         * lib/hard-locale.h: Likewise.
60719         * lib/hash-pjw.c: Likewise.
60720         * lib/hash-pjw.h: Likewise.
60721         * lib/hash-triple.c: Likewise.
60722         * lib/hash.c: Likewise.
60723         * lib/hash.h: Likewise.
60724         * lib/human.c: Likewise.
60725         * lib/human.h: Likewise.
60726         * lib/i-ring.c: Likewise.
60727         * lib/i-ring.h: Likewise.
60728         * lib/idcache.c: Likewise.
60729         * lib/imaxabs.c: Likewise.
60730         * lib/imaxdiv.c: Likewise.
60731         * lib/inet_pton.c: Likewise.
60732         * lib/inet_pton.h: Likewise.
60733         * lib/intprops.h: Likewise.
60734         * lib/inttostr.c: Likewise.
60735         * lib/inttostr.h: Likewise.
60736         * lib/inttypes.in.h: Likewise.
60737         * lib/isapipe.c: Likewise.
60738         * lib/isdir.c: Likewise.
60739         * lib/isnan.c: Likewise.
60740         * lib/isnan.h: Likewise.
60741         * lib/isnanf.c: Likewise.
60742         * lib/isnanf.h: Likewise.
60743         * lib/isnanl-nolibm.h: Likewise.
60744         * lib/isnanl.c: Likewise.
60745         * lib/isnanl.h: Likewise.
60746         * lib/javacomp.c: Likewise.
60747         * lib/javacomp.h: Likewise.
60748         * lib/javaexec.c: Likewise.
60749         * lib/javaexec.h: Likewise.
60750         * lib/javaversion.c: Likewise.
60751         * lib/javaversion.h: Likewise.
60752         * lib/javaversion.java: Likewise.
60753         * lib/lbrkprop.h: Likewise.
60754         * lib/lchmod.h: Likewise.
60755         * lib/lchown.c: Likewise.
60756         * lib/ldexpl.c: Likewise.
60757         * lib/linebreak.c: Likewise.
60758         * lib/linebreak.h: Likewise.
60759         * lib/linebuffer.c: Likewise.
60760         * lib/linebuffer.h: Likewise.
60761         * lib/locale.in.h: Likewise.
60762         * lib/logl.c: Likewise.
60763         * lib/long-options.c: Likewise.
60764         * lib/long-options.h: Likewise.
60765         * lib/lstat.c: Likewise.
60766         * lib/lstat.h: Likewise.
60767         * lib/math.in.h: Likewise.
60768         * lib/mbchar.c: Likewise.
60769         * lib/mbchar.h: Likewise.
60770         * lib/mbfile.h: Likewise.
60771         * lib/mbiter.h: Likewise.
60772         * lib/mbscasecmp.c: Likewise.
60773         * lib/mbscasestr.c: Likewise.
60774         * lib/mbschr.c: Likewise.
60775         * lib/mbscspn.c: Likewise.
60776         * lib/mbslen.c: Likewise.
60777         * lib/mbsncasecmp.c: Likewise.
60778         * lib/mbsnlen.c: Likewise.
60779         * lib/mbspbrk.c: Likewise.
60780         * lib/mbspcasecmp.c: Likewise.
60781         * lib/mbsrchr.c: Likewise.
60782         * lib/mbssep.c: Likewise.
60783         * lib/mbsspn.c: Likewise.
60784         * lib/mbsstr.c: Likewise.
60785         * lib/mbstok_r.c: Likewise.
60786         * lib/mbswidth.c: Likewise.
60787         * lib/mbswidth.h: Likewise.
60788         * lib/mbuiter.h: Likewise.
60789         * lib/memcasecmp.c: Likewise.
60790         * lib/memcasecmp.h: Likewise.
60791         * lib/memchr.c: Likewise.
60792         * lib/memcmp.c: Likewise.
60793         * lib/memcoll.c: Likewise.
60794         * lib/memcoll.h: Likewise.
60795         * lib/memcpy.c: Likewise.
60796         * lib/memrchr.c: Likewise.
60797         * lib/mkancesdirs.c: Likewise.
60798         * lib/mkdir-p.c: Likewise.
60799         * lib/mkdir-p.h: Likewise.
60800         * lib/mkdir.c: Likewise.
60801         * lib/mkdirat.c: Likewise.
60802         * lib/mkdtemp.c: Likewise.
60803         * lib/mkstemp-safer.c: Likewise.
60804         * lib/mkstemp.c: Likewise.
60805         * lib/modechange.c: Likewise.
60806         * lib/modechange.h: Likewise.
60807         * lib/mountlist.c: Likewise.
60808         * lib/mountlist.h: Likewise.
60809         * lib/mpsort.c: Likewise.
60810         * lib/nanosleep.c: Likewise.
60811         * lib/obstack.c: Likewise.
60812         * lib/obstack.h: Likewise.
60813         * lib/open-safer.c: Likewise.
60814         * lib/open.c: Likewise.
60815         * lib/openat-die.c: Likewise.
60816         * lib/openat-priv.h: Likewise.
60817         * lib/openat-proc.c: Likewise.
60818         * lib/openat.c: Likewise.
60819         * lib/openat.h: Likewise.
60820         * lib/pagealign_alloc.c: Likewise.
60821         * lib/pagealign_alloc.h: Likewise.
60822         * lib/physmem.c: Likewise.
60823         * lib/physmem.h: Likewise.
60824         * lib/pipe-safer.c: Likewise.
60825         * lib/pipe.c: Likewise.
60826         * lib/pipe.h: Likewise.
60827         * lib/posixtm.c: Likewise.
60828         * lib/posixtm.h: Likewise.
60829         * lib/posixver.c: Likewise.
60830         * lib/printf-frexp.c: Likewise.
60831         * lib/printf-frexp.h: Likewise.
60832         * lib/printf-frexpl.c: Likewise.
60833         * lib/printf-frexpl.h: Likewise.
60834         * lib/printf.c: Likewise.
60835         * lib/progname.c: Likewise.
60836         * lib/progname.h: Likewise.
60837         * lib/progreloc.c: Likewise.
60838         * lib/putenv.c: Likewise.
60839         * lib/quote.c: Likewise.
60840         * lib/quote.h: Likewise.
60841         * lib/quotearg.c: Likewise.
60842         * lib/quotearg.h: Likewise.
60843         * lib/raise.c: Likewise.
60844         * lib/readline.c: Likewise.
60845         * lib/readline.h: Likewise.
60846         * lib/readlink.c: Likewise.
60847         * lib/readtokens.c: Likewise.
60848         * lib/readtokens.h: Likewise.
60849         * lib/readtokens0.c: Likewise.
60850         * lib/readtokens0.h: Likewise.
60851         * lib/readutmp.c: Likewise.
60852         * lib/readutmp.h: Likewise.
60853         * lib/realloc.c: Likewise.
60854         * lib/relocwrapper.c: Likewise.
60855         * lib/rename-dest-slash.c: Likewise.
60856         * lib/rename.c: Likewise.
60857         * lib/rmdir.c: Likewise.
60858         * lib/rpmatch.c: Likewise.
60859         * lib/safe-read.c: Likewise.
60860         * lib/safe-read.h: Likewise.
60861         * lib/safe-write.c: Likewise.
60862         * lib/safe-write.h: Likewise.
60863         * lib/same-inode.h: Likewise.
60864         * lib/same.c: Likewise.
60865         * lib/same.h: Likewise.
60866         * lib/save-cwd.c: Likewise.
60867         * lib/save-cwd.h: Likewise.
60868         * lib/savedir.c: Likewise.
60869         * lib/savedir.h: Likewise.
60870         * lib/savewd.c: Likewise.
60871         * lib/savewd.h: Likewise.
60872         * lib/search.in.h: Likewise.
60873         * lib/setenv.c: Likewise.
60874         * lib/setenv.h: Likewise.
60875         * lib/settime.c: Likewise.
60876         * lib/sh-quote.c: Likewise.
60877         * lib/sh-quote.h: Likewise.
60878         * lib/sig2str.c: Likewise.
60879         * lib/sig2str.h: Likewise.
60880         * lib/signal.in.h: Likewise.
60881         * lib/signbitd.c: Likewise.
60882         * lib/signbitf.c: Likewise.
60883         * lib/signbitl.c: Likewise.
60884         * lib/sigprocmask.c: Likewise.
60885         * lib/sincosl.c: Likewise.
60886         * lib/sleep.c: Likewise.
60887         * lib/sprintf.c: Likewise.
60888         * lib/sqrtl.c: Likewise.
60889         * lib/stat-time.h: Likewise.
60890         * lib/stdio--.h: Likewise.
60891         * lib/stdio-safer.h: Likewise.
60892         * lib/stdlib--.h: Likewise.
60893         * lib/stdlib-safer.h: Likewise.
60894         * lib/stdlib.in.h: Likewise.
60895         * lib/stpcpy.c: Likewise.
60896         * lib/stpncpy.c: Likewise.
60897         * lib/strchrnul.c: Likewise.
60898         * lib/strcspn.c: Likewise.
60899         * lib/strerror.c: Likewise.
60900         * lib/strftime.c: Likewise.
60901         * lib/strftime.h: Likewise.
60902         * lib/striconveh.c: Likewise.
60903         * lib/striconveh.h: Likewise.
60904         * lib/striconveha.c: Likewise.
60905         * lib/striconveha.h: Likewise.
60906         * lib/stripslash.c: Likewise.
60907         * lib/strnlen1.c: Likewise.
60908         * lib/strnlen1.h: Likewise.
60909         * lib/strtod.c: Likewise.
60910         * lib/strtoimax.c: Likewise.
60911         * lib/strtok_r.c: Likewise.
60912         * lib/strtol.c: Likewise.
60913         * lib/strtoll.c: Likewise.
60914         * lib/strtoul.c: Likewise.
60915         * lib/strtoull.c: Likewise.
60916         * lib/sysexits.in.h: Likewise.
60917         * lib/tempname.c: Likewise.
60918         * lib/tempname.h: Likewise.
60919         * lib/timespec.h: Likewise.
60920         * lib/tls.c: Likewise.
60921         * lib/tls.h: Likewise.
60922         * lib/tmpdir.c: Likewise.
60923         * lib/tmpdir.h: Likewise.
60924         * lib/tmpfile-safer.c: Likewise.
60925         * lib/tmpfile.c: Likewise.
60926         * lib/trigl.c: Likewise.
60927         * lib/trigl.h: Likewise.
60928         * lib/trim.c: Likewise.
60929         * lib/trim.h: Likewise.
60930         * lib/trunc.c: Likewise.
60931         * lib/truncf.c: Likewise.
60932         * lib/truncl.c: Likewise.
60933         * lib/tsearch.c: Likewise.
60934         * lib/unicodeio.c: Likewise.
60935         * lib/unicodeio.h: Likewise.
60936         * lib/unistd--.h: Likewise.
60937         * lib/unistd-safer.h: Likewise.
60938         * lib/unistdio/ulc-fprintf.c: Likewise.
60939         * lib/unistdio/ulc-vfprintf.c: Likewise.
60940         * lib/unlinkdir.c: Likewise.
60941         * lib/unlinkdir.h: Likewise.
60942         * lib/unlocked-io.h: Likewise.
60943         * lib/unsetenv.c: Likewise.
60944         * lib/userspec.c: Likewise.
60945         * lib/utime.c: Likewise.
60946         * lib/utimecmp.c: Likewise.
60947         * lib/utimecmp.h: Likewise.
60948         * lib/utimens.c: Likewise.
60949         * lib/verify.h: Likewise.
60950         * lib/verror.c: Likewise.
60951         * lib/verror.h: Likewise.
60952         * lib/version-etc-fsf.c: Likewise.
60953         * lib/version-etc.c: Likewise.
60954         * lib/version-etc.h: Likewise.
60955         * lib/vfprintf.c: Likewise.
60956         * lib/vprintf.c: Likewise.
60957         * lib/vsprintf.c: Likewise.
60958         * lib/w32spawn.h: Likewise.
60959         * lib/wait-process.c: Likewise.
60960         * lib/wait-process.h: Likewise.
60961         * lib/wcwidth.c: Likewise.
60962         * lib/write-any-file.c: Likewise.
60963         * lib/xalloc-die.c: Likewise.
60964         * lib/xalloc.h: Likewise.
60965         * lib/xasprintf.c: Likewise.
60966         * lib/xgetcwd.c: Likewise.
60967         * lib/xgetcwd.h: Likewise.
60968         * lib/xgetdomainname.c: Likewise.
60969         * lib/xgetdomainname.h: Likewise.
60970         * lib/xgethostname.c: Likewise.
60971         * lib/xmalloc.c: Likewise.
60972         * lib/xmalloca.c: Likewise.
60973         * lib/xmalloca.h: Likewise.
60974         * lib/xmemcoll.c: Likewise.
60975         * lib/xnanosleep.c: Likewise.
60976         * lib/xreadlink.c: Likewise.
60977         * lib/xreadlink.h: Likewise.
60978         * lib/xsetenv.c: Likewise.
60979         * lib/xsetenv.h: Likewise.
60980         * lib/xstriconv.c: Likewise.
60981         * lib/xstriconv.h: Likewise.
60982         * lib/xstrndup.c: Likewise.
60983         * lib/xstrndup.h: Likewise.
60984         * lib/xstrtod.c: Likewise.
60985         * lib/xstrtod.h: Likewise.
60986         * lib/xstrtol-error.c: Likewise.
60987         * lib/xstrtol.c: Likewise.
60988         * lib/xstrtol.h: Likewise.
60989         * lib/xtime.h: Likewise.
60990         * lib/xvasprintf.c: Likewise.
60991         * lib/xvasprintf.h: Likewise.
60992         * lib/yesno.c: Likewise.
60993         * lib/yesno.h: Likewise.
60994         * posix-modules: Likewise.
60995         * tests/test-alloca-opt.c: Likewise.
60996         * tests/test-arcfour.c: Likewise.
60997         * tests/test-arctwo.c: Likewise.
60998         * tests/test-argmatch.c: Likewise.
60999         * tests/test-argp-2.sh: Likewise.
61000         * tests/test-argp.c: Likewise.
61001         * tests/test-arpa_inet.c: Likewise.
61002         * tests/test-array_list.c: Likewise.
61003         * tests/test-array_oset.c: Likewise.
61004         * tests/test-atexit.c: Likewise.
61005         * tests/test-avltree_list.c: Likewise.
61006         * tests/test-avltree_oset.c: Likewise.
61007         * tests/test-avltreehash_list.c: Likewise.
61008         * tests/test-base64.c: Likewise.
61009         * tests/test-binary-io.c: Likewise.
61010         * tests/test-byteswap.c: Likewise.
61011         * tests/test-c-ctype.c: Likewise.
61012         * tests/test-c-strcasecmp.c: Likewise.
61013         * tests/test-c-strcasestr.c: Likewise.
61014         * tests/test-c-strncasecmp.c: Likewise.
61015         * tests/test-c-strstr.c: Likewise.
61016         * tests/test-canonicalize-lgpl.c: Likewise.
61017         * tests/test-canonicalize.c: Likewise.
61018         * tests/test-carray_list.c: Likewise.
61019         * tests/test-ceilf.c: Likewise.
61020         * tests/test-ceill.c: Likewise.
61021         * tests/test-count-one-bits.c: Likewise.
61022         * tests/test-crc.c: Likewise.
61023         * tests/test-dirname.c: Likewise.
61024         * tests/test-fbufmode.c: Likewise.
61025         * tests/test-fcntl.c: Likewise.
61026         * tests/test-fflush.c: Likewise.
61027         * tests/test-floorf.c: Likewise.
61028         * tests/test-floorl.c: Likewise.
61029         * tests/test-fopen.c: Likewise.
61030         * tests/test-fprintf-posix.c: Likewise.
61031         * tests/test-fprintf-posix.h: Likewise.
61032         * tests/test-fpurge.c: Likewise.
61033         * tests/test-freadable.c: Likewise.
61034         * tests/test-freadahead.c: Likewise.
61035         * tests/test-freading.c: Likewise.
61036         * tests/test-freopen.c: Likewise.
61037         * tests/test-frexp.c: Likewise.
61038         * tests/test-frexpl.c: Likewise.
61039         * tests/test-fseek.c: Likewise.
61040         * tests/test-fseeko.c: Likewise.
61041         * tests/test-fseterr.c: Likewise.
61042         * tests/test-fstrcmp.c: Likewise.
61043         * tests/test-ftell.c: Likewise.
61044         * tests/test-ftello.c: Likewise.
61045         * tests/test-fwritable.c: Likewise.
61046         * tests/test-fwriting.c: Likewise.
61047         * tests/test-getaddrinfo.c: Likewise.
61048         * tests/test-getpass.c: Likewise.
61049         * tests/test-gettimeofday.c: Likewise.
61050         * tests/test-hmac-md5.c: Likewise.
61051         * tests/test-hmac-sha1.c: Likewise.
61052         * tests/test-iconv.c: Likewise.
61053         * tests/test-iconvme.c: Likewise.
61054         * tests/test-inttypes.c: Likewise.
61055         * tests/test-isnan.c: Likewise.
61056         * tests/test-isnanf.c: Likewise.
61057         * tests/test-isnanl-nolibm.c: Likewise.
61058         * tests/test-isnanl.c: Likewise.
61059         * tests/test-isnanl.h: Likewise.
61060         * tests/test-ldexpl.c: Likewise.
61061         * tests/test-linked_list.c: Likewise.
61062         * tests/test-linkedhash_list.c: Likewise.
61063         * tests/test-locale.c: Likewise.
61064         * tests/test-localename.c: Likewise.
61065         * tests/test-lock.c: Likewise.
61066         * tests/test-lseek.c: Likewise.
61067         * tests/test-malloca.c: Likewise.
61068         * tests/test-math.c: Likewise.
61069         * tests/test-mbscasecmp.c: Likewise.
61070         * tests/test-mbscasestr1.c: Likewise.
61071         * tests/test-mbscasestr2.c: Likewise.
61072         * tests/test-mbscasestr3.c: Likewise.
61073         * tests/test-mbscasestr4.c: Likewise.
61074         * tests/test-mbschr.c: Likewise.
61075         * tests/test-mbscspn.c: Likewise.
61076         * tests/test-mbsncasecmp.c: Likewise.
61077         * tests/test-mbspbrk.c: Likewise.
61078         * tests/test-mbspcasecmp.c: Likewise.
61079         * tests/test-mbsrchr.c: Likewise.
61080         * tests/test-mbsspn.c: Likewise.
61081         * tests/test-mbsstr1.c: Likewise.
61082         * tests/test-mbsstr2.c: Likewise.
61083         * tests/test-mbsstr3.c: Likewise.
61084         * tests/test-md5.c: Likewise.
61085         * tests/test-memmem.c: Likewise.
61086         * tests/test-netinet_in.c: Likewise.
61087         * tests/test-open.c: Likewise.
61088         * tests/test-printf-frexp.c: Likewise.
61089         * tests/test-printf-frexpl.c: Likewise.
61090         * tests/test-printf-posix.c: Likewise.
61091         * tests/test-printf-posix.h: Likewise.
61092         * tests/test-rbtree_list.c: Likewise.
61093         * tests/test-rbtree_oset.c: Likewise.
61094         * tests/test-rbtreehash_list.c: Likewise.
61095         * tests/test-read-file.c: Likewise.
61096         * tests/test-rijndael.c: Likewise.
61097         * tests/test-search.c: Likewise.
61098         * tests/test-signbit.c: Likewise.
61099         * tests/test-sleep.c: Likewise.
61100         * tests/test-snprintf-posix.c: Likewise.
61101         * tests/test-snprintf-posix.h: Likewise.
61102         * tests/test-snprintf.c: Likewise.
61103         * tests/test-sprintf-posix.c: Likewise.
61104         * tests/test-sprintf-posix.h: Likewise.
61105         * tests/test-stat-time.c: Likewise.
61106         * tests/test-stdbool.c: Likewise.
61107         * tests/test-stdint.c: Likewise.
61108         * tests/test-stdio.c: Likewise.
61109         * tests/test-stdlib.c: Likewise.
61110         * tests/test-stpncpy.c: Likewise.
61111         * tests/test-strcasestr.c: Likewise.
61112         * tests/test-striconv.c: Likewise.
61113         * tests/test-striconveh.c: Likewise.
61114         * tests/test-striconveha.c: Likewise.
61115         * tests/test-string.c: Likewise.
61116         * tests/test-sys_select.c: Likewise.
61117         * tests/test-sys_socket.c: Likewise.
61118         * tests/test-sys_stat.c: Likewise.
61119         * tests/test-sys_time.c: Likewise.
61120         * tests/test-sysexits.c: Likewise.
61121         * tests/test-time.c: Likewise.
61122         * tests/test-tls.c: Likewise.
61123         * tests/test-trunc.c: Likewise.
61124         * tests/test-truncf.c: Likewise.
61125         * tests/test-truncl.c: Likewise.
61126         * tests/test-unistd.c: Likewise.
61127         * tests/test-vasnprintf-posix.c: Likewise.
61128         * tests/test-vasnprintf-posix2.c: Likewise.
61129         * tests/test-vasnprintf.c: Likewise.
61130         * tests/test-vasprintf-posix.c: Likewise.
61131         * tests/test-vasprintf.c: Likewise.
61132         * tests/test-verify.c: Likewise.
61133         * tests/test-vfprintf-posix.c: Likewise.
61134         * tests/test-vprintf-posix.c: Likewise.
61135         * tests/test-vsnprintf-posix.c: Likewise.
61136         * tests/test-vsnprintf.c: Likewise.
61137         * tests/test-vsprintf-posix.c: Likewise.
61138         * tests/test-wchar.c: Likewise.
61139         * tests/test-wctype.c: Likewise.
61140         * tests/test-wcwidth.c: Likewise.
61141         * tests/test-xstrtol.c: Likewise.
61142         * tests/test-xvasprintf.c: Likewise.
61143         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61144         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61145         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61146         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61147         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61148         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61149         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61150         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61151         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61152         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61153         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61154         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61155         * tests/uniname/test-uninames.c: Likewise.
61156         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61157         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61158         * tests/unistdio/test-u16-printf1.h: Likewise.
61159         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61160         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61161         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61162         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61163         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61164         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61165         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61166         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61167         * tests/unistdio/test-u32-printf1.h: Likewise.
61168         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61169         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61170         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61171         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61172         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61173         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61174         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61175         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61176         * tests/unistdio/test-u8-printf1.h: Likewise.
61177         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61178         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61179         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61180         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61181         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61182         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61183         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61184         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61185         * tests/unistdio/test-ulc-printf1.h: Likewise.
61186         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61187         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61188         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61189         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61190         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61191         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61192         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61193         * tests/uniwidth/test-u16-width.c: Likewise.
61194         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61195         * tests/uniwidth/test-u32-width.c: Likewise.
61196         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61197         * tests/uniwidth/test-u8-width.c: Likewise.
61198         * tests/uniwidth/test-uc_width.c: Likewise.
61199         * config/srclist-update: Likewise.
61200         (fixlicense): Update to GPLv3+.
61201
61202         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61203         * tests/test-tsearch.c: Change copyright notice.
61204
61205         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61206         * lib/c-strcaseeq.h: Change copyright notice.
61207         * lib/streq.h: Likewise.
61208         * lib/uniconv.h: Likewise.
61209         * lib/uniconv/u-conv-from-enc.h: Likewise.
61210         * lib/uniconv/u-conv-to-enc.h: Likewise.
61211         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61212         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61213         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61214         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61215         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61216         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61217         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61218         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61219         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61220         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61221         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61222         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61223         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61224         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61225         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61226         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61227         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61228         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61229         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61230         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61231         * lib/uniname.h: Likewise.
61232         * lib/uniname/uniname.c: Likewise.
61233         * lib/unistdio.h: Likewise.
61234         * lib/unistdio/u-asnprintf.h: Likewise.
61235         * lib/unistdio/u-asprintf.h: Likewise.
61236         * lib/unistdio/u-printf-args.c: Likewise.
61237         * lib/unistdio/u-printf-args.h: Likewise.
61238         * lib/unistdio/u-printf-parse.h: Likewise.
61239         * lib/unistdio/u-snprintf.h: Likewise.
61240         * lib/unistdio/u-sprintf.h: Likewise.
61241         * lib/unistdio/u-vasprintf.h: Likewise.
61242         * lib/unistdio/u-vsnprintf.h: Likewise.
61243         * lib/unistdio/u-vsprintf.h: Likewise.
61244         * lib/unistdio/u16-asnprintf.c: Likewise.
61245         * lib/unistdio/u16-asprintf.c: Likewise.
61246         * lib/unistdio/u16-printf-parse.c: Likewise.
61247         * lib/unistdio/u16-snprintf.c: Likewise.
61248         * lib/unistdio/u16-sprintf.c: Likewise.
61249         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61250         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61251         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61252         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61253         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61254         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61255         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61256         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61257         * lib/unistdio/u16-vasnprintf.c: Likewise.
61258         * lib/unistdio/u16-vasprintf.c: Likewise.
61259         * lib/unistdio/u16-vsnprintf.c: Likewise.
61260         * lib/unistdio/u16-vsprintf.c: Likewise.
61261         * lib/unistdio/u32-asnprintf.c: Likewise.
61262         * lib/unistdio/u32-asprintf.c: Likewise.
61263         * lib/unistdio/u32-printf-parse.c: Likewise.
61264         * lib/unistdio/u32-snprintf.c: Likewise.
61265         * lib/unistdio/u32-sprintf.c: Likewise.
61266         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61267         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61268         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61269         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61270         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61271         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61272         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61273         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61274         * lib/unistdio/u32-vasnprintf.c: Likewise.
61275         * lib/unistdio/u32-vasprintf.c: Likewise.
61276         * lib/unistdio/u32-vsnprintf.c: Likewise.
61277         * lib/unistdio/u32-vsprintf.c: Likewise.
61278         * lib/unistdio/u8-asnprintf.c: Likewise.
61279         * lib/unistdio/u8-asprintf.c: Likewise.
61280         * lib/unistdio/u8-printf-parse.c: Likewise.
61281         * lib/unistdio/u8-snprintf.c: Likewise.
61282         * lib/unistdio/u8-sprintf.c: Likewise.
61283         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61284         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61285         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61286         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61287         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61288         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61289         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61290         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61291         * lib/unistdio/u8-vasnprintf.c: Likewise.
61292         * lib/unistdio/u8-vasprintf.c: Likewise.
61293         * lib/unistdio/u8-vsnprintf.c: Likewise.
61294         * lib/unistdio/u8-vsprintf.c: Likewise.
61295         * lib/unistdio/ulc-asnprintf.c: Likewise.
61296         * lib/unistdio/ulc-asprintf.c: Likewise.
61297         * lib/unistdio/ulc-printf-parse.c: Likewise.
61298         * lib/unistdio/ulc-snprintf.c: Likewise.
61299         * lib/unistdio/ulc-sprintf.c: Likewise.
61300         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61301         * lib/unistdio/ulc-vasprintf.c: Likewise.
61302         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61303         * lib/unistdio/ulc-vsprintf.c: Likewise.
61304         * lib/unistr.h: Likewise.
61305         * lib/unistr/u-cpy-alloc.h: Likewise.
61306         * lib/unistr/u-cpy.h: Likewise.
61307         * lib/unistr/u-endswith.h: Likewise.
61308         * lib/unistr/u-move.h: Likewise.
61309         * lib/unistr/u-set.h: Likewise.
61310         * lib/unistr/u-startswith.h: Likewise.
61311         * lib/unistr/u-stpcpy.h: Likewise.
61312         * lib/unistr/u-stpncpy.h: Likewise.
61313         * lib/unistr/u-strcat.h: Likewise.
61314         * lib/unistr/u-strcpy.h: Likewise.
61315         * lib/unistr/u-strcspn.h: Likewise.
61316         * lib/unistr/u-strdup.h: Likewise.
61317         * lib/unistr/u-strlen.h: Likewise.
61318         * lib/unistr/u-strncat.h: Likewise.
61319         * lib/unistr/u-strncpy.h: Likewise.
61320         * lib/unistr/u-strnlen.h: Likewise.
61321         * lib/unistr/u-strpbrk.h: Likewise.
61322         * lib/unistr/u-strspn.h: Likewise.
61323         * lib/unistr/u-strstr.h: Likewise.
61324         * lib/unistr/u-strtok.h: Likewise.
61325         * lib/unistr/u16-check.c: Likewise.
61326         * lib/unistr/u16-chr.c: Likewise.
61327         * lib/unistr/u16-cmp.c: Likewise.
61328         * lib/unistr/u16-cpy-alloc.c: Likewise.
61329         * lib/unistr/u16-cpy.c: Likewise.
61330         * lib/unistr/u16-endswith.c: Likewise.
61331         * lib/unistr/u16-mblen.c: Likewise.
61332         * lib/unistr/u16-mbsnlen.c: Likewise.
61333         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61334         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61335         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61336         * lib/unistr/u16-mbtouc.c: Likewise.
61337         * lib/unistr/u16-mbtoucr.c: Likewise.
61338         * lib/unistr/u16-move.c: Likewise.
61339         * lib/unistr/u16-next.c: Likewise.
61340         * lib/unistr/u16-prev.c: Likewise.
61341         * lib/unistr/u16-set.c: Likewise.
61342         * lib/unistr/u16-startswith.c: Likewise.
61343         * lib/unistr/u16-stpcpy.c: Likewise.
61344         * lib/unistr/u16-stpncpy.c: Likewise.
61345         * lib/unistr/u16-strcat.c: Likewise.
61346         * lib/unistr/u16-strchr.c: Likewise.
61347         * lib/unistr/u16-strcmp.c: Likewise.
61348         * lib/unistr/u16-strcpy.c: Likewise.
61349         * lib/unistr/u16-strcspn.c: Likewise.
61350         * lib/unistr/u16-strdup.c: Likewise.
61351         * lib/unistr/u16-strlen.c: Likewise.
61352         * lib/unistr/u16-strmblen.c: Likewise.
61353         * lib/unistr/u16-strmbtouc.c: Likewise.
61354         * lib/unistr/u16-strncat.c: Likewise.
61355         * lib/unistr/u16-strncmp.c: Likewise.
61356         * lib/unistr/u16-strncpy.c: Likewise.
61357         * lib/unistr/u16-strnlen.c: Likewise.
61358         * lib/unistr/u16-strpbrk.c: Likewise.
61359         * lib/unistr/u16-strrchr.c: Likewise.
61360         * lib/unistr/u16-strspn.c: Likewise.
61361         * lib/unistr/u16-strstr.c: Likewise.
61362         * lib/unistr/u16-strtok.c: Likewise.
61363         * lib/unistr/u16-to-u32.c: Likewise.
61364         * lib/unistr/u16-to-u8.c: Likewise.
61365         * lib/unistr/u16-uctomb-aux.c: Likewise.
61366         * lib/unistr/u16-uctomb.c: Likewise.
61367         * lib/unistr/u32-check.c: Likewise.
61368         * lib/unistr/u32-chr.c: Likewise.
61369         * lib/unistr/u32-cmp.c: Likewise.
61370         * lib/unistr/u32-cpy-alloc.c: Likewise.
61371         * lib/unistr/u32-cpy.c: Likewise.
61372         * lib/unistr/u32-endswith.c: Likewise.
61373         * lib/unistr/u32-mblen.c: Likewise.
61374         * lib/unistr/u32-mbsnlen.c: Likewise.
61375         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61376         * lib/unistr/u32-mbtouc.c: Likewise.
61377         * lib/unistr/u32-mbtoucr.c: Likewise.
61378         * lib/unistr/u32-move.c: Likewise.
61379         * lib/unistr/u32-next.c: Likewise.
61380         * lib/unistr/u32-prev.c: Likewise.
61381         * lib/unistr/u32-set.c: Likewise.
61382         * lib/unistr/u32-startswith.c: Likewise.
61383         * lib/unistr/u32-stpcpy.c: Likewise.
61384         * lib/unistr/u32-stpncpy.c: Likewise.
61385         * lib/unistr/u32-strcat.c: Likewise.
61386         * lib/unistr/u32-strchr.c: Likewise.
61387         * lib/unistr/u32-strcmp.c: Likewise.
61388         * lib/unistr/u32-strcpy.c: Likewise.
61389         * lib/unistr/u32-strcspn.c: Likewise.
61390         * lib/unistr/u32-strdup.c: Likewise.
61391         * lib/unistr/u32-strlen.c: Likewise.
61392         * lib/unistr/u32-strmblen.c: Likewise.
61393         * lib/unistr/u32-strmbtouc.c: Likewise.
61394         * lib/unistr/u32-strncat.c: Likewise.
61395         * lib/unistr/u32-strncmp.c: Likewise.
61396         * lib/unistr/u32-strncpy.c: Likewise.
61397         * lib/unistr/u32-strnlen.c: Likewise.
61398         * lib/unistr/u32-strpbrk.c: Likewise.
61399         * lib/unistr/u32-strrchr.c: Likewise.
61400         * lib/unistr/u32-strspn.c: Likewise.
61401         * lib/unistr/u32-strstr.c: Likewise.
61402         * lib/unistr/u32-strtok.c: Likewise.
61403         * lib/unistr/u32-to-u16.c: Likewise.
61404         * lib/unistr/u32-to-u8.c: Likewise.
61405         * lib/unistr/u32-uctomb.c: Likewise.
61406         * lib/unistr/u8-check.c: Likewise.
61407         * lib/unistr/u8-chr.c: Likewise.
61408         * lib/unistr/u8-cmp.c: Likewise.
61409         * lib/unistr/u8-cpy-alloc.c: Likewise.
61410         * lib/unistr/u8-cpy.c: Likewise.
61411         * lib/unistr/u8-endswith.c: Likewise.
61412         * lib/unistr/u8-mblen.c: Likewise.
61413         * lib/unistr/u8-mbsnlen.c: Likewise.
61414         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61415         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61416         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61417         * lib/unistr/u8-mbtouc.c: Likewise.
61418         * lib/unistr/u8-mbtoucr.c: Likewise.
61419         * lib/unistr/u8-move.c: Likewise.
61420         * lib/unistr/u8-next.c: Likewise.
61421         * lib/unistr/u8-prev.c: Likewise.
61422         * lib/unistr/u8-set.c: Likewise.
61423         * lib/unistr/u8-startswith.c: Likewise.
61424         * lib/unistr/u8-stpcpy.c: Likewise.
61425         * lib/unistr/u8-stpncpy.c: Likewise.
61426         * lib/unistr/u8-strcat.c: Likewise.
61427         * lib/unistr/u8-strchr.c: Likewise.
61428         * lib/unistr/u8-strcmp.c: Likewise.
61429         * lib/unistr/u8-strcpy.c: Likewise.
61430         * lib/unistr/u8-strcspn.c: Likewise.
61431         * lib/unistr/u8-strdup.c: Likewise.
61432         * lib/unistr/u8-strlen.c: Likewise.
61433         * lib/unistr/u8-strmblen.c: Likewise.
61434         * lib/unistr/u8-strmbtouc.c: Likewise.
61435         * lib/unistr/u8-strncat.c: Likewise.
61436         * lib/unistr/u8-strncmp.c: Likewise.
61437         * lib/unistr/u8-strncpy.c: Likewise.
61438         * lib/unistr/u8-strnlen.c: Likewise.
61439         * lib/unistr/u8-strpbrk.c: Likewise.
61440         * lib/unistr/u8-strrchr.c: Likewise.
61441         * lib/unistr/u8-strspn.c: Likewise.
61442         * lib/unistr/u8-strstr.c: Likewise.
61443         * lib/unistr/u8-strtok.c: Likewise.
61444         * lib/unistr/u8-to-u16.c: Likewise.
61445         * lib/unistr/u8-to-u32.c: Likewise.
61446         * lib/unistr/u8-uctomb-aux.c: Likewise.
61447         * lib/unistr/u8-uctomb.c: Likewise.
61448         * lib/unitypes.h: Likewise.
61449         * lib/uniwidth.h: Likewise.
61450         * lib/uniwidth/cjk.h: Likewise.
61451         * lib/uniwidth/u16-strwidth.c: Likewise.
61452         * lib/uniwidth/u16-width.c: Likewise.
61453         * lib/uniwidth/u32-strwidth.c: Likewise.
61454         * lib/uniwidth/u32-width.c: Likewise.
61455         * lib/uniwidth/u8-strwidth.c: Likewise.
61456         * lib/uniwidth/u8-width.c: Likewise.
61457         * lib/uniwidth/width.c: Likewise.
61458
61459 2007-10-07  Bruno Haible  <bruno@clisp.org>
61460
61461         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61462         The file is still under LGPL (see modules/inttypes).
61463
61464 2007-10-06  Bruno Haible  <bruno@clisp.org>
61465
61466         * modules/trunc (Dependencies): Add 'extensions'.
61467         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61468         Reported by Ben Pfaff <blp@gnu.org>.
61469
61470 2007-10-06  Bruno Haible  <bruno@clisp.org>
61471
61472         * modules/freopen-tests: New file.
61473         * tests/test-freopen.c: New file.
61474
61475         * modules/fopen-tests: New file.
61476         * tests/test-fopen.c: New file.
61477
61478         * modules/fopen: New file.
61479         * lib/fopen.c: New file.
61480         * m4/fopen.m4: New file.
61481         * modules/freopen: New file.
61482         * lib/freopen.c: New file.
61483         * m4/freopen.m4: New file.
61484         * lib/stdio.in.h (fopen, freopen): New declarations.
61485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61486         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61487         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61488         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61489         * doc/functions/fopen.texi: Mention the 'fopen' module.
61490         * doc/functions/freopen.texi: Mention the 'freopen' module.
61491
61492 2007-10-06  Bruno Haible  <bruno@clisp.org>
61493
61494         * modules/open-tests: New file.
61495         * tests/test-open.c: New file.
61496
61497         * modules/open: New file.
61498         * lib/open.c: New file.
61499         * m4/open.m4: New file.
61500         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61501         lib/open.c does.
61502         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61503         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61504         macros.
61505         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61506         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61507         REPLACE_OPEN.
61508         * doc/functions/open.texi: Mention the 'open' module.
61509
61510 2007-10-04  Bruno Haible  <bruno@clisp.org>
61511
61512         * modules/ceill-tests: New file.
61513         * tests/test-ceill.c: New file.
61514
61515         * modules/ceill: New file.
61516         * lib/ceill.c: Replace entire file.
61517         * m4/ceill.m4: New file.
61518         * lib/math.in.h (ceill): Replace declaration.
61519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61520         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61521         * doc/functions/ceill.texi: Mention the 'ceill' module.
61522         * modules/mathl (Files): Remove lib/ceill.c.
61523         (Depends-on): Add ceill.
61524
61525 2007-10-04  Bruno Haible  <bruno@clisp.org>
61526
61527         * modules/ceilf-tests: New file.
61528         * tests/test-ceilf.c: New file.
61529
61530         * modules/ceilf: New file.
61531         * lib/ceil.c: New file.
61532         * lib/ceilf.c: New file.
61533         * m4/ceilf.m4: New file.
61534         * lib/math.in.h (ceilf): New declaration.
61535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61536         HAVE_DECL_CEILF.
61537         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61538         HAVE_DECL_CEILF.
61539         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61540
61541 2007-10-04  Bruno Haible  <bruno@clisp.org>
61542
61543         * modules/floorl-tests: New file.
61544         * tests/test-floorl.c: New file.
61545
61546         * modules/floorl: New file.
61547         * lib/floorl.c: Replace entire file.
61548         * m4/floorl.m4: New file.
61549         * lib/math.in.h (floorl): Replace declaration.
61550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61551         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61552         * doc/functions/floorl.texi: Mention the 'floorl' module.
61553         * modules/mathl (Files): Remove lib/floorl.c.
61554         (Depends-on): Add floorl.
61555
61556 2007-10-04  Bruno Haible  <bruno@clisp.org>
61557
61558         * modules/floorf-tests: New file.
61559         * tests/test-floorf.c: New file.
61560
61561         * modules/floorf: New file.
61562         * lib/floor.c: New file.
61563         * lib/floorf.c: New file.
61564         * m4/floorf.m4: New file.
61565         * lib/math.in.h (floorf): New declaration.
61566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61567         HAVE_DECL_FLOORF.
61568         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61569         HAVE_DECL_FLOORF.
61570         * doc/functions/floorf.texi: Mention the 'floorf' module.
61571
61572 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61573             Bruno Haible  <bruno@clisp.org>
61574
61575         Advertise for the Git server instead of the CVS server.
61576         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61577         repository instead of the CVS one.
61578         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61579         about all VCS systems generically.
61580         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61581
61582 2007-10-04  Bruno Haible  <bruno@clisp.org>
61583
61584         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61585         means.
61586         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61587
61588 2007-10-04  Bruno Haible  <bruno@clisp.org>
61589
61590         * modules/truncl-tests: New file.
61591         * tests/test-truncl.c: New file.
61592
61593         * modules/truncl: New file.
61594         * lib/truncl.c: New file.
61595         * m4/truncl.m4: New file.
61596         * lib/math.in.h (truncl): New declaration.
61597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61598         HAVE_DECL_TRUNCL.
61599         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61600         HAVE_DECL_TRUNCL.
61601         * doc/functions/truncl.texi: Mention the 'truncl' module.
61602
61603 2007-10-04  Bruno Haible  <bruno@clisp.org>
61604
61605         * modules/truncf-tests: New file.
61606         * tests/test-truncf.c: New file.
61607
61608         * modules/truncf: New file.
61609         * lib/trunc.c: Make paramerizable through USE_* macros.
61610         * lib/truncf.c: New file.
61611         * m4/truncf.m4: New file.
61612         * lib/math.in.h (truncf): New declaration.
61613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61614         HAVE_DECL_TRUNCF.
61615         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61616         HAVE_DECL_TRUNCF.
61617         * doc/functions/truncf.texi: Mention the 'truncf' module.
61618
61619 2007-10-03  Bruno Haible  <bruno@clisp.org>
61620
61621         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61622         augmentation also for tests modules.
61623         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61624         * modules/atexit-tests (Makefile.am): Likewise.
61625         * modules/binary-io-tests (Makefile.am): Likewise.
61626         * modules/c-strcase-tests (Makefile.am): Likewise.
61627         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61628         * modules/canonicalize-tests (Makefile.am): Likewise.
61629         * modules/closein-tests (Makefile.am): Likewise.
61630         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61631         * modules/freadahead-tests (Makefile.am): Likewise.
61632         * modules/fseek-tests (Makefile.am): Likewise.
61633         * modules/fseeko-tests (Makefile.am): Likewise.
61634         * modules/ftell-tests (Makefile.am): Likewise.
61635         * modules/ftello-tests (Makefile.am): Likewise.
61636         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61637         * modules/isnanl-tests (Makefile.am): Likewise.
61638         * modules/lseek-tests (Makefile.am): Likewise.
61639         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61640         * modules/mbscasestr-tests (Makefile.am): Likewise.
61641         * modules/mbschr-tests (Makefile.am): Likewise.
61642         * modules/mbscspn-tests (Makefile.am): Likewise.
61643         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61644         * modules/mbspbrk-tests (Makefile.am): Likewise.
61645         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61646         * modules/mbsrchr-tests (Makefile.am): Likewise.
61647         * modules/mbsspn-tests (Makefile.am): Likewise.
61648         * modules/mbsstr-tests (Makefile.am): Likewise.
61649         * modules/printf-posix-tests (Makefile.am): Likewise.
61650         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61651         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61652         * modules/tsearch-tests (Makefile.am): Likewise.
61653         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61654         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61655         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61656         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61657         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61658         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61659         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61660         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61661         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61662         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61663         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61664         * modules/xstrtol-tests (Makefile.am): Likewise.
61665         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61666         * modules/yesno-tests (Makefile.am): Likewise.
61667
61668 2007-10-03  Bruno Haible  <bruno@clisp.org>
61669
61670         * modules/trunc-tests: New file.
61671         * tests/test-trunc.c: New file.
61672
61673         * modules/trunc: New file.
61674         * lib/trunc.c: New file.
61675         * m4/trunc.m4: New file.
61676         * lib/math.in.h (trunc): New declaration.
61677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61678         HAVE_DECL_TRUNC.
61679         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61680         HAVE_DECL_TRUNC.
61681         * doc/functions/trunc.texi: Mention the 'trunc' module.
61682
61683 2007-10-03  Bruno Haible  <bruno@clisp.org>
61684
61685         * tests/test-fpending.c: New file, mostly copied
61686         from coreutils/lib/t-fpending.c.
61687         * modules/fpending-tests: New file.
61688
61689 2007-10-03  Bruno Haible  <bruno@clisp.org>
61690
61691         Port the stdio extensions to QNX (untested).
61692         * lib/fseterr.c (fseterr): Add support for QNX.
61693         * lib/fbufmode.c (fbufmode): Likewise.
61694         * lib/freadable.c (freadable): Likewise.
61695         * lib/fwritable.c (fwritable): Likewise.
61696         * lib/freading.c (freading): Likewise.
61697         * lib/fwriting.c (fwriting): Likewise.
61698         * lib/freadahead.c (freadahed): Likewise.
61699         * lib/fpurge.c (fpurge): Likewise.
61700         * lib/fseeko.c (rpl_fseeko): Likewise.
61701
61702 2007-10-03  Bruno Haible  <bruno@clisp.org>
61703             Jim Meyering  <jim@meyering.net>
61704             Eric Blake  <ebb9@byu.net>
61705
61706         * doc/relocatable.texi: Use @command instead of @program.
61707
61708 2007-10-02  Jim Meyering  <jim@meyering.net>
61709
61710         Perform one more "_.h" -> ".in.h" substitution.
61711         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61712         instead of unistd_.h here, too.
61713
61714 2007-10-01  Bruno Haible  <bruno@clisp.org>
61715
61716         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61717         Needed for the alloca-opt module.
61718
61719 2007-09-30  Bruno Haible  <bruno@clisp.org>
61720
61721         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61722         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61723         alloca_.h.
61724         * lib/argz.in.h: Renamed from lib/argz_.h.
61725         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61726         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61727         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61728         byteswap_.h.
61729         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61730         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61731         dirent_.h.
61732         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61733         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61734         fcntl_.h.
61735         * lib/float.in.h: Renamed from lib/float_.h.
61736         * modules/float (Files, Makefile.am): Use float.in.h instead of
61737         float_.h.
61738         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61739         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61740         fnmatch_.h.
61741         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61742         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61743         getopt_.h.
61744         * lib/glob.in.h: Renamed from lib/glob_.h.
61745         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61746         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61747         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61748         iconv_.h.
61749         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61750         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61751         inttypes_.h.
61752         * lib/locale.in.h: Renamed from lib/locale_.h.
61753         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61754         locale_.h.
61755         * lib/math.in.h: Renamed from lib/math_.h.
61756         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61757         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61758         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61759         of netinet_in_.h. Add dependency.
61760         * lib/poll.in.h: Renamed from lib/poll_.h.
61761         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61762         * lib/search.in.h: Renamed from lib/search_.h.
61763         * modules/search (Files, Makefile.am): Use search.in.h instead of
61764         search_.h.
61765         * lib/signal.in.h: Renamed from lib/signal_.h.
61766         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61767         _signal.h.
61768         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61769         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61770         stdbool_.h.
61771         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61772         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61773         stdint_.h.
61774         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61775         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61776         stdio_.h.
61777         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61778         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61779         stdlib_.h.
61780         * lib/string.in.h: Renamed from lib/string_.h.
61781         * modules/string (Files, Makefile.am): Use string.in.h instead of
61782         string_.h.
61783         * doc/gnulib-tool.texi (Initial import): Update.
61784         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61785         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61786         of sys_select_.h. Add dependency.
61787         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61788         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61789         of sys_socket_.h.
61790         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61791         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61792         sys_stat_.h.
61793         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61794         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61795         sys_time_.h.
61796         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61797         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61798         sysexits_.h.
61799         * lib/time.in.h: Renamed from lib/time_.h.
61800         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61801         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61802         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61803         unistd_.h.
61804         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61805         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61806         wchar_.h.
61807         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61808         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61809         wctype_.h.
61810         * build-aux/bootstrap (slurp): Update.
61811         * lib/.cppi-disable: Update.
61812
61813 2007-09-30  Bruno Haible  <bruno@clisp.org>
61814
61815         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61816         Needed on BeOS.
61817
61818 2007-09-30  Bruno Haible  <bruno@clisp.org>
61819
61820         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61821
61822 2007-09-29  Bruno Haible  <bruno@clisp.org>
61823
61824         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61825
61826 2007-09-29  Bruno Haible  <bruno@clisp.org>
61827
61828         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61829         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61830         * build-aux/install-reloc: Compile also areadlink.c.
61831         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61832
61833 2007-09-29  Bruno Haible  <bruno@clisp.org>
61834
61835         * gnulib-tool (func_emit_initmacro_done): Indentation.
61836
61837 2007-09-29  Bruno Haible  <bruno@clisp.org>
61838
61839         * README: Add CVS checkout update instructions.
61840         Info from Bob Proulx <bob@proulx.com>.
61841
61842 2007-09-28  Eric Blake  <ebb9@byu.net>
61843
61844         Provide move-if-change.
61845         * build-aux/move-if-change: New file, based on best practice
61846         rather than any canonical upstream location.
61847
61848 2007-09-28  Jim Meyering  <jim@meyering.net>
61849
61850         Fix canonicalize loop-detection corner case.
61851         Do not attempt to stat the symlink values stored via seen_triple.
61852         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61853         on linux-2.6.18, (but not 2.6.22).
61854         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61855         triple_compare.  The former compares dev,ino,filename, while the latter
61856         would actually stat dirname(filename) when dev and ino were equal.
61857         * lib/hash-triple.c: Install <string.h>.
61858         (STREQ): Define.
61859         (triple_compare_ino_str): New function.
61860         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61861
61862 2007-09-28  Eric Blake  <ebb9@byu.net>
61863
61864         Enforce that AC_REPLACE_FUNCS files exist.
61865         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61866         override check for typos.
61867
61868         Fix test-closein on Solaris 10.
61869         * tests/test-closein.c (main): Don't assume stdin can be inherited
61870         closed on all systems.
61871         * tests/test-closein.sh: Likewise.
61872         Reported by Piotr Tarnowski.
61873
61874 2007-09-28  Jim Meyering  <jim@meyering.net>
61875
61876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61877
61878 2007-09-27  Jim Meyering  <jim@meyering.net>
61879
61880         canonicalize: Avoid a false-positive cycle failure.
61881         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61882         Sort.  Remove cycle-check.
61883         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61884         not cycle-check.h.
61885         (seen_triple): New function.
61886         (canonicalize_filename_mode): Use it instead of cycle-check.
61887         * tests/test-canonicalize.c: Add a test for this bug.
61888         * tests/test-canonicalize.sh: Set up and run the test.
61889
61890         New module, file-set, from coreutils.
61891         * modules/file-set: Define it.
61892         * lib/file-set.c, lib/file-set.h: Implement.
61893
61894         New module, hash-triple, from coreutils.
61895         * modules/hash-triple: Define it.
61896         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61897
61898 2007-09-25  Eric Blake  <ebb9@byu.net>
61899
61900         Fix strerror on Interix.
61901         * lib/string_.h (strerror): Declare replacement.
61902         * doc/functions/strerror.texi (strerror): Document the Interix
61903         shortcoming.
61904         * modules/string (Makefile.am): Support new hooks.
61905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61906         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61907         gl_FUNC_STRERROR_SEPARATE.
61908         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61909         * lib/strerror.c (rpl_strerror): Provide replacement.
61910         * modules/strerror (Depends-on): Add string.
61911         (configure.ac): Detect use of module.
61912         * tests/test-strerror.c: New file.
61913         * modules/strerror-tests: New test module.
61914         * modules/argp (Depends-on): Add strerror.
61915         * modules/error (Depends-on): Likewise.
61916         Reported by Martin Koeppe.
61917
61918 2007-09-24  Bruno Haible  <bruno@clisp.org>
61919
61920         * README: Update git instructions.
61921
61922 2007-09-24  Eric Blake  <ebb9@byu.net>
61923
61924         Revert fpending breakage from 2007-09-08.
61925         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61926         __fpending.c.
61927
61928 2007-09-24  Jim Meyering  <jim@meyering.net>
61929
61930         filenamecat.c: Add a test.
61931         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61932         showing how the function works when DIR is the empty string.
61933
61934 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61935
61936         * tests/test-canonicalize.sh: Turn on executable bit.
61937
61938 2007-09-19  Eric Blake  <ebb9@byu.net>
61939
61940         * README: Update CVS instructions.
61941
61942 2007-09-18  Bruno Haible  <bruno@clisp.org>
61943
61944         * modules/areadlink: New file.
61945         * lib/areadlink.h (areadlink): New declaration.
61946         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61947
61948 2007-09-17  Jim Meyering  <jim@meyering.net>
61949
61950         * lib/savewd.c (ESTALE) [!defined]: Define.
61951         Reported to be required on Interix by Martin Koeppe.
61952
61953 2007-09-17  Bruno Haible  <bruno@clisp.org>
61954
61955         * gnulib-tool (func_version): Use $version.
61956
61957 2007-09-16  Bruno Haible  <bruno@clisp.org>
61958
61959         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61960         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61961         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61962         Reported by Greg Schafer <gschafer@zip.com.au>.
61963
61964 2007-09-15  Bruno Haible  <bruno@clisp.org>
61965
61966         * gnulib-tool (sed): Try a little harder to make bash understand the
61967         alias.
61968         Reported by Bruce Korb <bruce.korb@gmail.com>.
61969
61970 2007-09-13  Eric Blake  <ebb9@byu.net>
61971
61972         * ChangeLog: Remove conflict markers.
61973
61974 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61975
61976         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61977         Reported by Bruno Haible <bruno@clisp.org>.
61978
61979 2007-09-12  Bruno Haible  <bruno@clisp.org>
61980
61981         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61982         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61983         is not defined.
61984
61985 2007-09-12  Eric Blake  <ebb9@byu.net>
61986
61987         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61988         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61989         Autoconf definition.
61990         * modules/euidaccess (Depends-on): Add extensions, for
61991         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61992         * modules/fnmatch (Depends-on): Likewise.
61993         * modules/getaddrinfo (Depends-on): Likewise.
61994         * modules/getdelim (Depends-on): Likewise.
61995         * modules/getline (Depends-on): Likewise.
61996         * modules/getsubopt (Depends-on): Likewise.
61997         * modules/gettext (Depends-on): Likewise.
61998         * modules/group-member (Depends-on): Likewise.
61999         * modules/mbchar (Depends-on): Likewise.
62000         * modules/memmem (Depends-on): Likewise.
62001         * modules/mempcpy (Depends-on): Likewise.
62002         * modules/memrchr (Depends-on): Likewise.
62003         * modules/pagealign_alloc (Depends-on): Likewise.
62004         * modules/readutmp (Depends-on): Likewise.
62005         * modules/stpcpy (Depends-on): Likewise.
62006         * modules/stpncpy (Depends-on): Likewise.
62007         * modules/strchrnul (Depends-on): Likewise.
62008         * modules/strndup (Depends-on): Likewise.
62009         * modules/strsep (Depends-on): Likewise.
62010         * modules/strverscmp (Depends-on): Likewise.
62011         * modules/vasprintf (Depends-on): Likewise.
62012         * modules/wcwidth (Depends-on): Likewise.
62013         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62014         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62015         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62016         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62017         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62018         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62019         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62020         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62021         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62022         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62023         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62024         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62025         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62026         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62027         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62028         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62029         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62030         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62031         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62032         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62033         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62034         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62035         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62036         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62037         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62038         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62039         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62040         so that lock.m4 can be used in gettext without extensions module.
62041
62042 2007-09-11  Bruno Haible  <bruno@clisp.org>
62043
62044         * m4/isc-posix.m4: Remove file.
62045         Suggested by Eric Blake.
62046
62047 2007-09-11  Eric Blake  <ebb9@byu.net>
62048
62049         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62050
62051 2007-09-10  Bruno Haible  <bruno@clisp.org>
62052
62053         * posix-modules: Fix typo in error message.
62054         Reported by Matt <mkraai@beckman.com>.
62055
62056 2007-09-09  Bruno Haible  <bruno@clisp.org>
62057
62058         * doc/functions/getdelim.texi: Update list of platforms lacking the
62059         function.
62060         * doc/functions/getline.texi: Likewise.
62061
62062 2007-09-09  Jim Meyering  <jim@meyering.net>
62063
62064         * lib/hash.c (hash_initialize): Detect calloc failure.
62065         Reported by Bruno Haible.
62066
62067 2007-09-09  Bruno Haible  <bruno@clisp.org>
62068
62069         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62070         malloc or realloc fails.
62071
62072 2007-09-09  Bruno Haible  <bruno@clisp.org>
62073
62074         * modules/getcwd (Depends-on): Add malloc-posix.
62075         * modules/glob (Depends-on): Likewise.
62076         * modules/putenv (Depends-on): Likewise.
62077         * modules/strdup (Depends-on): Likewise.
62078         * modules/getdelim (Depends-on): Add realloc-posix.
62079         * modules/read-file (Depends-on): Likewise.
62080
62081 2007-09-09  Bruno Haible  <bruno@clisp.org>
62082
62083         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62084         (gl_FUNC_MALLOC_POSIX): Require it.
62085         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62086         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62087         * modules/realloc (Files): Add m4/malloc.m4.
62088         * modules/calloc (Files): Likewise.
62089
62090 2007-09-09  Bruno Haible  <bruno@clisp.org>
62091
62092         * modules/malloc-posix: New file.
62093         * modules/malloc (Depends-on): Add malloc-posix.
62094         * lib/malloc.c: Include errno.h.
62095         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62096         and a POSIX-compatible malloc into a single function. Set ENOMEM
62097         when returning NULL.
62098         * m4/malloc.m4: New file.
62099         * doc/functions/malloc.texi: Mention the malloc-posix module.
62100         * lib/stdlib_.h (malloc): New declaration.
62101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62102         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62103         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62104         and HAVE_MALLOC_POSIX.
62105
62106 2007-09-09  Bruno Haible  <bruno@clisp.org>
62107
62108         * modules/realloc-posix: New file.
62109         * modules/realloc (Depends-on): Add realloc-posix.
62110         * lib/realloc.c: Include errno.h.
62111         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62112         and a POSIX-compatible realloc into a single function. Set ENOMEM
62113         when returning NULL.
62114         * m4/realloc.m4: New file.
62115         * doc/functions/realloc.texi: Mention the realloc-posix module.
62116         * lib/stdlib_.h (realloc): New declaration.
62117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62118         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62119         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62120         and HAVE_REALLOC_POSIX.
62121
62122 2007-09-09  Bruno Haible  <bruno@clisp.org>
62123
62124         * modules/calloc-posix: New file.
62125         * modules/calloc (Depends-on): Add calloc-posix.
62126         * lib/calloc.c: Include errno.h.
62127         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62128         and a POSIX-compatible calloc into a single function. Set ENOMEM
62129         when returning NULL.
62130         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62131         * doc/functions/calloc.texi: Mention the calloc-posix module.
62132         * lib/stdlib_.h (calloc): New declaration.
62133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62134         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62135         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62136         and HAVE_CALLOC_POSIX.
62137
62138 2007-09-09  Bruno Haible  <bruno@clisp.org>
62139
62140         Allow for modules to show an arbitrary notice.
62141         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62142         * gnulib-tool: New option --extract-notice.
62143         (func_usage): Document it.
62144         (sed_extract_prog): Update.
62145         (func_get_notice): New function.
62146         (func_modules_notice): New function.
62147         (func_import, func_create_testdir): Invoke it.
62148         Suggested by Jim Meyering.
62149
62150 2007-09-09  Bruno Haible  <bruno@clisp.org>
62151
62152         * gnulib-tool: New options --verbose, --quiet.
62153         (func_usage): Document them.
62154         (verbose): New variable.
62155         (func_execute_command): New function.
62156         (func_import): Don't show the module list and the file list if
62157         $verbose < 0.
62158         (func_create_testdir): Likewise. Use func_execute_command.
62159         (func_create_megatestdir): Use func_execute_command.
62160
62161 2007-09-08  Bruno Haible  <bruno@clisp.org>
62162
62163         * gnulib-tool (func_import): Prefer rsync over wget when available,
62164         for fetching the PO files.
62165
62166 2007-09-08  Bruno Haible  <bruno@clisp.org>
62167
62168         * posix-modules: New file. Portions copied from gnulib-tool.
62169         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62170
62171 2007-09-08  Jim Meyering  <jim@meyering.net>
62172
62173         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62174         * lib/fpending.h: Rename from __fpending.h.
62175         * lib/fpending.c: Rename from __fpending.c.
62176         Include "fpending.h", not "__fpending.h".
62177         * lib/__fpending.h, lib/__fpending.c: Remove files.
62178         * modules/fpending (Files): Reflect new file names.
62179         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62180
62181 2007-09-08  Bruno Haible  <bruno@clisp.org>
62182
62183         * m4/inttypes-h.m4: Remove stub file.
62184
62185 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62186
62187         * doc/headers/stdint.texi: Discuss #include_next issue.
62188
62189 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62190
62191         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62192
62193 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62194
62195         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62196         in variable name.
62197
62198 2007-09-03  Jim Meyering  <jim@meyering.net>
62199
62200         New module: git-version-gen.
62201         * modules/git-version-gen: New file.
62202
62203         Import changes from coreutils for bootstrap script.
62204
62205         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62206
62207         bootstrap: uses rsync to download the .po files
62208         * build-aux/bootstrap (po_download_command_format): New global.
62209         (download_po_files): Use rsync.
62210         (update_po_files): Don't remove .po files after download,
62211         so future rsync runs can take advantage of the copies.
62212
62213         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62214
62215         Solve the unnecessary-.po-file-regeneration problem once and for all.
62216         * build-aux/bootstrap (download_po_files): New function, renamed from
62217         get_translations.  Now, downloads, but doesn't update LINGUAS.
62218         (update_po_files): New function.
62219
62220         bootstrap: Ignore more.
62221         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62222         uniwidth to e.g., lib/.gitignore.
62223         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62224
62225         * build-aux/bootstrap: New setting: vc_ignore.
62226         (insert_sorted_if_absent): Create $file if absent.
62227         Adapt to new, possibly empty, list: $vc_ignore.
62228
62229         bootstrap: generate more ignorable names
62230         * build-aux/bootstrap (slurp): When generating ignorable names,
62231         also map .sin to .sed, .gperf to .c, and .y to .c.
62232
62233 2007-09-03  Jim Meyering  <jim@meyering.net>
62234
62235         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62236         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62237
62238 2007-09-02  Bruno Haible  <bruno@clisp.org>
62239
62240         Fix mis-recognition of 'mcs' on QNX 6.
62241         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62242         output contains the string "Mono".
62243         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62244         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62245
62246 2007-09-01  Bruno Haible  <bruno@clisp.org>
62247
62248         Fix collision between uniwidth/* and linebreak modules.
62249         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62250         u32_width): Remove declarations.
62251         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62252         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62253         streq3, streq2, streq1, streq0): Remove functions.
62254         (STREQ): Remove macro.
62255         (is_cjk_encoding): Remove function.
62256         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62257         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62258         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62259         * NEWS: Document the change.
62260
62261 2007-09-01  Bruno Haible  <bruno@clisp.org>
62262
62263         * lib/streq.h: Add double-inclusion guard.
62264
62265 2007-09-01  Karl Berry  <karl@gnu.org>
62266
62267         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62268
62269 2007-08-28  Jim Meyering  <jim@meyering.net>
62270
62271         Rename mreadlink_with_size to areadlink_with_size.
62272         * NEWS: Document the change.
62273         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62274         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62275         * lib/mreadlink.h: Rename this to...
62276         * lib/areadlink.h: ...this.
62277         * modules/mreadlink-with-size: Rename this to...
62278         * modules/areadlink-with-size: ...this.
62279         * lib/canonicalize.c: Reflect the renaming.
62280         * modules/canonicalize: Likewise.
62281
62282 2007-08-26  Bruno Haible  <bruno@clisp.org>
62283
62284         * gnulib-tool (func_import): When deciding which files to remove,
62285         consider also dangling symbolic links.
62286         Reported by Eric Blake.
62287
62288 2007-08-26  Bruno Haible  <bruno@clisp.org>
62289
62290         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62291
62292 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62293
62294         * lib/readline.c: Don't include getline.h, the prototype is now
62295         found in stdio.h.
62296
62297 2007-08-23  Jim Meyering  <jim@meyering.net>
62298
62299         Getdelim touchup.
62300         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62301         around the funlockfile call, since funlockfile never sets errno.
62302         Don't set errno upon failed realloc.
62303
62304 2007-08-22  Eric Blake  <ebb9@byu.net>
62305
62306         Getline touchups.
62307         * lib/getdelim.c (getdelim): Revert regression that required *n to
62308         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62309         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62310         getdelim, rather than whether implementation is missing.
62311         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62312         * lib/stdio_.h (getline): Also declare if replacement is
62313         required.
62314         * doc/functions/getdelim.texi: New file.
62315         * doc/functions/getline.texi: Likewise.
62316         * doc/gnulib.texi (Function Substitutes): Add new files.
62317         Reported by Bruno Haible.
62318
62319 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62320
62321         * users.txt: Add Guile.
62322
62323 2007-08-22  Eric Blake  <ebb9@byu.net>
62324
62325         * tests/test-getdelim.c (main): Use remove, not unlink.
62326         * tests/test-getline.c (main): Likewise.
62327
62328         Move getline and getdelim into stdio.h, per POSIX 200x.
62329         * modules/getline (Files): Remove getline.h.
62330         (Depends-on): Add stdio.
62331         (configure.ac): Add module indicator.
62332         * modules/getdelim (Files): Remove getdelim.h.
62333         (Depends-on): Add stdio.
62334         (configure.ac): Add module indicator.
62335         * modules/stdio (Makefile.am): Work with new indicators.
62336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62337         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62338         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62339         * lib/getdelim.h: Delete.
62340         * lib/getline.h: Delete.
62341         * lib/stdio_.h (getdelim, getline): Declare.
62342         * modules/getdelim-tests: New module.
62343         * modules/getline-tests: Likewise.
62344         * tests/test-getdelim.c: New file.
62345         * tests/test-getline.c: Likewise.
62346         * NEWS: Document the change.
62347         * lib/getline.c: Update choice of header.
62348         * lib/csharpcomp.c: Likewise.
62349         * lib/getpass.c: Likewise.
62350         * lib/javacomp.c: Likewise.
62351         * lib/javaversion.c: Likewise.
62352         * lib/yesno.c: Likewise.
62353         * lib/getdelim.c: Likewise.
62354         (getdelim): Set errno on failure, and avoid memory leak.
62355
62356 2007-08-19  Bruno Haible  <bruno@clisp.org>
62357
62358         * modules/closein (Depends-on): Add freadahead.
62359         * lib/closein.c: Include freadahead.h.
62360         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62361         is zero.
62362
62363 2007-08-19  Bruno Haible  <bruno@clisp.org>
62364
62365         * modules/freadahead-tests: New file.
62366         * tests/test-freadahead.sh: New file.
62367         * tests/test-freadahead.c: New file.
62368
62369         * modules/freadahead: New file.
62370         * lib/freadahead.h: New file.
62371         * lib/freadahead.c: New file.
62372         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62373         fbufmode, fpurge, freadable, fwritable.
62374
62375 2007-08-19  Eric Blake  <ebb9@byu.net>
62376
62377         Test yesno in combination with closein.
62378         * lib/yesno.c (yesno): Document use of stdin.
62379         * modules/yesno-tests (Files): New module.
62380         * tests/test-yesno.c (main): New file.
62381         * tests/test-yesno.sh: Likewise.
62382
62383 2007-08-19  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62386         * lib/fseeko.c (rpl_fseeko): Likewise.
62387         * lib/fseterr.c (fseterr): Likewise.
62388
62389 2007-08-19  Bruno Haible  <bruno@clisp.org>
62390
62391         * tests/test-lseek.c (main): Disable a test for BeOS.
62392         * doc/functions/lseek.texi: Document the BeOS bug.
62393
62394 2007-08-19  Bruno Haible  <bruno@clisp.org>
62395             Eric Blake  <ebb9@byu.net>
62396
62397         * lib/lseek.c: Include <sys/stat.h>.
62398         (rpl_lseek): Add workaround code also for Unix platforms.
62399         Needed for BeOS.
62400         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62401         * doc/functions/lseek.texi: Document BeOS definiency.
62402
62403 2007-08-18  Bruno Haible  <bruno@clisp.org>
62404
62405         * modules/fstrcmp-tests: New file.
62406         * tests/test-fstrcmp.c: New file.
62407
62408 2007-08-18  Bruno Haible  <bruno@clisp.org>
62409
62410         * modules/fstrcmp: New file, from GNU gettext with modifications.
62411         * lib/fstrcmp.h: New file, from GNU gettext.
62412         * lib/fstrcmp.c: New file, from GNU gettext.
62413         * MODULES.html.sh (String handling): Add fstrcmp.
62414
62415 2007-08-18  Bruno Haible  <bruno@clisp.org>
62416
62417         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62418         'bool'.
62419         (diag, compareseq): Remove const from the ctxt argument.
62420         (USE_HEURISTIC): Undefine at the end.
62421
62422 2007-08-18  Jim Meyering  <jim@meyering.net>
62423
62424         New file: lib/idcache.h
62425         * NEWS: Mention the addition.
62426         * modules/idcache (Files): Add lib/idcache.h
62427         * lib/idcache.c: Include "idcache.h".
62428         Don't include <sys/types.h>.
62429         Add a FIXME comment.
62430         Move file-scoped "static" declarations to the top.
62431         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62432
62433 2007-08-17  Bruno Haible  <bruno@clisp.org>
62434         and Paul Eggert  <eggert@cs.ucla.edu>
62435
62436         * MODULES.html.sh: Add diffseq.
62437         * modules/diffseq: New file.
62438         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62439         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62440
62441 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         Import changes from coreutils for bootstrap script.
62444
62445         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62446
62447         * build-aux/bootstrap (slurp): Work even in environments where
62448         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62449         current code does not slurp files whose names start with ".", and
62450         this looks like it might be a troublesome area.
62451
62452         2007-07-11  Jim Meyering  <jim@meyering.net>
62453
62454         If there's a GPL vN copyright comment, require that N == 3.
62455
62456         2007-07-08  Jim Meyering  <jim@meyering.net>
62457
62458         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62459         * build-aux/bootstrap (mam_template): Move definition out of loop.
62460
62461         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62462
62463         * build-aux/bootstrap (symlink_to_dir): Rename function from
62464         symlink_to_gnulib.  Add a directory parameter.  Update all
62465         callers.
62466         (cp_mark_as_generated): Also check for -- and link to -- files in
62467         gl/.
62468
62469         2007-07-08  Jim Meyering  <jim@meyering.net>
62470
62471         Adapt to deeper hierarchy in gnulib.
62472         * build-aux/bootstrap (symlink_to_dir): If the destination
62473         directory doesn't exist, create it. This is required at least for
62474         "lib/uniwidth/cjk.h".
62475
62476         2007-05-15  Jim Meyering  <jim@meyering.net>
62477
62478         * build-aux/bootstrap: Now that generated Makefile.am files
62479         are no longer under version control, they must be created at
62480         bootstrap time.
62481
62482 2007-08-14  Ben Pfaff  <blp@gnu.org>
62483
62484         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62485
62486 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62487
62488         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62489         given the changes below.
62490         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62491         even on hosts that have padding bits beyond the supported 64.
62492
62493 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62494
62495         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62496         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62497         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62498         depends on it.
62499         (xstrtol_error): Remove.
62500         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62501         but with a different signature.
62502         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62503         * lib/xstrtol-error.c: Include exitfail.h.
62504         (xstrtol_fatal): New function, with a different signature from the
62505         old xstrtol_error, so that the caller need not worry about passing
62506         in an exit status, or about storage management of the option argument.
62507         (xstrtol_error): Now a static function.  Redo signature to
62508         implement xstrtol_fatal.  Output the correct number of hyphens in
62509         front of the option so that the caller need not worry about
62510         storage management.
62511         (N_): New macro.
62512         (_): Remove; not used now.
62513         * modules/xstrtol: Depend on getopt.
62514         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62515         of old STRTOL_FATAL_ERROR macro.
62516         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62517         of test program.
62518         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62519         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62520
62521 2007-08-08  Eric Blake  <ebb9@byu.net>
62522
62523         * lib/xstrtol-error.c: Add missing include.
62524
62525         Move xstrtol messages into gnulib domain, when --pobase is used.
62526         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62527         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62528         * modules/xstrtol (Files): Distribute new file.
62529         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62530         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62531         * tests/test-xstrtol.c: ...into new file.
62532         * tests/test-xstrtoul.c: Also test xstrtoul.
62533         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62534         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62535         * tests/test-xstrtol.sh: Drive the tests.
62536         * tests/test-xstrtoimax.sh: Likewise.
62537         * tests/test-xstrtoumax.sh: Likewise.
62538         * modules/xstrtol-tests: New module.
62539         * modules/xstrtoimax-tests: Likewise.
62540         * modules/xstrtoumax-tests: Likewise.
62541
62542 2007-08-08  Jim Meyering  <jim@meyering.net>
62543
62544         New function: mfile_name_concat.
62545         * lib/filenamecat.c (mfile_name_concat): New function, just like
62546         file_name_concat, but return NULL upon failure rather than exiting
62547         with a diagnostic.
62548         * lib/filenamecat.h: Declare it.
62549
62550 2007-08-07  Bruno Haible  <bruno@clisp.org>
62551
62552         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62553         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62554         warning from gcc.
62555         Reported by Eric Blake.
62556
62557 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62558
62559         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62560         * modules/crypto/arcfour (License): Likewise.
62561         * modules/crypto/des-tests (License): Likewise.
62562         * modules/crypto/gc-arctwo-tests (License): Likewise.
62563         * modules/crypto/gc-des-tests (License): Likewise.
62564         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62565         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62566         * modules/crypto/gc-md2-tests (License): Likewise.
62567         * modules/crypto/gc-md4-tests (License): Likewise.
62568         * modules/crypto/gc-md5-tests (License): Likewise.
62569         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62570         * modules/crypto/gc-rijndael-tests (License): Likewise.
62571         * modules/crypto/gc-sha1-tests (License): Likewise.
62572         * modules/crypto/gc-tests (License): Likewise.
62573         * modules/crypto/hmac-md5 (License): Likewise.
62574         * modules/crypto/hmac-sha1 (License): Likewise.
62575         * modules/crypto/md2-tests (License): Likewise.
62576         * modules/crypto/md4-tests (License): Likewise.
62577         * modules/crypto/md5 (License): Likewise.
62578         * modules/crypto/rijndael (License): Likewise.
62579         * modules/crypto/sha1 (License): Likewise.
62580         * modules/memxor (License): Likewise.
62581
62582 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62583         and Bruno Haible  <bruno@clisp.org>
62584
62585         * NEWS: Describe interface changes to human, xstrtol.
62586         * lib/human.h: Include <xstrtol.h>.
62587         (human_options): Return enum strtol_error, not int.  Remove
62588         bool arg; take int * instead.
62589         * lib/human.c: Don't include "gettext.h".
62590         (_): Remove; no longer used.
62591         Don't include <xstrtol.h>, since human.h does it.
62592         (human_options): Adjust to abovementioned interface changes.
62593         Do not report error to stderr; that's now the caller's
62594         responsibility.
62595         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62596         interface change.
62597         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62598         Str, Argument_type_string.  All uses changed.  Put " argument"
62599         in diagnostics to make them clearer.  Change wording of suffix
62600         message for clarity.
62601         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62602         Argument_type_string.
62603         (STRTOL_FATAL_WARN): Remove; no longer used.
62604         * modules/human (Depends-on): Remove gettext-h.
62605
62606 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62607
62608         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62609
62610 2007-07-31  Bruno Haible  <bruno@clisp.org>
62611
62612         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62613         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62614         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62615
62616 2007-07-31  Bruno Haible  <bruno@clisp.org>
62617
62618         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62619         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62620
62621 2007-07-30  Bruno Haible  <bruno@clisp.org>
62622
62623         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62624         * modules/c-ctype (License): Likewise.
62625         * modules/c-strcase (License): Likewise.
62626         * modules/check-version (License): Likewise.
62627         * modules/iconv (License): Likewise.
62628         * modules/iconv_open (License): Likewise.
62629         * modules/read-file (License): Likewise.
62630         * modules/striconv (License): Likewise.
62631         * modules/strverscmp (License): Likewise.
62632         * modules/vasprintf (License): Likewise.
62633         * modules/crypto/des (License): Likewise.
62634         * modules/crypto/gc (License): Likewise.
62635         * modules/crypto/gc-arcfour (License): Likewise.
62636         * modules/crypto/gc-arctwo (License): Likewise.
62637         * modules/crypto/gc-des (License): Likewise.
62638         * modules/crypto/gc-hmac-md5 (License): Likewise.
62639         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62640         * modules/crypto/gc-md2 (License): Likewise.
62641         * modules/crypto/gc-md4 (License): Likewise.
62642         * modules/crypto/gc-md5 (License): Likewise.
62643         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62644         * modules/crypto/gc-random (License): Likewise.
62645         * modules/crypto/gc-rijndael (License): Likewise.
62646         * modules/crypto/gc-sha1 (License): Likewise.
62647         * modules/crypto/md2 (License): Likewise.
62648         * modules/crypto/md4 (License): Likewise.
62649
62650 2007-07-30  Jim Meyering  <jim@meyering.net>
62651
62652         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62653         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62654         it has valid stat data.  This bug would cause du not to count the
62655         sizes of inaccessible directories.
62656         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62657         in <http://bugzilla.redhat.com/250077>.
62658
62659 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62660             Bruno Haible  <bruno@clisp.org>
62661
62662         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62663         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62664         #include_next, gives a diagnostic about it, but reports no error in
62665         the exit code.
62666         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62667
62668 2007-07-24  Ben Pfaff  <blp@gnu.org>
62669
62670         Improve name: "count-one-bits" is better than "popcount".
62671         * MODULES.html.sh: Update name.
62672         * lib/popcount.h: Renamed lib/count-one-bits.h.
62673         (popcount): Renamed count_one_bits.
62674         (popcountl): Renamed count_one_bits_l.
62675         (popcountll): Renamed count_one_bits_ll.
62676         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62677         * modules/popcount: Renamed module/count-one-bits.
62678         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62679         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62680
62681 2007-07-23  Ben Pfaff  <blp@gnu.org>
62682
62683         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62684         better code generation, and add U to large constants to avoid
62685         warnings, in non-GCC case.
62686         Suggested by Bruno Haible.
62687
62688 2007-07-23  Ben Pfaff  <blp@gnu.org>
62689
62690         * lib/popcount.h: Use verify_true instead of if...abort.
62691         * modules/popcount: Depend on verify module.
62692         Suggested by Jim Meyering.
62693
62694 2007-07-23  Bruno Haible  <bruno@clisp.org>
62695
62696         * gnulib-tool (func_import): Create a .cvsignore file also when the
62697         directory is not yet in CVS but the toplevel directory is. When
62698         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62699         Reported by Karl Berry.
62700
62701 2007-07-22  Ben Pfaff  <blp@gnu.org>
62702
62703         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62704         case.
62705         Suggested by Eric Blake.
62706
62707 2007-07-22  Ben Pfaff  <blp@gnu.org>
62708
62709         New module: popcount.
62710         * MODULES.html.sh: Add popcount.
62711         * modules/popcount: New file.
62712         * modules/popcount-tests: New file.
62713         * tests/test-popcount.c: New file.
62714         * lib/popcount.h: New file.
62715         * m4/popcount.m4: New file.
62716
62717 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62718
62719         * build-aux/announce-gen: Update to GPLv3.
62720
62721         * build-aux/config.guess: Update from config.
62722
62723 2007-07-21  Bruno Haible  <bruno@clisp.org>
62724
62725         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62726         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62727
62728 2007-07-20  Jim Meyering  <jim@meyering.net>
62729
62730         * check-module: Diagnose a self-dependency.
62731
62732 2007-07-19  Bruno Haible  <bruno@clisp.org>
62733
62734         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62735         empty.
62736         Reported by Eric Blake.
62737
62738 2007-07-18  Bruno Haible  <bruno@clisp.org>
62739
62740         * gnulib-tool: New options --po-base, --po-domain.
62741         (func_usage): Document them.
62742         (pobase, po_domain): New variables.
62743         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62744         DEFAULT_TEXT_DOMAIN.
62745         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62746         (func_import): Consider pobase and po_domain. Create a po/ directory.
62747         (func_create_testdir): Set pobase and po_domain to empty.
62748         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62749         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62750
62751 2007-07-18  Bruno Haible  <bruno@clisp.org>
62752
62753         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62754         EXTRA_DIST augmentation for files in build-aux/.
62755
62756 2007-07-16  Bruno Haible  <bruno@clisp.org>
62757
62758         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62759         * modules/getdelim (License): Likewise.
62760
62761 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62762
62763         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62764         * modules/d-type (License): Likewise.
62765         * modules/extensions (License): Likewise.
62766         * modules/fnmatch (License): Likewise.
62767         * modules/fseeko (License): Likewise.
62768         * modules/getaddrinfo (License): Likewise.
62769         * modules/getline (License): Likewise.
62770         * modules/getlogin_r (License): Likewise.
62771         * modules/getpass (License): Likewise.
62772         * modules/gettimeofday (License): Likewise.
62773         * modules/glob (License): Likewise.
62774         * modules/inet_ntop (License): Likewise.
62775         * modules/malloc (License): Likewise.
62776         * modules/malloca (License): Likewise.
62777         * modules/memmem (License): Likewise.
62778         * modules/mempcpy (License): Likewise.
62779         * modules/memset (License): Likewise.
62780         * modules/minmax (License): Likewise.
62781         * modules/mktime (License): Likewise.
62782         * modules/netinet_in (License): Likewise.
62783         * modules/pathmax (License): Likewise.
62784         * modules/poll (License): Likewise.
62785         * modules/regex (License): Likewise.
62786         * modules/snprintf (License): Likewise.
62787         * modules/stdbool (License): Likewise.
62788         * modules/stdint (License): Likewise.
62789         * modules/stdio (License): Likewise.
62790         * modules/strcase (License): Likewise.
62791         * modules/strcasestr (License): Likewise.
62792         * modules/strdup (License): Likewise.
62793         * modules/string (License): Likewise.
62794         * modules/strndup (License): Likewise.
62795         * modules/strnlen (License): Likewise.
62796         * modules/strpbrk (License): Likewise.
62797         * modules/strptime (License): Likewise.
62798         * modules/strsep (License): Likewise.
62799         * modules/sys_select (License): Likewise.
62800         * modules/sys_socket (License): Likewise.
62801         * modules/sys_stat (License): Likewise.
62802         * modules/sys_time (License): Likewise.
62803         * modules/time (License): Likewise.
62804         * modules/time_r (License): Likewise.
62805         * modules/timegm (License): Likewise.
62806         * modules/unistd (License): Likewise.
62807         * modules/vsnprintf (License): Likewise.
62808         * modules/wctype (License): Likewise.
62809
62810 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62811
62812         * modules/argz (License): LGPLv2+.
62813
62814 2007-07-15  Karl Berry  <karl@gnu.org>
62815
62816         * doc/gnulib.texi: revise node structure per new fdl.texi.
62817
62818 2007-07-14  Bruno Haible  <bruno@clisp.org>
62819
62820         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62821         the output file.
62822         * lib/uniname/uninames.h: Regenerated.
62823
62824 2007-07-14  Karl Berry  <karl@gnu.org>
62825
62826         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62827         omitting sectioning and index commands.
62828
62829 2007-07-13  Bruno Haible  <bruno@clisp.org>
62830
62831         New gnulib-tool option --more-symlinks.
62832         * gnulib-tool (func_usage): Document --more-symlinks.
62833         (do_copyrights): New variable.
62834         Recognize option --more-symlinks.
62835         (func_import): Don't add a copyright notice transform to
62836         sed_transform_lib_file if do_copyrights is empty.
62837
62838 2007-07-13  Bruno Haible  <bruno@clisp.org>
62839
62840         * lib/vasnprintf.c (decimal_point_char): Define also if
62841         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62842         && !NEED_PRINTF_DIRECTIVE_A.
62843         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62844         Gary V. Vaughan <gary@gnu.org>.
62845
62846 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62847
62848         * lib/inttypes_.h: Undo previous change, since it was fixed
62849         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62850
62851 2007-07-13  Bruno Haible  <bruno@clisp.org>
62852
62853         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62854         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62855
62856 2007-07-13  Jim Meyering  <jim@meyering.net>
62857
62858         df: Don't fail for Tru64's "file-on-file mount".
62859         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62860         so we fall through and use statfs instead.  Details here:
62861         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62862         Reported by Albert Chin.
62863
62864 2007-07-13  Bruno Haible  <bruno@clisp.org>
62865
62866         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62867         * modules/configmake (License): Likewise.
62868         * modules/gettext (License): Likewise.
62869         * modules/gettext-h (License): Likewise.
62870         * modules/include_next (License): Likewise.
62871         * modules/link-warning (License): Likewise.
62872         * modules/localcharset (License): Likewise.
62873         * modules/localename (License): Likewise.
62874         * modules/lock (License): Likewise.
62875         * modules/relocatable-lib-lgpl (License): Likewise.
62876         * modules/size_max (License): Likewise.
62877         * modules/vasnprintf (License): Likewise.
62878         * modules/wchar (License): Likewise.
62879         * modules/xsize (License): Likewise.
62880
62881 2007-07-13  Bruno Haible  <bruno@clisp.org>
62882
62883         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62884         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62885
62886 2007-07-12  Bruno Haible  <bruno@clisp.org>
62887
62888         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62889         in the modules files.
62890
62891 2007-07-11  Karl Berry  <karl@gnu.org>
62892
62893         * MODULES.html.sh (func_module): use
62894          sed -e '\|^'"${includefile}"'$|d'
62895          instead of /.../d, to avoid errors on $includefile's containing /.
62896
62897 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62898
62899         * gnulib-tool (func_import): Avoid duplication of --avoid
62900         statements
62901         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62902         names to `_' in variable names.
62903
62904 2007-07-10  Eric Blake  <ebb9@byu.net>
62905
62906         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62907         * NEWS: Document this change.
62908
62909 2007-07-08  Bruno Haible  <bruno@clisp.org>
62910
62911         Update to Unicode 5.0.
62912         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62913         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62914         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62915         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62916         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62917         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62918         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62919         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62920         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62921         U+10A3F, U+1D242..U+1D244.
62922         (nonspacing_table_ind): Update.
62923         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62924         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62925
62926 2007-07-08  Bruno Haible  <bruno@clisp.org>
62927
62928         Update to Unicode 5.0.
62929         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62930         code transform. Extend the name index field of unicode_name_to_code and
62931         unicode_code_to_name from 16 to 24 bits.
62932         * lib/uniname/uniname.c (unicode_character_name,
62933         unicode_name_character): Add the range 0x12xxx to the code transform.
62934         * lib/uniname/uninames.h: Regenerated.
62935         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62936
62937 2007-07-07  Bruno Haible  <bruno@clisp.org>
62938
62939         * modules/wcwidth-tests: New file.
62940         * tests/test-wcwidth.c: New file.
62941
62942         Work around MacOS X wcwidth() bug.
62943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62944         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62945         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62946         original wcwidth in non-UTF-8 locales.
62947         * modules/wcwidth (Depends-on): Add localcharset, streq,
62948         uniwidth/width.
62949         * doc/functions/wcwidth.texi: Update.
62950
62951 2007-07-07  Bruno Haible  <bruno@clisp.org>
62952
62953         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62954         (wcwidth): New declaration.
62955         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62956         macros.
62957         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62958         here. Prepare for creating <wchar.h> unconditionally.
62959         * modules/wchar (Depends-on): Add link-warning.
62960         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62961         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62962         * lib/wcwidth.h: Remove file.
62963         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62964         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62965         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62966         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62967         (Include): Replace wcwidth.h with <wchar.h>.
62968         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62969         * lib/mbchar.h: Don't include wcwidth.h.
62970         * lib/mbswidth.c: Likewise.
62971         * NEWS: Mention the change.
62972
62973 2007-07-07  Bruno Haible  <bruno@clisp.org>
62974
62975         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62976         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62977         definition with an external declaration.
62978         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62979         defined as a function. Remove AC_C_INLINE requirement.
62980         * modules/wcwidth (Files): Add lib/wcwidth.c.
62981         (Makefile.am): Remove redundant statement.
62982
62983 2007-07-07  Bruno Haible  <bruno@clisp.org>
62984
62985         * MODULES.html.sh (Unicode string functions): Add the new modules.
62986
62987         * tests/uniwidth/test-u32-strwidth.c: New file.
62988         * modules/uniwidth/u32-strwidth-tests: New file.
62989
62990         * lib/uniwidth/u32-strwidth.c: New file.
62991         * modules/uniwidth/u32-strwidth: New file.
62992
62993         * tests/uniwidth/test-u16-strwidth.c: New file.
62994         * modules/uniwidth/u16-strwidth-tests: New file.
62995
62996         * lib/uniwidth/u16-strwidth.c: New file.
62997         * modules/uniwidth/u16-strwidth: New file.
62998
62999         * tests/uniwidth/test-u8-strwidth.c: New file.
63000         * modules/uniwidth/u8-strwidth-tests: New file.
63001
63002         * lib/uniwidth/u8-strwidth.c: New file.
63003         * modules/uniwidth/u8-strwidth: New file.
63004
63005         * tests/uniwidth/test-u32-width.c: New file.
63006         * modules/uniwidth/u32-width-tests: New file.
63007
63008         * lib/uniwidth/u32-width.c: New file.
63009         * modules/uniwidth/u32-width: New file.
63010
63011         * tests/uniwidth/test-u16-width.c: New file.
63012         * modules/uniwidth/u16-width-tests: New file.
63013
63014         * lib/uniwidth/u16-width.c: New file.
63015         * modules/uniwidth/u16-width: New file.
63016
63017         * tests/uniwidth/test-u8-width.c: New file.
63018         * modules/uniwidth/u8-width-tests: New file.
63019
63020         * lib/uniwidth/u8-width.c: New file.
63021         * modules/uniwidth/u8-width: New file.
63022
63023         * tests/uniwidth/test-uc_width.c: New file.
63024         * modules/uniwidth/width-tests: New file.
63025
63026         * lib/uniwidth/width.c: New file, from GNU libiconv.
63027         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63028         * modules/uniwidth/width: New file.
63029
63030         * lib/uniwidth.h: New file, from GNU libiconv.
63031         * modules/uniwidth/base: New file.
63032
63033 2007-07-07  Bruno Haible  <bruno@clisp.org>
63034
63035         * lib/uniname.h: New file, from GNU gettext.
63036         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63037         * lib/uniname/uninames.h: New file, from GNU gettext.
63038         * lib/uniname/uniname.c: New file, from GNU gettext.
63039         * tests/uniname/test-uninames.sh: New file.
63040         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63041         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63042         * modules/uniname/base: New file.
63043         * modules/uniname/uniname: New file.
63044         * modules/uniname/uniname-tests: New file.
63045         * MODULES.html.sh (Unicode string functions): Add the new modules.
63046
63047 2007-07-06  Bruno Haible  <bruno@clisp.org>
63048
63049         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63050
63051 2007-07-06  Bruno Haible  <bruno@clisp.org>
63052
63053         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63054         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63055         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63056         include <sys/time.h>.
63057         Reported by Eric Blake.
63058
63059 2007-07-06  Eric Blake  <ebb9@byu.net>
63060
63061         Fix testing canonicalize on cygwin.
63062         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63063         Revert patch from 2007-06-19.
63064         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63065         canonicalize module is also in use.
63066         * tests/test-canonicalize.c: New file.
63067         * tests/test-canonicalize.sh: Likewise.
63068         * modules/canonicalize-tests: Likewise.
63069
63070 2007-07-06  Jim Meyering  <jim@meyering.net>
63071
63072         * lib/getugroups.c (getugroups): Detect getgrent failure.
63073         Adjust comment to reflect reality: this function may return -1.
63074
63075 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63076
63077         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63078         the new TP address.
63079         (usage): Fix typo
63080         (gnulib_mk): New variable.
63081
63082 2007-07-05  Jim Meyering  <jim@meyering.net>
63083
63084         Don't let endgrent clobber errno, no matter how improbable.
63085         * lib/getugroups.c (getugroups): Save and restore errno around
63086         endgrent call.
63087
63088         Close the group DB even when failing with 2^31 or more members.
63089         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63090
63091 2007-07-04  Jim Meyering  <jim@meyering.net>
63092
63093         * lib/getugroups.h: New file.
63094         * lib/getugroups.c: Include "getugroups.h".
63095         Remove uses of "register" keyword.
63096         Move local variable, "cp", down into scope where used.
63097         Give "username" parameter the "const" attribute.
63098         * modules/getugroups (Files): Add lib/getugroups.h
63099
63100 2007-07-04  Karl Berry  <karl@gnu.org>
63101
63102         * MODULES.html.sh (func_all_modules): Complete rename of
63103         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63104
63105 2007-07-02  Bruno Haible  <bruno@clisp.org>
63106
63107         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63108         mode, when inttypes.h comes from gnulib.
63109         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63110
63111 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63112
63113         * NEWS: Mention lgpl module name change.
63114
63115         * modules/lgpl-2.1: Renamed from lgpl.
63116
63117         * NEWS: Mention gpl module name change.
63118
63119         * modules/gpl-3.0: New file, based on gpl-2.0.
63120
63121         * modules/gpl-2.0: Renamed from gpl.
63122
63123         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63124         doc/gpl-2.0.texi.
63125
63126 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63129         #define __STDC_LIMIT_MACROS temporarily while including
63130         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63131         Problem reported by Joel E. Denny in
63132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63133
63134 2007-07-01  Bruno Haible  <bruno@clisp.org>
63135
63136         * lib/unistdio.h: New file.
63137         * lib/unistdio/u-asnprintf.h: New file.
63138         * lib/unistdio/u-asprintf.h: New file.
63139         * lib/unistdio/u-printf-args.c: New file.
63140         * lib/unistdio/u-printf-args.h: New file.
63141         * lib/unistdio/u-printf-parse.h: New file.
63142         * lib/unistdio/u-snprintf.h: New file.
63143         * lib/unistdio/u-sprintf.h: New file.
63144         * lib/unistdio/u-vasprintf.h: New file.
63145         * lib/unistdio/u-vsnprintf.h: New file.
63146         * lib/unistdio/u-vsprintf.h: New file.
63147         * lib/unistdio/ulc-asnprintf.c: New file.
63148         * lib/unistdio/ulc-asprintf.c: New file.
63149         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63150         * lib/unistdio/ulc-printf-parse.c: New file.
63151         * lib/unistdio/ulc-snprintf.c: New file.
63152         * lib/unistdio/ulc-sprintf.c: New file.
63153         * lib/unistdio/ulc-vasnprintf.c: New file.
63154         * lib/unistdio/ulc-vasprintf.c: New file.
63155         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63156         * lib/unistdio/ulc-vsnprintf.c: New file.
63157         * lib/unistdio/ulc-vsprintf.c: New file.
63158         * lib/unistdio/u8-asnprintf.c: New file.
63159         * lib/unistdio/u8-asprintf.c: New file.
63160         * lib/unistdio/u8-printf-parse.c: New file.
63161         * lib/unistdio/u8-snprintf.c: New file.
63162         * lib/unistdio/u8-sprintf.c: New file.
63163         * lib/unistdio/u8-vasnprintf.c: New file.
63164         * lib/unistdio/u8-vasprintf.c: New file.
63165         * lib/unistdio/u8-vsnprintf.c: New file.
63166         * lib/unistdio/u8-vsprintf.c: New file.
63167         * lib/unistdio/u8-u8-asnprintf.c: New file.
63168         * lib/unistdio/u8-u8-asprintf.c: New file.
63169         * lib/unistdio/u8-u8-snprintf.c: New file.
63170         * lib/unistdio/u8-u8-sprintf.c: New file.
63171         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63172         * lib/unistdio/u8-u8-vasprintf.c: New file.
63173         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63174         * lib/unistdio/u8-u8-vsprintf.c: New file.
63175         * lib/unistdio/u16-asnprintf.c: New file.
63176         * lib/unistdio/u16-asprintf.c: New file.
63177         * lib/unistdio/u16-printf-parse.c: New file.
63178         * lib/unistdio/u16-snprintf.c: New file.
63179         * lib/unistdio/u16-sprintf.c: New file.
63180         * lib/unistdio/u16-vasnprintf.c: New file.
63181         * lib/unistdio/u16-vasprintf.c: New file.
63182         * lib/unistdio/u16-vsnprintf.c: New file.
63183         * lib/unistdio/u16-vsprintf.c: New file.
63184         * lib/unistdio/u16-u16-asnprintf.c: New file.
63185         * lib/unistdio/u16-u16-asprintf.c: New file.
63186         * lib/unistdio/u16-u16-snprintf.c: New file.
63187         * lib/unistdio/u16-u16-sprintf.c: New file.
63188         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63189         * lib/unistdio/u16-u16-vasprintf.c: New file.
63190         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63191         * lib/unistdio/u16-u16-vsprintf.c: New file.
63192         * lib/unistdio/u32-asnprintf.c: New file.
63193         * lib/unistdio/u32-asprintf.c: New file.
63194         * lib/unistdio/u32-printf-parse.c: New file.
63195         * lib/unistdio/u32-snprintf.c: New file.
63196         * lib/unistdio/u32-sprintf.c: New file.
63197         * lib/unistdio/u32-vasnprintf.c: New file.
63198         * lib/unistdio/u32-vasprintf.c: New file.
63199         * lib/unistdio/u32-vsnprintf.c: New file.
63200         * lib/unistdio/u32-vsprintf.c: New file.
63201         * lib/unistdio/u32-u32-asnprintf.c: New file.
63202         * lib/unistdio/u32-u32-asprintf.c: New file.
63203         * lib/unistdio/u32-u32-snprintf.c: New file.
63204         * lib/unistdio/u32-u32-sprintf.c: New file.
63205         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63206         * lib/unistdio/u32-u32-vasprintf.c: New file.
63207         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63208         * lib/unistdio/u32-u32-vsprintf.c: New file.
63209         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63210         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63211         * tests/unistdio/test-ulc-printf1.h: New file.
63212         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63213         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63214         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63215         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63216         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63217         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63218         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63219         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63220         * tests/unistdio/test-u8-asnprintf1.c: New file.
63221         * tests/unistdio/test-u8-asnprintf1.h: New file.
63222         * tests/unistdio/test-u8-printf1.h: New file.
63223         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63224         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63225         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63226         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63227         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63228         * tests/unistdio/test-u8-vasprintf1.c: New file.
63229         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63230         * tests/unistdio/test-u8-vsprintf1.c: New file.
63231         * tests/unistdio/test-u16-asnprintf1.c: New file.
63232         * tests/unistdio/test-u16-asnprintf1.h: New file.
63233         * tests/unistdio/test-u16-printf1.h: New file.
63234         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63235         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63236         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63237         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63238         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63239         * tests/unistdio/test-u16-vasprintf1.c: New file.
63240         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63241         * tests/unistdio/test-u16-vsprintf1.c: New file.
63242         * tests/unistdio/test-u32-asnprintf1.c: New file.
63243         * tests/unistdio/test-u32-asnprintf1.h: New file.
63244         * tests/unistdio/test-u32-printf1.h: New file.
63245         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63246         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63247         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63248         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63249         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63250         * tests/unistdio/test-u32-vasprintf1.c: New file.
63251         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63252         * tests/unistdio/test-u32-vsprintf1.c: New file.
63253         * modules/unistdio/base: New file.
63254         * modules/unistdio/u-printf-args: New file.
63255         * modules/unistdio/ulc-asnprintf: New file.
63256         * modules/unistdio/ulc-asprintf: New file.
63257         * modules/unistdio/ulc-fprintf: New file.
63258         * modules/unistdio/ulc-printf-parse: New file.
63259         * modules/unistdio/ulc-snprintf: New file.
63260         * modules/unistdio/ulc-sprintf: New file.
63261         * modules/unistdio/ulc-vasnprintf: New file.
63262         * modules/unistdio/ulc-vasprintf: New file.
63263         * modules/unistdio/ulc-vfprintf: New file.
63264         * modules/unistdio/ulc-vsnprintf: New file.
63265         * modules/unistdio/ulc-vsprintf: New file.
63266         * modules/unistdio/u8-asnprintf: New file.
63267         * modules/unistdio/u8-asprintf: New file.
63268         * modules/unistdio/u8-printf-parse: New file.
63269         * modules/unistdio/u8-snprintf: New file.
63270         * modules/unistdio/u8-sprintf: New file.
63271         * modules/unistdio/u8-vasnprintf: New file.
63272         * modules/unistdio/u8-vasprintf: New file.
63273         * modules/unistdio/u8-vsnprintf: New file.
63274         * modules/unistdio/u8-vsprintf: New file.
63275         * modules/unistdio/u8-u8-asnprintf: New file.
63276         * modules/unistdio/u8-u8-asprintf: New file.
63277         * modules/unistdio/u8-u8-snprintf: New file.
63278         * modules/unistdio/u8-u8-sprintf: New file.
63279         * modules/unistdio/u8-u8-vasnprintf: New file.
63280         * modules/unistdio/u8-u8-vasprintf: New file.
63281         * modules/unistdio/u8-u8-vsnprintf: New file.
63282         * modules/unistdio/u8-u8-vsprintf: New file.
63283         * modules/unistdio/u16-asnprintf: New file.
63284         * modules/unistdio/u16-asprintf: New file.
63285         * modules/unistdio/u16-printf-parse: New file.
63286         * modules/unistdio/u16-snprintf: New file.
63287         * modules/unistdio/u16-sprintf: New file.
63288         * modules/unistdio/u16-vasnprintf: New file.
63289         * modules/unistdio/u16-vasprintf: New file.
63290         * modules/unistdio/u16-vsnprintf: New file.
63291         * modules/unistdio/u16-vsprintf: New file.
63292         * modules/unistdio/u16-u16-asnprintf: New file.
63293         * modules/unistdio/u16-u16-asprintf: New file.
63294         * modules/unistdio/u16-u16-snprintf: New file.
63295         * modules/unistdio/u16-u16-sprintf: New file.
63296         * modules/unistdio/u16-u16-vasnprintf: New file.
63297         * modules/unistdio/u16-u16-vasprintf: New file.
63298         * modules/unistdio/u16-u16-vsnprintf: New file.
63299         * modules/unistdio/u16-u16-vsprintf: New file.
63300         * modules/unistdio/u32-asnprintf: New file.
63301         * modules/unistdio/u32-asprintf: New file.
63302         * modules/unistdio/u32-printf-parse: New file.
63303         * modules/unistdio/u32-snprintf: New file.
63304         * modules/unistdio/u32-sprintf: New file.
63305         * modules/unistdio/u32-vasnprintf: New file.
63306         * modules/unistdio/u32-vasprintf: New file.
63307         * modules/unistdio/u32-vsnprintf: New file.
63308         * modules/unistdio/u32-vsprintf: New file.
63309         * modules/unistdio/u32-u32-asnprintf: New file.
63310         * modules/unistdio/u32-u32-asprintf: New file.
63311         * modules/unistdio/u32-u32-snprintf: New file.
63312         * modules/unistdio/u32-u32-sprintf: New file.
63313         * modules/unistdio/u32-u32-vasnprintf: New file.
63314         * modules/unistdio/u32-u32-vasprintf: New file.
63315         * modules/unistdio/u32-u32-vsnprintf: New file.
63316         * modules/unistdio/u32-u32-vsprintf: New file.
63317         * modules/unistdio/ulc-asnprintf-tests: New file.
63318         * modules/unistdio/ulc-vasnprintf-tests: New file.
63319         * modules/unistdio/ulc-vasprintf-tests: New file.
63320         * modules/unistdio/ulc-vsnprintf-tests: New file.
63321         * modules/unistdio/ulc-vsprintf-tests: New file.
63322         * modules/unistdio/u8-asnprintf-tests: New file.
63323         * modules/unistdio/u8-vasnprintf-tests: New file.
63324         * modules/unistdio/u8-vasprintf-tests: New file.
63325         * modules/unistdio/u8-vsnprintf-tests: New file.
63326         * modules/unistdio/u8-vsprintf-tests: New file.
63327         * modules/unistdio/u16-asnprintf-tests: New file.
63328         * modules/unistdio/u16-vasnprintf-tests: New file.
63329         * modules/unistdio/u16-vasprintf-tests: New file.
63330         * modules/unistdio/u16-vsnprintf-tests: New file.
63331         * modules/unistdio/u16-vsprintf-tests: New file.
63332         * modules/unistdio/u32-asnprintf-tests: New file.
63333         * modules/unistdio/u32-vasnprintf-tests: New file.
63334         * modules/unistdio/u32-vasprintf-tests: New file.
63335         * modules/unistdio/u32-vsnprintf-tests: New file.
63336         * modules/unistdio/u32-vsprintf-tests: New file.
63337         * MODULES.html.sh (Unicode string functions): Add the new modules.
63338
63339 2007-07-01  Bruno Haible  <bruno@clisp.org>
63340
63341         * lib/sprintf.c (sprintf): Limit the available length estimation,
63342         to avoid address wraparound.
63343         * lib/vsprintf.c (vsprintf): Likewise.
63344         * modules/sprintf-posix (Dependencies): Add stdint.
63345         * modules/vsprintf-posix (Dependencies): Likewise.
63346
63347 2007-07-01  Bruno Haible  <bruno@clisp.org>
63348
63349         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63350         Windows PATH as well. Conservative double-quoting. Comments.
63351
63352 2007-07-01  Bruno Haible  <bruno@clisp.org>
63353             Eric Blake  <ebb9@byu.net>
63354             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63355
63356         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63357         empty components in $PATH, denoting '.'.
63358
63359 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63360
63361         * gnulib-tool: Fix indentation.
63362         (func_create_megatestdir): Likewise.
63363         Report by Bruno Haible.
63364
63365 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63366
63367         Sync from Automake.
63368         * build-aux/gnupload: Fix shell portability issues with for loops.
63369         Report by Karl Berry.
63370
63371 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63372
63373         * build-aux/maint.mk (POURL): Use translationproject.org.
63374
63375 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63376             Bruno Haible  <bruno@clisp.org>
63377
63378         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63379         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63380         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63381         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63382         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63383
63384 2007-06-27  Bruno Haible  <bruno@clisp.org>
63385
63386         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63387         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63388
63389 2007-06-26  Karl Berry  <karl@gnu.org>
63390
63391         * MODULES.html.sh: remove xreadlink-with-size.
63392
63393 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63394
63395         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63396         method that I hope also handles the double-include problem noted
63397         by Bruno Haible in
63398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63399
63400 2007-06-23  Bruno Haible  <bruno@clisp.org>
63401
63402         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63403         Don't let the 'mostlyclean' target fail if the last subdirectory could
63404         not be removed.
63405         Reported by Karl Berry.
63406
63407 2007-06-23  Bruno Haible  <bruno@clisp.org>
63408
63409         * gnulib-tool (echo): Add a speedier workaround for ksh.
63410         * tests/test-echo.sh: Likewise.
63411
63412 2007-06-23  Bruno Haible  <bruno@clisp.org>
63413
63414         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63415         * tests/test-echo.sh: Likewise.
63416
63417 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63418
63419         * gnulib-tool (IFS): Initialize early, so we don't set it to
63420         empty later.
63421         (self_abspathname): Rewrite algorithm to set it, reindent.
63422         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63423         (func_create_megatestdir): Merge some sed scripts.
63424
63425 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63426
63427         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63428         exposed by Sun Studio 11 cc on Solaris 8.
63429
63430 2007-06-22  Bruno Haible  <bruno@clisp.org>
63431
63432         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63433         backslashes.
63434         * tests/test-echo.sh: New file.
63435
63436 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63437
63438         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63439         simplify `sed_replace_build_aux' scripts, they are portable but
63440         echoing them with `echo' is not.
63441         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63442
63443 2007-06-21  Karl Berry  <karl@gnu.org>
63444
63445         * config/srclist.txt: guess we can't handle the licenses via
63446         srclist at the moment.
63447
63448 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63449
63450         * MODULES.html.sh: Add include_next.
63451         * modules/include_next: New file.
63452
63453 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63454
63455         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63456         INCLUDE_NEXT.
63457         (gl_CHECK_NEXT_HEADERS): New macro.
63458         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63459         the obsolescent gl_ABSOLUTE_HEADER.
63460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63461         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63462         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63463         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63464         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63465         * m4/math_h.m4 (gl_MATH_H): Likewise.
63466         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63467         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63468         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63469         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63470         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63471         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63472         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63473         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63474         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63475         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63476         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63477         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63478         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63479         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63480         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63481         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63482         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63483         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63484         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63485         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63486         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63487         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63488         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63489         * lib/float_.h: Likewise.
63490         * lib/inttypes_.h: Likewise.
63491         * lib/math_.h: Likewise.
63492         * lib/search_.h: Likewise.
63493         * lib/signal_.h: Likewise.
63494         * lib/stdint_.h: Likewise.
63495         * lib/stdio_.h: Likewise.
63496         * lib/stdlib_.h: Likewise.
63497         * lib/string_.h: Likewise.
63498         * lib/sys_stat_.h: Likewise.
63499         * lib/sys_time_.h: Likewise.
63500         * lib/time_.h: Likewise.
63501         * lib/unistd_.h: Likewise.
63502         * lib/wchar_.h: Likewise.
63503         * lib/wctype_.h: Likewise.
63504         * lib/dirent_.h: Likewise.
63505         * lib/iconv_.h: Likewise.
63506         * lib/locale_.h: Likewise.
63507         * lib/netinet_in_.h: Likewise.
63508         * lib/sys_select_.h: Likewise.
63509         * lib/sys_socket_.h: Likewise.
63510         * lib/sysexits_.h: Likewise.
63511         * modules/fcntl (Depends-on): Depend on include_next, not
63512         absolute_header.
63513         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63514         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63515         * modules/fchdir: Likewise.
63516         * modules/float: Likewise.
63517         * modules/iconv_open: Likewise.
63518         * modules/inttypes: Likewise.
63519         * modules/locale: Likewise.
63520         * modules/math: Likewise.
63521         * modules/netinet_in: Likewise.
63522         * modules/search: Likewise.
63523         * modules/signal: Likewise.
63524         * modules/stdint: Likewise.
63525         * modules/stdio: Likewise.
63526         * modules/stdlib: Likewise.
63527         * modules/string: Likewise.
63528         * modules/sys_select: Likewise.
63529         * modules/sys_socket: Likewise.
63530         * modules/sys_stat: Likewise.
63531         * modules/sys_time: Likewise.
63532         * modules/sysexits: Likewise.
63533         * modules/time: Likewise.
63534         * modules/unistd: Likewise.
63535         * modules/wchar: Likewise.
63536         * modules/wctype: Likewise.
63537         * modules/sys_stat: Change maintainer to "all".
63538         * modules/unistd: Likewise.
63539
63540 2007-06-20  Karl Berry  <karl@gnu.org>
63541
63542         * config/srclist.txt: track www changes in license files.
63543
63544 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63545
63546         * build-aux/bootstrap: Remove stray dot.
63547         Make sure build_aux settings are honored when linking
63548         gnulib_extra_files.
63549
63550 2007-06-19  Eric Blake  <ebb9@byu.net>
63551
63552         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63553         Allow compilation on cygwin.
63554
63555 2007-06-19  Jim Meyering  <jim@meyering.net>
63556
63557         xreadlink-with-size: Remove module.  No longer used.
63558         Ex-callers now use xreadlink or mreadlink-with-size.
63559         * modules/xreadlink-with-size: Remove module.
63560         * lib/xreadlink-with-size.c: Remove file.
63561         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63562         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63563         just before the function definition *is* accurate.
63564
63565         Eliminate one way canonicalize_filename_mode could exit.
63566         * lib/canonicalize.c (canonicalize_filename_mode):
63567         Use mreadlink_with_size, not xreadlink_with_size.
63568
63569 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63570
63571         Detect porting problems to FreeBSD/arm, which has time_t wider than
63572         long int.  Original problem reported for GNU diff by Xin Li in
63573         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63574         * modules/getdate (Depends-on): Add intprops, verify.
63575         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63576         is an integer type no wider than long int.
63577
63578 2007-06-18  Jim Meyering  <jim@meyering.net>
63579
63580         New module: mreadlink-with-size.
63581         * MODULES.html.sh: Add mreadlink-with-size.
63582         * modules/mreadlink-with-size: New module
63583         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63584         not xreadlink-with-size.
63585         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63586
63587 2007-06-16  Bruno Haible  <bruno@clisp.org>
63588
63589         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63590         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63591         Reported by Gary V. Vaughan <gary@gnu.org>.
63592
63593 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63594
63595         Revamp lchown so that it lives in unistd.h where it belongs.
63596         * lib/lchown.h: Remove.
63597         * lib/dirchownmod.c: Don't include lib/lchown.h.
63598         * lib/fchownat.c: Likewise.
63599         * lib/openat.c: Likewise.
63600         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63601         does not follow symlinks.
63602         (EOPNOTSUPP): Define if not defined.
63603         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63604         is defined to 0.
63605         (lchown): New decl.
63606         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63607         Do not check for lchown decl.
63608         Set REPLACE_LCHOWN.
63609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63610         REPLACE_LCHOWN.
63611         * modules/chown: Make it clear it follows symlinks.
63612         * modules/lchown: Make it clear it doesn't follow symlinks.
63613         (Files): Remove lib/lchown.h
63614         (Depends-on): Add unistd.
63615         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63616         (Include): Include <unistd.h>, not "lchown.h".
63617         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63618         REPLACE_LCHOWN.
63619
63620 2007-06-15  Jim Meyering  <jim@meyering.net>
63621
63622         Change license (GPL to LGPL) of fsusage and dependents.
63623         * modules/fsusage (License): Change to LGPL.
63624         * modules/full-read (License): Likewise.
63625         * modules/full-write (License): Likewise.
63626         * modules/safe-read (License): Likewise.
63627         * modules/safe-write (License): Likewise.
63628
63629 2007-06-14  Ben Pfaff  <blp@gnu.org>
63630
63631         Missing part of allocsa -> malloca transition.
63632         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63633         gl_MALLOCA.
63634
63635 2007-06-12  Bruno Haible  <bruno@clisp.org>
63636
63637         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63638         to ia64, x86_64, i386.
63639         Reported by Eric Blake.
63640
63641 2007-06-12  Bruno Haible  <bruno@clisp.org>
63642
63643         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63644         cross-compiling to x86_64.
63645
63646 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63647
63648         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63649         glitch reported by Ralf Wildenhues in
63650         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63651
63652         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63653         Vin Shelton.
63654
63655 2007-06-11  Bruno Haible  <bruno@clisp.org>
63656
63657         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63658         replacement string.
63659         Reported by Eric Blake.
63660
63661 2007-06-10  Bruno Haible  <bruno@clisp.org>
63662
63663         Prepare vasnprintf code for use with Unicode strings.
63664         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63665         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63666         TYPE_U32_STRING.
63667         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63668         a_u32_string variants.
63669         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63670         * lib/printf-args.c: Don't include config.h and the specification
63671         header if PRINTF_FETCHARGS is already defined.
63672         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63673         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63674         TYPE_U16_STRING, TYPE_U32_STRING.
63675         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63676         u16_directive, u16_directives, u32_directive, u32_directives): New
63677         types.
63678         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63679         New declarations.
63680         * lib/printf-parse.c: Don't include config.h and the specification
63681         header if PRINTF_PARSE is already defined. Eliminate the set of
63682         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63683         them now. Include c-ctype.h.
63684         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63685         directive and CHAR_T_ONLY_ASCII.
63686         * lib/vasnprintf.c: Don't include config.h and the specification header
63687         if VASNPRINTF is already defined.
63688         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63689         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63690         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63691         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63692         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63693         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63694         code accordingly.
63695         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63696         pad_ourselves also in this case, with the 'c' and 's' directives, and
63697         with a different notion of "width".
63698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63699
63700 2007-06-10  Bruno Haible  <bruno@clisp.org>
63701
63702         * modules/unistr/u32-mbsnlen: New file.
63703         * lib/unistr/u32-mbsnlen.c: New file.
63704
63705         * modules/unistr/u16-mbsnlen: New file.
63706         * lib/unistr/u16-mbsnlen.c: New file.
63707
63708         * modules/unistr/u8-mbsnlen: New file.
63709         * lib/unistr/u8-mbsnlen.c: New file.
63710
63711         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63712         declarations.
63713
63714 2007-06-10  Bruno Haible  <bruno@clisp.org>
63715
63716         * lib/string_.h (mbsnlen): New declaration.
63717         * lib/mbsnlen.c: New file.
63718         * m4/mbsnlen.m4: New file.
63719         * modules/mbsnlen: New file.
63720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63721         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63722         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63723
63724 2007-06-10  Bruno Haible  <bruno@clisp.org>
63725
63726         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63727
63728 2007-06-10  Bruno Haible  <bruno@clisp.org>
63729
63730         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63731         * lib/mbuiter.h: Likewise.
63732
63733 2007-06-10  Bruno Haible  <bruno@clisp.org>
63734
63735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63736         declaration.
63737
63738 2007-06-10  Karl Berry  <karl@gnu.org>
63739
63740         * config/srclist.txt: remove gettext entries, Bruno prefers
63741         to update individually.
63742
63743 2007-06-10  Bruno Haible  <bruno@clisp.org>
63744
63745         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63746         'maxlen'. Ensure only length + width bytes are allocated, not
63747         length + 1 + width.
63748
63749 2007-06-09  Bruno Haible  <bruno@clisp.org>
63750
63751         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63752         (CHAR_T): Remove macro.
63753         (VASNPRINTF): Update.
63754
63755 2007-06-09  Bruno Haible  <bruno@clisp.org>
63756
63757         * MODULES.html.sh (Unicode string functions): Add the new modules.
63758
63759         * modules/uniconv/u32-conv-to-enc: New file.
63760         * lib/uniconv/u32-conv-to-enc.c: New file.
63761         * modules/uniconv/u32-conv-to-enc-tests: New file.
63762         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63763
63764         * modules/uniconv/u16-conv-to-enc: New file.
63765         * lib/uniconv/u16-conv-to-enc.c: New file.
63766         * lib/uniconv/u-conv-to-enc.h: New file.
63767         * modules/uniconv/u16-conv-to-enc-tests: New file.
63768         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63769
63770         * modules/uniconv/u8-conv-to-enc: New file.
63771         * lib/uniconv/u8-conv-to-enc.c: New file.
63772         * modules/uniconv/u8-conv-to-enc-tests: New file.
63773         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63774
63775         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63776         u32_conv_to_encoding): New declarations.
63777
63778 2007-06-09  Bruno Haible  <bruno@clisp.org>
63779
63780         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63781
63782 2007-06-09  Bruno Haible  <bruno@clisp.org>
63783
63784         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63785         * modules/malloca: Renamed from modules/allocsa, updated.
63786         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63787         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63788         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63789         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63790         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63791         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63792         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63793         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63794         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63795         * modules/c-strcasestr (Depends-on): Update.
63796         * lib/c-strcasestr.c: Update.
63797         * modules/c-strstr (Depends-on): Update.
63798         * lib/c-strstr.c: Update.
63799         * modules/canonicalize-lgpl (Depends-on): Update.
63800         * lib/canonicalize-lgpl.c: Update.
63801         * modules/clean-temp (Depends-on): Update.
63802         * lib/clean-temp.c: Update.
63803         * modules/csharpcomp (Depends-on): Update.
63804         * lib/csharpcomp.c: Update.
63805         * modules/csharpexec (Depends-on): Update.
63806         * lib/csharpexec.c: Update.
63807         * modules/javacomp (Depends-on): Update.
63808         * lib/javacomp.c: Update.
63809         * modules/javaexec (Depends-on): Update.
63810         * lib/javaexec.c: Update.
63811         * modules/mbscasestr (Depends-on): Update.
63812         * lib/mbscasestr.c: Update.
63813         * modules/mbsstr (Depends-on): Update.
63814         * lib/mbsstr.c: Update.
63815         * modules/setenv (Depends-on): Update.
63816         * lib/setenv.c: Update.
63817         * modules/strcasestr (Depends-on): Update.
63818         * lib/strcasestr.c: Update.
63819         * modules/striconveha (Depends-on): Update.
63820         * lib/striconveha.c: Update.
63821         * modules/relocatable-prog-wrapper (Files): Update.
63822         * lib/relocwrapper.c: Update.
63823         * build-aux/install-reloc: Update.
63824         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63825
63826 2007-06-08  Bruno Haible  <bruno@clisp.org>
63827
63828         Port to uClibc.
63829         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63830         * lib/fpurge.c (fpurge): Likewise.
63831         * lib/freading.c (freading): Likewise.
63832         * lib/fseeko.c (rpl_fseeko): Likewise.
63833         * lib/fseterr.c (fseterr): Likewise.
63834         * lib/fwriting.c (fwriting): Likewise.
63835         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63836
63837 2007-06-08  Bruno Haible  <bruno@clisp.org>
63838
63839         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63840         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63841         * modules/gettext (Files): Add m4/intlmacosx.m4.
63842
63843 2007-06-07  Bruno Haible  <bruno@clisp.org>
63844
63845         * modules/localename-tests: New file.
63846         * tests/test-localename.c: New file.
63847
63848         New module 'localename'.
63849         * lib/localename.h: New file.
63850         * lib/localename.c: New file, from GNU gettext.
63851         * m4/localename.m4: New file.
63852         * modules/localename: New file.
63853
63854 2007-06-07  Bruno Haible  <bruno@clisp.org>
63855
63856         Work around the lack of <wchar.h> on some builds of uClibc.
63857         * doc/headers/wchar.texi: Update.
63858         * lib/wchar_.h: Include <wchar.h> only if it exists.
63859         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63860         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63861         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63862         doesn't exist.
63863         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63864         * modules/mbfile (Depends-on): Add wchar.
63865         * modules/mbiter (Depends-on): Likewise.
63866         * modules/mbuiter (Depends-on): Likewise.
63867         Reported by Simon Josefsson.
63868
63869 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63870
63871         Work around problem reported by Steven M. Schweda in
63872         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63873         Tru64 5.1B with the Compaq compiler environment installed declares
63874         an 'isblank' function but does not define it in the C library.
63875         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63876         * lib/regex_internal.h (isblank): Likewise.
63877         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63878         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63879
63880 2007-06-05  Bruno Haible  <bruno@clisp.org>
63881
63882         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63883         ia64.
63884         * modules/printf-safe: New file.
63885         * modules/fprintf-posix (Depends-on): Add printf-safe.
63886         * modules/printf-posix (Depends-on): Likewise.
63887         * modules/snprintf-posix (Depends-on): Likewise.
63888         * modules/sprintf-posix (Depends-on): Likewise.
63889         * modules/vasnprintf-posix (Depends-on): Likewise.
63890         * modules/vasprintf-posix (Depends-on): Likewise.
63891         * modules/vfprintf-posix (Depends-on): Likewise.
63892         * modules/vprintf-posix (Depends-on): Likewise.
63893         * modules/vsnprintf-posix (Depends-on): Likewise.
63894         * modules/vsprintf-posix (Depends-on): Likewise.
63895         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63896         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63897         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63898         "no" on i386, x86_64, ia64.
63899         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63900         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63901         on i386, x86_64, ia64.
63902         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63903         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63904         on i386, x86_64, ia64.
63905         * tests/test-vasnprintf-posix.c: Include float.h.
63906         (LDBL80_WORDS): New macro.
63907         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63908         on i386, x86_64, ia64.
63909         * tests/test-vasprintf-posix.c: Include float.h.
63910         (LDBL80_WORDS): New macro.
63911         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63912         on i386, x86_64, ia64.
63913         * tests/test-snprintf-posix.c: Include float.h.
63914         * tests/test-sprintf-posix.c: Likewise.
63915         * tests/test-vsnprintf-posix.c: Likewise.
63916         * tests/test-vsprintf-posix.c: Likewise.
63917
63918 2007-06-05  Bruno Haible  <bruno@clisp.org>
63919
63920         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63921         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63922         non-IEEE numbers on i386, x86_64, ia64.
63923         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63924         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63925         * tests/test-isnanl.h: Include float.h.
63926         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63927
63928 2007-06-05  Bruno Haible  <bruno@clisp.org>
63929
63930         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63931         also the %a / %A. Handle the %a / %A code before this extra handling.
63932
63933 2007-06-05  Bruno Haible  <bruno@clisp.org>
63934
63935         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63936         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63937
63938 2007-06-05  Bruno Haible  <bruno@clisp.org>
63939
63940         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63941         typo in variable name.
63942
63943 2007-06-05  Eric Blake  <ebb9@byu.net>
63944
63945         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63946         Reported by Simon Josefsson.
63947
63948 2007-06-04  Bruno Haible  <bruno@clisp.org>
63949
63950         Avoid test failures on some PowerPC platforms.
63951         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63952         Define differently for PowerPC.
63953         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63954         Reported by Gary V. Vaughan <gary@gnu.org>.
63955
63956 2007-06-02  Bruno Haible  <bruno@clisp.org>
63957
63958         Fix test-stdint failure on FreeBSD/ia64.
63959         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63960         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63961         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63962         * doc/headers/stdint.texi: Update.
63963
63964 2007-06-01  Bruno Haible  <bruno@clisp.org>
63965
63966         * tests/test-binary-io.c (main): Pass a third argument to open().
63967         Reported by Gary V. Vaughan <gary@gnu.org>.
63968
63969 2007-06-01  Bruno Haible  <bruno@clisp.org>
63970
63971         * doc/functions/frexpl.texi: Update for mingw.
63972
63973 2007-06-01  Bruno Haible  <bruno@clisp.org>
63974
63975         * tests/test-lseek.c (main): Disable test of errno for invalid third
63976         argument.
63977         * doc/functions/lseek.texi: Update.
63978         Reported by Gary V. Vaughan <gary@gnu.org>.
63979
63980 2007-05-28  Bruno Haible  <bruno@clisp.org>
63981
63982         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63983
63984 2007-05-31  Eric Blake  <ebb9@byu.net>
63985
63986         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63987         cross compiling.
63988
63989 2007-05-30  Eric Blake  <ebb9@byu.net>
63990         and Bruno Haible  <bruno@clisp.org>
63991
63992         Work around mingw test failures exposed by m4-1.4.9b.
63993         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63994         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63995         moment.
63996
63997 2007-05-30  Bruno Haible  <bruno@clisp.org>
63998
63999         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64000         assuming that they are closed. Needed on HP-UX 11.
64001
64002 2007-05-29  Bruno Haible  <bruno@clisp.org>
64003
64004         Fix a problem with #include_next.
64005         * lib/dirent_.h: Split the double-inclusion guard.
64006         * lib/fcntl_.h: Likewise.
64007         * lib/float_.h: Likewise.
64008         * lib/iconv_.h: Likewise.
64009         * lib/inttypes_.h: Likewise.
64010         * lib/locale_.h: Likewise.
64011         * lib/math_.h: Likewise.
64012         * lib/netinet_in_.h: Likewise.
64013         * lib/search_.h: Likewise.
64014         * lib/signal_.h: Likewise.
64015         * lib/stdint_.h: Likewise.
64016         * lib/stdio_.h: Likewise.
64017         * lib/stdlib_.h: Likewise.
64018         * lib/string_.h: Likewise.
64019         * lib/sys_select_.h: Likewise.
64020         * lib/sys_socket_.h: Likewise.
64021         * lib/sys_stat_.h: Likewise.
64022         * lib/sys_time_.h: Likewise.
64023         * lib/sysexits_.h: Likewise.
64024         * lib/time_.h: Likewise.
64025         * lib/unistd_.h: Likewise.
64026         * lib/wchar_.h: Likewise.
64027         * lib/wctype_.h: Likewise.
64028
64029 2007-05-29  Bruno Haible  <bruno@clisp.org>
64030
64031         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64032         for the moment.
64033
64034 2007-05-29  Bruno Haible  <bruno@clisp.org>
64035
64036         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64037         invocation.
64038         Reported by Eric Blake.
64039
64040 2007-05-29  Bruno Haible  <bruno@clisp.org>
64041
64042         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64043         compiling case.
64044
64045 2007-05-29  Eric Blake  <ebb9@byu.net>
64046             Bruno Haible  <bruno@clisp.org>
64047
64048         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64049         cross compiles.
64050
64051 2007-05-28  Eric Blake  <ebb9@byu.net>
64052
64053         * modules/closein-tests (test_closein_LDADD): Support test on
64054         cygwin with libtool.
64055
64056 2007-05-28  Bruno Haible  <bruno@clisp.org>
64057
64058         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64059         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64060         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64061         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64062         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64063         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64064         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64065         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64066         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64067
64068 2007-05-28  Eric Blake  <ebb9@byu.net>
64069
64070         Unconditionally include <config.h> in unit tests.
64071         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64072         * tests/test-allocsa.c, tests/test-arcfour.c,
64073         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64074         tests/test-array_list.c, tests/test-array_oset.c,
64075         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64076         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64077         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64078         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64079         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64080         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64081         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64082         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64083         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64084         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64085         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64086         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64087         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64088         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64089         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64090         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64091         test-md5.c, test-memmem.c, test-printf-posix.c,
64092         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64093         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64094         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64095         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64096         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64097         test-vasnprintf-posix2.c, test-vasnprintf.c,
64098         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64099         test-vfprintf-posix.c, test-vprintf-posix.c,
64100         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64101         test-xvasprintf.c: Likewise.
64102
64103 2007-05-28  Bruno Haible  <bruno@clisp.org>
64104
64105         * gnulib-tool (func_import): Remember the --with-tests command-line
64106         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64107         Reported by Eric Blake.
64108
64109 2007-05-28  Bruno Haible  <bruno@clisp.org>
64110
64111         * modules/ftell-tests: New file.
64112         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64113         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64114
64115         * lib/ftell.c: New file.
64116         * modules/ftell: New file.
64117         * m4/ftell.m4: New file.
64118         * doc/functions/ftell.texi: Update.
64119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64120         REPLACE_FTELL.
64121         * lib/stdio_.h (rpl_ftell): New declaration.
64122         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64123         REPLACE_FTELL.
64124
64125 2007-05-28  Eric Blake  <ebb9@byu.net>
64126
64127         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64128
64129 2007-05-28  Bruno Haible  <bruno@clisp.org>
64130
64131         * modules/fseek-tests: New file.
64132         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64133         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64134
64135         * lib/fseek.c: New file.
64136         * modules/fseek: New file.
64137         * m4/fseek.m4: New file.
64138         * doc/functions/fseek.texi: Update.
64139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64140         REPLACE_FSEEK.
64141         * lib/stdio_.h (rpl_fseek): New declaration.
64142         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64143         REPLACE_FSEEK.
64144
64145 2007-05-28  Bruno Haible  <bruno@clisp.org>
64146
64147         * lib/stdio_.h (fflush): More comments.
64148
64149 2007-05-28  Bruno Haible  <bruno@clisp.org>
64150
64151         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64152         runtime test.
64153
64154 2007-05-28  Eric Blake  <ebb9@byu.net>
64155
64156         Improve lseek module.
64157         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64158         * lib/unistd_.h (lseek): Scale back link warning message.
64159         * tests/test-lseek.c: Beef up test.
64160         * tests/test-lseek.sh: Exercise more facets of lseek.
64161         Reported by Bruno Haible.
64162
64163 2007-05-28  Bruno Haible  <bruno@clisp.org>
64164
64165         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64166         to define.
64167
64168 2007-05-27  Bruno Haible  <bruno@clisp.org>
64169
64170         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64171
64172 2007-05-27  Bruno Haible  <bruno@clisp.org>
64173
64174         * modules/openmp: New file.
64175         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64176         Noah Misch.
64177
64178 2007-05-26  Bruno Haible  <bruno@clisp.org>
64179
64180         * modules/chdir-long (Depends-on): Add fchdir.
64181         * modules/chdir-safer (Depends-on): Likewise.
64182         * modules/fts (Depends-on): Likewise.
64183         * modules/fts-lgpl (Depends-on): Likewise.
64184         * modules/openat (Depends-on): Likewise.
64185         * modules/savewd (Depends-on): Likewise.
64186
64187 2007-05-24  Eric Blake  <ebb9@byu.net>
64188
64189         Fix lseek on mingw.
64190         * modules/lseek: New module.
64191         * m4/lseek.m4: New file.
64192         * lib/lseek.c: New file.
64193         * modules/lseek-tests: New file.
64194         * tests/test-lseek.c: New file.
64195         * tests/test-lseek.sh: New file.
64196         * MODULES.html.sh: Document lseek module.
64197         * modules/fflush (Depends-on): Add lseek, fseeko.
64198         * modules/fseeko (Depends-on): Likewise.
64199         * modules/ftello (Depends-on): Likewise.
64200         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64201         broken.
64202         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64203         broken.
64204         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64205         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64206         * lib/ftello.c (rpl_ftello): Likewise.
64207         * tests/test-fseeko.c (main): Test this.
64208         * tests/test-fseeko.sh: Likewise.
64209         * tests/test-ftello.c (main): Likewise.
64210         * tests/test-ftello.sh: Likewise.
64211         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64212         implies replacing fseek.
64213         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64214         HAVE_FTELLO.
64215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64216         * modules/unistd (Makefile.am): Likewise.
64217         * lib/unistd_.h (lseek): Declare a replacement.
64218         * doc/functions/lseek.texi (lseek): Document this fix.
64219         * doc/functions/fseek.texi (fseek): Likewise.
64220         * doc/functions/ftell.texi (ftell): Likewise.
64221
64222 2007-05-24  Bruno Haible  <bruno@clisp.org>
64223
64224         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64225         in the printed representation of a NaN.
64226         * tests/test-vasprintf-posix.c (test_function): Likewise.
64227         * tests/test-snprintf-posix.h (test_function): Likewise.
64228         * tests/test-sprintf-posix.h (test_function): Likewise.
64229         Reported by Eric Blake.
64230
64231 2007-05-23  Eric Blake  <ebb9@byu.net>
64232
64233         Fix fseeko/ftello on cygwin 1.5.24.
64234         * doc/functions/fseeko.texi (fseeko): Document the fix.
64235         * doc/functions/ftello.texi (ftello): Document the fix.
64236         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64237         * doc/functions/stdout.text (stdout): New file.
64238         * doc/functions/stderr.text (stderr): New file.
64239         * doc/gnulib.texi (Function Substitutes): Use new files.
64240         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64241         prior to 1.7.0.
64242         * tests/test-ftello.c (main): Likewise for ftello.
64243         * tests/test-fseeko.sh: New file.
64244         * tests/test-ftello.sh: New file.
64245         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64246         with seekable stdin.
64247         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64248         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64249         (gl_REPLACE_FSEEKO): New macro.
64250         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64251         * modules/fseeko (Files): Distribute fseeko.c.
64252         * modules/ftello (Files): Distribute ftello.c.
64253         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64254         mode.
64255         * lib/ftello.c (rpl_ftello): New file.
64256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64257         fseeko, ftello.
64258         (gl_STDIN_LARGE_OFFSET): New macro.
64259         * modules/stdio (Makefile.am): Perform the replacement.
64260         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64261
64262 2007-05-23  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64265         GNULIB_POSIXCHECK is defined.
64266
64267 2007-05-21  Bruno Haible  <bruno@clisp.org>
64268
64269         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64270         Check also the output for NaN arguments. When cross-compiling, guess
64271         no on IRIX.
64272         * lib/vasnprintf.c: Update comments.
64273         * tests/test-vasnprintf-posix.c (strisnan): New function.
64274         (test_function): Use it.
64275         * tests/test-vasprintf-posix.c (strisnan): New function.
64276         (test_function): Use it.
64277         * tests/test-snprintf-posix.h (strisnan): New function.
64278         (test_function): Use it.
64279         * tests/test-sprintf-posix.h (strisnan): New function.
64280         (test_function): Use it.
64281         Reported by Eric Blake.
64282
64283 2007-05-20  Bruno Haible  <bruno@clisp.org>
64284
64285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64286         numbers that fails on BeOS.
64287         * doc/functions/frexpl.texi: Update.
64288
64289 2007-05-20  Jim Meyering  <jim@meyering.net>
64290
64291         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64292         forced upon us by glibc-2.6.
64293
64294 2007-05-20  Bruno Haible  <bruno@clisp.org>
64295
64296         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64297         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64298         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64299         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64300         NEED_PRINTF_INFINITE.
64301         (is_infinitel): New function.
64302         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64304         gl_PREREQ_VASNPRINTF_INFINITE.
64305         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64306         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64307         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64308         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64309         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64310         gl_PREREQ_VASNPRINTF_INFINITE.
64311         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64312         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64314         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64315         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64316         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64317         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64318         * doc/functions/fprintf.texi: Update.
64319         * doc/functions/printf.texi: Update.
64320         * doc/functions/snprintf.texi: Update.
64321         * doc/functions/sprintf.texi: Update.
64322         * doc/functions/vfprintf.texi: Update.
64323         * doc/functions/vprintf.texi: Update.
64324         * doc/functions/vsnprintf.texi: Update.
64325         * doc/functions/vsprintf.texi: Update.
64326
64327 2007-05-20  Bruno Haible  <bruno@clisp.org>
64328
64329         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64330         was not found in libc.
64331         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64332
64333 2007-05-20  Bruno Haible  <bruno@clisp.org>
64334
64335         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64336         printed as "-nan" instead of "nan".
64337         * tests/test-vasprintf-posix.c (test_function): Likewise.
64338         * tests/test-snprintf-posix.h (test_function): Likewise.
64339         * tests/test-sprintf-posix.h (test_function): Likewise.
64340         Needed for HP-UX 11.
64341
64342 2007-05-20  Jim Meyering  <jim@meyering.net>
64343
64344         Fix buggy test for the fchownat-deref bug.
64345         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64346         symlink required for the run-test.  Without it, this test would
64347         always declare that fchownat doesn't work, and client code would
64348         unnecessarily use the replacement function with fixed libc.
64349         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64350         Reported by Greg Schafer.
64351
64352 2007-05-19  Bruno Haible  <bruno@clisp.org>
64353
64354         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64355         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64356         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64357         Needed for IRIX 6.5 and Solaris 2.5.1.
64358
64359 2007-05-19  Bruno Haible  <bruno@clisp.org>
64360
64361         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64362         (test_function): Skip tests involving -0.0 on platforms where
64363         -0.0 = 0.0.
64364         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64365         (test_function): Skip tests involving -0.0 on platforms where
64366         -0.0 = 0.0.
64367         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64368         (test_function): Skip tests involving -0.0 on platforms where
64369         -0.0 = 0.0.
64370         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64371         (test_function): Skip tests involving -0.0 on platforms where
64372         -0.0 = 0.0.
64373         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64374         tests.
64375         * tests/test-printf-posix.h (test_function): Likewise.
64376         * tests/test-printf-posix.output: Remove all -0.0 related results.
64377         Needed for IRIX 6.5.
64378
64379 2007-05-19  Bruno Haible  <bruno@clisp.org>
64380
64381         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64382         printed as "nan0x7fffffff" instead of "nan".
64383         * tests/test-vasprintf-posix.c (test_function): Likewise.
64384         * tests/test-snprintf-posix.h (test_function): Likewise.
64385         * tests/test-sprintf-posix.h (test_function): Likewise.
64386         * tests/test-fprintf-posix.h (NaN): Remove macro.
64387         (test_function): Remove all NaN related tests.
64388         * tests/test-printf-posix.h (NaN): Remove macro.
64389         (test_function): Remove all NaN related tests.
64390         * tests/test-printf-posix.output: Remove all NaN related results.
64391         Needed for IRIX 6.5.
64392
64393 2007-05-19  Bruno Haible  <bruno@clisp.org>
64394
64395         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64396         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64397
64398 2007-05-19  Bruno Haible  <bruno@clisp.org>
64399
64400         * lib/float_.h: New file.
64401         * m4/float_h.m4: New file.
64402         * modules/float: New file.
64403         * modules/isnanl (Dependencies): Add float.
64404         * modules/isnanl-nolibm (Dependencies): Likewise.
64405         * modules/mathl (Dependencies): Likewise.
64406         * modules/printf-frexpl (Dependencies): Likewise.
64407         * modules/signbit (Dependencies): Likewise.
64408         * modules/vasnprintf (Dependencies): Likewise.
64409         * doc/headers/float.texi: Update.
64410
64411 2007-05-19  Jim Meyering  <jim@meyering.net>
64412
64413         * lib/utimens.c (gl_futimens): Rename from futimens,
64414         now that glibc-2.6 declares futimens.
64415         * lib/utimens.h: Likewise.
64416
64417 2007-05-19  Bruno Haible  <bruno@clisp.org>
64418
64419         Avoid test failures on mingw.
64420         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64421         * tests/test-printf-posix.sh: Likewise.
64422         * tests/test-vfprintf-posix.sh: Likewise.
64423         * tests/test-vprintf-posix.sh: Likewise.
64424
64425 2007-05-19  Bruno Haible  <bruno@clisp.org>
64426
64427         Fix *printf result for NaN, Inf, -0.0 on mingw.
64428         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64429         * lib/vasnprintf.c: Include math.h and isnan.h.
64430         (is_infinite_or_zero): New function.
64431         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64432         values in the %f, %F, %e, %E, %g, %G directives.
64433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64435         gl_PRINTF_INFINITE and test its result. Invoke
64436         gl_PREREQ_VASNPRINTF_INFINITE.
64437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64438         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64439         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64440         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64441         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64442         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64443         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64444         * doc/functions/fprintf.texi: Update.
64445         * doc/functions/printf.texi: Update.
64446         * doc/functions/snprintf.texi: Update.
64447         * doc/functions/sprintf.texi: Update.
64448         * doc/functions/vfprintf.texi: Update.
64449         * doc/functions/vprintf.texi: Update.
64450         * doc/functions/vsnprintf.texi: Update.
64451         * doc/functions/vsprintf.texi: Update.
64452
64453 2007-05-19  Bruno Haible  <bruno@clisp.org>
64454
64455         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64456         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64457         Instead of multiplying with 10^k, set extra_zeroes to k.
64458         (scale10_round_long_double): Remove function.
64459
64460 2007-05-18  Bruno Haible  <bruno@clisp.org>
64461
64462         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64463         introduced on 2007-05-06.
64464
64465 2007-05-18  Bruno Haible  <bruno@clisp.org>
64466
64467         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64468         %g directives.
64469         * tests/test-vasprintf-posix.c (test_function): Likewise.
64470         * tests/test-snprintf-posix.h (test_function): Likewise.
64471         * tests/test-sprintf-posix.h (test_function): Likewise.
64472
64473 2007-05-18  Bruno Haible  <bruno@clisp.org>
64474
64475         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64476         (strmatch): New function.
64477         (test_function): Test the %f directive on numbers of various exponents.
64478         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64479         (strmatch): New function.
64480         (test_function): Test the %f directive on numbers of various exponents.
64481         * tests/test-snprintf-posix.h (strmatch): New function.
64482         (test_function): Test the %f directive on numbers of various exponents.
64483         * tests/test-sprintf-posix.h (strmatch): New function.
64484         (test_function): Test the %f directive on numbers of various exponents.
64485         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64486         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64487         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64488         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64489
64490 2007-05-18  Bruno Haible  <bruno@clisp.org>
64491
64492         Add support for 'long double' number output.
64493         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64494         * lib/vasnprintf.c: Include math.h and float+.h.
64495         (mp_limb_t): New type.
64496         (GMP_LIMB_BITS): New macro.
64497         (mp_twolimb_t): New type.
64498         (GMP_TWOLIMB_BITS): New macro.
64499         (mpn_t): New type.
64500         (multiply, divide, convert_to_decimal, decode_long_double,
64501         scale10_round_long_double, scale10_round_decimal_long_double,
64502         floorlog10l): New functions.
64503         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64504         for the %f, %F, %e, %E, %g, %G directives.
64505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64506         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64507         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64508         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64511         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64512         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64513         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64515         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64516         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64517         * modules/snprintf-posix (Depends-on): Likewise.
64518         * modules/sprintf-posix (Depends-on): Likewise.
64519         * modules/vasnprintf-posix (Depends-on): Likewise.
64520         * modules/vasprintf-posix (Depends-on): Likewise.
64521         * modules/vfprintf-posix (Depends-on): Likewise.
64522         * modules/vsnprintf-posix (Depends-on): Likewise.
64523         * modules/vsprintf-posix (Depends-on): Likewise.
64524         * modules/vasnprintf (Files): Add lib/float+.h.
64525         * doc/functions/fprintf.texi: Update.
64526         * doc/functions/printf.texi: Update.
64527         * doc/functions/snprintf.texi: Update.
64528         * doc/functions/sprintf.texi: Update.
64529         * doc/functions/vfprintf.texi: Update.
64530         * doc/functions/vprintf.texi: Update.
64531         * doc/functions/vsnprintf.texi: Update.
64532         * doc/functions/vsprintf.texi: Update.
64533
64534 2007-05-18  Bruno Haible  <bruno@clisp.org>
64535
64536         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64537
64538 2007-05-18  Bruno Haible  <bruno@clisp.org>
64539
64540         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64541         for printing 64-bit integers. Needed for mingw.
64542
64543 2007-05-18  Bruno Haible  <bruno@clisp.org>
64544
64545         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64546         gl_FUNC_FREXPL_WORKS.
64547         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64548
64549 2007-05-18  Bruno Haible  <bruno@clisp.org>
64550
64551         * modules/frexpl-nolibm-tests: New file.
64552
64553         * modules/frexpl-nolibm: New file.
64554         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64555
64556 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64557
64558         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64559         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64560         GCC 4.2, which otherwise issues a lot of warnings.
64561         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64562         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64563         Likewise.
64564         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64565         * modules/iconv_open (iconv.h): Likewise.
64566         * modules/locale (locale.h): Likewise.
64567         * modules/netinet_in (netinet/in.h): Likewise.
64568         * modules/sys_select (sys_select.h): Likewise.
64569         * modules/sys_socket (sys/socket.h): Likewise.
64570         * modules/sys_stat (sys/stat.h): Likewise.
64571         * modules/sysexits (sysexits.h): Likewise.
64572         * modules/unistd (unistd.h): Likewise.
64573
64574 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64575
64576         * modules/closein-tests (Makefile.am): Distribute
64577         `test-closein.sh'.
64578
64579 2007-05-17  Bruno Haible  <bruno@clisp.org>
64580
64581         * tests/test-printf-posix.output: Renamed from
64582         tests/test-fprintf-posix.out.
64583         * modules/fprintf-posix-tests: Update.
64584         * modules/printf-posix-tests: Update.
64585         * modules/vfprintf-posix-tests: Update.
64586         * modules/vprintf-posix-tests: Update.
64587         * tests/test-fprintf-posix.sh: Update.
64588         * tests/test-printf-posix.sh: Update.
64589         * tests/test-vfprintf-posix.sh: Update.
64590         * tests/test-vprintf-posix.sh: Update.
64591         Reported by Ralf Wildenhues.
64592
64593 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64594
64595         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64596         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64597         GCC 4.2, which otherwise issues a lot of warnings.
64598         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64599         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64600         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64601         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64602         it should no longer be needed.
64603         * lib/string_.h: Likewise.
64604         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64605         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64606         * modules/inttypes (inttypes.h): Likewise.
64607         * modules/math (math.h): Likewise.
64608         * modules/search (search.h): Likewise.
64609         * modules/signal (signal.h): Likewise.
64610         * modules/stdint (stdint.h): Likewise.
64611         * modules/stdio (stdio.h): Likewise.
64612         * modules/stdlib (stdlib.h): Likewise.
64613         * modules/string (string.h): Likewise.
64614         * modules/sys_time (sys/time.h): Likewise.
64615         * modules/time (time.h): Likewise.
64616         * modules/wchar (wchar.h): Likewise.
64617         * modules/wctype (wtype.h): Likewise.
64618
64619 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64620
64621         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64622
64623 2007-05-13  Bruno Haible  <bruno@clisp.org>
64624
64625         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64626         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64627         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64628         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64629         (gl_PREREQ_STRTOK_R): Don't require it here.
64630
64631 2007-05-13  Bruno Haible  <bruno@clisp.org>
64632
64633         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64634         when used in C++ mode.
64635
64636 2007-05-12  Bruno Haible  <bruno@clisp.org>
64637
64638         * lib/linebuffer.h: Tweak doc.
64639         * lib/linebuffer.c: Likewise.
64640
64641 2007-05-12  James Youngman  <jay@gnu.org>
64642
64643         * lib/linebuffer.c (readlinebuffer_delim): New function,
64644         like readlinebuffer, but use a caller-specified delimiter.
64645         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64646         as the delimiter.
64647         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64648
64649 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64650
64651         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64652         * modules/openat (Files): Remove openat-die.c.
64653         (Depends-on): Add openat-die.
64654         * modules/openat-die: New module.
64655
64656 2007-05-06  Bruno Haible  <bruno@clisp.org>
64657
64658         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64659         Update with info about Cygwin.
64660         * doc/functions/fprintf.texi: Update.
64661         * doc/functions/printf.texi: Update.
64662         * doc/functions/snprintf.texi: Update.
64663         * doc/functions/sprintf.texi: Update.
64664         * doc/functions/vfprintf.texi: Update.
64665         * doc/functions/vprintf.texi: Update.
64666         * doc/functions/vsnprintf.texi: Update.
64667         * doc/functions/vsprintf.texi: Update.
64668         Reported by Eric Blake.
64669
64670 2007-05-06  Bruno Haible  <bruno@clisp.org>
64671
64672         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64673         padding ourselves for the floating-point directives.
64674         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64676         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64677         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64678         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64679         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64680         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64681         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64682         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64683         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64684         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64685         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64686         * tests/test-snprintf-posix.h (test_function): Also check the width
64687         and some flags in the %f directive.
64688         * tests/test-sprintf-posix.h (test_function): Likewise.
64689         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64690         * tests/test-vasprintf-posix.c (test_function): Likewise.
64691         * doc/functions/fprintf.texi: Update.
64692         * doc/functions/printf.texi: Update.
64693         * doc/functions/snprintf.texi: Update.
64694         * doc/functions/sprintf.texi: Update.
64695         * doc/functions/vfprintf.texi: Update.
64696         * doc/functions/vprintf.texi: Update.
64697         * doc/functions/vsnprintf.texi: Update.
64698         * doc/functions/vsprintf.texi: Update.
64699
64700 2007-05-06  Bruno Haible  <bruno@clisp.org>
64701
64702         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64703         pass the ' flag character to sprintf or snprintf.
64704         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64705         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64707         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64708         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64709         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64710         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64711         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64712         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64713         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64715         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64716         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64717         flag.
64718         * tests/test-sprintf-posix.h (test_function): Likewise.
64719         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64720         * tests/test-vasprintf-posix.c (test_function): Likewise.
64721         * doc/functions/fprintf.texi: Update.
64722         * doc/functions/printf.texi: Update.
64723         * doc/functions/snprintf.texi: Update.
64724         * doc/functions/sprintf.texi: Update.
64725         * doc/functions/vfprintf.texi: Update.
64726         * doc/functions/vprintf.texi: Update.
64727         * doc/functions/vsnprintf.texi: Update.
64728         * doc/functions/vsprintf.texi: Update.
64729
64730 2007-05-01  Bruno Haible  <bruno@clisp.org>
64731
64732         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64733
64734 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64735
64736         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64737         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64738
64739 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64740
64741         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64742         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64744
64745 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64746
64747         * lib/argp-help.c (struct hol_entry): New member `ord'.
64748         (HOL_ENTRY_PTRCMP): Use ord for comparison
64749         (hol_sort): Initialize ord.
64750
64751 2007-05-01  Bruno Haible  <bruno@clisp.org>
64752
64753         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64754         Reported by Eric Blake.
64755         * doc/gnulib.texi (Function Substitutes): Update.
64756
64757 2007-05-01  Bruno Haible  <bruno@clisp.org>
64758
64759         * doc/functions.texi: Remove file, now redundant through
64760         doc/functions/*.texi.
64761
64762 2007-05-01  Bruno Haible  <bruno@clisp.org>
64763
64764         * modules/argp (Depends-on): Add sleep.
64765
64766 2007-05-01  Bruno Haible  <bruno@clisp.org>
64767
64768         * modules/sleep-tests: New file.
64769         * tests/test-sleep.c: New file.
64770
64771         * modules/sleep: New file.
64772         * lib/sleep.c: New file.
64773         * m4/sleep.m4: New file.
64774         * lib/unistd_.h (sleep): New declaration.
64775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64776         HAVE_SLEEP.
64777         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64778         * doc/functions/sleep.texi: Document the sleep module.
64779
64780 2007-05-01  Bruno Haible  <bruno@clisp.org>
64781
64782         * lib/sigprocmask.h: Remove file.
64783         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64784         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64785         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64786         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64787         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64788         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64789         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64790         HAVE_SIGSET_T as a shell variable.
64791         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64792         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64793         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64794         (Depends-on): Add signal. Remove verify.
64795         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64796         (Include): Mention <signal.h> instead of sigprocmask.h.
64797         * NEWS: Mention the change.
64798         * lib/fatal-signal.c: Don't include sigprocmask.h.
64799
64800 2007-05-01  Bruno Haible  <bruno@clisp.org>
64801
64802         * modules/signal: New file.
64803         * lib/signal_.h: New file.
64804         * m4/signal_h.m4: New file.
64805
64806 2007-05-01  Bruno Haible  <bruno@clisp.org>
64807
64808         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64809         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64810         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64811         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64812
64813 2007-05-01  Bruno Haible  <bruno@clisp.org>
64814
64815         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64816         configure time.
64817         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64818         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64819         * modules/sys_stat (Makefile.am): Substitute their values into
64820         sys/stat.h.
64821
64822 2007-05-01  Bruno Haible  <bruno@clisp.org>
64823
64824         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64825         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64826         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64827
64828 2007-05-01  Bruno Haible  <bruno@clisp.org>
64829
64830         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64831         'assert' module here.
64832
64833 2007-05-01  Bruno Haible  <bruno@clisp.org>
64834
64835         * doc/functions/*.texi: New files.
64836         * doc/functions/google-ranking.txt: New file.
64837         * doc/gnulib.texi (Function Substitutes): New chapter.
64838         (ctime, inet_ntoa): Remove sections.
64839         * doc/ctime.texi: Remove file.
64840         * doc/inet_ntoa.texi: Remove file.
64841         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64842         dependencies.
64843         (%.info): New rule, specifying a --reference-limit.
64844
64845 2007-05-01  Bruno Haible  <bruno@clisp.org>
64846
64847         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64848
64849 2007-05-01  Bruno Haible  <bruno@clisp.org>
64850
64851         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64852         the portability of 'mkdir' to mingw systems.
64853
64854 2007-05-01  Bruno Haible  <bruno@clisp.org>
64855
64856         * doc/headers/google-ranking.txt: New file.
64857
64858 2007-04-30  Eric Blake  <ebb9@byu.net>
64859
64860         Prefer fseeko to fseek.
64861         * modules/getpass (Depends-on): Add fseeko.
64862         * lib/getpass.c (getpass): Use fseeko, not fseek.
64863
64864 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64865
64866         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64867         assumes the sorting is stable, while most qsort implementations
64868         are not.  Use argument addresses to ensure they never compare as
64869         equal.
64870
64871         * tests/test-argp-2.sh (usage-indent test): Fix output
64872         (func_compare): Restore diff options
64873         * tests/test-argp.c: Restore #include "progname.h"
64874
64875 2007-04-29  Bruno Haible  <bruno@clisp.org>
64876
64877         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64878         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64879         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64880         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64881         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64882         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64883         (TESTS, check_PROGRAMS): Add test-snprintf.
64884         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64885         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64886         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64887         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64888         assertions that fail on HP-UX, OSF/1, or IRIX.
64889         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64890
64891 2007-04-29  Bruno Haible  <bruno@clisp.org>
64892
64893         * MODULES.html.sh (posix_functions): Remove 'contents'.
64894
64895 2007-04-29  Karl Berry  <karl@gnu.org>
64896
64897         * config/srclist.txt (gendocs_template_min): new entry.
64898
64899 2007-04-29  Bruno Haible  <bruno@clisp.org>
64900
64901         Work around fpurge bug on BSD systems.
64902         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64903         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64904         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64905         fpurge to rpl_fpurge if the system already has this function.
64906         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64907         the case where the system already has this function. Correct invariants
64908         on BSD systems.
64909         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64910         BSD systems.
64911
64912 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64913
64914         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64915         proposed by Sven Verdoolaege.
64916
64917         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64918         options.
64919         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64920         (usage and help tests): Update
64921
64922 2007-04-29  Bruno Haible  <bruno@clisp.org>
64923
64924         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64925         Print more information in case of failure. Disable a test on BeOS.
64926
64927 2007-04-29  Bruno Haible  <bruno@clisp.org>
64928
64929         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64930         This helps debugging on systems on which no gdb is available.
64931
64932 2007-04-29  Bruno Haible  <bruno@clisp.org>
64933
64934         * lib/freading.h: Improve comments.
64935         * lib/fwriting.h: Likewise.
64936         * tests/test-freading.c (main): Don't check freading immediately after
64937         repositioning. Needed for glibc.
64938
64939 2007-04-29  Bruno Haible  <bruno@clisp.org>
64940
64941         * lib/freading.c (freading): Trivial simplification.
64942
64943 2007-04-28  Bruno Haible  <bruno@clisp.org>
64944
64945         * tests/test-fwriting.c (main): Also test the interaction between
64946         fflush and fwriting.
64947         * modules/fwriting-tests (Depends-on): Add fflush.
64948
64949         * tests/test-freading.c (main): Also test the interaction between
64950         fflush and freading.
64951         * modules/freading-tests (Depends-on): Add fflush.
64952
64953 2007-04-28  Bruno Haible  <bruno@clisp.org>
64954
64955         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64956         fseeko and ftello.
64957         Suggested by Eric Blake.
64958
64959 2007-04-28  Jim Meyering  <jim@meyering.net>
64960
64961         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64962         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64963         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64964
64965 2007-04-27  Eric Blake  <ebb9@byu.net>
64966
64967         * doc/headers/assert.texi (assert.h): Document assert module use.
64968
64969 2007-04-27  Bruno Haible  <bruno@clisp.org>
64970
64971         * doc/headers/*.texi: New files.
64972         * doc/gnulib.texi (Header File Substitutes): New chapter.
64973         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64974         dependencies.
64975         (standards.info ,standards.html, standards.dvi): Update dependencies.
64976         (mostlyclean, clean): New targets.
64977
64978 2007-04-27  Bruno Haible  <bruno@clisp.org>
64979
64980         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64981         * modules/sysexits (Files, Makefile.am): Update.
64982
64983         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64984         * modules/sys_socket (Files, Makefile.am): Update.
64985
64986         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64987         * modules/sys_stat (Files, Makefile.am): Update.
64988
64989 2007-04-27  Eric Blake  <ebb9@byu.net>
64990
64991         * lib/freading.h: Improve comments.
64992         * lib/fwriting.h: Likewise.
64993         * lib/fflush.c: Likewise.
64994
64995         Fix closein for mingw.
64996         * modules/closein-tests: Add tests for closein.
64997         * tests/test-closein.c: New file.
64998         * tests/test-closein.sh: Likewise.
64999         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65000         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65001
65002 2007-04-27  Bruno Haible  <bruno@clisp.org>
65003
65004         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65005         version is < 6.
65006         * lib/math_.h [__DECC]: Likewise.
65007         * lib/stdio_.h [__DECC]: Likewise.
65008         * lib/stdlib_.h [__DECC]: Likewise.
65009         * lib/string_.h [__DECC]: Likewise.
65010         * lib/time_.h [__DECC]: Likewise.
65011         * lib/wchar_.h [__DECC]: Likewise.
65012         * lib/wctype_.h [__DECC]: Likewise.
65013
65014 2007-04-27  Bruno Haible  <bruno@clisp.org>
65015
65016         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65017
65018 2007-04-27  Bruno Haible  <bruno@clisp.org>
65019
65020         * lib/fflush.c: Add comments.
65021         * modules/fpurge-tests (Depends-on): Add fflush.
65022         * modules/freadable-tests (Depends-on): Likewise.
65023         * modules/fwritable-tests (Depends-on): Likewise.
65024
65025 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65026
65027         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65028         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65029         Report by Bruno Haible <bruno@clisp.org>.
65030
65031 2007-04-26  Eric Blake  <ebb9@byu.net>
65032
65033         Fix fflush on mingw.
65034         * modules/fflush (Depends-on): Add freading.
65035         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65036         but unread data.
65037
65038 2007-04-26  Eric Blake  <ebb9@byu.net>
65039         and Bruno Haible  <bruno@clisp.org>
65040
65041         Implement freading and fwriting.
65042         * lib/freading.c: New file.
65043         * lib/freading.h: Likewise.
65044         * m4/freading.m4: Likewise.
65045         * modules/freading: Likewise.
65046         * modules/freading-tests: Likewise.
65047         * tests/test-freading.c: Likewise.
65048         * lib/fwriting.c: New file.
65049         * lib/fwriting.h: Likewise.
65050         * m4/fwriting.m4: Likewise.
65051         * modules/fwriting: Likewise.
65052         * modules/fwriting-tests: Likewise.
65053         * tests/test-fwriting.c: Likewise.
65054         * MODULES.html.sh (File stream based Input/Output): Mention them.
65055
65056 2007-04-26  Bruno Haible  <bruno@clisp.org>
65057
65058         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65059         'long' when we assume it.
65060         Suggested by Eric Blake.
65061
65062 2007-04-26  Bruno Haible  <bruno@clisp.org>
65063
65064         Ensure fseeko, ftello are declared on glibc systems.
65065         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65066         * modules/fseeko (configure.ac-early): Likewise.
65067         * modules/ftello (configure.ac-early): Likewise.
65068         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65069         AC_FUNC_FSEEKO for this.
65070         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65071         (gl_CHECK_FSEEKO): Remove macro.
65072
65073 2007-04-26  Bruno Haible  <bruno@clisp.org>
65074
65075         * tests/test-fflush.c (main): Also check the ftell result after
65076         fflush and fseek/fseeko.
65077         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65078         file descriptor position cache in the stream.
65079         * lib/fseeko.c (rpl_fseeko): Likewise.
65080
65081 2007-04-26  Bruno Haible  <bruno@clisp.org>
65082
65083         * modules/fflush-tests (Depends-on): Add fseeko.
65084
65085 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65086             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65087
65088         * lib/argz_.h: ensure error_t definition is obtained in same
65089         mechanism system argz.h would have.
65090         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65091         argz facilities are known bad.  Err on the side of caution if
65092         cross-compiling.
65093
65094 2007-04-25  Eric Blake  <ebb9@byu.net>
65095
65096         * lib/fpurge.c (includes): Use stdlib.h for free.
65097         * tests/test-fflush.c (main): Also test fflush-fseeko.
65098
65099 2007-04-25  Bruno Haible  <bruno@clisp.org>
65100
65101         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65102         * lib/fseeko.c: New file.
65103         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65104         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65105         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65106         gl_FUNC_FSEEKO.
65107         (gl_FUNC_FSEEKO): Invoke it.
65108         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65109         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65110         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65111
65112 2007-04-25  Bruno Haible  <bruno@clisp.org>
65113
65114         * modules/fflush (Depends-on): Add ftello.
65115
65116 2007-04-25  Bruno Haible  <bruno@clisp.org>
65117
65118         * modules/ftello-tests: New file.
65119         * tests/test-ftello.c: New file.
65120
65121         * modules/ftello: New file.
65122         * m4/ftello.m4: New file.
65123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65124         HAVE_FTELLO.
65125         * lib/stdio_.h (ftello): New declaration.
65126         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65127         HAVE_FTELLO.
65128
65129 2007-04-25  Bruno Haible  <bruno@clisp.org>
65130
65131         * modules/fseeko-tests: New file.
65132         * tests/test-fseeko.c: New file.
65133
65134         * modules/fseeko: New file.
65135         * m4/fseeko.m4: New file.
65136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65137         HAVE_FSEEKO.
65138         * lib/stdio_.h (fseeko): New declaration.
65139         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65140         HAVE_FSEEKO.
65141
65142 2007-04-25  Bruno Haible  <bruno@clisp.org>
65143
65144         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65145
65146 2007-04-25  Bruno Haible  <bruno@clisp.org>
65147
65148         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65149         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65150         * tests/test-unistd.c: Likewise.
65151         * tests/test-fcntl.c: Likewise.
65152
65153 2007-04-23  Eric Blake  <ebb9@byu.net>
65154
65155         * lib/fflush.c: Fix missing include.
65156         Reported by Bruno Haible.
65157
65158 2007-04-23  Bruno Haible  <bruno@clisp.org>
65159
65160         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65161         Reported by Eric Blake.
65162
65163 2007-04-23  Bruno Haible  <bruno@clisp.org>
65164
65165         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65166
65167 2007-04-23  Bruno Haible  <bruno@clisp.org>
65168
65169         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65170
65171 2007-04-23  Bruno Haible  <bruno@clisp.org>
65172
65173         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65174         Needed on HP-UX 11.
65175
65176 2007-04-16  Eric Blake  <ebb9@byu.net>
65177
65178         Make fflush rely on fpurge.
65179         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65180         open coding all variants.
65181         * modules/fflush (Depends-on): Add fpurge and unistd.
65182         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65183         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65184
65185         Fix --with-tests compilation on cygwin.
65186         * modules/argmatch-tests (Makefile.am): List gnulib library first
65187         in LDADD.
65188         * modules/argp-tests (Makefile.am): Likewise.
65189         * modules/array-list-tests (Makefile.am): Likewise.
65190         * modules/array-oset-tests (Makefile.am): Likewise.
65191         * modules/avltree-list-tests (Makefile.am): Likewise.
65192         * modules/avltree-oset-tests (Makefile.am): Likewise.
65193         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65194         * modules/carray-list-tests (Makefile.am): Likewise.
65195         * modules/dirname-tests (Makefile.am): Likewise.
65196         * modules/frexp-tests (Makefile.am): Likewise.
65197         * modules/isnanl-tests (Makefile.am): Likewise.
65198         * modules/linked-list-tests (Makefile.am): Likewise.
65199         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65200         * modules/lock-tests (Makefile.am): Likewise.
65201         * modules/rbtree-list-tests (Makefile.am): Likewise.
65202         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65203         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65204         * modules/tls-tests (Makefile.am): Likewise.
65205         * modules/tsearch-tests (Makefile.am): Likewise.
65206         * modules/xvasprintf-tests (Makefile.am): Likewise.
65207
65208         Fix fpurge for cygwin.
65209         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65210         value.
65211         * modules/fpurge-tests (Depends-on): Clean up trash.
65212
65213 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65214
65215         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65216
65217         * m4/autobuild.m4: Re-indent.
65218
65219 2007-04-13  Bruno Haible  <bruno@clisp.org>
65220
65221         * modules/fpurge-tests: New file.
65222         * tests/test-fpurge.c: New file.
65223
65224         * modules/fpurge: New file.
65225         * lib/fpurge.h: New file.
65226         * lib/fpurge.c: New file.
65227         * m4/fpurge.m4: New file.
65228
65229 2007-04-13  Bruno Haible  <bruno@clisp.org>
65230
65231         * modules/fbufmode-tests: New file.
65232         * tests/test-fbufmode.c: New file.
65233
65234         * modules/fbufmode: New file.
65235         * lib/fbufmode.h: New file.
65236         * lib/fbufmode.c: New file.
65237         * m4/fbufmode.m4: New file.
65238
65239 2007-04-13  Bruno Haible  <bruno@clisp.org>
65240
65241         * modules/fwritable-tests: New file.
65242         * tests/test-fwritable.c: New file.
65243
65244         * modules/fwritable: New file.
65245         * lib/fwritable.h: New file.
65246         * lib/fwritable.c: New file.
65247         * m4/fwritable.m4: New file.
65248
65249 2007-04-13  Bruno Haible  <bruno@clisp.org>
65250
65251         * modules/freadable-tests: New file.
65252         * tests/test-freadable.c: New file.
65253
65254         * modules/freadable: New file.
65255         * lib/freadable.h: New file.
65256         * lib/freadable.c: New file.
65257         * m4/freadable.m4: New file.
65258
65259 2007-04-13  Bruno Haible  <bruno@clisp.org>
65260
65261         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65262         MOSTLYCLEANFILES.
65263
65264 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65265
65266         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65267         gzip bootstrap.conf to avoid dragging in i18n machinery.
65268         (gnulib_tool_option): Use it.
65269
65270 2007-04-13  Bruno Haible  <bruno@clisp.org>
65271
65272         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65273         %F directives.
65274         * tests/test-vasprintf-posix.c (test_function): Likewise.
65275         * tests/test-snprintf-posix.h (test_function): Likewise.
65276         * tests/test-sprintf-posix.h (test_function): Likewise.
65277         * tests/test-fprintf-posix.h (test_function): Likewise.
65278         * tests/test-printf-posix.h (test_function): Likewise.
65279         * tests/test-fprintf-posix.out: Likewise.
65280
65281 2007-04-13  Bruno Haible  <bruno@clisp.org>
65282
65283         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65284         * modules/tls-tests (configure.ac): Likewise.
65285         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65286
65287 2007-04-13  Bruno Haible  <bruno@clisp.org>
65288
65289         * lib/tls.c (glthread_tls_get): Fix return type.
65290         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65291
65292 2007-04-12  Eric Blake  <ebb9@byu.net>
65293
65294         * modules/gettime (Depends-on): Remove gettime.
65295         Reported by Dmitry V. Levin.
65296
65297 2007-04-12  Bruno Haible  <bruno@clisp.org>
65298
65299         * modules/fflush (Include): Mention <stdio.h>.
65300         * modules/strtoimax (Include): Mention <inttypes.h>.
65301         * modules/strtoumax (Include): Likewise.
65302
65303 2007-04-12  Eric Blake  <ebb9@byu.net>
65304
65305         * .cvsignore: New file.
65306         * .gitignore: Likewise.
65307
65308 2007-04-12  Bruno Haible  <bruno@clisp.org>
65309
65310         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65311         not before, since $(LDADD) often contains libgnu.a.
65312         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65313         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65314         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65315         Needed on Cygwin.
65316
65317 2007-04-12  Eric Blake  <ebb9@byu.net>
65318
65319         Work around glibc's failure to flush stdin on fclose.
65320         * lib/closein.c (close_stdin): Flush stdin before closing.
65321
65322         Work around glibc's failure to reset seekable stdin on exit.
65323         * modules/closein: New module.
65324         * lib/closein.c: New file.
65325         * lib/closein.h: Likewise.
65326         * m4/closein.m4: Likewise.
65327         * MODULES.html.sh (File stream based Input/Output): Document it.
65328
65329 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65330
65331         * gnulib-tool: Rename generated 'autobuild' script to
65332         'do-autobuild' in --create-megatestdir output.
65333
65334         * doc/gnulib.texi (Build robot for gnulib): Fix.
65335
65336 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65337
65338         * modules/sysexits (Depends-on): Add absolute-header.
65339
65340 2007-04-12  Eric Blake  <ebb9@byu.net>
65341
65342         No need to preserve errno on success.
65343         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65344         Reported by Bruno Haible.
65345
65346 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65347
65348         * MODULES.html.sh (Support for maintaining and releasing
65349         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65350
65351 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65352
65353         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65354
65355 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65356
65357         * modules/autobuild: New module.
65358
65359         * m4/autobuild.m4: New file.
65360
65361 2007-04-11  Bruno Haible  <bruno@clisp.org>
65362
65363         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65364         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65365         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65366         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65367         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65368         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65369         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65371         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65372         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65373         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65374         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65375         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65376         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65377         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65378         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65380         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65381         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65382         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65383         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65384         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65385         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65386         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65387         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65388         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65389         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65390         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65391         Reported by Eric Blake.
65392
65393 2007-04-11  Bruno Haible  <bruno@clisp.org>
65394
65395         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65396
65397 2007-04-10  Bruno Haible  <bruno@clisp.org>
65398
65399         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65400         for NaN and Infinity. Needed on FreeBSD 6.1.
65401         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65402         regarding results for "%010a" of Infinity and NaN.
65403         * tests/test-vasprintf-posix.c (test_function): Likewise.
65404         * tests/test-snprintf-posix.h (test_function): Likewise.
65405         * tests/test-sprintf-posix.h (test_function): Likewise.
65406         * tests/test-fprintf-posix.h (test_function): Likewise.
65407         * tests/test-printf-posix.h (test_function): Likewise.
65408         * tests/test-fprintf-posix.out: Likewise.
65409
65410 2007-04-10  Bruno Haible  <bruno@clisp.org>
65411
65412         * modules/locale-tests: New file.
65413         * tests/test-locale.c: New file.
65414
65415         * modules/locale: New file.
65416         * lib/locale_.h: New file.
65417         * m4/locale_h.m4: New file.
65418
65419 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65420             Bruno Haible  <bruno@clisp.org>
65421
65422         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65423         be determined, test for availability of the copysignf, copysign,
65424         copysignl functions.
65425         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65426         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65427         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65428
65429 2007-04-09  Eric Blake  <ebb9@byu.net>
65430
65431         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65432         * modules/stdio (Makefile.am): Support fflush.
65433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65434         * modules/fflush: New file.
65435         * lib/fflush.c: Likewise.
65436         * m4/fflush.m4: Likewise.
65437         * modules/fflush-tests: New test.
65438         * tests/test-fflush.c: Likewise.
65439         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65440
65441 2007-04-06  Bruno Haible  <bruno@clisp.org>
65442
65443         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65444         (VASNPRINTF): Use signbit for faster determination whether to print a
65445         minus sign.
65446         * modules/vasnprintf (Files): Remove lib/float+.h.
65447         * modules/fprintf-posix (Depends-on): Add signbit.
65448         * modules/snprintf-posix (Depends-on): Likewise.
65449         * modules/sprintf-posix (Depends-on): Likewise.
65450         * modules/vasnprintf-posix (Depends-on): Likewise.
65451         * modules/vasprintf-posix (Depends-on): Likewise.
65452         * modules/vfprintf-posix (Depends-on): Likewise.
65453         * modules/vsnprintf-posix (Depends-on): Likewise.
65454         * modules/vsprintf-posix (Depends-on): Likewise.
65455
65456 2007-04-06  Bruno Haible  <bruno@clisp.org>
65457
65458         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65459         * tests/test-frexpl.c (main): Likewise.
65460         * tests/test-ldexpl.c (main): Likewise.
65461         * modules/frexp-tests (Depends-on): Add signbit.
65462         * modules/frexpl-tests (Depdends-on): Likewise.
65463         * modules/ldexpl-tests (Depdends-on): Likewise.
65464
65465 2007-04-06  Bruno Haible  <bruno@clisp.org>
65466
65467         * modules/signbit-tests: New file.
65468         * tests/test-signbit.c: New file.
65469
65470         * modules/signbit: New file.
65471         * lib/signbitf.c: New file.
65472         * lib/signbitd.c: New file.
65473         * lib/signbitl.c: New file.
65474         * m4/signbit.m4: New file.
65475         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65476         (signbit): New macro.
65477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65478         REPLACE_SIGNBIT.
65479         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65480         REPLACE_FREXPL into math.h.
65481
65482 2007-04-06  Bruno Haible  <bruno@clisp.org>
65483
65484         * modules/isnanf-nolibm-tests: New file.
65485         * tests/test-isnanf.c: New file.
65486
65487         * modules/isnanf-nolibm: New file.
65488         * lib/isnanf.h: New file.
65489         * lib/isnanf.c: New file.
65490         * lib/isnan.c: Consider the USE_FLOAT macro.
65491         * m4/isnanf.m4: New file.
65492
65493 2007-04-06  Bruno Haible  <bruno@clisp.org>
65494
65495         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65496         (Link): New section.
65497
65498         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65499
65500 2007-04-06  Bruno Haible  <bruno@clisp.org>
65501
65502         Assume the 'long double' type.
65503         * m4/longdouble.m4: Remove file.
65504         * config/srclist.txt: Don't mention longdouble.m4.
65505         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65506         * lib/float+.h: Likewise.
65507         * lib/frexp.c: Likewise.
65508         * lib/printf-args.h: Likewise.
65509         * lib/printf-args.c: Likewise.
65510         * lib/printf-frexp.c: Likewise.
65511         * lib/printf-parse.c: Likewise.
65512         * lib/vasnprintf.c: Likewise.
65513         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65514         * m4/intl.m4: Likewise.
65515         * m4/isnanl.m4: Likewise.
65516         * m4/printf.m4: Likewise.
65517         * m4/printf-frexpl.m4: Likewise.
65518         * m4/vasnprintf.m4: Likewise.
65519         * modules/allocsa (Files): Remove m4/longdouble.m4.
65520         * modules/gettext (Files): Likewise.
65521         * modules/relocatable-prog-wrapper (Files): Likewise.
65522         * modules/vasnprintf (Files): Likewise.
65523         * modules/isnanl (Files): Likewise.
65524         (Include): Simplify.
65525         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65526         (Include): Simplify.
65527         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65528         (Include): Simplify.
65529         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65530         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65531         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65532         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65533         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65534         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65535         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65536         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65537         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65538         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65539         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65540         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65541         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65542         * tests/test-isnanl.c: Likewise.
65543         * tests/test-snprintf-posix.h: Likewise.
65544         * tests/test-sprintf-posix.h: Likewise.
65545         * tests/test-vasnprintf-posix.c: Likewise.
65546         * tests/test-vasnprintf-posix2.c: Likewise.
65547         * tests/test-vasprintf-posix.c: Likewise.
65548
65549 2007-04-06  Bruno Haible  <bruno@clisp.org>
65550
65551         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65552         * lib/math_.h [__DECC]: Include the overridden include file through
65553         #include_next, outside the double-inclusion guard.
65554         * lib/stdio_.h [__DECC]: Likewise.
65555         * lib/stdlib_.h [__DECC]: Likewise.
65556         * lib/string_.h [__DECC]: Likewise.
65557         * lib/time_.h [__DECC]: Likewise.
65558         * lib/wchar_.h [__DECC]: Likewise.
65559         * lib/wctype_.h [__DECC]: Likewise.
65560         * lib/inttypes_.h [__DECC]: Likewise.
65561         Reported by Albert Chin <china@thewrittenword.com> in
65562         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65563
65564 2007-04-04  Eric Blake  <ebb9@byu.net>
65565
65566         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65567         1.5.x.
65568
65569 2007-04-04  Bruno Haible  <bruno@clisp.org>
65570
65571         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65572         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65573
65574 2007-04-04  Bruno Haible  <bruno@clisp.org>
65575
65576         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65577         results for "%010a" of Infinity and NaN.
65578         * tests/test-vasprintf-posix.c (test_function): Likewise.
65579         * tests/test-snprintf-posix.h (test_function): Likewise.
65580         * tests/test-sprintf-posix.h (test_function): Likewise.
65581         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65582         * tests/test-printf-posix.h (test_function): Likewise.
65583         * tests/test-fprintf-posix.out: Update.
65584         Needed for FreeBSD 6.1.
65585
65586 2007-04-04  Bruno Haible  <bruno@clisp.org>
65587
65588         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65589         directly used by the gnulib modules nor by gnulib-tool.
65590
65591 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65592
65593         * DEPENDENCIES: Give overall description of version dependency
65594         desirability.  Use more-typical names for apps.
65595         Add shell, coreutils, diffutils, grep, tar, gzip.
65596
65597 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65598
65599         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65600
65601 2007-04-04  Karl Berry  <karl@gnu.org>
65602
65603         * MODULES.html.sh (func_module): missing '.
65604
65605 2007-04-03  Bruno Haible  <bruno@clisp.org>
65606
65607         * modules/argmatch-tests (Makefile.am): New variable
65608         test_argmatch_LDADD.
65609         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65610         * modules/array-list-tests (Makefile.am): New variable
65611         test_array_list_LDADD.
65612         * modules/array-oset-tests (Makefile.am): New variable
65613         test_array_oset_LDADD.
65614         * modules/avltree-list-tests (Makefile.am): New variable
65615         test_avltree_list_LDADD.
65616         * modules/avltree-oset-tests (Makefile.am): New variable
65617         test_avltree_oset_LDADD.
65618         * modules/avltreehash-list-tests (Makefile.am): New variable
65619         test_avltreehash_list_LDADD.
65620         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65621         test_canonicalize_lgpl_LDADD.
65622         * modules/carray-list-tests (Makefile.am): New variable
65623         test_carray_list_LDADD.
65624         * modules/dirname-tests (Makefile.am): New variable
65625         test_dirname_LDADD.
65626         * modules/linked-list-tests (Makefile.am): New variable
65627         test_linked_list_LDADD.
65628         * modules/linkedhash-list-tests (Makefile.am): New variable
65629         test_linkedhash_list_LDADD.
65630         * modules/rbtree-list-tests (Makefile.am): New variable
65631         test_rbtree_list_LDADD.
65632         * modules/rbtree-oset-tests (Makefile.am): New variable
65633         test_rbtree_oset_LDADD.
65634         * modules/rbtreehash-list-tests (Makefile.am): New variable
65635         test_rbtreehash_list_LDADD.
65636         * modules/xvasprintf-tests (Makefile.am): New variable
65637         test_xvasprintf_LDADD.
65638         Reported by Eric Blake.
65639
65640 2007-04-03  Eric Blake  <ebb9@byu.net>
65641
65642         * DEPENDENCIES: Weaken m4 requirements.
65643
65644 2007-04-03  Bruno Haible  <bruno@clisp.org>
65645
65646         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65647         * modules/isnanl-tests (configure.ac): Likewise.
65648
65649 2007-04-03  Ben Pfaff  <blp@gnu.org>
65650
65651         * modules/iconv_open: Add $(srcdir)/ to source directory
65652         references in Makefile fragments that call gperf, to fix VPATH
65653         builds.
65654
65655 2007-04-03  Bruno Haible  <bruno@clisp.org>
65656
65657         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65658         * lib/ldexpl.c: Undo last change.
65659
65660 2007-04-03  Bruno Haible  <bruno@clisp.org>
65661
65662         * modules/printf-frexpl (Depends-on): Undo last change.
65663         (Files): Add m4/ldexpl.m4.
65664
65665 2007-04-03  Bruno Haible  <bruno@clisp.org>
65666
65667         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65668         * modules/isnanl (Link): New section.
65669
65670         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65671         * modules/frexp (Link): New section.
65672
65673         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65674         * modules/frexpl (Link): New section.
65675
65676         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65677         * modules/ldexpl (Link): New section.
65678
65679 2007-04-03  Bruno Haible  <bruno@clisp.org>
65680
65681         * modules/TEMPLATE-EXTENDED: New file.
65682         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65683
65684 2007-04-03  Bruno Haible  <bruno@clisp.org>
65685
65686         * DEPENDENCIES: New file.
65687         Suggested by Simon Josefsson.
65688
65689 2007-04-03  Bruno Haible  <bruno@clisp.org>
65690
65691         * doc/gnulib.texi: Escape @.
65692
65693 2007-04-03  James Youngman  <jay@gnu.org>
65694         and Paul Eggert  <eggert@cs.ucla.edu>
65695
65696         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65697         birthtime on all systems that have birthtime, not just those which
65698         use st_birthtimensec rather than st_birthtim.  Putting zero in
65699         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65700         that the birth time is not available for files on an NFS mount.
65701
65702 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65703
65704         * modules/memxor: Move back from crypto/, suggested by Bruno.
65705         * modules/crypto/hmac-sha1: Fix memxor dependency.
65706
65707         * modules/crypto/gc: Moved from ../.
65708
65709 2007-04-02  Eric Blake  <ebb9@byu.net>
65710
65711         * lib/ldexpl.c (includes): Avoid libm.
65712
65713         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65714
65715 2007-04-02  Bruno Haible  <bruno@clisp.org>
65716
65717         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65718         on IRIX.
65719
65720 2007-04-02  Bruno Haible  <bruno@clisp.org>
65721
65722         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65723         x86 or x86_64 platforms running MacOS X.
65724         Reported by Ryan Schmidt <@ryandesign.com>.
65725
65726 2007-04-02  Bruno Haible  <bruno@clisp.org>
65727
65728         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65729         i386.
65730
65731 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65732
65733         * modules/crypto/arcfour: Moved from ../.
65734         * modules/crypto/arcfour-tests: Moved from ../.
65735         * modules/crypto/arctwo: Moved from ../.
65736         * modules/crypto/arctwo-tests: Moved from ../.
65737         * modules/crypto/des: Moved from ../.
65738         * modules/crypto/des-tests: Moved from ../.
65739         * modules/crypto/gc-arcfour: Moved from ../.
65740         * modules/crypto/gc-arcfour-tests: Moved from ../.
65741         * modules/crypto/gc-arctwo: Moved from ../.
65742         * modules/crypto/gc-arctwo-tests: Moved from ../.
65743         * modules/crypto/gc-des: Moved from ../.
65744         * modules/crypto/gc-des-tests: Moved from ../.
65745         * modules/crypto/gc-hmac-md5: Moved from ../.
65746         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65747         * modules/crypto/gc-hmac-sha1: Moved from ../.
65748         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65749         * modules/crypto/gc-md2: Moved from ../.
65750         * modules/crypto/gc-md2-tests: Moved from ../.
65751         * modules/crypto/gc-md4: Moved from ../.
65752         * modules/crypto/gc-md4-tests: Moved from ../.
65753         * modules/crypto/gc-md5: Moved from ../.
65754         * modules/crypto/gc-md5-tests: Moved from ../.
65755         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65756         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65757         * modules/crypto/gc-random: Moved from ../.
65758         * modules/crypto/gc-rijndael: Moved from ../.
65759         * modules/crypto/gc-rijndael-tests: Moved from ../.
65760         * modules/crypto/gc-sha1: Moved from ../.
65761         * modules/crypto/gc-sha1-tests: Moved from ../.
65762         * modules/crypto/gc-tests: Moved from ../.
65763         * modules/crypto/hmac-md5: Moved from ../.
65764         * modules/crypto/hmac-md5-tests: Moved from ../.
65765         * modules/crypto/hmac-sha1: Moved from ../.
65766         * modules/crypto/hmac-sha1-tests: Moved from ../.
65767         * modules/crypto/md2: Moved from ../.
65768         * modules/crypto/md2-tests: Moved from ../.
65769         * modules/crypto/md4: Moved from ../.
65770         * modules/crypto/md4-tests: Moved from ../.
65771         * modules/crypto/md5: Moved from ../.
65772         * modules/crypto/md5-tests: Moved from ../.
65773         * modules/crypto/memxor: Moved from ../.
65774         * modules/crypto/rijndael: Moved from ../.
65775         * modules/crypto/rijndael-tests: Moved from ../.
65776         * modules/crypto/sha1: Moved from ../.
65777
65778 2007-03-30  James Youngman  <jay@gnu.org>
65779
65780         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65781         rename() to change the ctime of a file (because ctime is unaffected
65782         by rename on jfs2 on AIX 5.1).
65783         (main): Start by doing cleanup, in case a previous run failed leaving
65784         test files behind.
65785
65786 2007-03-31  Bruno Haible  <bruno@clisp.org>
65787
65788         Support old proprietary implementations of iconv.
65789         * modules/iconv_open: New file.
65790         * lib/iconv_.h: New file.
65791         * m4/iconv_h.m4: New file.
65792         * lib/iconv_open.c: New file.
65793         * lib/iconv_open-aix.gperf: New file.
65794         * lib/iconv_open-hpux.gperf: New file.
65795         * lib/iconv_open-irix.gperf: New file.
65796         * lib/iconv_open-osf.gperf: New file.
65797         * m4/iconv_open.m4: New file.
65798         * modules/linebreak (Depends-on): Add iconv_open.
65799         * modules/striconv (Depends-on): Likewise.
65800         * modules/striconveh (Depends-on): Likewise.
65801         * modules/unicodeio (Depends-on): Likewise.
65802         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65803         (iconv_t)(-1).
65804         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65805         conversion if cd is (iconv_t)(-1).
65806         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65807         is not possible.
65808
65809 2007-03-31  Bruno Haible  <bruno@clisp.org>
65810
65811         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65812         work on Solaris either. Protect also second use of "autodetect_jp".
65813
65814 2007-03-31  Bruno Haible  <bruno@clisp.org>
65815
65816         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65817         the function is not present.
65818
65819 2007-03-31  Bruno Haible  <bruno@clisp.org>
65820
65821         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65822         the function is not present.
65823
65824 2007-03-31  Bruno Haible  <bruno@clisp.org>
65825
65826         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65827         a bug in HP-UX iconv_open().
65828
65829 2007-03-31  Bruno Haible  <bruno@clisp.org>
65830
65831         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65832         (Mathematics <math.h>): New section, add fpieee.
65833         (Input/output <stdio.h>): Add fseterr.
65834         (Mathematics <math.h>): New section, add printf-frexp.
65835         (Container data structures): Add sublist.
65836         (Core language properties): Add fpucw, inline.
65837         (Functions for greatest-width integer types <inttypes.h>): Add
65838         imaxabs, imaxdiv, inttypes.
65839         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65840         isnanl-nolibm, ldexp.
65841         (Mathematics <math.h>): New section, add printf-frexpl.
65842         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65843         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65844         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65845         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65846         (Unicode string functions): Add unistr/u*-mbtoucr.
65847         (Java): Add javacomp-script, javaexec-script.
65848         (C#): Add csharpcomp-script, csharpexec-script.
65849         (Support for building libraries and executables): Add havelib,
65850         relocatable-*.
65851         (Support for maintaining and releasing projects): Renamed from
65852         'Support for maintaining and release projects'. Add announce-gen.
65853
65854 2007-03-31  Bruno Haible  <bruno@clisp.org>
65855
65856         * README: Talk primarily about git.
65857         (git and CVS): Renamed from CVS.
65858         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65859         gnulib is available through git.
65860         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65861
65862 2007-03-30  Bruno Haible  <bruno@clisp.org>
65863
65864         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65865         * lib/poll_.h: Likewise.
65866         * lib/stat_.h: Likewise.
65867         * lib/sys_time_.h: Likewise.
65868         * lib/sysexit_.h: Likewise.
65869         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65870         * lib/stdbool_.h: Likewise.
65871         * lib/byteswap_.h: Add double-inclusion guard.
65872
65873 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65874
65875         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65876
65877 2007-03-30  Karl Berry  <karl@gnu.org>
65878
65879         * config/srclist-update: double space after USA in the license
65880         substitution, since that's how it's usually (?) written.
65881
65882 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65883
65884         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65885         reported by Bruno Haible.
65886
65887 2007-03-29  Bruno Haible  <bruno@clisp.org>
65888
65889         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65890         a bug in AIX iconv().
65891
65892 2007-03-29  Bruno Haible  <bruno@clisp.org>
65893
65894         * modules/ldexpl-tests: New file.
65895         * tests/test-ldexpl.c: New file.
65896
65897 2007-03-29  Bruno Haible  <bruno@clisp.org>
65898
65899         * lib/ldexpl.c: Include fpucw.h.
65900         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65901         multiplication.
65902         * modules/ldexpl (Depends-on): Add fpucw.
65903
65904 2007-03-29  Bruno Haible  <bruno@clisp.org>
65905
65906         * modules/ldexpl: New file.
65907         * m4/ldexpl.m4: New file.
65908         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65909         set.
65910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65911         REPLACE_LDEXPL.
65912         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65913         REPLACE_LDEXPL.
65914         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65915         gl_FUNC_LDEXPL_WORKS.
65916         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65917         * modules/mathl (Files): Remove lib/ldexpl.c.
65918         (Depends-on): Add ldexpl.
65919
65920 2007-03-29  Bruno Haible  <bruno@clisp.org>
65921
65922         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65923
65924 2007-03-29  Bruno Haible  <bruno@clisp.org>
65925
65926         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65927         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65928         and possibly also HP-UX.
65929         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65930         work on AIX, IRIX, HP-UX, OSF/1.
65931         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65932         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65933         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65934         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65935         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65936         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65937
65938 2007-03-29  Bruno Haible  <bruno@clisp.org>
65939
65940         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65941
65942 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65943
65944         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65945         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65946
65947 2007-03-29  Eric Blake  <ebb9@byu.net>
65948
65949         * lib/acl-internal.h: Remove redundant include.
65950         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65951         Cygwin when a file is locked.
65952
65953 2007-03-29  Bruno Haible  <bruno@clisp.org>
65954
65955         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65956         file.
65957         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65958
65959 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65960
65961         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65962         try to remove a parent directory if the child couldn't be removed
65963         (except for the first rmdir, which could fail because the child
65964         doesn't exist).  Problem reported by Jeff Blaine in
65965         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65966
65967 2007-03-28  Bruno Haible  <bruno@clisp.org>
65968
65969         * lib/striconveh.c (utf8conv_carefully): New function.
65970         (mem_cd_iconveh_internal): Invoke it.
65971
65972 2007-03-28  Bruno Haible  <bruno@clisp.org>
65973
65974         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65975         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65976         input.
65977         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65978         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65979         unistr/u8-uctomb.
65980
65981 2007-03-28  Bruno Haible  <bruno@clisp.org>
65982
65983         * modules/unistr/u8-mbtoucr: New file.
65984         * lib/unistr/u8-mbtoucr.c: New file.
65985         * modules/unistr/u16-mbtoucr: New file.
65986         * lib/unistr/u16-mbtoucr.c: New file.
65987         * modules/unistr/u16-mbtoucr: New file.
65988         * lib/unistr/u16-mbtoucr.c: New file.
65989         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65990
65991 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65992             Bruno Haible  <bruno@clisp.org>
65993
65994         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65995         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65996         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65997
65998         * m4/stdio_h.m4: Add stubs for vasprintf too.
65999
66000         * modules/stdio: Support vasprintf in sed command.
66001
66002         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66003         vasprintf.h.  Add stdio module indicator.
66004
66005         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66006         vasprintf.h.
66007
66008         * lib/vasprintf.h: File removed.
66009
66010         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66011         * lib/vasprintf.c: Ditto.
66012         * lib/xvasprintf.c: Ditto.
66013         * tests/test-vasprintf-posix.c: Ditto.
66014         * tests/test-vasprintf.c: Ditto.
66015
66016 2007-03-27  Bruno Haible  <bruno@clisp.org>
66017
66018         Make vasnprintf multithread-safe.
66019         * lib/vasnprintf.c (decimal_point_char): New function.
66020         (VASNPRINTF): Use it.
66021         Suggested by Simon Josefsson.
66022
66023 2007-03-27  Eric Blake  <ebb9@byu.net>
66024
66025         Support sub-second birthtime on cygwin.
66026         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66027         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66028         (get_stat_birthtime): Also work with st_birthtim.
66029
66030 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66031
66032         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66033         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66034         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66035         (get_stat_birthtime_ns): Simplify compile-time tests.
66036         (get_stat_birthtime): Change the API to look like
66037         get_stat_mtime etc., except return a negative tv_nsec on error.
66038         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66039         Don't check for "spare" fields.
66040         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66041         or for struct stat.st_birthtime, as these tests aren't used.
66042         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66043
66044 2007-03-27  Bruno Haible  <bruno@clisp.org>
66045
66046         * lib/stat-time.h: Include <sys/stat.h>.
66047
66048 2007-03-27  James Youngman  <jay@gnu.org>
66049
66050         * lib/stat-time.h (get_stat_birthtime): New function for
66051           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66052         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66053           and its variants.
66054         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66055         * modules/stat-time-test: New file.
66056         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66057
66058 2007-03-26  Bruno Haible  <bruno@clisp.org>
66059
66060         Better support of signalling NaNs.
66061         * lib/atanl.c: Include isnanl.h.
66062         (atanl): Perform test for NaN at the beginning of the function and
66063         through a call to isnanl.
66064         * lib/cosl.c: Include isnanl.h.
66065         (cosl): Perform test for NaN at the beginning of the function and
66066         through a call to isnanl.
66067         * lib/ldexpl.c: Include isnanl.h.
66068         (ldexpl): Perform test for NaN through a call to isnanl.
66069         * lib/logl.c: Include isnanl.h.
66070         (logl): Perform test for NaN at the beginning of the function and
66071         through a call to isnanl.
66072         * lib/sinl.c: Include isnanl.h.
66073         (sinl): Perform test for NaN at the beginning of the function and
66074         through a call to isnanl.
66075         * lib/sqrtl.c: Include isnanl.h.
66076         (sqrtl): Perform test for NaN at the beginning of the function and
66077         through a call to isnanl.
66078         * lib/tanl.c: Include isnanl.h.
66079         (tanl): Perform test for NaN at the beginning of the function and
66080         through a call to isnanl.
66081         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66082         * modules/mathl (Depends-on): Add isnanl.
66083
66084 2007-03-26  Eric Blake  <ebb9@byu.net>
66085
66086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66087         regression in logic sense of previous patch.
66088
66089 2007-03-26  Bruno Haible  <bruno@clisp.org>
66090
66091         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66092         unportable shell command "if ! ...".
66093         Reported by Ralf Wildenhues.
66094
66095 2007-03-25  Bruno Haible  <bruno@clisp.org>
66096
66097         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66098         <sysexits.h> file, and only add EX_CONFIG.
66099         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66100         absolute file name and whether it is sufficient. Substitute also
66101         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66102         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66103         ABSOLUTE_SYSEXITS_H into sysexits.h.
66104
66105 2007-03-25  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66108         hints is NULL.
66109
66110 2007-03-25  Bruno Haible  <bruno@clisp.org>
66111
66112         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66113         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66114
66115 2007-03-25  Bruno Haible  <bruno@clisp.org>
66116
66117         * lib/vasnprintf.c: Include langinfo.h.
66118         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66119         multithread-safe.
66120         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66121         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66122         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66123         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66124         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66125         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66126         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66127         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66128         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66129         Reported by Simon Josefsson.
66130
66131 2007-03-25  Bruno Haible  <bruno@clisp.org>
66132
66133         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66134         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66135         * modules/vasnprintf (Depends-on): Add stdint.
66136
66137 2007-03-25  Bruno Haible  <bruno@clisp.org>
66138
66139         * modules/fpieee: New file.
66140         * m4/fpieee.m4: New file.
66141         * modules/isnan-nolibm (Depends-on): Add fpieee.
66142         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66143         * modules/isnanl (Depends-on): Add fpieee.
66144
66145 2007-03-25  Bruno Haible  <bruno@clisp.org>
66146
66147         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66148
66149 2007-03-25  Bruno Haible  <bruno@clisp.org>
66150
66151         Avoid test failures on IRIX 6.5.
66152         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66153         (main): Use it.
66154         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66155         macros.
66156         (main): Use them.
66157
66158 2007-03-25  Bruno Haible  <bruno@clisp.org>
66159
66160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66161         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66162         exists but doesn't work.
66163         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66164         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66166         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66167         math.h.
66168
66169 2007-03-25  Bruno Haible  <bruno@clisp.org>
66170
66171         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66172         returns inf. Needed on IRIX 6.5.
66173
66174 2007-03-25  Bruno Haible  <bruno@clisp.org>
66175
66176         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66177         (main): Use isnanl instead of x != x idiom.
66178         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66179
66180         * tests/test-frexp.c: Include isnan.h.
66181         (main): Use isnan instead of x != x idiom.
66182         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66183
66184 2007-03-25  Bruno Haible  <bruno@clisp.org>
66185
66186         * tests/test-frexp.c (NaN): New function/macro.
66187         (main): Use it instead of 0.0 / 0.0.
66188         * tests/test-isnan.c (NaN): New function/macro.
66189         (main): Use it instead of 0.0 / 0.0.
66190         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66191         (test_function): Use it instead of 0.0 / 0.0.
66192         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66193         (test_function): Use it instead of 0.0 / 0.0.
66194         * tests/test-snprintf-posix.h (NaN): New function/macro.
66195         (test_function): Use it instead of 0.0 / 0.0.
66196         * tests/test-sprintf-posix.h (NaN): New function/macro.
66197         (test_function): Use it instead of 0.0 / 0.0.
66198         * tests/test-fprintf-posix.h (NaN): New function/macro.
66199         (test_function): Use it instead of 0.0 / 0.0.
66200         * tests/test-printf-posix.h (NaN): New function/macro.
66201         (test_function): Use it instead of 0.0 / 0.0.
66202
66203         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66204
66205 2007-03-25  Bruno Haible  <bruno@clisp.org>
66206
66207         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66208
66209 2007-03-25  Bruno Haible  <bruno@clisp.org>
66210
66211         * lib/regexec.c (merge_state_with_log): Make static.
66212
66213 2007-03-25  Bruno Haible  <bruno@clisp.org>
66214
66215         * lib/trigl.c (kernel_rem_pio2): Make static.
66216
66217 2007-03-25  Bruno Haible  <bruno@clisp.org>
66218
66219         * lib/sincosl.c (sincosl_table): Make static.
66220
66221 2007-03-25  Bruno Haible  <bruno@clisp.org>
66222
66223         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66224         if the compiler does not support C99.
66225
66226 2007-03-25  Bruno Haible  <bruno@clisp.org>
66227
66228         * modules/time (Makefile.am): Ensure all rule action lines start with a
66229         tab.
66230
66231 2007-03-24  Bruno Haible  <bruno@clisp.org>
66232
66233         * modules/tsearch-tests: New file.
66234         * tests/test-tsearch.sh: New file.
66235         * tests/test-tsearch.c: New file, mostly copied from glibc.
66236
66237         * modules/search-tests: New file.
66238         * tests/test-search.c: New file.
66239
66240         * modules/search: New file.
66241         * lib/search_.h: New file, incorporating lib/tsearch.h.
66242         * m4/search_h.m4: New file.
66243         * lib/tsearch.h: Remove file.
66244         * lib/tsearch.c: Include search.h instead of tsearch.h.
66245         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66246         HAVE_TSEARCH.
66247         * modules/tsearch (Files): Remove lib/tsearch.h.
66248         (Depends-on): Add search.
66249         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66250         (Include): Change tsearch.h into search.h.
66251
66252 2007-03-24  Bruno Haible  <bruno@clisp.org>
66253
66254         * modules/fpucw: New file.
66255         * lib/fpucw.h: New file.
66256         * lib/frexp.c: Include fpucw.h.
66257         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66258         (FUNC): Use them.
66259         * lib/printf-frexp.c: Include fpucw.h.
66260         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66261         (FUNC): Use them.
66262         * lib/vasnprintf.c: Include fpucw.h.
66263         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66264         'long double' calculations.
66265         * tests/test-frexpl.c: Include fpucw.h.
66266         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66267         * tests/test-printf-frexpl.c: Include fpucw.h.
66268         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66269         * modules/frexpl (Depends-on): Add fpucw.
66270         * modules/printf-frexpl (Depends-on): Likewise.
66271         * modules/fprintf-posix (Depends-on): Likewise.
66272         * modules/snprintf-posix (Depends-on): Likewise.
66273         * modules/sprintf-posix (Depends-on): Likewise.
66274         * modules/vasnprintf-posix (Depends-on): Likewise.
66275         * modules/vasprintf-posix (Depends-on): Likewise.
66276         * modules/vfprintf-posix (Depends-on): Likewise.
66277         * modules/vsnprintf-posix (Depends-on): Likewise.
66278         * modules/vsprintf-posix (Depends-on): Likewise.
66279         * modules/frexpl-tests (Depends-on): Likewise.
66280         * modules/printf-frexpl-tests (Depends-on): Likewise.
66281
66282 2007-03-24  Bruno Haible  <bruno@clisp.org>
66283
66284         * lib/float+.h: New file.
66285         * lib/isnan.c: Include float+.h.
66286         (SIZE): New macro.
66287         (FUNC): Compare only SIZE bytes of the value.
66288         * lib/vasnprintf.c: Include float+.h.
66289         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66290         SIZEOF_LDBL or SIZEOF_DBL bytes.
66291         * modules/isnan-nolibm (Files): Add lib/float+.h.
66292         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66293         * modules/isnanl (Files): Add lib/float+.h.
66294         * modules/vasnprintf (Files): Add lib/float+.h.
66295
66296 2007-03-24  Bruno Haible  <bruno@clisp.org>
66297
66298         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66299         include isnanl-nolibm.h.
66300
66301 2007-03-24  Bruno Haible  <bruno@clisp.org>
66302
66303         * tests/test-read-file.c (main): Don't produce spurious output for
66304         expected situations. Make the test fail if it encountered unexpected
66305         results.
66306
66307 2007-03-24  Bruno Haible  <bruno@clisp.org>
66308
66309         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66310         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66311
66312 2007-03-24  Bruno Haible  <bruno@clisp.org>
66313
66314         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66315
66316 2007-03-24  Bruno Haible  <bruno@clisp.org>
66317
66318         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66319         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66320
66321         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66322         * modules/utf8-ucs4: Turn into a symbolic link to module
66323         unistr/u8-mbtouc.
66324
66325         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66326         utf8-ucs4-unsafe.
66327         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66328         unistr/u8-mbtouc-unsafe.
66329
66330         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66331         * modules/utf16-ucs4: Turn into a symbolic link to module
66332         unistr/u16-mbtouc.
66333
66334         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66335         utf16-ucs4-unsafe.
66336         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66337         unistr/u16-mbtouc-unsafe.
66338
66339         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66340         * modules/ucs4-utf8: Turn into a symbolic link to module
66341         unistr/u8-ubtomb.
66342
66343         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66344         * modules/ucs4-utf16: Turn into a symbolic link to module
66345         unistr/u16-ubtomb.
66346
66347 2007-03-24  Bruno Haible  <bruno@clisp.org>
66348
66349         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66350         Enable the function only if HAVE_INLINE.
66351         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66352         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66353         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66354         Enable the function only if HAVE_INLINE.
66355         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66356         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66357         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66358         Enable the function only if HAVE_INLINE.
66359         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66360         Enable the function only if HAVE_INLINE.
66361         * modules/utf8-ucs4: Update.
66362         * modules/utf8-ucs4-unsafe: Update.
66363         * modules/utf16-ucs4: Update.
66364         * modules/utf16-ucs4-unsafe: Update.
66365         * modules/ucs4-utf8: Update.
66366         * modules/ucs4-utf16: Update.
66367
66368 2007-03-24  Bruno Haible  <bruno@clisp.org>
66369
66370         * lib/utf8-ucs4.h: Remove file.
66371         * lib/utf8-ucs4-unsafe.h: Remove file.
66372         * lib/utf16-ucs4.h: Remove file.
66373         * lib/utf16-ucs4-unsafe.h: Remove file.
66374         * lib/ucs4-utf8.h: Remove file.
66375         * lib/ucs4-utf16.h: Remove file.
66376         * lib/unistr.h: Include their previous contents.
66377         * m4/utf-ucs4.m4: Remove file.
66378         * m4/ucs4-utf.m4: Remove file.
66379         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66380         (Depends-on): Add unistr/base.
66381         (configure.ac): Remove gl_UTF_UCS4.
66382         (Makefile.am): Update.
66383         (Include): Change to unistr.h.
66384         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66385         (Depends-on): Add unistr/base.
66386         (configure.ac): Remove gl_UTF_UCS4.
66387         (Makefile.am): Update.
66388         (Include): Change to unistr.h.
66389         * modules/utf16-ucs4 (Files): Remove lib/utf16-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/utf16-ucs4-unsafe (Files): Remove lib/utf16-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/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66400         (Depends-on): Add unistr/base.
66401         (configure.ac): Remove gl_UCS4_UTF.
66402         (Makefile.am): Update.
66403         (Include): Change to unistr.h.
66404         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66405         (Depends-on): Add unistr/base.
66406         (configure.ac): Remove gl_UCS4_UTF.
66407         (Makefile.am): Update.
66408         (Include): Change to unistr.h.
66409         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66410         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66411         utf8-ucs4-unsafe.h.
66412         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66413         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66414         utf16-ucs4-unsafe.h.
66415         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66416         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66417         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66418         * lib/unistr/u8-strchr.c: Likewise.
66419         * lib/unistr/u8-strrchr.c: Likewise.
66420         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66421         * lib/unistr/u16-strchr.c: Likewise.
66422         * lib/unistr/u16-strrchr.c: Likewise.
66423         * lib/striconveh.c: Update.
66424         * lib/linebreak.c: Update.
66425
66426 2007-03-24  Bruno Haible  <bruno@clisp.org>
66427
66428         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66429         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66430
66431 2007-03-22  Bruno Haible  <bruno@clisp.org>
66432
66433         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66434
66435 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66436
66437         * MODULES.html.sh (File system functions): New module write-any-file.
66438         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66439         * m4/write-any-file.m4: New files.
66440
66441 2007-03-23  Eric Blake  <ebb9@byu.net>
66442
66443         * gnulib-tool: Rearrange space-tab sequences, since some editors
66444         like to eat them.
66445
66446 2007-03-23  Eric Blake  <ebb9@byu.net>
66447
66448         * lib/version-etc.c (version_etc_va): Update license wording to
66449         be more concise.  Recommended by Richard Stallman.
66450
66451 2007-03-22  Bruno Haible  <bruno@clisp.org>
66452
66453         * lib/poll.c (MSG_PEEK): New fallback definition.
66454
66455 2007-03-22  Bruno Haible  <bruno@clisp.org>
66456
66457         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66458         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66459         (main): Update.
66460         Fixes a compilation error on BeOS.
66461
66462 2007-03-22  Bruno Haible  <bruno@clisp.org>
66463
66464         * modules/frexpl-tests: New file.
66465         * tests/test-frexpl.c: New file.
66466
66467         * modules/frexpl: New file.
66468         * m4/frexpl.m4: New file.
66469         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66470         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66472         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66473         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66474         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66475
66476 2007-03-22  Bruno Haible  <bruno@clisp.org>
66477
66478         * lib/frexpl.c: Share code with lib/frexp.c.
66479         * modules/mathl (Files): Add lib/frexp.c.
66480         (Depends-on): Add isnanl-nolibm.
66481
66482 2007-03-22  Bruno Haible  <bruno@clisp.org>
66483
66484         * modules/printf-frexp (Files): Add m4/frexp.m4.
66485         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66486         only if the found frexp function actually works.
66487
66488 2007-03-22  Bruno Haible  <bruno@clisp.org>
66489
66490         * lib/frexp.c: Remove older implementation that uses divisions.
66491
66492 2007-03-21  Bruno Haible  <bruno@clisp.org>
66493
66494         * modules/frexp-tests: New file.
66495         * tests/test-frexp.c: New file.
66496
66497         * modules/frexp: New file.
66498         * lib/frexp.c: New file.
66499         * m4/frexp.m4: New file.
66500         * lib/math_.h (frexp): New declaration.
66501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66502         REPLACE_FREXP.
66503         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66504
66505 2007-03-21  Bruno Haible  <bruno@clisp.org>
66506
66507         * modules/isnanl-tests: New file.
66508         * tests/test-isnanl.c: New file.
66509
66510         * modules/isnanl: New file.
66511         * lib/isnanl.h: New file.
66512         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66513         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66514         gl_FUNC_ISNANL_WORKS.
66515         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66516         New macros.
66517
66518 2007-03-21  Bruno Haible  <bruno@clisp.org>
66519
66520         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66521         lib/isnanl.h.
66522         (Include): Update.
66523         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66524         * lib/vasnprintf.c: Update.
66525         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66526         tests/test-isnanl.h, remove tests/test-isnanl.c.
66527         (Makefile.am): Update.
66528         * tests/test-isnanl-nolibm.c: New file.
66529         * tests/test-isnanl.h: New file.
66530         * tests/test-isnanl.c: Remove file.
66531
66532 2007-03-21  Jim Meyering  <jim@meyering.net>
66533
66534         When trying to open ".", treat ESTALE like EACCES.
66535         * lib/savewd.c (savewd_save): Resort to forking not just upon
66536         failure with EACCES, but also when errno is ESTALE.
66537
66538 2007-03-20  Bruno Haible  <bruno@clisp.org>
66539
66540         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66541         Needed on AIX 5.1. Reported by Matthew Woehlke.
66542
66543 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66544
66545         Suggestions by Bruno Haible:
66546         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66547         our own.
66548         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66549         * modules/acl (Depends-on): Add gettext.
66550
66551 2007-03-19  Bruno Haible  <bruno@clisp.org>
66552
66553         * modules/iconvme: Remove file.
66554         * lib/iconvme.h: Remove file.
66555         * lib/iconvme.c: Remove file.
66556         * m4/iconvme.m4: Remove file.
66557
66558 2007-03-19  Bruno Haible  <bruno@clisp.org>
66559
66560         * doc/relocatable-maint.texi: Break long shell script line.
66561         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66562
66563 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66566         handle file_has_acl.
66567         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66568         * lib/acl.c: Move header inclusions and related macro defns into
66569         lib/acl-internal.h.
66570         (S_ISLNK): Remove defn, since that's now done for us.
66571         (file_has_acl): Move to lib/file-has-acl.c.
66572         Call acl_trivial if available.  This is the crucial part of the fix.
66573         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66574         shared within the library.  Rewrite a bit, partly to make it compatible
66575         with the GNU coding style.
66576         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66577         Remove unnecessary double-quotes.
66578         Don't test for acl_to_text; the build will catch that.
66579         Replace acl_entries if it doesn't exist and it is needed.
66580         Check for -lsec and acl_trivial (as used on Solaris 10).
66581         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66582         lib/file-has-acl.c.
66583         (Depends-on): Add sys_stat, for S_ISLNK.
66584
66585 2007-03-19  Ben Pfaff  <blp@gnu.org>
66586
66587         * doc/gnulib.texi: Fix typos.
66588         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66589
66590 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66591
66592         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66593         If size is zero here, buf must be zero.
66594
66595 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66596
66597         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66598         <bruno@clisp.org>.
66599
66600 2007-03-18  Bruno Haible  <bruno@clisp.org>
66601
66602         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66603         Suggested by Eric Blake.
66604
66605 2007-03-18  Ben Pfaff  <blp@gnu.org>
66606
66607         * doc/relocatable.texi: Recommend using as prefix a directory
66608         that does not exist and will never be created.  Based on
66609         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66610         and others.
66611
66612 2007-03-17  Bruno Haible  <bruno@clisp.org>
66613
66614         * lib/fchownat.c: Include lchown.h.
66615
66616 2007-03-17  Bruno Haible  <bruno@clisp.org>
66617
66618         Fix endless loop when the given allocated size was > INT_MAX.
66619         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66620         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66621         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66622         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66623         * lib/sprintf.c (sprintf): Likewise.
66624
66625 2007-03-17  Bruno Haible  <bruno@clisp.org>
66626
66627         * tests/test-argp-2.sh (func_compare): Output a context diff.
66628
66629 2007-03-17  Bruno Haible  <bruno@clisp.org>
66630
66631         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66632         locale's decimal-point character.
66633
66634 2007-03-17  Bruno Haible  <bruno@clisp.org>
66635
66636         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66637         before comparing it. Needed because on some platforms (e.g. x86) a
66638         'long double' occupies less bytes than sizeof (long double).
66639
66640 2007-03-17  Bruno Haible  <bruno@clisp.org>
66641
66642         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66643         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66644         * tests/test-getaddrinfo.c (simple): Likewise.
66645         * tests/test-read-file.c (main): Likewise.
66646
66647 2007-03-17  Bruno Haible  <bruno@clisp.org>
66648
66649         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66650
66651 2007-03-17  Bruno Haible  <bruno@clisp.org>
66652
66653         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66654         unused variable.
66655
66656 2007-03-17  Bruno Haible  <bruno@clisp.org>
66657
66658         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66659         * tests/test-c-strncasecmp.c: Likewise.
66660
66661 2007-03-17  Bruno Haible  <bruno@clisp.org>
66662
66663         * modules/stdlib (Depends-on): Add unistd.
66664         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66665         Needed for MacOS X 10.3.
66666
66667 2007-03-17  Bruno Haible  <bruno@clisp.org>
66668
66669         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66670
66671 2007-03-17  Bruno Haible  <bruno@clisp.org>
66672
66673         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66674
66675 2007-03-17  Bruno Haible  <bruno@clisp.org>
66676
66677         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66678         to reflect files copied from gnulib (with or without modifications).
66679         Suggested by Jim Meyering.
66680
66681 2007-03-17  Eric Blake  <ebb9@byu.net>
66682
66683         * NEWS: Document stdlib change from 2007-02-18.
66684
66685 2007-03-17  Jim Meyering  <jim@meyering.net>
66686
66687         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66688         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66689         someone uses a name containing shell meta-characters.
66690         Reported by Alfred M. Szmidt.
66691
66692         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66693
66694 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66695
66696         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66697         and copy gettext configuration files only if configure.ac contains
66698         a use of AM_GNU_GETTEXT_VERSION.
66699
66700 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66701
66702         * build-aux/bootstrap (gnulib_name): New variable.
66703         (gnulib_tool_options): Use it.
66704
66705 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66706
66707         * tests/test-des.c: Use new namespace.
66708
66709 2007-03-15  Bruno Haible  <bruno@clisp.org>
66710
66711         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66712         Reported by James Youngman <jay@gnu.org>.
66713
66714 2007-03-15  Bruno Haible  <bruno@clisp.org>
66715
66716         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66717         declared prototype. Needed with cc on OSF/1 5.1.
66718
66719 2007-03-15  Bruno Haible  <bruno@clisp.org>
66720
66721         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66722         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66723         (struct gl_list_implementation): Add dispose_fn argument to the
66724         'create_empty', 'create' methods.
66725         (struct gl_list_impl_base): Add field 'dispose_fn'.
66726         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66727         argument.
66728         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66729         dispose_fn argument.
66730         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66731         dispose_fn on the dropped values.
66732         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66733         dispose_fn argument.
66734         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66735         dropped values.
66736         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66737         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66738         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66739         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66740         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66741         argument.
66742         (gl_tree_list_free): Call dispose_fn on the dropped values.
66743         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66744         the dropped values.
66745         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66746         Add dispose_fn argument.
66747         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66748         Call dispose_fn on the dropped values.
66749         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66750         Add dispose_fn argument.
66751         (gl_sublist_create): Initialize the 'dispose_fn' field.
66752         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66753         * tests/test-array_list.c (main): Update.
66754         * tests/test-carray_list.c (main): Update.
66755         * tests/test-avltree_list.c (main): Update.
66756         * tests/test-rbtree_list.c (main): Update.
66757         * tests/test-avltreehash_list.c (main): Update.
66758         * tests/test-rbtreehash_list.c (main): Update.
66759         * tests/test-linked_list.c (main): Update.
66760         * tests/test-linkedhash_list.c (main): Update.
66761         * tests/test-array_oset.c (main): Update.
66762
66763 2007-03-15  Bruno Haible  <bruno@clisp.org>
66764
66765         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66766         (gl_oset_create_empty): Add dispose_fn argument.
66767         (struct gl_oset_implementation): Add dispose_fn argument to
66768         'create_empty' method.
66769         (struct gl_oset_impl_base): Add dispose_fn field.
66770         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66771         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66772         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66773         values.
66774         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66775         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66776         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66777         dropped value.
66778         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66779         dropped value.
66780         * tests/test-array_oset.c (main): Update.
66781         * tests/test-avltree_oset.c (main): Update.
66782         * tests/test-rbtree_oset.c (main): Update.
66783         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66784
66785 2007-03-13  Bruno Haible  <bruno@clisp.org>
66786
66787         * tests/test-stdbool.c (i): Update after last patch.
66788
66789 2007-03-12  Bruno Haible  <bruno@clisp.org>
66790
66791         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66792         the iswprint macro. Needed on Solaris 2.5.1.
66793
66794 2007-03-12  Bruno Haible  <bruno@clisp.org>
66795
66796         * tests/test-printf-frexp.c (main): Declare x as volatile.
66797
66798 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66799
66800         * doc/gnulib.texi (Build robot for gnulib): New section.
66801
66802 2007-03-12  Jim Meyering  <jim@meyering.net>
66803
66804         * build-aux/bootstrap: New file.
66805         * build-aux/bootstrap.conf: New file, from coreutils.
66806
66807 2007-03-11  Bruno Haible  <bruno@clisp.org>
66808
66809         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66810
66811 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66812
66813         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66814         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66815         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66816
66817 2007-03-11  Bruno Haible  <bruno@clisp.org>
66818
66819         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66820         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66821
66822 2007-03-11  Bruno Haible  <bruno@clisp.org>
66823
66824         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66825         formula. Needed for SunPRO C 5.0.
66826
66827 2007-03-11  Bruno Haible  <bruno@clisp.org>
66828
66829         * modules/long-options (Depends-on): Add getopt.
66830
66831 2007-03-11  Bruno Haible  <bruno@clisp.org>
66832
66833         * modules/modechange (Depends-on): Add stdbool.
66834
66835 2007-03-11  Bruno Haible  <bruno@clisp.org>
66836
66837         * modules/i-ring (Depends-on): Add stdbool.
66838
66839 2007-03-11  Bruno Haible  <bruno@clisp.org>
66840
66841         * modules/gc-des (Depends-on): Add stdbool.
66842
66843 2007-03-11  Bruno Haible  <bruno@clisp.org>
66844
66845         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66846
66847 2007-03-11  Bruno Haible  <bruno@clisp.org>
66848
66849         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66850
66851 2007-03-11  Bruno Haible  <bruno@clisp.org>
66852
66853         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66854
66855 2007-03-11  Bruno Haible  <bruno@clisp.org>
66856
66857         * lib/vasnprintf.c (sprintf): Undefine.
66858
66859 2007-03-11  Bruno Haible  <bruno@clisp.org>
66860
66861         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66862         initializers in SunPRO C and Compaq C compilers.
66863
66864 2007-03-11  Bruno Haible  <bruno@clisp.org>
66865
66866         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66867         decrementing code ANSI C compliant.
66868
66869 2007-03-11  Bruno Haible  <bruno@clisp.org>
66870
66871         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66872         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66873
66874 2007-03-11  Bruno Haible  <bruno@clisp.org>
66875
66876         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66877         <stdbool.h> substitute doesn't pass.
66878
66879 2007-03-11  Bruno Haible  <bruno@clisp.org>
66880
66881         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66882
66883 2007-03-11  Bruno Haible  <bruno@clisp.org>
66884
66885         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66886         script, for submission to autobuild.josefsson.org.
66887
66888 2007-03-10  Bruno Haible  <bruno@clisp.org>
66889
66890         * modules/canonicalize-lgpl-tests: New file.
66891         * tests/test-canonicalize-lgpl.sh: New file.
66892         * tests/test-canonicalize-lgpl.c: New file.
66893
66894         * modules/c-strcase-tests: New file.
66895         * tests/test-c-strcase.sh: New file.
66896         * tests/test-c-strcasecmp.c: New file.
66897         * tests/test-c-strncasecmp.c: New file.
66898
66899         * modules/atexit-tests: New file.
66900         * tests/test-atexit.sh: New file.
66901         * tests/test-atexit.c: New file.
66902
66903 2007-03-10  Bruno Haible  <bruno@clisp.org>
66904
66905         * tests/test-binary-io.sh: Use temporary filenames that are not so
66906         likely to clash with those of other tests (in a parallel make).
66907         * tests/test-binary-io.c: Likewise.
66908
66909 2007-03-10  Bruno Haible  <bruno@clisp.org>
66910
66911         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66912         fallback; use #error instead.
66913         Suggested by Simon Josefsson.
66914
66915 2007-03-10  Bruno Haible  <bruno@clisp.org>
66916
66917         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66918         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66919         first and the last.
66920
66921 2007-03-10  Bruno Haible  <bruno@clisp.org>
66922
66923         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66924
66925 2007-03-10  Bruno Haible  <bruno@clisp.org>
66926
66927         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66928         "make distcheck".
66929         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66930         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66931         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66932
66933 2007-03-10  Bruno Haible  <bruno@clisp.org>
66934
66935         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66936         variable.
66937         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66938         variable.
66939
66940 2007-03-09  Eric Blake  <ebb9@byu.net>
66941         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66942
66943         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66944         types are not being provided by gnulib.
66945         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66946         types are supported.
66947
66948 2007-03-10  Bruno Haible  <bruno@clisp.org>
66949
66950         * lib/stdio_.h (__attribute__): New macro.
66951         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66952         vsprintf): Specify __attribute__ __format__ for GCC.
66953         Suggested by Eric Blake.
66954
66955 2007-03-09  Bruno Haible  <bruno@clisp.org>
66956
66957         * modules/printf-posix-tests: New file.
66958         * tests/test-printf-posix.sh: New file.
66959         * tests/test-printf-posix.c: New file.
66960
66961         * modules/printf-posix: New file.
66962         * lib/printf.c: New file.
66963         * m4/printf-posix-rpl.m4: New file.
66964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66965         REPLACE_PRINTF.
66966         * lib/stdio_.h (printf): New declaration.
66967         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66968         ____strfmon____): New macros.
66969         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66970         REPLACE_PRINTF.
66971
66972 2007-03-09  Bruno Haible  <bruno@clisp.org>
66973
66974         * tests/test-vasnprintf-posix2.sh: New file.
66975         * tests/test-vasnprintf-posix2.c: New file.
66976         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66977         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66978         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66979
66980         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66981         a locale dependent decimal point, rather than always '.'.
66982
66983 2007-03-09  Eric Blake  <ebb9@byu.net>
66984
66985         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66986         spite of platforms like Tandem/NSK that define it to -1.
66987
66988 2007-03-08  Bruno Haible  <bruno@clisp.org>
66989
66990         * modules/vprintf-posix-tests: New file.
66991         * tests/test-vprintf-posix.sh: New file.
66992         * tests/test-vprintf-posix.c: New file.
66993         * tests/test-printf-posix.h: New file.
66994
66995         * modules/vprintf-posix: New file.
66996         * lib/vprintf.c: New file.
66997         * m4/vprintf-posix.m4: New file.
66998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66999         REPLACE_VPRINTF.
67000         * lib/stdio_.h (vprintf): New declaration.
67001         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67002         REPLACE_VPRINTF.
67003
67004 2007-03-08  Bruno Haible  <bruno@clisp.org>
67005
67006         * modules/fprintf-posix-tests: New file.
67007         * tests/test-fprintf-posix.sh: New file.
67008         * tests/test-fprintf-posix.c: New file.
67009
67010         * modules/fprintf-posix: New file.
67011         * lib/fprintf.c: New file.
67012         * m4/fprintf-posix.m4: New file.
67013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67014         REPLACE_FPRINTF.
67015         * lib/stdio_.h (fprintf): New declaration.
67016         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67017         REPLACE_FPRINTF.
67018
67019 2007-03-08  Bruno Haible  <bruno@clisp.org>
67020
67021         * modules/vfprintf-posix-tests: New file.
67022         * tests/test-vfprintf-posix.sh: New file.
67023         * tests/test-vfprintf-posix.c: New file.
67024         * tests/test-fprintf-posix.h: New file.
67025         * tests/test-fprintf-posix.out: New file.
67026
67027         * modules/vfprintf-posix: New file.
67028         * lib/vfprintf.c: New file.
67029         * m4/vfprintf-posix.m4: New file.
67030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67031         REPLACE_VFPRINTF.
67032         * lib/stdio_.h (vfprintf): New declaration.
67033         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67034         REPLACE_VFPRINTF.
67035
67036 2007-03-08  Bruno Haible  <bruno@clisp.org>
67037
67038         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67039
67040 2007-03-08  Bruno Haible  <bruno@clisp.org>
67041
67042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67043         instead of 'expr' invocations.
67044         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67045         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67046         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67048         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67049         Suggested by Paul Eggert.
67050
67051 2007-03-08  Bruno Haible  <bruno@clisp.org>
67052
67053         * modules/fseterr-tests: New file.
67054         * tests/test-fseterr.c: New file.
67055
67056         * modules/fseterr: New file.
67057         * lib/fseterr.h: New file.
67058         * lib/fseterr.c: New file.
67059
67060 2007-03-08  Bruno Haible  <bruno@clisp.org>
67061
67062         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67063         * lib/getopt_.h: Likewise.
67064         * lib/mbswidth.h: Likewise.
67065         * lib/setenv.h: Likewise.
67066         * lib/vasnprintf.h: Likewise.
67067         * lib/vasprintf.h: Likewise.
67068         * lib/verror.h: Likewise.
67069         * lib/xsetenv.h: Likewise.
67070         * lib/xvasprintf.h: Likewise.
67071
67072 2007-03-08  Jim Meyering  <jim@meyering.net>
67073
67074         * users.txt: Add parted.
67075
67076         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67077
67078 2007-03-07  Bruno Haible  <bruno@clisp.org>
67079
67080         * m4/printf.m4: Make the shell script snippets copy&pastable.
67081
67082 2007-03-02  Bruno Haible  <bruno@clisp.org>
67083
67084         * lib/netinet_in_.h: New file.
67085         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67086         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67087         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67088         (Depends-on): Add absolute-header.
67089         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67090         into netinet/in.h.
67091
67092 2007-03-03  Bruno Haible  <bruno@clisp.org>
67093
67094         * lib/sys_select_.h: New file.
67095         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67096         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67097         * modules/sys_select (Files): Add lib/sys_select_.h.
67098         (Depends-on): Add absolute-header.
67099         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67100         into sys/select.h.
67101
67102 2007-03-02  Bruno Haible  <bruno@clisp.org>
67103
67104         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67105         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67106         values.
67107         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67108         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67109         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67110         * modules/sys_socket (Depends-on): Add absolute-header.
67111         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67112         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67113         (Include): Remove requirement of inclusion of <sys/types.h>.
67114
67115 2007-03-02  Bruno Haible  <bruno@clisp.org>
67116
67117         * lib/byteswap_.h (bswap_32): Fix formula.
67118
67119 2007-03-06  Bruno Haible  <bruno@clisp.org>
67120
67121         * modules/sprintf-posix-tests: New file.
67122         * tests/test-sprintf-posix.c: New file.
67123
67124         * modules/sprintf-posix: New file.
67125         * lib/sprintf.c: New file.
67126         * m4/sprintf-posix.m4: New file.
67127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67128         REPLACE_SPRINTF.
67129         * lib/stdio_.h (sprintf): New declaration.
67130         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67131         REPLACE_SPRINTF.
67132
67133 2007-03-06  Bruno Haible  <bruno@clisp.org>
67134
67135         * modules/vsprintf-posix-tests: New file.
67136         * tests/test-vsprintf-posix.c: New file.
67137         * tests/test-sprintf-posix.h: New file.
67138
67139         * modules/vsprintf-posix: New file.
67140         * lib/vsprintf.c: New file.
67141         * m4/vsprintf-posix.m4: New file.
67142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67143         REPLACE_VSPRINTF.
67144         * lib/stdio_.h (vsprintf): New declaration.
67145         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67146         REPLACE_VSPRINTF.
67147
67148 2007-03-06  Bruno Haible  <bruno@clisp.org>
67149
67150         * modules/vsnprintf (Depend-on): Remove minmax.
67151
67152 2007-03-06  Bruno Haible  <bruno@clisp.org>
67153
67154         * modules/snprintf-posix-tests: New file.
67155         * tests/test-snprintf-posix.c: New file.
67156
67157         * modules/snprintf-posix: New file.
67158         * m4/snprintf-posix.m4: New file.
67159         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67160         gl_FUNC_SNPRINTF.
67161         (gl_FUNC_SNPRINTF): Invoke it.
67162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67163         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67164         is set.
67165         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67166
67167 2007-03-06  Bruno Haible  <bruno@clisp.org>
67168
67169         * modules/vsnprintf-posix-tests: New file.
67170         * tests/test-vsnprintf-posix.c: New file.
67171         * tests/test-snprintf-posix.h: New file.
67172
67173         * modules/vsnprintf-posix: New file.
67174         * m4/vsnprintf-posix.m4: New file.
67175         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67176         gl_FUNC_VSNPRINTF.
67177         (gl_FUNC_VSNPRINTF): Invoke it.
67178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67179         * lib/stdio_.h (vsnprintf): Define as a replacement if
67180         REPLACE_VSNPRINTF is set.
67181         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67182
67183 2007-03-06  Bruno Haible  <bruno@clisp.org>
67184
67185         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67186         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67187
67188 2007-03-06  Bruno Haible  <bruno@clisp.org>
67189
67190         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67191         (asinl): Declare also if HAVE_DECL_ASINL is set.
67192         (atanl): Declare also if HAVE_DECL_ATANL is set.
67193         (ceill): Declare also if HAVE_DECL_CEILL is set.
67194         (cosl): Declare also if HAVE_DECL_COSL is set.
67195         (expl): Declare also if HAVE_DECL_EXPL is set.
67196         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67197         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67198         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67199         (logl): Declare also if HAVE_DECL_LOGL is set.
67200         (sinl): Declare also if HAVE_DECL_SINL is set.
67201         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67202         (tanl): Declare also if HAVE_DECL_TANL is set.
67203         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67205         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67206         declaration of frexpl, ldexpl.
67207         * modules/printf-frexpl (Depends-on): Add math.
67208         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67209
67210 2007-03-05  Bruno Haible  <bruno@clisp.org>
67211
67212         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67213         frexpl and ldexpl are declared.
67214         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67215
67216 2007-03-05  Bruno Haible  <bruno@clisp.org>
67217
67218         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67219         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67220
67221 2007-03-05  Bruno Haible  <bruno@clisp.org>
67222
67223         * lib/stdio_.h: Include <stddef.h>.
67224
67225 2007-03-05  Bruno Haible  <bruno@clisp.org>
67226
67227         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67228
67229 2007-03-05  Bruno Haible  <bruno@clisp.org>
67230
67231         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67232         NetBSD 4, from Ralf Wildenhues.
67233
67234 2007-03-04  Bruno Haible  <bruno@clisp.org>
67235
67236         * lib/vasprintf.h: Update #if logic for the case when the functions
67237         exist but are overridden.
67238
67239 2007-03-04  Bruno Haible  <bruno@clisp.org>
67240
67241         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67242         implementations: glibc-2.4 and MacOS X 10.3.
67243         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67244         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67245         * tests/test-vasprintf-posix.c (test_function): Likewise.
67246
67247 2007-03-04  Bruno Haible  <bruno@clisp.org>
67248
67249         * modules/vasprintf-posix-tests: New file.
67250         * tests/test-vasprintf-posix.c: New file.
67251
67252         * modules/vasprintf-posix: New file.
67253         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67254         defined.
67255         * m4/vasprintf-posix.m4: New file.
67256         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67257         gl_FUNC_VASPRINTF.
67258         (gl_FUNC_VASPRINTF): Invoke it.
67259         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67260         here.
67261         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67262
67263 2007-03-04  Bruno Haible  <bruno@clisp.org>
67264
67265         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67266         REPLACE_GETTIMEOFDAY.
67267         * modules/sys_time (Makefile.am): Likewise.
67268         * m4/sys_time_h.m4: Likewise.
67269         * m4/gettimeofday.m4: Likewise.
67270
67271 2007-03-04  Bruno Haible  <bruno@clisp.org>
67272
67273         * modules/vasnprintf-posix-tests: New file.
67274         * tests/test-vasnprintf-posix.c: New file.
67275
67276         * modules/vasnprintf-posix: New file.
67277         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67278         printf-frexpl.h.
67279         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67280         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67281         REPLACE_VASNPRINTF is defined.
67282         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67283         gl_FUNC_VASNPRINTF.
67284         (gl_FUNC_VASNPRINTF): Invoke it.
67285         * m4/vasnprintf-posix.m4: New file.
67286         * m4/printf.m4: New file.
67287
67288 2007-03-04  Bruno Haible  <bruno@clisp.org>
67289
67290         Compile progreloc.c only if --enable-relocatable is specified.
67291         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67292         if --enable-relocatable was specified.
67293         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67294         lib_SOURCES.
67295
67296 2007-03-04  Jim Meyering  <jim@meyering.net>
67297
67298         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67299         Use it consistently, rather than enumerating errno constants.
67300
67301 2007-03-04  Bruno Haible  <bruno@clisp.org>
67302
67303         * modules/xvasprintf-tests: New file.
67304         * tests/test-xvasprintf.c: New file.
67305
67306         * modules/vasprintf-tests: New file.
67307         * tests/test-vasprintf.c: New file.
67308
67309         * modules/vasnprintf-tests: New file.
67310         * tests/test-vasnprintf.c: New file.
67311
67312         * modules/vsnprintf-tests: New file.
67313         * tests/test-vsnprintf.c: New file.
67314
67315         * modules/snprintf-tests: New file.
67316         * tests/test-snprintf.c: New file.
67317
67318 2007-03-04  Bruno Haible  <bruno@clisp.org>
67319
67320         Compile relocatable.c only if --enable-relocatable is specified.
67321         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67322         gl_RELOCATABLE_LIBRARY.
67323         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67324         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67325         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67326         gl_RELOCATABLE_LIBRARY.
67327         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67328         (Makefile.am): Remove lib_SOURCES.
67329         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67330         gl_RELOCATABLE_LIBRARY.
67331         (Makefile.am): Remove lib_SOURCES.
67332         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67333         always.
67334         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67335         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67336
67337 2007-03-04  Bruno Haible  <bruno@clisp.org>
67338
67339         * modules/argmatch-tests: New file.
67340         * tests/test-argmatch.c: New file.
67341
67342         * tests/test-allocsa.c (main): Halve the number of loop runs.
67343
67344         * modules/alloca-opt-tests: New file.
67345         * tests/test-alloca-opt.c: New file.
67346
67347 2007-03-04  Jim Meyering  <jim@meyering.net>
67348
67349         Work around difference between Linux ACLs and Solaris 10 ZFS.
67350         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67351         for EINVAL.
67352
67353 2007-03-03  Bruno Haible  <bruno@clisp.org>
67354
67355         * modules/relocatable-prog (Depends-on): Add back progreloc's
67356         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67357
67358 2007-03-03  Bruno Haible  <bruno@clisp.org>
67359
67360         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67361         * modules/relocatable-lib: New file.
67362
67363 2007-03-03  Bruno Haible  <bruno@clisp.org>
67364
67365         * modules/relocatable-prog: Renamed from modules/relocatable.
67366         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67367
67368 2007-03-03  Bruno Haible  <bruno@clisp.org>
67369
67370         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67371         m4/relocatable-lib.m4.
67372         (Depends-on): Remove 'relocatable'.
67373         (configure.ac): Add gl_RELOCATABLE_NOP.
67374
67375 2007-03-03  Bruno Haible  <bruno@clisp.org>
67376
67377         * modules/relocatable-prog-wrapper: New file.
67378         * modules/relocatable (Depends-on): Add it. Remove all other
67379         dependencies except progname.
67380         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67381
67382         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67383         (gl_FUNC_STRERROR): Nop.
67384         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67385
67386         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67387         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67388
67389         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67390         (gl_FUNC_READLINK): Update.
67391
67392         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67393
67394 2007-03-03  Bruno Haible  <bruno@clisp.org>
67395
67396         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67397         * modules/xreadlink (Depends-on): Add unistd.
67398         * modules/xreadlink-with-size (Depends-on): Likewise.
67399
67400 2007-03-03  Bruno Haible  <bruno@clisp.org>
67401
67402         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67403         extracted from gt_FUNC_SETENV.
67404         (gt_FUNC_SETENV): Remove macro.
67405         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67406         remove gt_FUNC_SETENV.
67407
67408 2007-03-03  Bruno Haible  <bruno@clisp.org>
67409
67410         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67411         ENABLE_RELOCATABLE here.
67412         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67413
67414 2007-03-03  Bruno Haible  <bruno@clisp.org>
67415
67416         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67417         * tests/test-rbtreehash_list.c: Include progname.h.
67418         (main): Call set_program_name.
67419
67420         * modules/rbtree-oset-tests (Depends-on): Add progname.
67421         * tests/test-rbtree_oset.c: Include progname.h.
67422         (main): Call set_program_name.
67423
67424         * modules/rbtree-list-tests (Depends-on): Add progname.
67425         * tests/test-rbtree_list.c: Include progname.h.
67426         (main): Call set_program_name.
67427
67428         * modules/linked-list-tests (Depends-on): Add progname.
67429         * tests/test-linked_list.c: Include progname.h.
67430         (main): Call set_program_name.
67431
67432 2007-03-03  Bruno Haible  <bruno@clisp.org>
67433
67434         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67435         All uses of __restrict changed to _Restrict_.
67436         * lib/glob_.h (__restrict): Remove macro.
67437
67438 2007-03-02  Bruno Haible  <bruno@clisp.org>
67439
67440         * modules/gettext (configure.ac): Require gettext infrastructure
67441         from version 0.16.1.
67442
67443 2007-03-02  Bruno Haible  <bruno@clisp.org>
67444
67445         * modules/linkedhash-list-tests (Depends-on): Add progname.
67446         * tests/test-linkedhash_list.c: Include progname.h.
67447         (main): Call set_program_name.
67448
67449         * modules/carray-list-tests (Depends-on): Add progname.
67450         * tests/test-carray_list.c: Include progname.h.
67451         (main): Call set_program_name.
67452
67453         * modules/avltreehash-list-tests (Depends-on): Add progname.
67454         * tests/test-avltreehash_list.c: Include progname.h.
67455         (main): Call set_program_name.
67456
67457         * modules/avltree-oset-tests (Depends-on): Add progname.
67458         * tests/test-avltree_oset.c: Include progname.h.
67459         (main): Call set_program_name.
67460
67461         * modules/avltree-list-tests (Depends-on): Add progname.
67462         * tests/test-avltree_list.c: Include progname.h.
67463         (main): Call set_program_name.
67464
67465         * modules/array-oset-tests (Depends-on): Add progname.
67466         * tests/test-array_oset.c: Include progname.h.
67467         (main): Call set_program_name.
67468
67469         * modules/array-list-tests (Depends-on): Add progname.
67470         * tests/test-array_list.c: Include progname.h.
67471         (main): Call set_program_name.
67472
67473         * modules/argp-tests (Depends-on): Add progname.
67474         * tests/test-argp.c: Include argp.h first. Include progname.h.
67475         (main): Call set_program_name.
67476
67477 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67478
67479         * doc/gnulib-tool.texi (Initial import): Reword description of
67480         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67481         limited effect even if defined after the first system include.
67482
67483 2007-03-01  Bruno Haible  <bruno@clisp.org>
67484
67485         * build-aux/config.libpath: Update to libtool-1.5.22.
67486         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67487
67488 2007-03-01  Bruno Haible  <bruno@clisp.org>
67489
67490         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67491         foo_CFLAGS.
67492         Reported by Ralf Wildenhues.
67493
67494 2007-03-01  Bruno Haible  <bruno@clisp.org>
67495
67496         * build-aux/install-reloc: Remove object files left over by some
67497         compilers.
67498         Reported by Ralf Wildenhues.
67499
67500 2007-03-01  Bruno Haible  <bruno@clisp.org>
67501
67502         * build-aux/install-reloc: Break long lines.
67503
67504 2007-03-01  Bruno Haible  <bruno@clisp.org>
67505
67506         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67507         Reported by Ralf Wildenhues.
67508
67509 2007-03-01  Bruno Haible  <bruno@clisp.org>
67510
67511         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67512         include ordering constraints.
67513
67514 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67515
67516         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67517         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67518         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67519         as another example.
67520         * lib/time_.h: Fix misspelling.
67521         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67522         Require gl_HEADER_TIME_H_DEFAULTS.
67523         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67524         * m4/time_r.m4 (gl_TIME_R): Likewise.
67525         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67526
67527 2007-03-01  Bruno Haible  <bruno@clisp.org>
67528
67529         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67530         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67531
67532 2007-03-01  Jim Meyering  <jim@meyering.net>
67533
67534         * modules/xreadlink (Maintainer): Add my name.
67535         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67536
67537 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67538             Bruno Haible  <bruno@clisp.org>
67539
67540         * build-aux/install-reloc: Compile also c-ctype.c.
67541         * build-aux/relocatable.sh.in: New file.
67542         * doc/relocatable.texi: New file.
67543         * doc/relocatable-maint.texi: New file.
67544         * doc/gnulib.texi: Include relocatable-maint.texi.
67545         * lib/progreloc.c: Include unistd.h unconditionally.
67546         * lib/relocwrapper.c: Include unistd.h unconditionally.
67547         Include c-ctype.h.
67548         (add_dotbin): Use c_tolower.
67549         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67550         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67551         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67552         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67553         to m4/relocatable-lib.m4.
67554         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67555         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67556         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67557         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67558         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67559         * modules/relocatable: New file.
67560         * modules/relocatable-lib: New file.
67561         * modules/relocatable-script: New file.
67562
67563 2007-02-28  Bruno Haible  <bruno@clisp.org>
67564
67565         Import --enable-relocatable infrastructure.
67566         * build-aux/config.libpath: New file, from GNU gettext.
67567         * build-aux/install-reloc: New file, from GNU gettext.
67568         * build-aux/reloc-ldflags: New file, from GNU gettext.
67569         * lib/relocatable.h: New file, from GNU gettext.
67570         * lib/relocatable.c: New file, from GNU gettext.
67571         * lib/relocwrapper.c: New file, from GNU gettext.
67572         * m4/relocatable.m4: New file, from GNU gettext.
67573
67574 2007-02-28  Bruno Haible  <bruno@clisp.org>
67575
67576         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67577
67578         * modules/xreadlink: New file, from GNU gettext with modifications.
67579         * lib/xreadlink.c: New file, from GNU gettext.
67580         * lib/xreadlink.h: Add comments.
67581         (xreadlink): New declaration.
67582
67583         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67584         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67585         lib/xreadlink-with-size.c.
67586         (configure.ac): Remove gl_XREADLINK invocation.
67587         (Makefile.am): Augment lib_SOURCES.
67588         * m4/xreadlink.m4: Remove file.
67589         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67590         (xreadlink_with_size): Renamed from xreadink.
67591         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67592         * modules/canonicalize (Depends-on): Replace xreadlink with
67593         xreadlink-with-size.
67594         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67595
67596 2007-02-25  Jim Meyering  <jim@meyering.net>
67597
67598         * build-aux/announce-gen: When complaining about excess arguments,
67599         list them.
67600
67601 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67602
67603         * README: Document signed integer overflow situation more
67604         accurately.
67605
67606 2007-02-25  Bruno Haible  <bruno@clisp.org>
67607
67608         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67609         'a' or 'A' conversion.
67610
67611 2007-02-25  Bruno Haible  <bruno@clisp.org>
67612
67613         * modules/filename: Renamed from modules/pathname.
67614         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67615         lib/concatpath.c with lib/concat-filename.c.
67616         (Makefile.am): Update.
67617         (Include): Replace pathname.h with filename.h.
67618         * lib/filename.h: Renamed from lib/pathname.h.
67619         (concatenated_filename): Renamed from concatenated_pathname.
67620         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67621         (concatenated_filename): Renamed from concatenated_pathname.
67622         * lib/findprog.c: Include filename.h instead of pathname.h.
67623         (find_in_path): Update.
67624         * lib/javacomp.c: Include filename.h instead of pathname.h.
67625         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67626         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67627         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67628         is_oldgcj_14_13_usable, is_javac_usable): Update.
67629         * lib/javaexec.c: Include filename.h instead of pathname.h.
67630         (execute_java_class): Update.
67631         * modules/findprog: Update.
67632         * modules/javacomp: Update.
67633         * modules/javaexec: Update.
67634         * MODULES.html.sh (File system functions): Add 'filename', remove
67635         'pathname'.
67636
67637 2007-02-25  Bruno Haible  <bruno@clisp.org>
67638
67639         * modules/printf-frexpl-tests: New file.
67640         * tests/test-printf-frexpl.c: New file.
67641
67642         * modules/printf-frexpl: New file.
67643         * lib/printf-frexpl.h: New file.
67644         * lib/printf-frexpl.c: New file.
67645         * m4/printf-frexpl.m4: New file.
67646
67647 2007-02-25  Bruno Haible  <bruno@clisp.org>
67648
67649         * modules/printf-frexp-tests: New file.
67650         * tests/test-printf-frexp.c: New file.
67651
67652         * modules/printf-frexp: New file.
67653         * lib/printf-frexp.h: New file.
67654         * lib/printf-frexp.c: New file.
67655         * m4/printf-frexp.m4: New file.
67656
67657 2007-02-25  Bruno Haible  <bruno@clisp.org>
67658
67659         Assume automake >= 1.10 for the tests.
67660         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67661         * modules/arctwo-tests: Likewise.
67662         * modules/argp-tests: Likewise.
67663         * modules/avltree-list-tests: Likewise.
67664         * modules/avltree-oset-tests: Likewise.
67665         * modules/avltreehash-list-tests: Likewise.
67666         * modules/carray-list-tests: Likewise.
67667         * modules/crc-tests: Likewise.
67668         * modules/des-tests: Likewise.
67669         * modules/gc-arcfour-tests: Likewise.
67670         * modules/gc-arctwo-tests: Likewise.
67671         * modules/gc-des-tests: Likewise.
67672         * modules/gc-hmac-md5-tests: Likewise.
67673         * modules/gc-hmac-sha1-tests: Likewise.
67674         * modules/gc-md2-tests: Likewise.
67675         * modules/gc-md4-tests: Likewise.
67676         * modules/gc-md5-tests: Likewise.
67677         * modules/gc-pbkdf2-sha1-tests: Likewise.
67678         * modules/gc-rijndael-tests: Likewise.
67679         * modules/gc-sha1-tests: Likewise.
67680         * modules/gc-tests: Likewise.
67681         * modules/getaddrinfo-tests: Likewise.
67682         * modules/hmac-md5-tests: Likewise.
67683         * modules/hmac-sha1-tests: Likewise.
67684         * modules/linked-list-tests: Likewise.
67685         * modules/linkedhash-list-tests: Likewise.
67686         * modules/lock-tests: Likewise.
67687         * modules/md2-tests: Likewise.
67688         * modules/md4-tests: Likewise.
67689         * modules/md5-tests: Likewise.
67690         * modules/rbtree-list-tests: Likewise.
67691         * modules/rbtree-oset-tests: Likewise.
67692         * modules/rbtreehash-list-tests: Likewise.
67693         * modules/read-file-tests: Likewise.
67694         * modules/rijndael-tests: Likewise.
67695         * modules/stdint-tests: Likewise.
67696         * modules/tls-tests: Likewise.
67697
67698 2007-02-24  Bruno Haible  <bruno@clisp.org>
67699
67700         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67701         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67702         function; instead check whether isnan with a double argument links.
67703         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67704         function; instead check whether isnan with a 'long double' argument
67705         links.
67706         Reported by Eric Blake <ebb9@byu.net>.
67707
67708 2007-02-24  Bruno Haible  <bruno@clisp.org>
67709
67710         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67711         defined.
67712         * lib/isnanl.c: Remove all code. Just include isnan.c.
67713         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67714
67715 2007-02-25  Jim Meyering  <jim@meyering.net>
67716
67717         Avoid conflicting types for 'unsetenv' on FreeBSD.
67718         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67719         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67720         in stdlib.h.
67721
67722 2007-02-24  Bruno Haible  <bruno@clisp.org>
67723
67724         * modules/isnanl-nolibm-tests: New file.
67725         * tests/test-isnanl.c: New file.
67726
67727         * modules/isnanl-nolibm: New file.
67728         * lib/isnanl.h: New file.
67729         * lib/isnanl.c: New file.
67730         * m4/isnanl.m4: New file.
67731
67732 2007-02-24  Bruno Haible  <bruno@clisp.org>
67733
67734         * modules/isnan-nolibm-tests: New file.
67735         * tests/test-isnan.c: New file.
67736
67737         * modules/isnan-nolibm: New file.
67738         * lib/isnan.h: New file.
67739         * lib/isnan.c: New file.
67740         * m4/isnan.m4: New file.
67741
67742 2007-02-24  Bruno Haible  <bruno@clisp.org>
67743
67744         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67745         assume that an exponent fits in 20 bits.
67746
67747 2007-02-24  Jim Meyering  <jim@meyering.net>
67748
67749         * m4/regex.m4: Update the description of the configure-time option,
67750         --without-included-regex, to state accurately what the defaults are,
67751         and perhaps to give people an idea why using this option is risky.
67752
67753 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67754
67755         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67756         loops on small arguments.  This attempts to avoid the problem
67757         Bruno Haible reported for AIX 4.3.2 in
67758         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67759
67760 2007-02-23  Bruno Haible  <bruno@clisp.org>
67761
67762         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67763         Needed for help2man.
67764
67765 2007-02-23  Karl Berry  <karl@gnu.org>
67766
67767         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67768         exists, foo.h should be cvs-ignored, not committed.
67769
67770 2007-02-23  Eric Blake  <ebb9@byu.net>
67771
67772         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67773         * lib/stat-time.h (includes): Likewise.
67774         * lib/utimecmp.c (includes): Likewise.
67775         * lib/utimens.h (includes): Likewise.
67776         * lib/getdate.y (includes): Also include "timespec.h" for use
67777         internal to the module.
67778         * modules/utimens (Depends-on): Revert yesterday's patch.
67779         * modules/nanosleep (Depends-on): Add missing dependency.
67780
67781 2007-02-22  Bruno Haible  <bruno@clisp.org>
67782
67783         * lib/glob.c: Don't include getlogin_r.h.
67784
67785 2007-02-22  Jim Meyering  <jim@meyering.net>
67786
67787         * modules/utimens (Depends-on): Add timespec, required for
67788         utimens.h's inclusion of timespec.h.
67789
67790 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67791
67792         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67793         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67794         Schwab in
67795         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67796         I'll try to think of a better way to fix the Solaris problem.
67797
67798         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67799         like glibc; on Solaris 10, it fails with errno == EINVAL.
67800         POSIX says the behavior is unspecified if the first argument is NULL,
67801         so play it safe and never pass NULL to the system getcwd.
67802
67803 2007-02-21  Jim Meyering  <jim@meyering.net>
67804
67805         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67806         of gettimeofday.  It would conflict with the one now always
67807         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67808         an IRIX 6.5 build failure.
67809
67810 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67811
67812         Minor fixups to port to Solaris 10 with Sun C 5.8.
67813         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67814         * modules/getcwd (Depends-on): Add dirfd.
67815         * lib/putenv.c (putenv): #undef it.
67816         (rpl_putenv): New decl.
67817         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67818
67819 2007-02-20  Bruno Haible  <bruno@clisp.org>
67820
67821         * modules/stdio-tests: New file.
67822         * tests/test-stdio.c: New file.
67823
67824         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67825         (Depends-on): Add stdio.
67826         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67827         (Include): Use <stdio.h> instead of vsnprintf.h.
67828         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67829         HAVE_DECL_VSNPRINTF.
67830         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67831
67832         * modules/snprintf (Files): Remove lib/snprintf.h.
67833         (Depends-on): Add stdio.
67834         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67835         (Include): Use <stdio.h> instead of snprintf.h.
67836         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67837         HAVE_DECL_SNPRINTF.
67838         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67839         * lib/getaddrinfo.c: Likewise.
67840
67841         * modules/stdio: New file.
67842         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67843         * lib/snprintf.h: Remove file.
67844         * lib/vsnprintf.h: Remove file.
67845         * lib/.cppi-disable: Remove snprintf.h.
67846         * m4/stdio_h.m4: New file.
67847         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67848
67849 2007-02-20  Jim Meyering  <jim@meyering.net>
67850
67851         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67852         used by e.g., mingw.  From Bruno Haible.
67853
67854 2007-02-19  Bruno Haible  <bruno@clisp.org>
67855
67856         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67857         warnings.
67858         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67859
67860 2007-02-19  Bruno Haible  <bruno@clisp.org>
67861
67862         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67863         from mingw users.
67864
67865 2007-02-19  Bruno Haible  <bruno@clisp.org>
67866
67867         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67868         warnings.
67869         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67870
67871 2007-02-19  Jim Meyering  <jim@meyering.net>
67872
67873         Don't use FD after a successful "fdopendir (fd)".
67874         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67875         Reset it by calling dirfd on the just-obtained DIR*.
67876
67877         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67878         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67879
67880 2007-02-18  Bruno Haible  <bruno@clisp.org>
67881
67882         * lib/readlink.c: Include <unistd.h>.
67883         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67884         HAVE_READLINK.
67885         * modules/readlink (Depends-on): Add unistd.
67886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67887         (Include): Add <unistd.h>.
67888
67889         * lib/getlogin_r.h: Remove file.
67890         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67891         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67892         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67893         HAVE_DECL_GETLOGIN_R.
67894         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67895         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67896         (Include): Use <unistd.h> instead of getlogin_r.h.
67897
67898         * lib/getcwd.h: Remove file.
67899         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67900         * lib/xgetcwd.c: Likewise.
67901         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67902         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67903         * modules/getcwd (Files): Remove lib/getcwd.h.
67904         (Depends-on): Add unistd.
67905         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67906         (Include): Use <unistd.h> instad of getcwd.h.
67907
67908         * lib/ftruncate.c: Include <unistd.h> first.
67909         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67910         Set HAVE_FTRUNCATE.
67911         * modules/ftruncate (Depends-on): Add unistd.
67912         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67913
67914         * lib/fchdir.c: Include <unistd.h> first.
67915         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67916         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67917         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67918         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67919         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67920
67921         * lib/dup2.c: Include <unistd.h> first.
67922         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67923         HAVE_DUP2.
67924         * modules/dup2 (Depends-on): Add unistd.
67925         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67926
67927         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67928         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67929         REPLACE_CHOWN. Don't define chown as a macro here.
67930         * modules/chown (Depends-on): Add unistd.
67931         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67932
67933         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67934         Add definition for GL_LINK_WARNING.
67935         (chown, dup2): New declarations.
67936         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67937         link warning.
67938         (ftruncate): New declaration.
67939         (getcwd): New declaration, taken from old getcwd.h.
67940         (getlogin_r): New declaration, taken from old getlogin_r.h.
67941         (readlink): New declaration.
67942         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67943         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67944         (gl_PREREQ_UNISTD): Remove macro.
67945         (gl_UNISTD_MODULE_INDICATOR): New macro.
67946         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67947         many new variables. Don't set UNISTD_H.
67948         * modules/unistd (Description): Change.
67949         (Depends-on): Add link-warning.
67950         (configure.ac): Update.
67951         (Makefile.am): Create unistd.h always. Substitute many new variables
67952         into it.
67953
67954 2007-02-18  Bruno Haible  <bruno@clisp.org>
67955
67956         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67957         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67958         HAVE_GETSUBOPT.
67959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67960         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67961         * lib/getsubopt.h: Remove file.
67962         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67963         (Depends-on): Add stdlib.
67964         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67965         (Includes): Use <stdlib.h> instead of getsubopt.h.
67966         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67967         Set HAVE_GETSUBOPT.
67968         * lib/getsubopt.c: Don't include getsubopt.h.
67969
67970 2007-02-18  Bruno Haible  <bruno@clisp.org>
67971
67972         * modules/fchdir (Depends-on): Add dup2.
67973
67974 2007-02-18  Bruno Haible  <bruno@clisp.org>
67975
67976         * lib/stdlib_.h: Handle glibc's special invocation convention
67977         specially.
67978
67979 2007-02-18  Bruno Haible  <bruno@clisp.org>
67980
67981         * modules/stdlib-tests: New file.
67982         * tests/test-stdlib.c: New file.
67983
67984         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67985         (Depends-on): Add stdlib.
67986         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67987         (Includes): Use <stdlib.h> instead of mkstemp.h.
67988         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67989         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67990         * lib/mkstemp.c: Don't include mkstemp.h.
67991         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67992         * lib/stdlib--.h: Don't include mkstemp.h.
67993
67994         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67995         (Depends-on): Add stdlib.
67996         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67997         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67998         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67999         HAVE_MKDTEMP.
68000         * lib/mkdtemp.c: Don't include mkdtemp.h.
68001         * lib/clean-temp.c: Don't include mkdtemp.h.
68002
68003         * modules/exit (Files): Remove lib/exit.h.
68004         (Depends-on): Add stdlib.
68005         (Makefile.am): Remove lib_SOURCES.
68006         (Include): Use <stdlib.h> instead of exit.h.
68007         * lib/argmatch.c: Don't include exit.h.
68008         * lib/execute.c: Likewise.
68009         * lib/pagealign_alloc.c: Likewise.
68010         * lib/pipe.c: Likewise.
68011         * lib/wait-process.c: Likewise.
68012         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68013         * lib/exitfail.c: Likewise.
68014         * lib/savewd.c: Likewise.
68015         * lib/xsetenv.c: Likewise.
68016
68017         * modules/stdlib: New file.
68018         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68019         and extra comments about mkstemp().
68020         * lib/exit.h: Remove file.
68021         * lib/mkdtemp.h: Remove file.
68022         * lib/mkstemp.h: Remove file.
68023         * m4/stdlib_h.m4: New file.
68024         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68025
68026 2007-02-18  Bruno Haible  <bruno@clisp.org>
68027
68028         * modules/math-tests: New file.
68029         * tests/test-math.c: New file.
68030
68031         * modules/math: New file.
68032         * modules/mathl (Files): Remove lib/mathl.h.
68033         (Depends-on): Add math.
68034         (Makefile.am): Don't mention mathl.h.
68035         (Include): Use <math.h> instead of mathl.h.
68036         * lib/math_.h: New file.
68037         * lib/mathl.h: Remove file.
68038         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68039         mathl.h.
68040         * lib/asinl.c: Likewise.
68041         * lib/atanl.c: Likewise.
68042         * lib/ceill.c: Likewise.
68043         * lib/cosl.c: Likewise.
68044         * lib/expl.c: Likewise.
68045         * lib/floorl.c: Likewise.
68046         * lib/frexpl.c: Likewise.
68047         * lib/ldexpl.c: Likewise.
68048         * lib/logl.c: Likewise.
68049         * lib/sincosl.c: Likewise.
68050         * lib/sinl.c: Likewise.
68051         * lib/sqrtl.c: Likewise.
68052         * lib/tanl.c: Likewise.
68053         * lib/trigl.c: Likewise.
68054         * m4/math_h.m4: New file.
68055         * MODULES.html.sh (Mathematics): Add math.
68056
68057 2007-02-17  Bruno Haible  <bruno@clisp.org>
68058
68059         * modules/wctype-tests: New file.
68060         * tests/test-wctype.c: New file.
68061
68062         * modules/wchar-tests: New file.
68063         * tests/test-wchar.c: New file.
68064
68065         * modules/unistd-tests: New file.
68066         * tests/test-unistd.c: New file.
68067
68068         * modules/time-tests: New file.
68069         * tests/test-time.c: New file.
68070
68071         * modules/sysexits-tests: New file.
68072         * tests/test-sysexits.c: New file.
68073
68074         * modules/sys_time-tests: New file.
68075         * tests/test-sys_time.c: New file.
68076
68077         * modules/sys_stat-tests: New file.
68078         * tests/test-sys_stat.c: New file.
68079
68080         * modules/sys_socket-tests: New file.
68081         * tests/test-sys_socket.c: New file.
68082
68083         * modules/sys_select-tests: New file.
68084         * tests/test-sys_select.c: New file.
68085
68086         * modules/string-tests: New file.
68087         * tests/test-string.c: New file.
68088
68089         * modules/stdbool-tests: New file.
68090         * tests/test-stdbool.c: New file.
68091
68092         * modules/netinet_in-tests: New file.
68093         * tests/test-netinet_in.c: New file.
68094
68095         * modules/inttypes-tests: New file.
68096         * tests/test-inttypes.c: New file.
68097
68098         * modules/fcntl-tests: New file.
68099         * tests/test-fcntl.c: New file.
68100
68101         * modules/byteswap-tests: New file.
68102         * tests/test-byteswap.c: New file.
68103
68104         * modules/arpa_inet-tests: New file.
68105         * tests/test-arpa_inet.c: New file.
68106
68107 2007-02-17  Bruno Haible  <bruno@clisp.org>
68108
68109         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68110         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68111         if the corresponding module is not enabled. Emit link warnings if
68112         the function is used nevertheless.
68113         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68114         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68115         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68116         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68117         * modules/inttypes (Depends-on): Add link-warning.
68118         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68119         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68120         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68121         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68122         * modules/imaxdiv (configure.ac): Likewise.
68123         * modules/strtoimax (configure.ac): Likewise.
68124         * modules/strtoumax (configure.ac): Likewise.
68125
68126 2007-02-17  Bruno Haible  <bruno@clisp.org>
68127
68128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68129         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68130         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68131         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68132
68133 2007-02-17  Bruno Haible  <bruno@clisp.org>
68134
68135         * modules/link-warning: New file.
68136         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68137         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68138         * modules/string (Depends-on): Add link-warning.
68139         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68140         string.h.
68141         * MODULES.html.sh (Support for building libraries and executables): Add
68142         link-warning.
68143
68144 2007-02-17  Bruno Haible  <bruno@clisp.org>
68145
68146         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68147         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68148         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68149         long lines.
68150
68151 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68152             Bruno Haible  <bruno@clisp.org>
68153
68154         * modules/tmpfile: New file.
68155         * lib/tmpfile.c: New file.
68156         * m4/tmpfile.m4: New file.
68157         * MODULES.html.sh (func_all_modules): New section "Input/output".
68158
68159 2007-02-15  Bruno Haible  <bruno@clisp.org>
68160
68161         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68162         (supports_delete_on_close): New function.
68163         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68164
68165 2007-02-14  Bruno Haible  <bruno@clisp.org>
68166
68167         * modules/mbspcasecmp-tests: New file.
68168         * tests/test-mbspcasecmp.sh: New file.
68169         * tests/test-mbspcasecmp.c: New file.
68170
68171         New module mbspcasecmp.
68172         * modules/mbspcasecmp: New file.
68173         * lib/mbspcasecmp.c: New file.
68174         * lib/string_.h (strncasecmp): Change warning message.
68175         (mbspcasecmp): New declaration.
68176         * m4/mbspcasecmp.m4: New file.
68177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68178         GNULIB_MBSPCASECMP.
68179         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68180         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68181
68182 2007-02-14  Bruno Haible  <bruno@clisp.org>
68183
68184         * modules/mbsncasecmp-tests: New file.
68185         * tests/test-mbsncasecmp.sh: New file.
68186         * tests/test-mbsncasecmp.c: New file.
68187
68188         New module mbsncasecmp.
68189         * modules/mbsncasecmp: New file.
68190         * lib/mbsncasecmp.c: New file.
68191         * lib/string_.h (mbsncasecmp): New declaration.
68192         * m4/mbsncasecmp.m4: New file.
68193         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68194         GNULIB_MBSNCASECMP.
68195         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68196         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68197
68198 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68201         Verify that it doesn't overlap with our flags.
68202         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68203         do not have the desired effect in multibyte locales; instead, use
68204         mbscasecmp.
68205         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68206         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68207         we don't require GNU fnmatch ourselves (if our users require it, they
68208         should do so explicitly).
68209
68210         Fix regex code so it doesn't rely on strcasecmp.
68211         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68212         Otherwise, include gnulib's langinfo.h.
68213         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68214         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68215         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68216         * modules/regex (FILES): Remove m4/codeset.m4.
68217         (Depends-on): Add localcharset.  Remove strcase.
68218
68219 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68220
68221         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68222         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68223
68224 2007-02-13  Bruno Haible  <bruno@clisp.org>
68225
68226         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68227         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68228
68229 2007-02-12  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68232         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68233         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68234         time warning rather than a link error.
68235
68236 2007-02-12  Bruno Haible  <bruno@clisp.org>
68237
68238         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68239         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68240         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68241
68242 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68243
68244         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68245         args, not 2.
68246
68247 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68248
68249         New module 'time', so that apps can include <time.h> as per
68250         POSIX and GNU instead of separate include files like time_r.h
68251         and timegm.h.  This implementation tries out a simpler approach
68252         for replacing decls in standard include files (as compared to
68253         the string module), somewhat as an experiment.
68254
68255         * config/srclist.txt: Comment out mktime.c for now.
68256         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68257         since it doesn't apply any more.  Use generic wording instead.
68258         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68259         'time'.
68260         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68261         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68262         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68263         Don't include <sys/types.h>; no longer needed since we assume C89.
68264         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68265         * lib/strftime.c: Likewise.
68266         * lib/time_r.c: Likewise.
68267         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68268         * lib/nanosleep.c: Include <time.h> first, to check interface.
68269         * lib/strptime.c: Likewise.
68270         * lib/time_r.c: Likewise.
68271         * lib/timegm.c: Likewise.
68272         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68273         needed.
68274         * lib/timegm.c: Don't include timegm.h; no longer needed.
68275         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68276         time.h now handles any problems in that area.
68277         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68278         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68279         that time.h defines struct timespec.
68280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68281         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68282         handles that.
68283         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68284         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68285         needed.  Set REPLACE_LOCALTIME.
68286         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68287         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68288         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68289         nanosleep; time_h.m4 now does that.  Don't require
68290         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68291         module handles this now.
68292         * modules/getdate (Depends-on): Remove timespec.  Add time.
68293         * modules/nanosleep (Depends-on): Likewise.
68294         * modules/stat-time (Depends-on): Likewise.
68295         * modules/nanosleep (Include): Include time.h, not timespec.h.
68296         * modules/strptime (Files): Remove lib/strptime.h.
68297         (Depends-on): Add extensions, time.
68298         (Include): Include time.h, not strptime.h.
68299         * modules/time_r (Files): Remove lib/time_r.h.
68300         (Depends-on): Add time.
68301         (Include): Include time.h, not time_r.h.
68302         * modules/timegm: Likewise.
68303         * modules/timespec (Description): Now does timespec-related decls
68304         of our own, instead of struct timespec itself.
68305         (Depends-on): Add time; remove extensions.
68306         (Maintainer): Add self.
68307         * modules/utimecmp (Depends-on): Add time; remove timespec.
68308         * modules/utimens (Depends-on): Likewise.
68309         * modules/xnanosleep (Depends-on): Likewise.
68310
68311 2007-02-11  Bruno Haible  <bruno@clisp.org>
68312
68313         * lib/c-strstr.c: Include allocsa.h.
68314         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68315         * lib/c-strcasestr.c: Include allocsa.h.
68316         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68317         * lib/strcasestr.c: Include allocsa.h.
68318         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68319         * lib/mbsstr.c: Include allocsa.h.
68320         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68321         allocsa/freesa instead of malloc/free.
68322         * lib/mbscasestr.c: Include allocsa.h.
68323         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68324         allocsa/freesa instead of malloc/free.
68325         * modules/c-strstr (Depends-on): Add allocsa.
68326         * modules/c-strcasestr (Depends-on): Likewise.
68327         * modules/strcasestr (Depends-on): Likewise.
68328         * modules/mbsstr (Depends-on): Likewise.
68329         * modules/mbscasestr (Depends-on): Likewise.
68330
68331 2007-02-11  Bruno Haible  <bruno@clisp.org>
68332
68333         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68334
68335         * modules/mbsspn-tests: New file.
68336         * tests/test-mbsspn.sh: New file.
68337         * tests/test-mbsspn.c: New file.
68338
68339 2007-02-11  Bruno Haible  <bruno@clisp.org>
68340
68341         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68342
68343         * modules/mbspbrk-tests: New file.
68344         * tests/test-mbspbrk.sh: New file.
68345         * tests/test-mbspbrk.c: New file.
68346
68347 2007-02-11  Bruno Haible  <bruno@clisp.org>
68348
68349         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68350         unneeded cast.
68351
68352         * modules/mbscspn-tests: New file.
68353         * tests/test-mbscspn.sh: New file.
68354         * tests/test-mbscspn.c: New file.
68355
68356 2007-02-11  Bruno Haible  <bruno@clisp.org>
68357
68358         * modules/mbscasecmp-tests: New file.
68359         * tests/test-mbscasecmp.sh: New file.
68360         * tests/test-mbscasecmp.c: New file.
68361
68362 2007-02-11  Bruno Haible  <bruno@clisp.org>
68363
68364         Ensure O(n) worst-case complexity of mbscasestr.
68365         * lib/mbscasestr.c: Include stdbool.h.
68366         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68367         functions.
68368         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68369         the bookkeeping indicates that it's worth it.
68370         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68371
68372         * modules/mbscasestr-tests: New file.
68373         * tests/test-mbscasestr1.c: New file.
68374         * tests/test-mbscasestr2.sh: New file.
68375         * tests/test-mbscasestr2.c: New file.
68376         * tests/test-mbscasestr3.sh: New file.
68377         * tests/test-mbscasestr3.c: New file.
68378         * tests/test-mbscasestr4.sh: New file.
68379         * tests/test-mbscasestr4.c: New file.
68380         * m4/locale-tr.m4: New file.
68381
68382 2007-02-11  Bruno Haible  <bruno@clisp.org>
68383
68384         Ensure O(n) worst-case complexity of mbsstr.
68385         * lib/mbsstr.c: Include stdbool.h.
68386         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68387         functions.
68388         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68389         bookkeeping indicates that it's worth it.
68390         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68391
68392         * modules/mbsstr-tests: New file.
68393         * tests/test-mbsstr1.c: New file.
68394         * tests/test-mbsstr2.sh: New file.
68395         * tests/test-mbsstr2.c: New file.
68396         * tests/test-mbsstr3.sh: New file.
68397         * tests/test-mbsstr3.c: New file.
68398         * m4/locale-fr.m4: New file.
68399
68400 2007-02-11  Bruno Haible  <bruno@clisp.org>
68401
68402         * lib/mbsrchr.c (mbsrchr): Fix bug.
68403
68404         * modules/mbsrchr-tests: New file.
68405         * tests/test-mbsrchr.sh: New file.
68406         * tests/test-mbsrchr.c: New file.
68407
68408 2007-02-11  Bruno Haible  <bruno@clisp.org>
68409
68410         * lib/mbschr.c (mbschr): Fix bug.
68411
68412         * modules/mbschr-tests: New file.
68413         * tests/test-mbschr.sh: New file.
68414         * tests/test-mbschr.c: New file.
68415         * m4/locale-zh.m4: New file.
68416
68417 2007-02-11  Bruno Haible  <bruno@clisp.org>
68418
68419         Support for copying multibyte string iterators.
68420         * lib/mbiter.h: Include <string.h>.
68421         (mbiter_multi_copy): New function.
68422         (mbi_copy): New macro.
68423         * lib/mbuiter.h: Include <string.h>.
68424         (mbuiter_multi_copy): New function.
68425         (mbui_copy): New macro.
68426
68427 2007-02-11  Bruno Haible  <bruno@clisp.org>
68428
68429         New module mbslen.
68430         * modules/mbslen: New file.
68431         * lib/mbslen.c: New file.
68432         * lib/string_.h (mbslen): New declaration.
68433         * m4/mbslen.m4: New file.
68434         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68435         GNULIB_MBSLEN.
68436         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68437         * MODULES.html.sh (Internationalization functions): Add mbslen.
68438
68439 2007-02-11  Bruno Haible  <bruno@clisp.org>
68440
68441         Ensure O(n) worst-case complexity of strcasestr substitute.
68442         * lib/strcasestr.c: Include stdbool.h.
68443         (knuth_morris_pratt): New function.
68444         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68445         bookkeeping indicates that it's worth it.
68446         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68447
68448         * modules/strcasestr-tests: New file.
68449         * tests/test-strcasestr.c: New file.
68450
68451 2007-02-11  Bruno Haible  <bruno@clisp.org>
68452
68453         Ensure O(n) worst-case complexity of c_strcasestr.
68454         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68455         (knuth_morris_pratt): New function.
68456         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68457         the bookkeeping indicates that it's worth it.
68458         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68459
68460         * modules/c-strcasestr-tests: New file.
68461         * tests/test-c-strcasestr.c: New file.
68462
68463 2007-02-11  Bruno Haible  <bruno@clisp.org>
68464
68465         Ensure O(n) worst-case complexity of c_strstr.
68466         * lib/c-strstr.c: Include stdbool.h, string.h.
68467         (knuth_morris_pratt): New function.
68468         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68469         bookkeeping indicates that it's worth it.
68470         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68471
68472         * lib/c-strstr.c: Complete rewrite for maintainability.
68473
68474         * modules/c-strstr-tests: New file.
68475         * tests/test-c-strstr.c: New file.
68476
68477 2007-02-11  Bruno Haible  <bruno@clisp.org>
68478
68479         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68480         5.2.1 and earlier, whereby \055 was treated just like the range
68481         delimiter '-'.
68482         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68483
68484 2007-02-08  Bruno Haible  <bruno@clisp.org>
68485
68486         * modules/regex (Depends-on): Add stdbool.
68487         Reported by Dalibor Topic <robilad@kaffe.org>.
68488
68489 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68492         Prefer returning from main to exiting from it.
68493         Remove unnecessary parens after sizeof.
68494
68495 2007-02-05  Bruno Haible  <bruno@clisp.org>
68496
68497         New module mbssep.
68498         * modules/mbssep: New file.
68499         * lib/mbssep.c: New file.
68500         * lib/string_.h (strsep): Add a conditional link warning.
68501         (mbssep): New declaration.
68502         * m4/mbssep.m4: New file.
68503         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68504         GNULIB_MBSSEP.
68505         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68506         * MODULES.html.sh (Internationalization functions): Add mbssep.
68507
68508 2007-02-05  Bruno Haible  <bruno@clisp.org>
68509
68510         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68511         Optimize search in case of 1 delimiter.
68512
68513 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68514
68515         * lib/acl.h: Include sys/types.h before sys/acl.h.
68516
68517 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68518
68519         Merge upstream fix for glibc bugzilla #3957:
68520
68521         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68522
68523         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68524         bit for RE_HAT_LISTS_NOT_NEWLINE.
68525         (build_charclass_op): Remove bogus comment.
68526
68527 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68528
68529         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68530
68531 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68532
68533         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68534         * lib/memmem.c [!defined _LIBC]: Include config.h.
68535
68536 2007-02-04  Bruno Haible  <bruno@clisp.org>
68537
68538         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68539         warning message.
68540
68541 2007-02-04  Bruno Haible  <bruno@clisp.org>
68542
68543         New module mbstok_r.
68544         * modules/mbstok_r: New file.
68545         * lib/mbstok_r.c: New file.
68546         * lib/string_.h (strtok_r): Change argument names to match the
68547         comments. Add a conditional link warning.
68548         (mbstok_r): New declaration.
68549         * m4/mbstok_r.m4: New file.
68550         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68551         GNULIB_MBSTOK_R.
68552         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68553         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68554
68555 2007-02-04  Bruno Haible  <bruno@clisp.org>
68556
68557         New module mbsspn.
68558         * modules/mbsspn: New file.
68559         * lib/mbsspn.c: New file.
68560         * lib/string_.h (strspn): Add a conditional link warning.
68561         (mbsspn): New declaration.
68562         * m4/mbsspn.m4: New file.
68563         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68564         GNULIB_MBSSPN.
68565         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68566         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68567
68568 2007-02-04  Bruno Haible  <bruno@clisp.org>
68569
68570         New module mbspbrk.
68571         * modules/mbspbrk: New file.
68572         * lib/mbspbrk.c: New file.
68573         * lib/string_.h (strpbrk): Add a conditional link warning.
68574         (mbspbrk): New declaration.
68575         * m4/mbspbrk.m4: New file.
68576         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68577         GNULIB_MBSPBRK.
68578         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68579         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68580
68581 2007-02-04  Bruno Haible  <bruno@clisp.org>
68582
68583         New module mbscspn.
68584         * modules/mbscspn: New file.
68585         * lib/mbscspn.c: New file.
68586         * lib/string_.h (strcspn): Add a conditional link warning.
68587         (mbscspn): New declaration.
68588         * m4/mbscspn.m4: New file.
68589         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68590         GNULIB_MBSCSPN.
68591         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68592         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68593
68594 2007-02-04  Bruno Haible  <bruno@clisp.org>
68595
68596         New module mbscasestr, reduced goal of strcasestr.
68597         * modules/mbscasestr: New file.
68598         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68599         (mbscasestr): Renamed from strcasestr.
68600         * lib/strcasestr.c: Don't include mbuiter.h.
68601         (strcasestr): Remove support for multibyte locales.
68602         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68603         Change the conditional link warning.
68604         (mbscasestr): New declaration.
68605         * m4/mbscasestr.m4: New file.
68606         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68607         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68608         REPLACE_STRCASESTR.
68609         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68611         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68612         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68613         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68614         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68615         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68616         (Depends-on): Remove mbuiter.
68617         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68618
68619 2007-02-04  Bruno Haible  <bruno@clisp.org>
68620
68621         Simplify handling of strncasecmp.
68622         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68623         the conditional link warning.
68624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68625         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68626         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68627         * modules/strcase (configure.ac): Don't invoke
68628         gl_STRING_MODULE_INDICATOR.
68629         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68630
68631 2007-02-04  Bruno Haible  <bruno@clisp.org>
68632
68633         New module mbscasecmp, reduced goal of strcasecmp.
68634         * modules/mbscasecmp: New file.
68635         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68636         (mbscasecmp): Renamed from strcasecmp.
68637         * lib/strcasecmp.c: Don't include mbuiter.h.
68638         (strcasecmp): Remove support for multibyte locales.
68639         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68640         Change the conditional link warning.
68641         (mbscasecmp): New declaration.
68642         * m4/mbscasecmp.m4: New file.
68643         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68644         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68645         REPLACE_STRCASECMP.
68646         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68648         GNULIB_MBSCASECMP.
68649         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68650         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68651         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68652         (Depends-on): Remove mbuiter.
68653         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68654
68655 2007-02-04  Bruno Haible  <bruno@clisp.org>
68656
68657         New module mbsstr. Remove module strstr.
68658         * modules/mbsstr: New file.
68659         * modules/strstr: Remove file.
68660         * lib/mbsstr.c: Renamed from lib/strstr.c.
68661         (mbsstr): Renamed from strstr.
68662         * lib/string_.h (strstr): Remove declaration. Change the conditional
68663         link warning.
68664         (mbsstr): New declaration.
68665         * m4/mbsstr.m4: New file.
68666         * m4/strstr.m4: Remove file.
68667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68668         REPLACE_STRSTR.
68669         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68670         Don't initialize GNULIB_STRSTR.
68671         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68672         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68673         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68674         (Support for systems lacking ANSI C 89): Remove strstr.
68675
68676 2007-02-04  Bruno Haible  <bruno@clisp.org>
68677
68678         New module mbsrchr.
68679         * modules/mbsrchr: New file.
68680         * lib/mbsrchr.c: New file.
68681         * lib/string_.h (strrchr): Add a conditional link warning.
68682         (mbsrchr): New declaration.
68683         * m4/mbsrchr.m4: New file.
68684         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68685         GNULIB_MBSRCHR.
68686         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68687         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68688
68689 2007-02-04  Bruno Haible  <bruno@clisp.org>
68690
68691         New module mbschr.
68692         * modules/mbschr: New file.
68693         * lib/mbschr.c: New file.
68694         * lib/string_.h (strchr): Add a conditional link warning.
68695         (mbschr): New declaration.
68696         * m4/mbschr.m4: New file.
68697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68698         GNULIB_MBSCHR.
68699         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68700         * MODULES.html.sh (Internationalization functions): Add mbschr.
68701
68702 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68705
68706         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68707
68708 2007-02-04  Bruno Haible  <bruno@clisp.org>
68709
68710         New module description section 'configure.ac-early'.
68711         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68712         (func_get_autoconf_early_snippet): New function.
68713         (func_import, func_create_testdir): Use it. Remove special cases for
68714         modules 'extensions' and 'lock'.
68715         * modules/extensions (configure.ac-early): Require
68716         gl_USE_SYSTEM_EXTENSIONS.
68717         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68718
68719 2007-02-04  Bruno Haible  <bruno@clisp.org>
68720
68721         Make use of gcj-4.3's -fsource and -ftarget option.
68722         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68723         and if so try the options -fsource and -ftarget.
68724         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68725         source_version, ftarget_option, target_version arguments.
68726         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68727         (is_envjavac_oldgcj_14_14_usable): Renamed from
68728         is_envjavac_gcj_14_14_usable.
68729         (is_envjavac_oldgcj_14_13_usable): Renamed from
68730         is_envjavac_gcj_14_13_usable.
68731         (is_gcj_present): Update.
68732         (is_gcj_43, is_gcj43_usable): New functions.
68733         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68734         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68735         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68736         try the options -fsource and -ftarget.
68737
68738 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68739
68740         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68741         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68742         larger value.
68743
68744 2007-02-03  Jim Meyering  <jim@meyering.net>
68745
68746         Give tools a better chance to allocate space for very large buffers.
68747         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68748
68749         Make pwd and readlink work also when run with an unreadable parent dir
68750         on systems with openat support.
68751         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68752         provided getcwd function, even when we have openat support.
68753         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68754
68755 2007-02-02  Bruno Haible  <bruno@clisp.org>
68756
68757         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68758         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68759         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68760         portability problems if one of these functions is only used on specific
68761         platforms.
68762         Reported by Paul Eggert.
68763
68764 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68765
68766         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68767         is causing more trouble than it's curing.
68768         * lib/regex_internal.h (__mempcpy): Remove.
68769         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68770         (and make the code a tad smaller to boot).
68771         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68772
68773 2007-02-02  Jim Meyering  <jim@meyering.net>
68774
68775         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68776         section, not in the Makefile.am: one.
68777
68778 2007-02-02  Eric Blake  <ebb9@byu.net>
68779
68780         * lib/strchrnul.c: Always include config.h first.
68781
68782         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68783         gnulib strstr is not necessary here.
68784
68785 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68786
68787         * m4/socklen.m4: Fix typo.
68788
68789 2007-02-02  Eric Blake  <ebb9@byu.net>
68790
68791         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68792         * modules/netinet_in (Makefile.am): Likewise.
68793
68794 2007-02-01  Bruno Haible  <bruno@clisp.org>
68795
68796         * lib/string_.h (GL_LINK_WARNING): New macro.
68797         (strcasecmp, strstr, strcasestr): If provided by the system,
68798         conditionally define as a macro that leads to a warning instead of to
68799         an error.
68800         (strncasecmp): Conditionally define as a macro that leads to a warning.
68801
68802 2007-02-01  Karl Berry  <karl@gnu.org>
68803
68804         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68805
68806 2007-02-01  Bruno Haible  <bruno@clisp.org>
68807
68808         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68809         renamings.
68810
68811 2007-02-01  Eric Blake  <ebb9@byu.net>
68812
68813         * modules/regex (Depends-on): Revert dependence on mempcpy.
68814         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68815         module's definition of mempcpy.
68816         Reported by Paul Eggert.
68817
68818 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68821         the symbol XYZ before redefining it.  This fixes a problem with
68822         programs that don't use XYZ, when compiled on systems that define
68823         XYZ to something else.
68824
68825 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68826
68827         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68828         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68829         writeable to group or other and (2) is intended to have a special
68830         mode bit that is set or cleared.  In such a case, the directory
68831         should be neither group- nor other-writeable until the special
68832         mode bits are right.
68833
68834 2007-01-31  Eric Blake  <ebb9@byu.net>
68835
68836         * modules/mountlist (Depends-on): Add strstr.
68837
68838         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68839         bug.
68840         * modules/string (Makefile.am): Remove redundant replacement.
68841         * modules/regex (Depends-on): Add mempcpy.
68842
68843 2007-01-31  Bruno Haible  <bruno@clisp.org>
68844
68845         New module description field 'Link'.
68846         * gnulib-tool (func_usage): Document --extract-link-directive.
68847         (sed_extract_prog): Recognize 'Link' directive.
68848         (func_get_link_directive): New function.
68849         (func_import): Show summary of link directives.
68850         Handle --extract-link-directive option.
68851         * modules/acl (Link): New section.
68852         * modules/clock-time (Link): New section.
68853         * modules/euidaccess (Link): New section.
68854         * modules/gettext (Link): New section.
68855         * modules/iconv (Link): New section.
68856         * modules/lock (Link): New section.
68857         * modules/nanosleep (Link): New section.
68858         * modules/readline (Link): New section.
68859
68860 2007-01-27  Bruno Haible  <bruno@clisp.org>
68861
68862         Enforce the use of gnulib modules for unportable <string.h> functions.
68863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68864         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68865         (gl_HEADER_STRING_H_BODY): Require it.
68866         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68867         the symbol XYZ to one that gives a link error.
68868         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68869         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68870         * modules/mempcpy (configure.ac): Likewise.
68871         * modules/memrchr (configure.ac): Likewise.
68872         * modules/stpcpy (configure.ac): Likewise.
68873         * modules/stpncpy (configure.ac): Likewise.
68874         * modules/strcase (configure.ac): Likewise.
68875         * modules/strcasestr (configure.ac): Likewise.
68876         * modules/strchrnul (configure.ac): Likewise.
68877         * modules/strdup (configure.ac): Likewise.
68878         * modules/strndup (configure.ac): Likewise.
68879         * modules/strnlen (configure.ac): Likewise.
68880         * modules/strpbrk (configure.ac): Likewise.
68881         * modules/strsep (configure.ac): Likewise.
68882         * modules/strstr (configure.ac): Likewise.
68883         * modules/strtok_r (configure.ac): Likewise.
68884
68885 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68886
68887         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68888
68889 2007-01-30  Jim Meyering  <jim@meyering.net>
68890
68891         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68892
68893 2007-01-29  Bruno Haible  <bruno@clisp.org>
68894
68895         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68896         * lib/execute.c: Likewise.
68897         * lib/pipe.c: Likewise.
68898         * lib/printf-args.h: Likewise.
68899         * lib/printf-args.c: Likewise.
68900         * lib/printf-parse.c: Likewise.
68901         * lib/vasnprintf.c: Likewise.
68902
68903 2007-01-29  Eric Blake  <ebb9@byu.net>
68904
68905         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68906         declaration.
68907
68908 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68909
68910         * lib/strptime.h (strptime): Use 'restrict' for args where
68911         POSIX requires this.
68912         * lib/strptime.c (strptime): Likewise.
68913         Change license notice from LGPL to GPL, since gnulib-tool will
68914         change this as needed.
68915         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68916         defined.
68917         Include "strptime.h" first, to check interface.
68918         Do not #undef _LIBC and _NL_CURRENT.
68919         Do not include <stdlib.h>; no longer needed.
68920         Include "time_r.h" and declare ptime_locale_status
68921         only if _LIBC is not defined.
68922         (__P): Remove unused macro.
68923         (match_string): Bring back glibc version, but use it only if _LIBC
68924         is defined.
68925         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68926         Remove unnecessary assertion and abort() call.
68927         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68928         * m4/strptime.m4: Fix serial number comment.
68929         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68930         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68931         (Depends-on): Add time_r.
68932
68933 2007-01-29  Bruno Haible  <bruno@clisp.org>
68934
68935         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68936         strptime.
68937         * modules/strptime (Depends-on): Add stdbool.
68938         * lib/strptime.h: Include <time.h> always. Add comments.
68939
68940 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68941
68942         * modules/strptime: New file.
68943         * lib/strptime.h: New file.
68944         * lib/strptime.c: New file.
68945         * m4/strptime.m4: New file.
68946
68947 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         * MODULES.html.sh: New module mpsort.
68950         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68951
68952         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68953         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68954         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68955         All uses changed.
68956         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68957         All uses changed.
68958         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68959         to _Restrict_.
68960         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68961         the parameter matches the prototype.
68962
68963 2007-01-28  Jim Meyering  <jim@meyering.net>
68964
68965         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68966         sys/time.h here, reverting that part of the previous patch:
68967         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68968
68969 2007-01-28  Bruno Haible  <bruno@clisp.org>
68970
68971         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68972         value of $(SYS_TIME_H).
68973         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68974         remove it conditionally, too. [added by Jim Meyering]
68975         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68976         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68977         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68978         GETTIMEOFDAY_REPLACEMENT to 1.
68979
68980 2007-01-28  Bruno Haible  <bruno@clisp.org>
68981
68982         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68983         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68984         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68985         Set UNISTD_H instead of UNISTD_H2.
68986         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68987
68988 2007-01-28  Bruno Haible  <bruno@clisp.org>
68989
68990         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68991         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68992
68993 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68994
68995         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68996         (func_create_testdir): Ensure C locale for `grep' and `tr'
68997         character ranges.
68998         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68999         ACLOCAL_AMFLAGS parsing state machine.
69000
69001 2007-01-27  Bruno Haible  <bruno@clisp.org>
69002
69003         * modules/unistr/base: Update.
69004
69005 2007-01-27  Bruno Haible  <bruno@clisp.org>
69006
69007         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69008         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69009         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69010         modules/unistr/u32-mbtouc.
69011         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69012         * lib/unistr.h: Update.
69013         * lib/linebreak.c: Update.
69014         * modules/unistr/u32-mbtouc: Renamed from
69015         modules/unistr/u32-mbtouc-safe.
69016         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69017         * lib/unistr.h: Update.
69018         * lib/unistr/u32-to-u8.c: Update.
69019         * lib/unistr/u32-to-u16.c: Update.
69020
69021 2007-01-27  Bruno Haible  <bruno@clisp.org>
69022
69023         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69024         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69025         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69026         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69027         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69028         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69029         modules/unistr/u16-mbtouc.
69030         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69031         * lib/unistr.h: Update.
69032         * lib/linebreak.c: Update.
69033         * modules/linebreak: Update.
69034         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69035         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69036         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69037         * modules/unistr/u16-mbtouc: Renamed from
69038         modules/unistr/u16-mbtouc-safe.
69039         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69040         * lib/unistr.h: Update.
69041         * lib/unistr/u16-to-u8.c: Update.
69042         * modules/unistr/u16-to-u8: Update.
69043         * lib/unistr/u16-to-u32.c: Update.
69044         * modules/unistr/u16-to-u32: Update.
69045
69046 2007-01-27  Bruno Haible  <bruno@clisp.org>
69047
69048         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69049         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69050         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69051         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69052         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69053         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69054         modules/unistr/u8-mbtouc.
69055         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69056         * lib/unistr.h: Update.
69057         * lib/striconveh.c: Update.
69058         * modules/striconveh: Update.
69059         * lib/linebreak.c: Update.
69060         * modules/linebreak: Update.
69061         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69062         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69063         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69064         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69065         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69066         * lib/unistr.h: Update.
69067         * lib/striconveh.c: Update.
69068         * modules/striconveh: Update.
69069         * lib/unistr/u8-to-u16.c: Update.
69070         * modules/unistr/u8-to-u16: Update.
69071         * lib/unistr/u8-to-u32.c: Update.
69072         * modules/unistr/u8-to-u32: Update.
69073
69074 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69075
69076         Sync from Libtool.
69077         * lib/argz.c: Do not include strings.h nor memory.h, include
69078         string.h unconditionally.  Patch by Simon Josefsson.
69079
69080 2007-01-27  Bruno Haible  <bruno@clisp.org>
69081
69082         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69083         from gl_HEADER_STRING_H_BODY.
69084         (gl_HEADER_STRING_H_BODY): Require it.
69085         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69086         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69087         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69088         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69089         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69090         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69092         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69093         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69094         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69095         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69096         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69097         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69098         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69099         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69100
69101 2007-01-27  Bruno Haible  <bruno@clisp.org>
69102
69103         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69104         check_PROGRAMS into noinst_PROGRAMS.
69105         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69106         check_PROGRAMS in this case.
69107         (func_import): Set for_test to false.
69108         (func_create_testdir): Set for_test to true.
69109
69110 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69111             Bruno Haible  <bruno@clisp.org>
69112
69113         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69114         (Depends-on): Add string.
69115         (Includes): Use <string.h> instead of strcasestr.h.
69116         * modules/string (Makefile.am): Also substitute the value of
69117         REPLACE_STRCASESTR.
69118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69119         assume strcasestr is declared in <string.h> not <strings.h>. Also
69120         set REPLACE_STRCASESTR.
69121         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69122         REPLACE_STRCASESTR.
69123         * lib/strcasestr.h: Remove file.
69124         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69125         * lib/string_.h (strcasestr): New declaration.
69126
69127 2007-01-27  Bruno Haible  <bruno@clisp.org>
69128
69129         * lib/string_.h: Use 'extern'.
69130
69131 2007-01-27  Jim Meyering  <jim@meyering.net>
69132
69133         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69134         of set-but-not-used local, "q".
69135
69136         * lib/mempcpy.c: Include <config.h> before <string.h>.
69137         This fixes a compilation error on HP-UX, due to the system's
69138         "restrict"-using mempcpy prototype.
69139
69140 2007-01-26  Bruno Haible  <bruno@clisp.org>
69141
69142         Small optimization.
69143         * lib/javacomp.c: Include c-strstr.h.
69144          (is_envjavac_gcj): Use c_strstr instead of strstr.
69145         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69146
69147 2007-01-26  Bruno Haible  <bruno@clisp.org>
69148
69149         * MODULES.html.sh (Unicode string functions): Add the new modules.
69150
69151         * modules/uniconv/u32-strconv-to-locale: New file.
69152         * lib/uniconv/u32-strconv-to-locale.c: New file.
69153
69154         * modules/uniconv/u16-strconv-to-locale: New file.
69155         * lib/uniconv/u16-strconv-to-locale.c: New file.
69156
69157         * modules/uniconv/u8-strconv-to-locale: New file.
69158         * lib/uniconv/u8-strconv-to-locale.c: New file.
69159
69160         * modules/uniconv/u32-strconv-from-locale: New file.
69161         * lib/uniconv/u32-strconv-from-locale.c: New file.
69162
69163         * modules/uniconv/u16-strconv-from-locale: New file.
69164         * lib/uniconv/u16-strconv-from-locale.c: New file.
69165
69166         * modules/uniconv/u8-strconv-from-locale: New file.
69167         * lib/uniconv/u8-strconv-from-locale.c: New file.
69168
69169         * modules/uniconv/u32-strconv-to-enc: New file.
69170         * lib/uniconv/u32-strconv-to-enc.c: New file.
69171         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69172         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69173
69174         * modules/uniconv/u16-strconv-to-enc: New file.
69175         * lib/uniconv/u16-strconv-to-enc.c: New file.
69176         * lib/uniconv/u-strconv-to-enc.h: New file.
69177         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69178         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69179
69180         * modules/uniconv/u8-strconv-to-enc: New file.
69181         * lib/uniconv/u8-strconv-to-enc.c: New file.
69182         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69183         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69184
69185         * modules/uniconv/u32-strconv-from-enc: New file.
69186         * lib/uniconv/u32-strconv-from-enc.c: New file.
69187         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69188         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69189
69190         * modules/uniconv/u16-strconv-from-enc: New file.
69191         * lib/uniconv/u16-strconv-from-enc.c: New file.
69192         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69193         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69194
69195         * modules/uniconv/u8-strconv-from-enc: New file.
69196         * lib/uniconv/u8-strconv-from-enc.c: New file.
69197         * lib/uniconv/u-strconv-from-enc.h: New file.
69198         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69199         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69200
69201         * modules/uniconv/u32-conv-from-enc: New file.
69202         * lib/uniconv/u32-conv-from-enc.c: New file.
69203         * modules/uniconv/u32-conv-from-enc-tests: New file.
69204         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69205
69206         * modules/uniconv/u16-conv-from-enc: New file.
69207         * lib/uniconv/u16-conv-from-enc.c: New file.
69208         * lib/uniconv/u-conv-from-enc.h: New file.
69209         * modules/uniconv/u16-conv-from-enc-tests: New file.
69210         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69211
69212         * modules/uniconv/u8-conv-from-enc: New file.
69213         * lib/uniconv/u8-conv-from-enc.c: New file.
69214         * modules/uniconv/u8-conv-from-enc-tests: New file.
69215         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69216
69217         * modules/uniconv/base: New file.
69218         * lib/uniconv.h: New file.
69219
69220 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69221
69222         * doc/gnulib-tool.texi (Initial import): Update to match current
69223         behavior with strdup module.
69224         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69225         * lib/memmem.h: Remove; all uses removed.  This is now done
69226         by <string.h>.
69227         * lib/mempcpy.h: Likewise.
69228         * lib/memrchr.h: Likewise.
69229         * lib/stpcpy.h: Likewise.
69230         * lib/stpncpy.h: Likewise.
69231         * lib/strcase.h: Likewise.
69232         * lib/strchrnul.h: Likewise.
69233         * lib/strdup.h: Likewise.
69234         * lib/strndup.h: Likewise.
69235         * lib/strnlen.h: Likewise.
69236         * lib/strpbrk.h: Likewise.
69237         * lib/strsep.h: Likewise.
69238         * lib/strstr.h: Likewise.
69239         * lib/strtok_r.h: Likewise.
69240         * lib/string_.h: New file.
69241         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69242         Rely on <string.h> instead.
69243         * lib/canon-host.c: Likewise.
69244         * lib/chdir-long.c: Likewise.
69245         * lib/concatpath.c: Likewise.
69246         * lib/exclude.c: Likewise.
69247         * lib/fchdir.c: Likewise.
69248         * lib/getaddrinfo.c: Likewise.
69249         * lib/getcwd.c: Likewise.
69250         * lib/getsubopt.c: Likewise.
69251         * lib/glob.c: Likewise.
69252         * lib/hard-locale.c: Likewise.
69253         * lib/iconvme.c: Likewise.
69254         * lib/javacomp.c: Likewise.
69255         * lib/mempcpy.c: Likewise.
69256         * lib/memrchr.c: Likewise.
69257         * lib/regex_internal.h: Likewise.
69258         * lib/stpncpy.c: Likewise.
69259         * lib/strcasecmp.c: Likewise.
69260         * lib/strchrnul.c: Likewise.
69261         * lib/strdup.c: Likewise.
69262         * lib/striconv.c: Likewise.
69263         * lib/striconveh.c: Likewise.
69264         * lib/striconveha.c: Likewise.
69265         * lib/strncasecmp.c: Likewise.
69266         * lib/strndup.c: Likewise.
69267         * lib/strnlen.c: Likewise.
69268         * lib/strsep.c: Likewise.
69269         * lib/strstr.c: Likewise.
69270         * lib/strtok_r.c: Likewise.
69271         * lib/userspec.c: Likewise.
69272         * lib/w32spawn.h: Likewise.
69273         * lib/xstrndup.c: Likewise.
69274         * lib/mountlist.c (strstr): Remove decl.
69275         * m4/string_h.m4: New file.
69276         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69277         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69278         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69279         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69280         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69281         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69282         Set REPLACE_STRCASECMP if necessary.
69283         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69284         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69285         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69286         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69287         HAVE_DECL_STRDUP if necessary.
69288         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69289         since gl_FUNC_STRNDUP does that now.
69290         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69291         Check for decl here...
69292         (gl_PREREQ_STRNLEN): ... not here.
69293         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69294         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69295         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69296         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69297         necessary.
69298         * modules/string: New file.
69299         * modules/memmem (Files): Remove special-purpose include file.
69300         (Depends-on): Add string.
69301         (Include): Include <string.h>, not the removed file.
69302         * modules/mempcpy: Likewise.
69303         * modules/memrchr: Likewise.
69304         * modules/stpcpy: Likewise.
69305         * modules/stpncpy: Likewise.
69306         * modules/strcase: Likewise.
69307         * modules/strchrnul: Likewise.
69308         * modules/strdup: Likewise.
69309         * modules/strndup: Likewise.
69310         * modules/strnlen: Likewise.
69311         * modules/strpbrk: Likewise.
69312         * modules/strsep: Likewise.
69313         * modules/strstr: Likewise.
69314         * modules/strtok_r: Likewise.
69315         * tests/test-dirname.c: Don't include "strdup.h", since
69316         <string.h> now suffices.
69317         * tests/test-memmem.c: Don't include "memmem.h", since
69318         <string.h> now suffices.
69319
69320 2007-01-25  Bruno Haible  <bruno@clisp.org>
69321
69322         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69323         *resultp is 0.
69324
69325         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69326         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69327         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69328         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69329
69330         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69331         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69332         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69333         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69334         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69335         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69336
69337 2007-01-24  Bruno Haible  <bruno@clisp.org>
69338
69339         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69340         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69341         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69342         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69343         gl_FUNC_FTS_CORE.
69344         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69345         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69346         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69347         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69348         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69349         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69350         gl_FUNC_FCHOWNAT.
69351         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69352         gl_FUNC_STRFTIME.
69353         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69354         Reported by Ralf Wildenhues.
69355
69356 2007-01-24  Bruno Haible  <bruno@clisp.org>
69357
69358         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69359         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69360         gl_GETADDRINFO.
69361         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69362         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69363         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69364
69365 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69366
69367         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69368         Don't use 'exit'; just return from 'main'.
69369         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69370
69371         * lib/fnmatch_.h: Readjust white space and comments to match
69372         glibc, to avoid spurious diffs.
69373
69374 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69375
69376         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69377         2004-12-01 change by Jakub Jelinek, since this code won't compile
69378         if !LIBC.  Problem reported by Bob Proulx.
69379
69380 2007-01-23  Bruno Haible  <bruno@clisp.org>
69381
69382         * lib/striconveh.c: Include c-strcaseeq.h.
69383         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69384         * modules/striconveh (Depends-on): Add c-strcaseeq.
69385
69386 2007-01-23  Bruno Haible  <bruno@clisp.org>
69387
69388         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69389
69390         * modules/c-strcaseeq: New file.
69391         * lib/c-strcaseeq.h: New file.
69392
69393         * modules/streq: New file.
69394         * lib/streq.h: New file.
69395
69396 2007-01-23  Bruno Haible  <bruno@clisp.org>
69397
69398         * modules/striconveha-tests: New file.
69399         * tests/test-striconveha.c: New file.
69400
69401         * lib/striconveha.h: Include <stdbool.h>.
69402         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69403         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69404         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69405         (mem_iconveha): New function.
69406         (str_iconveha_notranslit): Renamed from str_iconveha.
69407         (str_iconveha): New function.
69408         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69409         c-strcase.
69410
69411 2007-01-23  Bruno Haible  <bruno@clisp.org>
69412
69413         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69414         encodings without forgiving before trying any encoding with handler.
69415         (str_iconveha): Try all encodings without forgiving before trying any
69416         encoding with handler.
69417
69418 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69419
69420         Import the following changes from libc.
69421
69422         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69423
69424         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69425
69426         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69427
69428         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69429         normal_bracket label.
69430
69431         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69432
69433         [BZ #361]
69434         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69435         to normal_bracket after fetching the next character.
69436
69437 2007-01-22  Bruno Haible  <bruno@clisp.org>
69438
69439         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69440         argument.
69441         * lib/striconveh.c (iconv_carefully_1): New function.
69442         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69443         argument.
69444         (str_cd_iconveh): Update.
69445         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69446         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69447         * tests/test-striconveh.c (MAGIC): New macro.
69448         (new_offsets): New function.
69449         (main): Test call with and without offsets.
69450
69451 2007-01-22  Bruno Haible  <bruno@clisp.org>
69452
69453         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69454         * modules/sys_select (Makefile.am): Likewise.
69455         * modules/sys_socket (Makefile.am): Likewise.
69456         * modules/sys_time (Makefile.am): Likewise.
69457
69458 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69459
69460         * modules/gettimeofday (License): Change from GPL to LGPL, since
69461         gettimeofday is a library function.
69462
69463 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69464
69465         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69466
69467 2007-01-21  Bruno Haible  <bruno@clisp.org>
69468
69469         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69470
69471 2007-01-21  Bruno Haible  <bruno@clisp.org>
69472
69473         * modules/striconveha: New file.
69474         * lib/striconveha.h: New file.
69475         * lib/striconveha.c: New file.
69476         * MODULES.html.sh (Internationalization functions): Add striconveha.
69477         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69478         string.
69479         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69480
69481 2007-01-21  Bruno Haible  <bruno@clisp.org>
69482
69483         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69484         * lib/striconveh.c (str_iconveh): Likewise.
69485
69486 2007-01-21  Bruno Haible  <bruno@clisp.org>
69487
69488         * lib/striconveh.h (mem_iconveh): New declaration.
69489         * lib/striconveh.c (mem_iconveh): New function.
69490         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69491
69492 2007-01-21  Bruno Haible  <bruno@clisp.org>
69493
69494         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69495
69496         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69497         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69498         original result buffer.
69499         (str_cd_iconveh): Update.
69500         * tests/test-striconveh.c (main): Update.
69501
69502         * lib/striconv.h (mem_cd_iconv): Change specification.
69503         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69504         result buffer.
69505         (str_cd_iconv): Update.
69506         * tests/test-striconv.c (main): Update.
69507
69508 2007-01-21  Bruno Haible  <bruno@clisp.org>
69509
69510         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69511
69512 2007-01-20  Jim Meyering  <jim@meyering.net>
69513
69514         * lib/userspec.c (parse_with_separator): If a user or group string
69515         starts with "+", skip the corresponding name-to-ID look-up, since
69516         such a look-up must fail: user and group names may not include "+".
69517
69518 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69519
69520         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69521         since we now assume the sys_time module.
69522         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69523         check for sys/time.h; no longer needed.
69524         * modules/poll (Depends-on): Depend on sys_time.
69525
69526 2007-01-18  Bruno Haible  <bruno@clisp.org>
69527
69528         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69529         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69530
69531         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69532         gettimeofday.
69533
69534         * tests/test-gettimeofday.c: Include <time.h>.
69535         (dummy): Remove variable.
69536
69537         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69538         gl_HEADER_SYS_TIME_H.
69539         (gl_HEADER_SYS_TIME_H): New macro.
69540
69541         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69542         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69543         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69544         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69545         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69546         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69547         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69548         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69549         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69550         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69551         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69552
69553         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69554         last change; it caused a compilation error when cross-compiling to
69555         Cygwin.
69556
69557 2007-01-18  Jim Meyering  <jim@meyering.net>
69558
69559         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69560         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69561         than the race-prone "test -d sys || mkdir sys".
69562         (configure.ac): Use AC_PROG_MKDIR_P.
69563         * modules/sys_select: Likewise.
69564         * modules/sys_socket: Likewise.
69565         * modules/sys_time: Likewise.
69566
69567 2007-01-18  Eric Blake  <ebb9@byu.net>
69568
69569         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69570         replace gettimeofday.
69571         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69572         name, to avoid infinite recursion.
69573
69574 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69575
69576         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69577         module sys_time.
69578         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69579         assume timespec.h defines struct timeval.
69580         * lib/settime.c: Likewise.
69581         * lib/utimens.c: Likewise.
69582         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69583         since we now assume the gettimeofday module.
69584         * lib/tempname.c (__gen_tempname): Likewise.
69585         * lib/gettimeofday.h: Remove.
69586         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69587         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69588         Include <time.h>, for 'time()'.
69589         (localtime_buffer_addr): Also use this workaround if
69590         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69591         to simplify the uses.  All uses changed.
69592         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69593         that #undef is inside {}, and 'const' follows type name consistently.
69594         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69595         (gettimeofday): Do not use the maximum possible value for
69596         tv->tv_usec, since that might break usages other than ls.c.
69597         Instead, we'll leave ls.c alone.  This undoes today's patch
69598         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69599         we've never observed the problem but might as well keep the
69600         canary.
69601         * lib/nanosleep.c: Include timespec.h first, for interface check.
69602         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69603         now assume the sys_time module.
69604         * lib/tempname.c: Likewise.
69605         * lib/timespec.h: Likewise.
69606         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69607         needed.
69608         * lib/strftime.c: Likewise.
69609         * lib/timespec.h: Likewise.
69610         * lib/posixtm.c: Include posixtm.h first, for interface check.
69611         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69612         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69613         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69614         * lib/sys_time_.h: New file.
69615         * lib/timespec.h (struct timespec): Use long int, not long.
69616         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69617         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69618         Remove obsolescent call to AC_HEADER_TIME.
69619         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69621         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69622         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69623         Likewise.
69624         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69625         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69626         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69627         into the sys_time module.  Check for gettimeofday just once.
69628         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69629         for gettimeofday signature to just check the signature.  Merely
69630         compile it, since linking doesn't test signature.  Improve test for
69631         whether gettimeofday.o is actually needed.
69632         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69633         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69634         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69635         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69636         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69637         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69638         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69639         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69640         than worrying about sys/time.h.
69641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69642         Don't bother worrying about TIME_WITH_SYS_TIME.
69643         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69644         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69645         * m4/sys_time_h.m4: New file.
69646         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69647         Don't include sys/time.h.  Return from main rather than exiting.
69648         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69649         all uses changed.
69650         * modules/gethrxtime (Depends-on): Add sys_time.
69651         * modules/gettime (Depends-on): Likewise.
69652         * modules/gettimeofday (Depends-on): Likewise.
69653         * modules/nanosleep (Depends-on): Likewise.
69654         * modules/settime (Depends-on): Likewise.
69655         * modules/tempname (Depends-on): Likewise.
69656         * modules/utimens (Depends-on): Likewise.
69657         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69658         (Include): Change back to <sys/time.h>.
69659         (Maintainer): Add self.
69660         * modules/sys_time: New file.
69661         * modules/tempname (Depends-on): Add gettimeofday.
69662         * tests/test-gettimeofday.c: Include <sys/time.h>
69663         rather than gettimeofday.h.
69664
69665 2007-01-17  Bruno Haible  <bruno@clisp.org>
69666
69667         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69668         the license default to GPL.
69669         (func_create_testdir): Don't complain if a module is LGPL and its
69670         tests module depends on GPLed modules.
69671
69672 2007-01-17  Bruno Haible  <bruno@clisp.org>
69673
69674         * lib/gettimeofday.c (gettimeofday): Add code for the case
69675         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69676         maximum possible value for tv->tv_usec, rather than the minimum one.
69677
69678 2005-10-08  Martin Lambers  <marlam@marlam.de>
69679 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69680 2007-01-16  Bruno Haible  <bruno@clisp.org>
69681
69682         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69683         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69684         gl_FUNC_GETTIMEOFDAY.
69685         (Include): Add gettimeofday.h.
69686         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69687         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69688         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69689         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69690         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69691         * lib/gettimeofday.h: New file.
69692         * lib/gettimeofday.c: Include <sys/timeb.h>.
69693         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69694         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69695         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69696         fall back on time().
69697
69698         * tests/test-gettimeofday.c: New file.
69699         * modules/gettimeofday-tests: New file.
69700
69701 2007-01-16  Eric Blake  <ebb9@byu.net>
69702
69703         * modules/fnmatch (Depends-on): Depend on wchar.
69704         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69705         * m4/fnmatch.m4: Likewise.
69706         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69707         * m4/mbchar.m4: Likewise.
69708         * modules/mbswidth (Depends-on): Depend on wchar.
69709         * lib/mbswidth.c: Assume <wchar.h>.
69710         * m4/mbswidth.m4: Likewise.
69711         * modules/quotearg (Depends-on): Depend on wchar.
69712         * lib/quotearg.c: Assume <wchar.h>.
69713         * m4/quotearg.m4: Likewise.
69714         * modules/regex (Depends-on): Depend on wchar.
69715         * lib/regex_internal.h: Assume <wchar.h>.
69716         * m4/regex.m4: Likewise.
69717         * modules/stdint (Depends-on): Depend on wchar.
69718         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69719         * m4/stdint.m4: Likewise.
69720         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69721         * modules/strftime (Depends-on): Depend on wchar.
69722         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69723         * modules/strtol (Depends-on): Depend on wchar.
69724         * lib/strtol.c: Assume <wchar.h>.
69725         * modules/wcwidth (Depends-on): Depend on wchar.
69726         * lib/wcwidth.h: Assume <wchar.h>.
69727         * m4/wcwidth.m4: Likewise.
69728
69729 2007-01-16  Bruno Haible  <bruno@clisp.org>
69730
69731         * modules/csharpexec-script: New, created from...
69732         * modules/csharpexec: ... this.
69733
69734 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69735
69736         * modules/javaexec-script: New, created from...
69737         * modules/javaexec: ... this.
69738
69739 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69740
69741         * modules/poll (Dependencies): Add sys_select.
69742
69743 2007-01-15  Jim Meyering  <jim@meyering.net>
69744
69745         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69746         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69747         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69748         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69749
69750 2007-01-15  Bruno Haible  <bruno@clisp.org>
69751
69752         * modules/striconveh: New file.
69753         * lib/striconveh.h: New file.
69754         * lib/striconveh.c: New file.
69755         * MODULES.html.sh (Internationalization functions): Add striconveh.
69756
69757         * modules/striconveh-tests: New file.
69758         * tests/test-striconveh.c: New file.
69759
69760 2007-01-15  Bruno Haible  <bruno@clisp.org>
69761
69762         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69763         not from GNU libiconv or GNU libc.
69764
69765 2007-01-15  Bruno Haible  <bruno@clisp.org>
69766
69767         * doc/gnulib-intro.texi (Copyright): Explain the different license
69768         terms for module descriptions, autoconf macros, tests, documentation.
69769
69770 2007-01-14  Bruno Haible  <bruno@clisp.org>
69771
69772         * modules/striconv-tests: New file.
69773         * tests/test-striconv.c: New file.
69774
69775 2007-01-14  Bruno Haible  <bruno@clisp.org>
69776
69777         * modules/iconv-tests: New file.
69778         * tests/test-iconv.c: New file.
69779
69780 2007-01-14  Bruno Haible  <bruno@clisp.org>
69781
69782         * gnulib-tool (func_get_license): For test modules, use the license of
69783         the main module.
69784
69785 2007-01-14  Bruno Haible  <bruno@clisp.org>
69786
69787         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69788         if iconv is found to exist.
69789
69790 2007-01-14  Bruno Haible  <bruno@clisp.org>
69791
69792         * modules/c-ctype-tests: New file.
69793         * tests/test-c-ctype.c: New file.
69794
69795 2007-01-14  Bruno Haible  <bruno@clisp.org>
69796
69797         * modules/binary-io-tests: New file.
69798         * tests/test-binary-io.sh: New file.
69799         * tests/test-binary-io.c: New file.
69800
69801 2007-01-14  Bruno Haible  <bruno@clisp.org>
69802
69803         * modules/array-oset-tests: New file.
69804         * tests/test-array_oset.c: New file.
69805
69806 2007-01-14  Bruno Haible  <bruno@clisp.org>
69807
69808         * modules/array-list-tests: New file.
69809         * tests/test-array_list.c: New file.
69810
69811 2007-01-14  Bruno Haible  <bruno@clisp.org>
69812
69813         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69814         and make.
69815         Reported by Simon Josefsson in
69816         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69817
69818 2007-01-14  Bruno Haible  <bruno@clisp.org>
69819
69820         * modules/allocsa-tests: New file.
69821         * tests/test-allocsa.c: New file.
69822
69823 2007-01-14  Bruno Haible  <bruno@clisp.org>
69824
69825         * modules/fchdir (Depends-on): Add absolute-header.
69826         * modules/unistd (Depends-on): Likewise.
69827
69828 2006-12-30  Bruno Haible  <bruno@clisp.org>
69829
69830         * modules/fchdir: New file.
69831         * modules/unistd (Files): Add lib/unistd_.h.
69832         (Makefile.am): Generate unistd.h from unistd_.h.
69833         * lib/fchdir.c: New file.
69834         * lib/dirent_.h: New file.
69835         * lib/unistd_.h: New file.
69836         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69837         * m4/fchdir.m4: New file.
69838         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69839         (gl_HEADER_UNISTD): Invoke it.
69840         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69841         function.
69842         * lib/backupfile.c (opendir, closedir): Undefine.
69843         * lib/chown.c (open, close): Undefine.
69844         * lib/clean-temp.c (open, close): Undefine.
69845         * lib/copy-file.c (open, close): Undefine.
69846         * lib/execute.c (open, close): Undefine.
69847         * lib/fsusage.c (open, close): Undefine.
69848         * lib/gc-gnulib.c (open, close): Undefine.
69849         * lib/getcwd.c (opendir, closedir): Undefine.
69850         * lib/glob.c (opendir, closedir): Undefine.
69851         * lib/javacomp.c (open, close): Undefine.
69852         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69853         * lib/openat-proc.c (open, close): Undefine.
69854         * lib/pagealign_alloc.c (open, close): Undefine.
69855         * lib/pipe.c (open, close): Undefine.
69856         * lib/progreloc.c (open, close): Undefine.
69857         * lib/savedir.c (opendir, closedir): Undefine.
69858         * lib/utime.c (open, close): Undefine.
69859         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69860
69861 2007-01-10  Bruno Haible  <bruno@clisp.org>
69862
69863         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69864
69865 2007-01-12  Eric Blake  <ebb9@byu.net>
69866
69867         Provide a robust <wchar.h>.  Further simplifications are now
69868         possible in other modules, but not included here.
69869         * modules/wchar: New module.
69870         * m4/wchar.m4: New file.
69871         * lib/wchar_.h: Likewise.
69872         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69873         of the new module.
69874         * MODULES.html.sh (Extended multibyte and wide character utilities):
69875         New section.
69876
69877 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69878
69879         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69880         to a reasonable default for memory allocation.
69881         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69882         file system that reports garbage st_size values for symlinks.
69883         Problem reported by Liyang Hu.
69884
69885 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69886
69887         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69888         Emacs .#* auto-save files).
69889
69890 2007-01-11  Bruno Haible  <bruno@clisp.org>
69891
69892         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69893         directory.
69894
69895 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         Use @...@ consistently in lib/wctype_.h.
69898         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69899         on it being set to 1 or 0.
69900         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69901         go back to AC_SUBSTing it.
69902         * modules/wctype (Makefile.am): Undo previous change.
69903
69904 2007-01-10  Eric Blake  <ebb9@byu.net>
69905
69906         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69907         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69908         * modules/wctype (Makefile.am): Likewise.
69909         Reported by Chris McGuire.
69910
69911 2007-01-10  Jim Meyering  <jim@meyering.net>
69912
69913         fts.c: a small readability/maintainability improvement
69914         * lib/fts.c (fts_read): Make this code slightly more readable and
69915         maintainable by hoisting the "sp->fts_cur = p" assignments to
69916         immediately follow the statements that set P.  Derived from
69917         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69918
69919 2007-01-10  Eric Blake  <ebb9@byu.net>
69920
69921         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69922         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69924         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69925         Reported by Chris McGuire.
69926
69927 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69928
69929         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69930         in sed script.
69931
69932 2007-01-09  Bruno Haible  <bruno@clisp.org>
69933
69934         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69935         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69936         variables.
69937         (func_module): Use them.
69938
69939 2007-01-09  Bruno Haible  <bruno@clisp.org>
69940
69941         * modules/unistr/base: New file.
69942         * lib/unistr.h: New file.
69943
69944         * modules/unistr/u8-to-u16: New file.
69945         * lib/unistr/u8-to-u16.c: New file.
69946
69947         * modules/unistr/u8-to-u32: New file.
69948         * lib/unistr/u8-to-u32.c: New file.
69949
69950         * modules/unistr/u16-to-u8: New file.
69951         * lib/unistr/u16-to-u8.c: New file.
69952
69953         * modules/unistr/u16-to-u32: New file.
69954         * lib/unistr/u16-to-u32.c: New file.
69955
69956         * modules/unistr/u32-to-u8: New file.
69957         * lib/unistr/u32-to-u8.c: New file.
69958
69959         * modules/unistr/u32-to-u16: New file.
69960         * lib/unistr/u32-to-u16.c: New file.
69961
69962         * modules/unistr/u8-check: New file.
69963         * modules/unistr/u16-check: New file.
69964         * modules/unistr/u32-check: New file.
69965         * lib/unistr/u8-check.c: New file.
69966         * lib/unistr/u16-check.c: New file.
69967         * lib/unistr/u32-check.c: New file.
69968
69969         * modules/unistr/u8-chr: New file.
69970         * modules/unistr/u16-chr: New file.
69971         * modules/unistr/u32-chr: New file.
69972         * lib/unistr/u8-chr.c: New file.
69973         * lib/unistr/u16-chr.c: New file.
69974         * lib/unistr/u32-chr.c: New file.
69975
69976         * modules/unistr/u8-cmp: New file.
69977         * modules/unistr/u16-cmp: New file.
69978         * modules/unistr/u32-cmp: New file.
69979         * lib/unistr/u8-cmp.c: New file.
69980         * lib/unistr/u16-cmp.c: New file.
69981         * lib/unistr/u32-cmp.c: New file.
69982
69983         * modules/unistr/u8-cpy: New file.
69984         * modules/unistr/u16-cpy: New file.
69985         * modules/unistr/u32-cpy: New file.
69986         * lib/unistr/u8-cpy.c: New file.
69987         * lib/unistr/u16-cpy.c: New file.
69988         * lib/unistr/u32-cpy.c: New file.
69989         * lib/unistr/u-cpy.h: New file.
69990
69991         * modules/unistr/u8-cpy-alloc: New file.
69992         * modules/unistr/u16-cpy-alloc: New file.
69993         * modules/unistr/u32-cpy-alloc: New file.
69994         * lib/unistr/u8-cpy-alloc.c: New file.
69995         * lib/unistr/u16-cpy-alloc.c: New file.
69996         * lib/unistr/u32-cpy-alloc.c: New file.
69997         * lib/unistr/u-cpy-alloc.h: New file.
69998
69999         * modules/unistr/u8-endswith: New file.
70000         * modules/unistr/u16-endswith: New file.
70001         * modules/unistr/u32-endswith: New file.
70002         * lib/unistr/u8-endswith.c: New file.
70003         * lib/unistr/u16-endswith.c: New file.
70004         * lib/unistr/u32-endswith.c: New file.
70005         * lib/unistr/u-endswith.h: New file.
70006
70007         * modules/unistr/u8-mblen: New file.
70008         * modules/unistr/u16-mblen: New file.
70009         * modules/unistr/u32-mblen: New file.
70010         * lib/unistr/u8-mblen.c: New file.
70011         * lib/unistr/u16-mblen.c: New file.
70012         * lib/unistr/u32-mblen.c: New file.
70013
70014         * modules/unistr/u8-mbtouc: New file.
70015         * modules/unistr/u16-mbtouc: New file.
70016         * modules/unistr/u32-mbtouc: New file.
70017         * lib/unistr/u8-mbtouc.c: New file.
70018         * lib/unistr/u16-mbtouc.c: New file.
70019         * lib/unistr/u32-mbtouc.c: New file.
70020
70021         * modules/unistr/u8-mbtouc-safe: New file.
70022         * modules/unistr/u16-mbtouc-safe: New file.
70023         * modules/unistr/u32-mbtouc-safe: New file.
70024         * lib/unistr/u8-mbtouc-safe.c: New file.
70025         * lib/unistr/u16-mbtouc-safe.c: New file.
70026         * lib/unistr/u32-mbtouc-safe.c: New file.
70027
70028         * modules/unistr/u8-move: New file.
70029         * modules/unistr/u16-move: New file.
70030         * modules/unistr/u32-move: New file.
70031         * lib/unistr/u8-move.c: New file.
70032         * lib/unistr/u16-move.c: New file.
70033         * lib/unistr/u32-move.c: New file.
70034         * lib/unistr/u-move.h: New file.
70035
70036         * modules/unistr/u8-next: New file.
70037         * modules/unistr/u16-next: New file.
70038         * modules/unistr/u32-next: New file.
70039         * lib/unistr/u8-next.c: New file.
70040         * lib/unistr/u16-next.c: New file.
70041         * lib/unistr/u32-next.c: New file.
70042
70043         * modules/unistr/u8-prev: New file.
70044         * modules/unistr/u16-prev: New file.
70045         * modules/unistr/u32-prev: New file.
70046         * lib/unistr/u8-prev.c: New file.
70047         * lib/unistr/u16-prev.c: New file.
70048         * lib/unistr/u32-prev.c: New file.
70049
70050         * modules/unistr/u8-set: New file.
70051         * modules/unistr/u16-set: New file.
70052         * modules/unistr/u32-set: New file.
70053         * lib/unistr/u8-set.c: New file.
70054         * lib/unistr/u16-set.c: New file.
70055         * lib/unistr/u32-set.c: New file.
70056         * lib/unistr/u-set.h: New file.
70057
70058         * modules/unistr/u8-startswith: New file.
70059         * modules/unistr/u16-startswith: New file.
70060         * modules/unistr/u32-startswith: New file.
70061         * lib/unistr/u8-startswith.c: New file.
70062         * lib/unistr/u16-startswith.c: New file.
70063         * lib/unistr/u32-startswith.c: New file.
70064         * lib/unistr/u-startswith.h: New file.
70065
70066         * modules/unistr/u8-stpcpy: New file.
70067         * modules/unistr/u16-stpcpy: New file.
70068         * modules/unistr/u32-stpcpy: New file.
70069         * lib/unistr/u8-stpcpy.c: New file.
70070         * lib/unistr/u16-stpcpy.c: New file.
70071         * lib/unistr/u32-stpcpy.c: New file.
70072         * lib/unistr/u-stpcpy.h: New file.
70073
70074         * modules/unistr/u8-stpncpy: New file.
70075         * modules/unistr/u16-stpncpy: New file.
70076         * modules/unistr/u32-stpncpy: New file.
70077         * lib/unistr/u8-stpncpy.c: New file.
70078         * lib/unistr/u16-stpncpy.c: New file.
70079         * lib/unistr/u32-stpncpy.c: New file.
70080         * lib/unistr/u-stpncpy.h: New file.
70081
70082         * modules/unistr/u8-strcat: New file.
70083         * modules/unistr/u16-strcat: New file.
70084         * modules/unistr/u32-strcat: New file.
70085         * lib/unistr/u8-strcat.c: New file.
70086         * lib/unistr/u16-strcat.c: New file.
70087         * lib/unistr/u32-strcat.c: New file.
70088         * lib/unistr/u-strcat.h: New file.
70089
70090         * modules/unistr/u8-strchr: New file.
70091         * modules/unistr/u16-strchr: New file.
70092         * modules/unistr/u32-strchr: New file.
70093         * lib/unistr/u8-strchr.c: New file.
70094         * lib/unistr/u16-strchr.c: New file.
70095         * lib/unistr/u32-strchr.c: New file.
70096
70097         * modules/unistr/u8-strcmp: New file.
70098         * modules/unistr/u16-strcmp: New file.
70099         * modules/unistr/u32-strcmp: New file.
70100         * lib/unistr/u8-strcmp.c: New file.
70101         * lib/unistr/u16-strcmp.c: New file.
70102         * lib/unistr/u32-strcmp.c: New file.
70103
70104         * modules/unistr/u8-strcpy: New file.
70105         * modules/unistr/u16-strcpy: New file.
70106         * modules/unistr/u32-strcpy: New file.
70107         * lib/unistr/u8-strcpy.c: New file.
70108         * lib/unistr/u16-strcpy.c: New file.
70109         * lib/unistr/u32-strcpy.c: New file.
70110         * lib/unistr/u-strcpy.h: New file.
70111
70112         * modules/unistr/u8-strcspn: New file.
70113         * modules/unistr/u16-strcspn: New file.
70114         * modules/unistr/u32-strcspn: New file.
70115         * lib/unistr/u8-strcspn.c: New file.
70116         * lib/unistr/u16-strcspn.c: New file.
70117         * lib/unistr/u32-strcspn.c: New file.
70118         * lib/unistr/u-strcspn.h: New file.
70119
70120         * modules/unistr/u8-strdup: New file.
70121         * modules/unistr/u16-strdup: New file.
70122         * modules/unistr/u32-strdup: New file.
70123         * lib/unistr/u8-strdup.c: New file.
70124         * lib/unistr/u16-strdup.c: New file.
70125         * lib/unistr/u32-strdup.c: New file.
70126         * lib/unistr/u-strdup.h: New file.
70127
70128         * modules/unistr/u8-strlen: New file.
70129         * modules/unistr/u16-strlen: New file.
70130         * modules/unistr/u32-strlen: New file.
70131         * lib/unistr/u8-strlen.c: New file.
70132         * lib/unistr/u16-strlen.c: New file.
70133         * lib/unistr/u32-strlen.c: New file.
70134         * lib/unistr/u-strlen.h: New file.
70135
70136         * modules/unistr/u8-strmblen: New file.
70137         * modules/unistr/u16-strmblen: New file.
70138         * modules/unistr/u32-strmblen: New file.
70139         * lib/unistr/u8-strmblen.c: New file.
70140         * lib/unistr/u16-strmblen.c: New file.
70141         * lib/unistr/u32-strmblen.c: New file.
70142
70143         * modules/unistr/u8-strmbtouc: New file.
70144         * modules/unistr/u16-strmbtouc: New file.
70145         * modules/unistr/u32-strmbtouc: New file.
70146         * lib/unistr/u8-strmbtouc.c: New file.
70147         * lib/unistr/u16-strmbtouc.c: New file.
70148         * lib/unistr/u32-strmbtouc.c: New file.
70149
70150         * modules/unistr/u8-strncat: New file.
70151         * modules/unistr/u16-strncat: New file.
70152         * modules/unistr/u32-strncat: New file.
70153         * lib/unistr/u8-strncat.c: New file.
70154         * lib/unistr/u16-strncat.c: New file.
70155         * lib/unistr/u32-strncat.c: New file.
70156         * lib/unistr/u-strncat.h: New file.
70157
70158         * modules/unistr/u8-strncmp: New file.
70159         * modules/unistr/u16-strncmp: New file.
70160         * modules/unistr/u32-strncmp: New file.
70161         * lib/unistr/u8-strncmp.c: New file.
70162         * lib/unistr/u16-strncmp.c: New file.
70163         * lib/unistr/u32-strncmp.c: New file.
70164
70165         * modules/unistr/u8-strncpy: New file.
70166         * modules/unistr/u16-strncpy: New file.
70167         * modules/unistr/u32-strncpy: New file.
70168         * lib/unistr/u8-strncpy.c: New file.
70169         * lib/unistr/u16-strncpy.c: New file.
70170         * lib/unistr/u32-strncpy.c: New file.
70171         * lib/unistr/u-strncpy.h: New file.
70172
70173         * modules/unistr/u8-strnlen: New file.
70174         * modules/unistr/u16-strnlen: New file.
70175         * modules/unistr/u32-strnlen: New file.
70176         * lib/unistr/u8-strnlen.c: New file.
70177         * lib/unistr/u16-strnlen.c: New file.
70178         * lib/unistr/u32-strnlen.c: New file.
70179         * lib/unistr/u-strnlen.h: New file.
70180
70181         * modules/unistr/u8-strpbrk: New file.
70182         * modules/unistr/u16-strpbrk: New file.
70183         * modules/unistr/u32-strpbrk: New file.
70184         * lib/unistr/u8-strpbrk.c: New file.
70185         * lib/unistr/u16-strpbrk.c: New file.
70186         * lib/unistr/u32-strpbrk.c: New file.
70187         * lib/unistr/u-strpbrk.h: New file.
70188
70189         * modules/unistr/u8-strrchr: New file.
70190         * modules/unistr/u16-strrchr: New file.
70191         * modules/unistr/u32-strrchr: New file.
70192         * lib/unistr/u8-strrchr.c: New file.
70193         * lib/unistr/u16-strrchr.c: New file.
70194         * lib/unistr/u32-strrchr.c: New file.
70195
70196         * modules/unistr/u8-strspn: New file.
70197         * modules/unistr/u16-strspn: New file.
70198         * modules/unistr/u32-strspn: New file.
70199         * lib/unistr/u8-strspn.c: New file.
70200         * lib/unistr/u16-strspn.c: New file.
70201         * lib/unistr/u32-strspn.c: New file.
70202         * lib/unistr/u-strspn.h: New file.
70203
70204         * modules/unistr/u8-strstr: New file.
70205         * modules/unistr/u16-strstr: New file.
70206         * modules/unistr/u32-strstr: New file.
70207         * lib/unistr/u8-strstr.c: New file.
70208         * lib/unistr/u16-strstr.c: New file.
70209         * lib/unistr/u32-strstr.c: New file.
70210         * lib/unistr/u-strstr.h: New file.
70211
70212         * modules/unistr/u8-strtok: New file.
70213         * modules/unistr/u16-strtok: New file.
70214         * modules/unistr/u32-strtok: New file.
70215         * lib/unistr/u8-strtok.c: New file.
70216         * lib/unistr/u16-strtok.c: New file.
70217         * lib/unistr/u32-strtok.c: New file.
70218         * lib/unistr/u-strtok.h: New file.
70219
70220         * modules/unistr/u8-uctomb: New file.
70221         * modules/unistr/u16-uctomb: New file.
70222         * modules/unistr/u32-uctomb: New file.
70223         * lib/unistr/u8-uctomb.c: New file.
70224         * lib/unistr/u16-uctomb.c: New file.
70225         * lib/unistr/u32-uctomb.c: New file.
70226
70227         * MODULES.html.sh (Unicode string functions): Add the new modules.
70228
70229 2007-01-08  Bruno Haible  <bruno@clisp.org>
70230
70231         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70232         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70233         subdirectories.
70234
70235 2007-01-08  Karl Berry  <karl@gnu.org>
70236
70237         * doc/error.texi: mention that main() fns must set program_name
70238         when progname is used.
70239
70240 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70241
70242         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70243         WCTYPE_H is empty, for the benefit of builds from non-distclean
70244         directories.  Problem reported by Eric Blake in
70245         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70246
70247 2007-01-08  Bruno Haible  <bruno@clisp.org>
70248
70249         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70250         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70251         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70252         PROVIDE_CANONICALIZE_FILENAME_MODE.
70253         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70254
70255 2007-01-08  Bruno Haible  <bruno@clisp.org>
70256
70257         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70258         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70259         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70260         * lib/fts.c: Likewise.
70261         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70262
70263 2006-12-25  Bruno Haible  <bruno@clisp.org>
70264
70265         * modules/utf8-ucs4-safe: New file.
70266         * lib/utf8-ucs4-safe.h: New file.
70267         * lib/unistr/utf8-ucs4-safe.c: New file.
70268
70269         * modules/utf16-ucs4-safe: New file.
70270         * lib/utf16-ucs4-safe.h: New file.
70271         * lib/unistr/utf16-ucs4-safe.c: New file.
70272
70273         * MODULES.html.sh (Unicode string functions): Add the new modules.
70274
70275 2007-01-08  Bruno Haible  <bruno@clisp.org>
70276
70277         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70278         (Depends-on): Add unitypes.
70279         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70280         (u8_mbtouc_aux): Move out to separate file.
70281         (u8_mbtouc): Use ucs4_t, uint8_t types.
70282         * lib/unistr/utf8-ucs4.c: New file.
70283
70284         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70285         (Depends-on): Add unitypes.
70286         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70287         (u16_mbtouc_aux): Move out to separate file.
70288         (u16_mbtouc): Use ucs4_t, uint16_t types.
70289         * lib/unistr/utf16-ucs4.c: New file.
70290
70291         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70292         (Depends-on): Add unitypes.
70293         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70294         (u8_uctomb_aux): Move out to separate file.
70295         (u8_uctomb): Use ucs4_t, uint8_t types.
70296         * lib/unistr/ucs4-utf8.c: New file.
70297
70298         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70299         (Depends-on): Add unitypes.
70300         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70301         (u16_uctomb_aux): Move out to separate file.
70302         (u16_uctomb): Use ucs4_t, uint16_t types.
70303         * lib/unistr/ucs4-utf16.c: New file.
70304
70305 2006-12-25  Bruno Haible  <bruno@clisp.org>
70306
70307         * modules/unitypes: New file.
70308         * lib/unitypes.h: New file.
70309         * MODULES.html.sh (func_all_modules): New section "Unicode string
70310         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70311         this section. Add unitypes.
70312
70313 2007-01-08  Bruno Haible  <bruno@clisp.org>
70314
70315         Avoid variable names that conflict with those from libtool.
70316         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70317         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70318         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70319         library_names_spec to acl_library_names_spec, hardcode_* to
70320         acl_hardcode_*.
70321         Reported by Ralf Wildenhues.
70322
70323 2007-01-08  Bruno Haible  <bruno@clisp.org>
70324
70325         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70326         definition.
70327         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70328         definition.
70329         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70330         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70331         definition.
70332         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70333         definition.
70334         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70335         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70336         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70337         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70338         definition.
70339         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70340         definition.
70341         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70342         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70343         GC_USE_<algorithm>.
70344         * lib/gc-libgcrypt.c: Likewise.
70345         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70346         * modules/gc-arctwo (configure.ac): Likewise.
70347         * modules/gc-des (configure.ac): Likewise.
70348         * modules/gc-hmac-md5 (configure.ac): Likewise.
70349         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70350         * modules/gc-md2 (configure.ac): Likewise.
70351         * modules/gc-md4 (configure.ac): Likewise.
70352         * modules/gc-md5 (configure.ac): Likewise.
70353         * modules/gc-random (configure.ac): Likewise.
70354         * modules/gc-rijndael (configure.ac): Likewise.
70355         * modules/gc-sha1 (configure.ac): Likewise.
70356
70357 2007-01-08  Bruno Haible  <bruno@clisp.org>
70358
70359         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70360         macro definition.
70361         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70362         definition.
70363         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70364         definition.
70365         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70366         * modules/fcntl-safer (configure.ac): Likewise.
70367         * modules/fopen-safer (configure.ac): Likewise.
70368         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70369         GNULIB_FWRITEERROR macro definition.
70370
70371 2007-01-08  Bruno Haible  <bruno@clisp.org>
70372
70373         * m4/gnulib-common.m4: New file.
70374         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70375         (func_get_filelist): Add m4/gnulib-common.m4.
70376
70377 2007-01-08  Bruno Haible  <bruno@clisp.org>
70378
70379         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70380         command.
70381
70382 2007-01-08  Jim Meyering  <jim@meyering.net>
70383
70384         Use a more robust test for a "can't happen" condition.
70385         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70386         narrowed the st_size value.  Presuming the "can't happen" condition
70387         is true, that narrowing could conceivably convert an invalid st_size
70388         value into a valid one.  Instead, use a change based on Matthew
70389         Woehlke's original patch.
70390
70391         Slight readability improvement: use an assert-like macro
70392         in place of literal "abort ()" uses.
70393         * lib/fts.c (fts_assert): Define.
70394         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70395         Use this macro instead of a bare 'abort'.
70396
70397 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70398
70399         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70400         simply work around them.
70401         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70402         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70403         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70404         declaring.
70405         Don't bother to define as macros, since the standard doesn't require it.
70406         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70407         longer worry about IRIX 5.3.
70408         (HAVE_WCTYPE_CTMP_BUG): Remove.
70409
70410 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70413         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70414         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70415         Problems reported by Georg Schwarz for IRIX 5.3.
70416
70417         * gnulib-tool (autoconf_minversion): Take the maximum version number
70418         found, not the minimum.  Problem reported by James Youngman.
70419
70420 2007-01-03  Karl Berry  <karl@gnu.org>
70421
70422         * doc/error.texi: new file, explaining interaction with progname.
70423         * doc/gnulib.texi: include it.  Update copyright.
70424
70425 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70426
70427         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70428         AC_CANONICAL_HOST, to improve autobuild outputs.
70429
70430 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70431             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70432
70433         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70434         sockets, server sockets, and other file descriptors.  Count errors
70435         to compute the return value.  Reorder the code a bit to be easier
70436         to follow.  Don't set event bits that were not requested (except
70437         POLLERR and POLLHUP).
70438
70439 2007-01-01  Bruno Haible  <bruno@clisp.org>
70440
70441         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70442
70443 2007-01-03  Jim Meyering  <jim@meyering.net>
70444
70445         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70446
70447 2007-01-02  Bruno Haible  <bruno@clisp.org>
70448
70449         * modules/settime (Include): Require timespec.h.
70450         * modules/nanosleep (Include): Likewise.
70451
70452 2007-01-01  Bruno Haible  <bruno@clisp.org>
70453
70454         * gnulib-tool (func_emit_copyright_notice): Bump year.
70455         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70456
70457 2007-01-01  Bruno Haible  <bruno@clisp.org>
70458
70459         Improve support for OpenBSD.
70460         * build-aux/config.rpath (libname_spec): Export.
70461         (library_names_spec): New variable. Export.
70462         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70463         library_names_spec from the config.rpath output. Locate shared library
70464         through the name pattern in library_names_spec.
70465
70466 2007-01-01  Eric Blake  <ebb9@byu.net>
70467
70468         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70469
70470 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70471
70472         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70473         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70474         assume the C locale, and avoid an "eval" that could cause trouble.
70475         Problem with SORT reported by Bob Proulx.
70476
70477         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70478         Define.  Trivial patch from Henning Nielsen Lund, originally
70479         sent to bug-grep@gnu.org today.
70480
70481 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70482
70483         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70484         struct stat.  Problem reported by Henning Nielsen Lund.
70485         * lib/acl.c: Include acl.h first, to check interface.  Don't
70486         bother to include sys/types.h and sys/stat.h again.
70487
70488 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         Import the following change from libc; problem reported by
70491         Sven Verdoolaege.
70492
70493         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70494
70495         [BZ #1373]
70496         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70497
70498 2006-12-28  Jim Meyering  <jim@meyering.net>
70499
70500         * build-aux/announce-gen: Do not assume that the package
70501         builds any of tar.gz, tar.bz2, and .xdelta files.
70502         Suggestion from Simon Josefsson.
70503
70504 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70505
70506         * modules/announce-gen: New file.
70507
70508 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70509
70510         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70511         handles its gotchas now.
70512         * lib/mbswidth.c: Likewise.
70513         * lib/wcwidth.h: Likewise.
70514         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70515         and iswcntrl; the wctype module does this stuff now.
70516         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70518         * modules/mbchar (Depends-on): Add wctype.
70519         * modules/mbswidth (Depends-on): Likewise.
70520         * modules/wcwidth (Depends-on): Likewise.
70521
70522 2006-12-27  Eric Blake  <ebb9@byu.net>
70523
70524         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70525         module uses more than what <wctype.h> is required to provide.
70526
70527 2006-12-26  Eric Blake  <ebb9@byu.net>
70528
70529         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70530
70531 2006-12-26  Eric Blake  <ebb9@byu.net>
70532
70533         * modules/absolute-header: New module.
70534         * modules/fcntl (Depends-on): Depend on it.
70535         * modules/inttypes (Depends-on): Likewise.
70536         * modules/stdint (Depends-on): Likewise.
70537         * modules/sys_stat (Depends-on): Likewise.
70538         * modules/wctype (Depends-on): Likewise.
70539         * MODULES.html.sh (Support for building libraries and
70540         executables): Document it.
70541
70542 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70543
70544         * gnulib-tool (SED): Remove, undoing previous change.
70545         The problem was that it broke coreutils on Solaris, because
70546         "sed --posix" leaked into a makefile.
70547         (sed): New alias, if 'alias' and GNU sed.
70548
70549 2006-12-24  Jim Meyering  <jim@meyering.net>
70550
70551         Work around an fchownat bug in glibc-2.4:
70552         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70553         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70554         in spite of the -P option.
70555         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70556         New macros.
70557         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70558         * modules/openat (Files): Add lib/fchownat.c.
70559         * lib/openat.c (fchownat): Don't define here.  Move to...
70560         * lib/fchownat.c: ...this new file.
70561
70562 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70563
70564         Fix bug reported by Bruno Haible in
70565         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70566         where quotearg.c didn't compile on Mac OS X 10.2 because it
70567         lacks <wchar.h> and wint_t.
70568         * lib/wctype_.h (__wctype_wint_t): New type.
70569         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70570         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70571         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70572         Arg is now of type __wctype_wint_t, not wint_t.
70573         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70574         substitute HAVE_WINT_T.
70575         * modules/wctype (Files): Add m4/wint_t.m4.
70576         (wctype.h): Substitute HAVE_WINT_T.
70577
70578 2006-12-23  Bruno Haible  <bruno@clisp.org>
70579
70580         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70581
70582 2006-12-23  Bruno Haible  <bruno@clisp.org>
70583
70584         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70585         S_ISLNK.
70586         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70587         mingw.
70588
70589 2006-12-22  Bruno Haible  <bruno@clisp.org>
70590
70591         * lib/copy-file.c: Include acl.h.
70592         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70593         Close the file descriptors only after being done with copy_acl.
70594         * modules/copy-file (Depends-on): Add acl.
70595
70596 2006-12-22  Bruno Haible  <bruno@clisp.org>
70597
70598         * gnulib-tool (SED): New variable.
70599         Use $SED instead of sed everywhere.
70600
70601 2006-12-22  Bruno Haible  <bruno@clisp.org>
70602
70603         * modules/no-c++: New file.
70604         * m4/no-c++.m4: New file.
70605         * MODULES.html.sh (Support for building libraries and executables):
70606         Add no-c++.
70607
70608 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70609
70610         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70611         Include <limits.h>, and use its INT_MAX to rewrite the
70612         j loop so that it does not overflow 'int'.  Problem reported by
70613         Ralf Wildenhues in
70614         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70615         Play it safe by shifting left by 1 rather than multiplying by 2,
70616         as GCC is less likely to optimize this away when the value
70617         is signed (when it assumes overflow leads to undefined behavior).
70618         Also, don't assume time_t uses two's complement.
70619
70620 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70621
70622         * MODULES.html.sh: New module wctype.
70623         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70624         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70625         <wctype.h>, since the new wctype module should fix this.
70626         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70627         the wctype module should arrange for it.
70628         * lib/regex_internal.h: Likewise.
70629         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70630         since the wctype module should handle this now.
70631         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70632         * modules/fnmatch (Depends-on): Add wctype.
70633         * modules/quotearg (Depends-on): Likewise.
70634         * modules/regex (Depends-on): Likewise.
70635
70636 2006-12-19  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70639         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70640
70641 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70642
70643         * modules/savewd (Depends-on): Fix dependency on fcntl.
70644
70645 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70646
70647         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70648         conforms to C99, rather than relying on the user's environment
70649         setting of STDINT_H.
70650
70651 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70652         and Eric Blake  <ebb9@byu.net>
70653
70654         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70655         This is more consistent with the other defines here.
70656         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70657         Port to z/OS.  Problem reported by Paul Gilmartin.
70658         Change local vars to use gl_ prefix rather than ac_.
70659         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70660         with other defines.
70661         * modules/double-slash-root: New module.
70662         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70663         (Depends-on): Add double-slash-root.
70664         * MODULES.html.sh (File system functions): Mention new module.
70665
70666 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70667
70668         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70669         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70670         This is for the benefit of gzip, which doesn't do i18n.
70671
70672 2006-12-12  Jim Meyering  <jim@meyering.net>
70673
70674         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70675         Reported by Andreas Schwab <schwab@suse.de>.
70676
70677 2006-12-12  Bruno Haible  <bruno@clisp.org>
70678
70679         Merge these changes.
70680         2006-09-05  Bruno Haible  <bruno@clisp.org>
70681         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70682         iconv_alloc succeeded.
70683         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70684         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70685         test for " && dest " at the end - dest is always != NULL there. Call
70686         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70687         with 2xNULL arguments, also to flush the state storage. Handle the
70688         IRIX iconv behaviour. Realloc the final result, to throw away unused
70689         memory.
70690
70691 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70692
70693         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70694         and fchmodat unconditionally, since glibc 2.4 has them.
70695         Problem reported by Arkadiusz Miskiewicz.
70696
70697 2006-12-10  Bruno Haible  <bruno@clisp.org>
70698
70699         * gnulib-tool (func_import): Show the include files only for those
70700         modules that are copied and specified.
70701         Reported by Karl Berry.
70702
70703 2006-12-08  Jim Meyering  <jim@meyering.net>
70704
70705         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70706         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70707
70708         * build-aux/announce-gen: Add two new options, both optional:
70709         --bootstrap-tools=TOOL_LIST
70710               a comma-separated list of tools, e.g.,
70711               autoconf,automake,bison,gnulib
70712         --gnulib-snapshot-date=DATE
70713               if gnulib is in the bootstrap tool list,
70714               then report this as the snapshot date.
70715               If not specified, use the current date/time.
70716               If you specify a date here, be sure it's UTC.
70717
70718 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70719
70720         * tests/test-argp-2.sh: Fix test to match actual output.
70721         (func_compare): Fix sed script to be portable.
70722
70723 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70726         workaround for this case.  It is not autoconfigured now; offhand
70727         it's hard to see how to autoconfigure it.
70728
70729 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70732         a directory that is about to be chowned.  Such a directory's
70733         initial file permissions should permit the owner only and this
70734         should not be changed until after the chown, since the group and
70735         other bits would be incorrect if they granted permission before
70736         the chown.
70737
70738         Fix porting problem for iswctype reported by Georg Schwarz in:
70739         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70740         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70741         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70742         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70743         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70744
70745 2006-12-03  Jim Meyering  <jim@meyering.net>
70746
70747         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70748         p->fts_statp may not yet be defined.
70749         (fts_read): Instead, set it in the caller, once p->fts_statp is
70750         sure to be defined, and corresponds to a top-level directory.
70751         This bug made du -x fail.  Here's the coreutils test case:
70752         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70753         Reported by Mike Frysinger.
70754
70755 2006-12-01  Jim Meyering  <jim@meyering.net>
70756
70757         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70758         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70759         Reported by Simon Josefsson.
70760
70761 2006-11-30  Jim Meyering  <jim@meyering.net>
70762
70763         * m4/warning.m4: Use the all-permissive copyright notice
70764         recommended by RMS (rather than LGPL).
70765         * m4/vararrays.m4: Likewise.
70766         * m4/flexmember.m4: Likewise.
70767
70768 2006-11-29  Bruno Haible  <bruno@clisp.org>
70769
70770         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70771         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70772         using +=.
70773         Reported by Simon Josefsson <simon@josefsson.org>.
70774
70775 2006-11-28  James Youngman <jay@gnu.org>
70776
70777         * README: Advise users that they might find the bug-gnulib@gnu.org
70778         and autotools-announce@gnu.org mailing lists useful.
70779
70780 2006-11-28  Bruno Haible  <bruno@clisp.org>
70781
70782         * m4/ptrdiff_max.m4: Remove file.
70783
70784 2006-11-21  Bruno Haible  <bruno@clisp.org>
70785
70786         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70787         _AC_COMPUTE_INT.
70788         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70789         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70790         _AC_COMPUTE_INT.
70791         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70792         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70793         _AC_COMPUTE_INT.
70794         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70795
70796 2006-11-28  Jim Meyering  <jim@meyering.net>
70797
70798         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70799         warning from "gcc -Wshadow" about shadowing the builtin.
70800
70801 2006-11-27  Bruno Haible  <bruno@clisp.org>
70802
70803         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70804         _AC_COMPUTE_INT.
70805         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70806
70807 2006-11-27  Bruno Haible  <bruno@clisp.org>
70808             Paul Eggert  <eggert@cs.ucla.edu>
70809
70810         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70811
70812 2006-11-26  Bruno Haible  <bruno@clisp.org>
70813
70814         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70815         noinst_LTLIBRARIES.
70816
70817 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70818             Bruno Haible  <bruno@clisp.org>
70819
70820         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70821         if compiling with "gcc -ansi".
70822
70823 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70824
70825         Fix some incompatibilities with gcc -ansi -pedantic.
70826         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70827         if compiling pedantically with GCC, unless it's C99 or later.
70828         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70829         it mishandles gcc -ansi -pedantic as well.
70830         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70831         if gcc -pedantic.
70832         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70833         initializers for struct if -pedantic, unless it's C99 or later.
70834
70835 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70836
70837         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70838         Don't close an fd more than once. Identical atimes indicate
70839         success, not failure.
70840
70841 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70842
70843         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70844
70845 2006-11-23  Jim Meyering  <jim@meyering.net>
70846
70847         * build-aux/announce-gen: New file.  From coreutils.
70848
70849 2006-11-22  Jim Meyering  <jim@meyering.net>
70850
70851         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70852         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70853         (fts_read): Use a temporary to narrow the overused st_size member
70854         before using it in a switch statement.  Reported by Matthew Woehlke.
70855
70856         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70857         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70858
70859 2006-11-20  Bruno Haible  <bruno@clisp.org>
70860
70861         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70862         changequote instead of pairs of brackets.
70863         Reported by Andreas Schwab <schwab@suse.de>.
70864
70865 2006-11-21  Jim Meyering  <jim@meyering.net>
70866
70867         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70868         so as to remain compatible with older compilers.
70869         Patch from Michael Deutschmann.
70870
70871 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70872
70873         * MODULES.html.sh (File system functions): Add openat.
70874
70875         * lib/openat.h (rpl_fstatat): New macro, if
70876         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70877         (fstatat): Define to rpl_fstatat under the same conditions,
70878         unless COMPILING_FSTATAT.
70879         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70880         seems to have the bug.
70881         * lib/fstatat.c: New file.
70882         * modules/openat (Files): Add it.
70883
70884 2006-11-20  Bruno Haible  <bruno@clisp.org>
70885
70886         * Makefile: New file.
70887
70888 2006-11-20  Jim Meyering  <jim@meyering.net>
70889
70890         The beginnings of syntax-related checks for gnulib.
70891         * lib/Makefile: New file.
70892         * lib/t-idcache: New script.  Ensure that the two halves of
70893         idcache.c stay in sync.
70894
70895         * lib/idcache.c: Adjust comments in user- and group- portions to
70896         be more accurate, and to be consistent with one another.
70897
70898 2006-11-20  Jim Meyering  <jim@meyering.net>
70899
70900         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70901         continue using the flexible array member (thus, this module performs
70902         half as many malloc calls), with the addition that...
70903         (getgroup, getuser): Consistently record a non-match via an empty
70904         "name" string, and map an empty string match to a NULL return value.
70905         * modules/idcache (Depends-on): Re-add flexmember.
70906
70907         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70908         (getuidbyname, getgroup, getgidbyname): Likewise.
70909
70910         Use cleaner syntax: NULL rather than 0.
70911         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70912
70913 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70914
70915         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70916         It mishandled the case where the group was missing.
70917         Problem reported by Greg Schafer.
70918         * modules/idcache: Likewise.
70919
70920 2006-11-18  Jim Meyering  <jim@meyering.net>
70921
70922         * check-module (%exempt_header): Add exception for some
70923         conditionally-included headers.
70924
70925         * modules/i-ring (Depends-on): Add verify.
70926         (License): Change to LGPL.
70927
70928 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70929
70930         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70931         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70932         and inttostr.h.  Use snprintf rather than uinttostr, so that
70933         LGPLed code doesn't depend on GPLed.
70934
70935 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70936
70937         * modules/inline (License): Change from GPL to LGPL.
70938
70939 2006-11-17  Jim Meyering  <jim@meyering.net>
70940
70941         * modules/d-type (License): Switch to LGPL.
70942
70943 2006-11-15  Bruno Haible  <bruno@clisp.org>
70944
70945         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70946
70947 2006-11-15  Eric Blake  <ebb9@byu.net>
70948
70949         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70950         the module dependency.
70951
70952 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70953             Bruno Haible  <bruno@clisp.org>
70954
70955         * gnulib-tool (func_create_testdir): Add license consistency check.
70956
70957 2006-11-15  Eric Blake  <ebb9@byu.net>
70958
70959         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70960         random "(cached)" in configure output.
70961
70962 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70963
70964         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70965         test for conforming inttypes.h is both announced and cached.
70966
70967         * MODULES.html.sh (seen_modules, seen_files): New variables.
70968         (func_module): Rewrite to use a few less gnulib-tool and sed
70969         invocations.  Avoid a couple of quadratic algorithms for ...
70970         (missed_modules, missed_files): ... these, with ...
70971         (func_append, func_tmpdir): ... these new functions, from
70972         gnulib-tool.  Analogously, install traps for cleanup.
70973
70974         * tests/test-gc.c (main): Remove unused variables.
70975         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70976
70977 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70978
70979         * modules/inttostr (License): Change to LGPL.
70980
70981 2006-11-14  Eric Blake  <ebb9@byu.net>
70982
70983         * modules/tempname (License): Change to LGPL.
70984
70985 2006-11-14  Eric Blake  <ebb9@byu.net>
70986
70987         * doc/functions.texi (Function Portability): *printf functions on
70988         Cygwin now understand all POSIX size specifiers.
70989
70990 2006-11-14  Bruno Haible  <bruno@clisp.org>
70991
70992         * modules/c-ctype (License): Change to LGPL.
70993
70994 2006-11-12  Bruno Haible  <bruno@clisp.org>
70995
70996         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70997         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70998         for GNOME libraries, for which the include files are installed in
70999         subdirectories of $prefix/include.
71000
71001 2006-11-12  Bruno Haible  <bruno@clisp.org>
71002
71003         * m4/lib-link.m4: Require at least autoconf-2.54.
71004         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71005         name to underscores for the --with option.
71006
71007 2006-11-13  Bruno Haible  <bruno@clisp.org>
71008
71009         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71010         the tests directory.
71011         Reported by Ralf Wildenhues.
71012
71013 2006-11-13  Bruno Haible  <bruno@clisp.org>
71014
71015         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71016         (func_emit_initmacro_end): Undo the override here.
71017         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71018         Works around the famous automake error in coreutils.
71019
71020 2006-11-13  Eric Blake  <ebb9@byu.net>
71021
71022         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71023         element, not its node.
71024
71025 2006-11-12  Bruno Haible  <bruno@clisp.org>
71026
71027         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71028         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71029
71030 2006-11-12  Bruno Haible  <bruno@clisp.org>
71031
71032         * gnulib-tool: New option --local-symlink.
71033         (func_usage): Document it.
71034         (lsymbolic): New variable.
71035         (func_import, func_create_testdir): If --symlink was not specified,
71036         test whether --local-symlink was specified and the file comes from
71037         the local_gnulib_dir.
71038
71039 2006-11-12  Bruno Haible  <bruno@clisp.org>
71040
71041         * gnulib-tool (func_ln): New function.
71042         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71043
71044 2006-11-12  Bruno Haible  <bruno@clisp.org>
71045
71046         Finish support for source files in subdirectories.
71047         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71048         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71049         AUTOMAKE_OPTIONS.
71050         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71051
71052 2006-11-12  Bruno Haible  <bruno@clisp.org>
71053
71054         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71055         EXTRA_lib_SOURCES augmentation.
71056         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71057
71058 2006-11-12  Jim Meyering  <jim@meyering.net>
71059
71060         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71061         file descriptors.  This also averts a failure on systems with
71062         native openat support when a traversed directory lacks "x" access.
71063         * lib/fts_.h: Include "i-ring.h"
71064         (struct FTS) [fts_fd_ring]: New member.
71065         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71066         (FCHDIR): Add parentheses.
71067         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71068         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71069         When descending, rather than simply closing the previous
71070         fts_cwd_fd value, push that file descriptor onto the ring.
71071         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71072         (fts_open): Initialize the new fd_ring member.
71073         (fts_close): Clear the ring.
71074         (fts_safe_changedir): When possible, use our new fd_ring to skip
71075         the diropen and fstat and dev/ino comparison that would normally
71076         accompany a virtual `chdir ("..")'.
71077
71078         * modules/fts (Depends-on): Add i-ring.
71079         * modules/i-ring: New module.
71080         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71081         * m4/i-ring.m4: New file.
71082
71083 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71084
71085         * gnulib-tool (func_create_testdir): Fix replacement of
71086         `build-aux' in configure.ac.  Run autotools in gltests
71087         subdirectory.
71088         (func_create_testdir, func_create_megatestdir, test): There is
71089         no need for '--force' in most autotool invocations in a new
71090         tree.  Actually fail the whole test if any of the tools, or the
71091         configure or make stages fail.
71092
71093         Sync from Automake.
71094         * build-aux/gnupload: Revert last change.  Add pointer to upload
71095         instructions of the GNU Maintenance Instructions.
71096         Suggestion by Karl Berry.
71097
71098 2006-11-10  Jim Meyering  <jim@meyering.net>
71099
71100         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71101
71102 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71103
71104         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71105         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71106         (bind_textdomain_codeset) [! ENABLE_NLS]:
71107         Evaluate all the arguments.  That way, callers get compatible behavior
71108         if the arguments have side effects.  Also, it avoids some GCC
71109         diagnostics in some cases; Joel E. Denny reported problems when Bison
71110         was configured with --enable-gcc-warnigs.
71111
71112 2006-11-10  Jim Meyering  <jim@meyering.net>
71113
71114         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71115         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71116         account.
71117
71118 2006-11-10  Jim Meyering  <jim@meyering.net>
71119
71120         * modules/inline: New file/module.
71121         * modules/xalloc (Files): Remove m4/inline.m4.
71122         (Depends-on): Add inline, instead.
71123         * modules/oset: Likewise.
71124         * modules/list: Likewise.
71125
71126 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71127
71128         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71129         Problem reported by Matthew Woehlke.
71130
71131 2006-11-09  Bruno Haible  <bruno@clisp.org>
71132
71133         * lib/tempname.c (gen_tempname): Remove variant that invokes
71134         __gen_tempname.
71135         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71136         __gen_tempname.
71137
71138 2006-11-08  Bruno Haible  <bruno@clisp.org>
71139
71140         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71141         to 'yes' instead of 'cross-compiling'.
71142
71143 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71144
71145         * lib/quotearg.h (quotearg_free): New decl.
71146         * lib/quotearg.c (quotearg_free): New function.
71147         (slot0, nslots, slotvec0, slotvec):
71148         Now file-scope so that quotearg_free can get at them.
71149
71150 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71151
71152         Sync from Automake.
71153         * build-aux/gnupload: Add missing 'gnu' to example URL.
71154         Report by Karl Berry.
71155
71156 2006-11-08  Bruno Haible  <bruno@clisp.org>
71157
71158         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71159         Suggested by Paul Eggert.
71160
71161 2006-11-08  Jim Meyering  <jim@meyering.net>
71162
71163         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71164         It's already included if !_LIBC.
71165         (fts_safe_changedir): Add a comment.
71166
71167 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71170         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71171         Matthew Woehlke.
71172
71173         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71174         definitions up, to avoid colliding with change below.
71175         (static_inline) [HAVE_INLINE]: New macro.
71176         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71177         Provide extern decls when !HAVE_INLINE.  Do not define unless
71178         static_inline is defined, either by us or by xmalloc.c.  Use
71179         static_inline rather than static inline.
71180         (XCALLOC): Optimize sizeof(T) = 1 case.
71181         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71182
71183 2006-11-07  Bruno Haible  <bruno@clisp.org>
71184
71185         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71186         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71187         AC_C_INLINE.
71188         * modules/xalloc (Files): Add m4/inline.m4.
71189
71190 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71191
71192         * README: Fix typo.
71193         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71194         (Miscellanous Notes): ...from this.
71195
71196 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71197
71198         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71199         Mention that offsetof should be used instead of sizeof.
71200         From Bruno Haible.
71201
71202 2006-11-07  Bruno Haible  <bruno@clisp.org>
71203
71204         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71205
71206 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71207
71208         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71209         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71210         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71211         (gl_tree_add_before, gl_tree_add_after):
71212         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71213         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71214         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71215         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71216         (gl_linked_add_after, gl_linked_add_at): Likewise.
71217         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71218         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71219         (gl_tree_add_before, gl_tree_add_after): Likewise.
71220         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71221         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71222         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71223
71224 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71225
71226         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71227
71228 2006-11-06  Bruno Haible  <bruno@clisp.org>
71229
71230         * m4/inline.m4: New file.
71231         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71232         * modules/list (Files): Add m4/inline.m4.
71233         * modules/oset (Files): Likewise.
71234
71235 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         * lib/idcache.c: Include <stddef.h>, for offsetof.
71238         (struct userid.name): Change from char * to a flexible array member.
71239         All uses changed.
71240         * modules/idcache (Depends-on): Add flexmember.
71241
71242         * MODULES.html.sh (Core language properties): New module flexmember.
71243         * modules/flexmember, m4/flexmember.m4: New files.
71244
71245         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71246         inline functions that are identical with the old xnmalloc_inline,
71247         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71248         that we can avoid some unnecessary integer multiplications and
71249         divisions in the common case where the element size is known at
71250         compile time.
71251         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71252         needed.
71253         (xnboundedmalloc): Remove.
71254         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71255         arguments, for consistency with rest of this header.
71256         (xcharalloc): Rewrite using XNMALLOC.
71257         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71258         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71259         versions have been moved to lib/xalloc.h and renamed to be the
71260         non-*_inline versions.
71261         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71262         and xnrealloc functions, since those functions are now inline and
71263         now call us.
71264         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71265         renaming described above.
71266         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71267         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71268         captures the dependency in AC_C_INLINE.
71269
71270         New module canonicalize-lgpl, proposed by Charles Wilson in
71271         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71272         with a few small changes afterwards.
71273         * MODULES.html.sh (File system functions): New module
71274         canonicalize-lgpl.
71275         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71276         and canonicalize_file_name.
71277         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71278         * modules/canonicalize-lgpl: New files.
71279
71280 2006-11-05  Bruno Haible  <bruno@clisp.org>
71281
71282         * gnulib-tool (func_import, func_create_testdir): Create directories
71283         also for files in subdirectories of lib/.
71284
71285 2006-11-05  Bruno Haible  <bruno@clisp.org>
71286
71287         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71288         ANSI C compliant.
71289
71290 2006-11-03  Bruno Haible  <bruno@clisp.org>
71291
71292         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71293         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71294         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71295         (xnboundedmalloc): New inline function.
71296         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71297         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71298         xmalloc.
71299         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71300         xmalloc.
71301         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71302         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71303         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71304         xmalloc.
71305         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71306         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71307         xmalloc.
71308         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71309         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71310         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71311         xmalloc.
71312         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71313         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71314         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71315         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71316         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71317         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71318         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71319
71320 2006-11-03  Bruno Haible  <bruno@clisp.org>
71321
71322         * lib/c-ctype.h [C++]: Define functions without name mangling.
71323         * lib/fwriteerror.h [C++]: Likewise.
71324         * lib/gcd.h [C++]: Likewise.
71325         * lib/linebreak.h [C++]: Likewise.
71326
71327 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71328
71329         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71330         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71331         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71332         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71333         Check for functions and headers just once.
71334         Check for declaration of canonicalize_file_name.
71335         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71336
71337 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71338
71339         * gnulib-tool (func_import): Fix typo in actioncmd.
71340
71341 2006-11-02  Bruno Haible  <bruno@clisp.org>
71342
71343         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71344         newline sequence in the Makefile.am snippet as a space, like "make"
71345         does.
71346         Reported by Roger Persson <perrog@gmail.com>.
71347
71348 2006-11-01  Bruno Haible  <bruno@clisp.org>
71349
71350         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71351         already declared in <string.h>.
71352         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71353
71354 2006-11-01  Bruno Haible  <bruno@clisp.org>
71355
71356         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71357         * lib/strcase.h: Include <string.h>.
71358         (strcasecmp): Define to rpl_strcasecmp here.
71359
71360 2006-11-01  Bruno Haible  <bruno@clisp.org>
71361
71362         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71363
71364 2006-11-01  Eric Blake  <ebb9@byu.net>
71365
71366         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71367
71368         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71369
71370 2006-10-29  Bruno Haible  <bruno@clisp.org>
71371
71372         Make it compile in C++ mode.
71373         * lib/full-write.c (full_rw): Add a cast.
71374
71375 2006-11-01  Bruno Haible  <bruno@clisp.org>
71376
71377         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71378         be POSIX compliant.
71379         Reported by Roger Persson <perrog@gmail.com>.
71380
71381 2006-11-01  Eric Blake  <ebb9@byu.net>
71382
71383         * lib/getopt_.h: Fix comments.
71384
71385 2006-10-31  Eric Blake  <ebb9@byu.net>
71386
71387         * modules/tmpdir (Depends-on): Add sys_stat.
71388         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71389         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71390         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71391         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71392         tempname.
71393
71394 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71395
71396         Avoid some C++ diagnostics reported by Bruno Haible.
71397         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71398         xmalloc.
71399         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71400         (struct slotvec): Move to top level.
71401         (quotearg_n_options): Rewrite to avoid xmalloc.
71402         * lib/xalloc.h (xcharalloc): New function.
71403         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71404         [defined __cplusplus]: Add function template that provides result
71405         type propagation.  This part of the change is from Bruno Haible.
71406
71407 2006-10-29  Bruno Haible  <bruno@clisp.org>
71408
71409         Make it compile in C++ mode.
71410         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71411         * lib/strnlen1.c (strnlen1): Cast memchr result.
71412         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71413         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71414         (create_temp_dir): Rename local variable 'template'.
71415         (compile_csharp_using_sscli): Add cast.
71416         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71417         * lib/findprog.c (find_in_path): Likewise.
71418         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71419         * lib/wait-process.c (register_slave_subprocess): Likewise.
71420
71421 2006-10-22  Bruno Haible  <bruno@clisp.org>
71422
71423         * modules/tsearch: New file.
71424         * lib/tsearch.h: New file.
71425         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71426         * m4/tsearch.m4: New file.
71427         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71428
71429 2006-10-29  Eric Blake  <ebb9@byu.net>
71430
71431         * lib/arcfour.c: Assume config.h.
71432         * lib/arctwo.c: Likewise.
71433         * lib/base64.c: Likewise.
71434         * lib/check-version.c: Likewise.
71435         * lib/crc.c: Likewise.
71436         * lib/des.c: Likewise.
71437         * lib/gc-gnulib.c: Likewise.
71438         * lib/gc-libgcrypt.c: Likewise.
71439         * lib/gc-pbkdf2-sha1.c: Likewise.
71440         * lib/getaddrinfo.c: Likewise.
71441         * lib/getdelim.c: Likewise.
71442         * lib/getline.c: Likewise.
71443         * lib/hmac-md5.c: Likewise.
71444         * lib/hmac-sha1.c: Likewise.
71445         * lib/iconvme.c: Likewise.
71446         * lib/md2.c: Likewise.
71447         * lib/md4.c: Likewise.
71448         * lib/memxor.c: Likewise.
71449         * lib/read-file.c: Likewise.
71450         * lib/readline.c: Likewise.
71451         * lib/rijndael-alg-fst.c: Likewise.
71452         * lib/rijndael-api-fst.c: Likewise.
71453         * lib/xgetdomainname.c: Likewise.
71454
71455 2006-10-28  Eric Blake  <ebb9@byu.net>
71456
71457         * lib/xstrndup.c: Assume config.h.
71458
71459 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71462         stat-macros.h is now for our own macros, whereas stat_h is for
71463         macros in the <sys/stat.h> name space.
71464         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71465         (STAT_MACROS_H): Remove.
71466         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71467         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71468         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71469         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71470         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71471         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71472         Move these macros to ...
71473         * lib/stat_.h: here.  Don't include stat-macros.h.
71474         * lib/canonicalize.c: Don't include stat-macros.h.
71475         * lib/chown.c: Likewise.
71476         * lib/euidaccess.c: Likewise.
71477         * lib/file-type.c: Likewise.
71478         * lib/filemode.c: Likewise.
71479         * lib/glob.c: Likewise.
71480         * lib/isapipe.c: Likewise.
71481         * lib/lchown.c: Likewise.
71482         * lib/lstat.c: Likewise.
71483         * lib/mkdir-p.c: Likewise.
71484         * lib/rmdir.c: Likewise.
71485         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71486         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71487         unless mkdir isn't declared, to speed up 'configure'.
71488         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71489         would define all the S_* symbols.
71490         * modules/canonicalize (Depends-on):
71491         Depend on sys_stat, not stat-macros.
71492         * modules/chown: Likewise.
71493         * modules/euidaccess: Likewise.
71494         * modules/filemode: Likewise.
71495         * modules/file-type: Likewise.
71496         * modules/glob: Likewise.
71497         * modules/isapipe: Likewise.
71498         * modules/lchown: Likewise.
71499         * modules/lstat: Likewise.
71500         * modules/mkancesdirs: Likewise.
71501         * modules/rmdir: Likewise.
71502         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71503         * modules/modechange: Likewise.
71504         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71505         (configure.ac): Remove gl_STAT_MACROS.
71506         * modules/sys_stat (Depends-on): Remove stat-macros.
71507
71508 2006-10-27  Bruno Haible  <bruno@clisp.org>
71509
71510         * m4/signed.m4: Remove file.
71511         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71512         invocation.
71513         * modules/vasnprintf (Files): Remove m4/signed.m4.
71514
71515 2006-10-27  Bruno Haible  <bruno@clisp.org>
71516
71517         Update to GNU gettext 0.16.
71518         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71519         m4/inttypes-h.m4, m4/signed.m4.
71520         * m4/gettext.m4: Update to GNU gettext 0.16.
71521         * m4/intl.m4: New file, from GNU gettext.
71522         * m4/intldir.m4: New file, from GNU gettext.
71523         * config/srclist.txt: Update
71524
71525 2006-10-27  Eric Blake  <ebb9@byu.net>
71526
71527         * MODULES.html.sh: Document tempname.
71528         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71529         dependencies.
71530         (Files): Move lib/tempname.c...
71531         * modules/tempname: ...to this new module.
71532         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71533         (gl_PREREQ_TEMPNAME): Move...
71534         * m4/tempname.m4: ...to this new file.
71535         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71536         * modules/sys_stat (Depends-on): Add stat-macros.
71537         * lib/stat_.h (includes): Pick up stat macros.
71538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71539         if stat macros are broken.
71540         * lib/tempname.c (includes): No need to include "stat-macros.h".
71541         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71542         (direxists, __path_search) [!_LIBC]: Don't compile these in
71543         gnulib; the tmpdir module covers that.
71544         * lib/tempname.h: New file.
71545
71546 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         * COPYING: Explain how gnulib-tool converts licence headers.
71549         Almost all wording by Eric Blake.
71550
71551 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71552
71553         * lib/mbchar.h (is_basic_table): Make read-only.
71554         * lib/mbchar.c (is_basic_table): Likewise.
71555         Reported by John Darrington.
71556
71557 2006-10-25  Bruno Haible  <bruno@clisp.org>
71558
71559         * lib/progname.h (set_program_name): Undefine before defining.
71560
71561 2006-10-25  Bruno Haible  <bruno@clisp.org>
71562
71563         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71564         false for non-gcc C++ compilers.
71565         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71566
71567 2006-10-24  Bruno Haible  <bruno@clisp.org>
71568
71569         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71570         iconv implementations like Irix iconv.
71571
71572 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * modules/vararrays: New file.
71575         * m4/vararrays.m4: New file, taken from diffutils.
71576         * MODULES.html.sh: New module vararrays.
71577
71578 2006-10-24  Karl Berry  <karl@gnu.org>
71579
71580         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71581         Don't call GNU Unix.
71582
71583 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71584
71585         * users.txt: Add Libtool.
71586
71587         Sync from Libtool:
71588
71589         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71590
71591         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71592         to gnulib's policy of including config.h unconditionally.
71593
71594 2006-10-24  Bruno Haible  <bruno@clisp.org>
71595
71596         * modules/wcwidth (Files): Add m4/wint_t.m4.
71597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71598         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71599
71600 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71601
71602         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71603         to pacify GCC with some -W flags enabled.  Problem reported by
71604         Bruno Haible.
71605
71606 2006-10-24  Jim Meyering  <jim@meyering.net>
71607
71608         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71609         Reported by Karl Berry.
71610
71611 2006-10-23  Bruno Haible  <bruno@clisp.org>
71612
71613         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71614
71615 2006-10-24  Bruno Haible  <bruno@clisp.org>
71616
71617         * lib/gl_list.h: Use C comment style, not C++ comment style.
71618
71619 2006-10-23  Eric Blake  <ebb9@byu.net>
71620
71621         * lib/getaddrinfo.c (includes): Add missing include.
71622
71623 2006-10-23  Bruno Haible  <bruno@clisp.org>
71624             Paul Eggert  <eggert@cs.ucla.edu>
71625
71626         Ability to rename obstack_free.
71627         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71628         obstack_free.
71629         (obstack_free): Invoke the __obstack_free macro.
71630         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71631
71632 2006-10-23  Bruno Haible  <bruno@clisp.org>
71633             Paul Eggert  <eggert@cs.ucla.edu>
71634
71635         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71636         __argc, __argv from the declaration. (They are defined as macros on
71637         mingw.)
71638
71639 2006-10-22  Bruno Haible  <bruno@clisp.org>
71640
71641         * doc/gnulib-intro.texi: New file.
71642         * doc/gnulib.texi: Include it.
71643
71644 2006-10-21  Bruno Haible  <bruno@clisp.org>
71645
71646         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71647         "Introduction", "Miscellanous Notes", "Particular Modules".
71648
71649 2006-10-21  Bruno Haible  <bruno@clisp.org>
71650
71651         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71652         Change mostlyclean-local rule to avoid sh syntax error from bash
71653         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71654
71655 2006-10-23  Jim Meyering  <jim@meyering.net>
71656
71657         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71658         in place of snprintf.
71659
71660         * modules/inttostr (Files): Add lib/uinttostr.c.
71661         * lib/uinttostr.c (inttostr): New file/function.
71662         * lib/inttostr.h (uinttostr): Declare.
71663         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71664         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71665         Add uinttostr.
71666         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71667
71668 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         * lib/canonicalize.c (ELOOP): Define if not already defined.
71671         Problem reported by Bruno Haible in
71672         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71673
71674 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71675
71676         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71677         Problem reported by Perry Smith and Ville Laurikari.
71678
71679         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71680         uses.
71681
71682 2006-10-19  Bruno Haible  <bruno@clisp.org>
71683
71684         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71685         for mingw.
71686
71687 2006-10-19  Bruno Haible  <bruno@clisp.org>
71688
71689         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71690         Needed for mingw.
71691
71692 2006-10-19  Bruno Haible  <bruno@clisp.org>
71693
71694         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71695
71696 2006-10-19  Bruno Haible  <bruno@clisp.org>
71697
71698         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71699         it.
71700
71701 2006-10-19  Bruno Haible  <bruno@clisp.org>
71702
71703         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71704         invocation.
71705
71706 2006-10-19  Bruno Haible  <bruno@clisp.org>
71707
71708         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71709         mountlist by default.
71710
71711 2006-10-16  Bruno Haible  <bruno@clisp.org>
71712
71713         * lib/c-strstr.c: Include c-strstr.h.
71714
71715 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71716
71717         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71718         in a slash.
71719
71720 2006-10-18  Bruno Haible  <bruno@clisp.org>
71721
71722         * lib/lock.h [C++]: Wrap definitions in extern "C".
71723
71724 2006-10-18  Bruno Haible  <bruno@clisp.org>
71725
71726         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71727         gl_LIBOBJS list.
71728
71729 2006-10-18  Bruno Haible  <bruno@clisp.org>
71730
71731         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71732
71733 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71734
71735         * lib/xstrtol.h: Include gettext.h.
71736         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71737         Problem reported by Eric Blake.
71738         * modules/xstrtol (Depends-on): Add gettext-h.
71739
71740 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71741
71742         * lib/strftime.c (advance): New macro.
71743         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71744         incomplete type, so you can't add 0 to it.  Problem and patch
71745         reported by Eelco Dolstra for dietlibc.
71746
71747 2006-10-18  Jim Meyering  <jim@meyering.net>
71748
71749         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71750         type for a local, and rename it: s/up/user_proc/.
71751
71752 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71753
71754         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71755         READ_UTMP_USER_PROCESS.
71756         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71757
71758 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71759
71760         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71761         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71762
71763 2006-10-17  Eric Blake  <ebb9@byu.net>
71764
71765         * lib/sigprocmask.c (sigprocmask): Fix typo.
71766
71767         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71768
71769         * modules/clean-temp (Makefile.am): Don't add to make output...
71770         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71771         config.h.
71772
71773 2006-10-17  Bruno Haible  <bruno@clisp.org>
71774
71775         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71776         differently if DEFAULT_TEXT_DOMAIN is set.
71777
71778 2006-10-16  Bruno Haible  <bruno@clisp.org>
71779
71780         * lib/clean-temp.c: Include fwriteerror.h.
71781
71782 2006-10-16  Bruno Haible  <bruno@clisp.org>
71783
71784         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71785
71786 2006-10-16  Bruno Haible  <bruno@clisp.org>
71787
71788         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71789         * lib/sigprocmask.h: Include <sys/types.h>.
71790         (sigset_t): Use the system's definition if present.
71791
71792 2006-10-17  Eric Blake  <ebb9@byu.net>
71793
71794         * lib/xvasprintf.c (includes): Assume config.h.
71795         * lib/xasprintf.c (includes): Likewise.
71796
71797 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71798
71799         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71800         at least as wide as intmax_t.
71801
71802 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71803
71804         (Imported from Automake.)
71805         * build-aux/gnupload: Update to version 1.1 of directive file.
71806
71807 2006-10-16  Eric Blake  <ebb9@byu.net>
71808
71809         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71810         match Automake 1.10a.
71811
71812 2006-10-14  Bruno Haible  <bruno@clisp.org>
71813
71814         * modules/sigprocmask: New file.
71815         * lib/sigprocmask.h: New file.
71816         * lib/sigprocmask.c: New file.
71817         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71818         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71819         request sigprocmask.o.
71820         (gl_PREREQ_SIGPROCMASK): New macro.
71821         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71822         (Depends-on): Add sigprocmask.
71823         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71824         gt_SIGNALBLOCKING. Test for 'raise' only once.
71825         * lib/fatal-signal.c: Include sigprocmask.h.
71826         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71827         unblock_fatal_signals): Define always.
71828         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71829         sigprocmask.
71830
71831 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71832
71833         Sync from Automake.
71834         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71835         which incorrectly sets the mode of an existing destination
71836         directory.  In some cases the unpatched install-sh could do the
71837         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71838         system.  We hope this is rare in practice, but it's clearly worth
71839         fixing.  Problem reported by Alex Unleashed in
71840         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71841         Also, don't bother to check for -m bugs unless we're using -m;
71842         suggested by Stepan Kasal.
71843
71844 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71845
71846         Sync from Automake.
71847         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71848         `-c' flag, so they appear at the same position as in %FASTDEP%
71849         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71850         which ignores unknown options only after the first non-option.
71851         Bug report against M4 by Nelson H. F. Beebe.
71852
71853 2006-10-13  Jim Meyering  <jim@meyering.net>
71854
71855         Fix a bug in yesterday's change.
71856         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71857         p->fts_statp->st_dev would be used uninitialized.
71858         Ensures that we always call fts_stat on the very first entry.
71859         Miklos Szeredi reported that find -xdev stopped working.
71860
71861 2006-10-12  Bruno Haible  <bruno@clisp.org>
71862
71863         * gnulib-tool (func_get_automake_snippet): Append an automatically
71864         computed EXTRA_DIST augmentation.
71865         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71866         * modules/alloca-opt (Makefile.am): Likewise.
71867         * modules/allocsa (Makefile.am): Likewise.
71868         * modules/arcfour (Makefile.am): Likewise.
71869         * modules/arctwo (Makefile.am): Likewise.
71870         * modules/argmatch (Makefile.am): Likewise.
71871         * modules/argz (Makefile.am): Likewise.
71872         * modules/atexit (Makefile.am): Likewise.
71873         * modules/backupfile (Makefile.am): Likewise.
71874         * modules/byteswap (Makefile.am): Likewise.
71875         * modules/c-strtod (Makefile.am): Likewise.
71876         * modules/c-strtold (Makefile.am): Likewise.
71877         * modules/calloc (Makefile.am): Likewise.
71878         * modules/canon-host (Makefile.am): Likewise.
71879         * modules/canonicalize (Makefile.am): Likewise.
71880         * modules/chdir-long (Makefile.am): Likewise.
71881         * modules/chdir-safer (Makefile.am): Likewise.
71882         * modules/check-version (Makefile.am): Likewise.
71883         * modules/chown (Makefile.am): Likewise.
71884         * modules/cloexec (Makefile.am): Likewise.
71885         * modules/close-stream (Makefile.am): Likewise.
71886         * modules/closeout (Makefile.am): Likewise.
71887         * modules/crc (Makefile.am): Likewise.
71888         * modules/csharpexec (Makefile.am): Likewise.
71889         * modules/cycle-check (Makefile.am): Likewise.
71890         * modules/des (Makefile.am): Likewise.
71891         * modules/dev-ino (Makefile.am): Likewise.
71892         * modules/dirfd (Makefile.am): Likewise.
71893         * modules/dirname (Makefile.am): Likewise.
71894         * modules/dup2 (Makefile.am): Likewise.
71895         * modules/eealloc (Makefile.am): Likewise.
71896         * modules/error (Makefile.am): Likewise.
71897         * modules/euidaccess (Makefile.am): Likewise.
71898         * modules/exclude (Makefile.am): Likewise.
71899         * modules/exitfail (Makefile.am): Likewise.
71900         * modules/fcntl-safer (Makefile.am): Likewise.
71901         * modules/fcntl (Makefile.am): Likewise.
71902         * modules/file-type (Makefile.am): Likewise.
71903         * modules/fileblocks (Makefile.am): Likewise.
71904         * modules/filemode (Makefile.am): Likewise.
71905         * modules/filenamecat (Makefile.am): Likewise.
71906         * modules/fnmatch (Makefile.am): Likewise.
71907         * modules/fopen-safer (Makefile.am): Likewise.
71908         * modules/fpending (Makefile.am): Likewise.
71909         * modules/fprintftime (Makefile.am): Likewise.
71910         * modules/free (Makefile.am): Likewise.
71911         * modules/fsusage (Makefile.am): Likewise.
71912         * modules/ftruncate (Makefile.am): Likewise.
71913         * modules/fts (Makefile.am): Likewise.
71914         * modules/gc-arcfour (Makefile.am): Likewise.
71915         * modules/gc-des (Makefile.am): Likewise.
71916         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71917         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71918         * modules/gc-md4 (Makefile.am): Likewise.
71919         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71920         * modules/gc-sha1 (Makefile.am): Likewise.
71921         * modules/gc (Makefile.am): Likewise.
71922         * modules/getaddrinfo (Makefile.am): Likewise.
71923         * modules/getcwd (Makefile.am): Likewise.
71924         * modules/getdelim (Makefile.am): Likewise.
71925         * modules/getdomainname (Makefile.am): Likewise.
71926         * modules/getgroups (Makefile.am): Likewise.
71927         * modules/gethostname (Makefile.am): Likewise.
71928         * modules/gethrxtime (Makefile.am): Likewise.
71929         * modules/getline (Makefile.am): Likewise.
71930         * modules/getloadavg (Makefile.am): Likewise.
71931         * modules/getlogin_r (Makefile.am): Likewise.
71932         * modules/getndelim2 (Makefile.am): Likewise.
71933         * modules/getopt (Makefile.am): Likewise.
71934         * modules/getpagesize (Makefile.am): Likewise.
71935         * modules/getpass-gnu (Makefile.am): Likewise.
71936         * modules/getpass (Makefile.am): Likewise.
71937         * modules/getsubopt (Makefile.am): Likewise.
71938         * modules/gettime (Makefile.am): Likewise.
71939         * modules/gettimeofday (Makefile.am): Likewise.
71940         * modules/getugroups (Makefile.am): Likewise.
71941         * modules/getusershell (Makefile.am): Likewise.
71942         * modules/glob (Makefile.am): Likewise.
71943         * modules/group-member (Makefile.am): Likewise.
71944         * modules/hard-locale (Makefile.am): Likewise.
71945         * modules/hash (Makefile.am): Likewise.
71946         * modules/hmac-md5 (Makefile.am): Likewise.
71947         * modules/hmac-sha1 (Makefile.am): Likewise.
71948         * modules/human (Makefile.am): Likewise.
71949         * modules/idcache (Makefile.am): Likewise.
71950         * modules/imaxabs (Makefile.am): Likewise.
71951         * modules/imaxdiv (Makefile.am): Likewise.
71952         * modules/inet_ntop (Makefile.am): Likewise.
71953         * modules/inet_pton (Makefile.am): Likewise.
71954         * modules/intprops (Makefile.am): Likewise.
71955         * modules/inttostr (Makefile.am): Likewise.
71956         * modules/inttypes (Makefile.am): Likewise.
71957         * modules/isapipe (Makefile.am): Likewise.
71958         * modules/javaversion (Makefile.am): Likewise.
71959         * modules/lchmod (Makefile.am): Likewise.
71960         * modules/lchown (Makefile.am): Likewise.
71961         * modules/localcharset (Makefile.am): Likewise.
71962         * modules/long-options (Makefile.am): Likewise.
71963         * modules/lstat (Makefile.am): Likewise.
71964         * modules/malloc (Makefile.am): Likewise.
71965         * modules/mathl (Makefile.am): Likewise.
71966         * modules/mbchar (Makefile.am): Likewise.
71967         * modules/md2 (Makefile.am): Likewise.
71968         * modules/md4 (Makefile.am): Likewise.
71969         * modules/md5 (Makefile.am): Likewise.
71970         * modules/memcasecmp (Makefile.am): Likewise.
71971         * modules/memchr (Makefile.am): Likewise.
71972         * modules/memcmp (Makefile.am): Likewise.
71973         * modules/memcoll (Makefile.am): Likewise.
71974         * modules/memcpy (Makefile.am): Likewise.
71975         * modules/memmem (Makefile.am): Likewise.
71976         * modules/memmove (Makefile.am): Likewise.
71977         * modules/mempcpy (Makefile.am): Likewise.
71978         * modules/memrchr (Makefile.am): Likewise.
71979         * modules/memset (Makefile.am): Likewise.
71980         * modules/memxor (Makefile.am): Likewise.
71981         * modules/mkancesdirs (Makefile.am): Likewise.
71982         * modules/mkdir-p (Makefile.am): Likewise.
71983         * modules/mkdir (Makefile.am): Likewise.
71984         * modules/mkdtemp (Makefile.am): Likewise.
71985         * modules/mkstemp (Makefile.am): Likewise.
71986         * modules/mktime (Makefile.am): Likewise.
71987         * modules/modechange (Makefile.am): Likewise.
71988         * modules/mountlist (Makefile.am): Likewise.
71989         * modules/nanosleep (Makefile.am): Likewise.
71990         * modules/obstack (Makefile.am): Likewise.
71991         * modules/openat (Makefile.am): Likewise.
71992         * modules/pagealign_alloc (Makefile.am): Likewise.
71993         * modules/pathmax (Makefile.am): Likewise.
71994         * modules/physmem (Makefile.am): Likewise.
71995         * modules/poll (Makefile.am): Likewise.
71996         * modules/posixtm (Makefile.am): Likewise.
71997         * modules/posixver (Makefile.am): Likewise.
71998         * modules/putenv (Makefile.am): Likewise.
71999         * modules/quote (Makefile.am): Likewise.
72000         * modules/quotearg (Makefile.am): Likewise.
72001         * modules/raise (Makefile.am): Likewise.
72002         * modules/read-file (Makefile.am): Likewise.
72003         * modules/readline (Makefile.am): Likewise.
72004         * modules/readlink (Makefile.am): Likewise.
72005         * modules/readtokens (Makefile.am): Likewise.
72006         * modules/readutmp (Makefile.am): Likewise.
72007         * modules/realloc (Makefile.am): Likewise.
72008         * modules/regex (Makefile.am): Likewise.
72009         * modules/rename-dest-slash (Makefile.am): Likewise.
72010         * modules/rename (Makefile.am): Likewise.
72011         * modules/rijndael (Makefile.am): Likewise.
72012         * modules/rmdir (Makefile.am): Likewise.
72013         * modules/rpmatch (Makefile.am): Likewise.
72014         * modules/safe-read (Makefile.am): Likewise.
72015         * modules/safe-write (Makefile.am): Likewise.
72016         * modules/same-inode (Makefile.am): Likewise.
72017         * modules/same (Makefile.am): Likewise.
72018         * modules/save-cwd (Makefile.am): Likewise.
72019         * modules/savedir (Makefile.am): Likewise.
72020         * modules/setenv (Makefile.am): Likewise.
72021         * modules/settime (Makefile.am): Likewise.
72022         * modules/sha1 (Makefile.am): Likewise.
72023         * modules/sig2str (Makefile.am): Likewise.
72024         * modules/snprintf (Makefile.am): Likewise.
72025         * modules/stat-macros (Makefile.am): Likewise.
72026         * modules/stat-time (Makefile.am): Likewise.
72027         * modules/stdbool (Makefile.am): Likewise.
72028         * modules/stdint (Makefile.am): Likewise.
72029         * modules/stdlib-safer (Makefile.am): Likewise.
72030         * modules/stpcpy (Makefile.am): Likewise.
72031         * modules/stpncpy (Makefile.am): Likewise.
72032         * modules/strcase (Makefile.am): Likewise.
72033         * modules/strcasestr (Makefile.am): Likewise.
72034         * modules/strchrnul (Makefile.am): Likewise.
72035         * modules/strcspn (Makefile.am): Likewise.
72036         * modules/strdup (Makefile.am): Likewise.
72037         * modules/strerror (Makefile.am): Likewise.
72038         * modules/strftime (Makefile.am): Likewise.
72039         * modules/strndup (Makefile.am): Likewise.
72040         * modules/strnlen (Makefile.am): Likewise.
72041         * modules/strpbrk (Makefile.am): Likewise.
72042         * modules/strsep (Makefile.am): Likewise.
72043         * modules/strstr (Makefile.am): Likewise.
72044         * modules/strtod (Makefile.am): Likewise.
72045         * modules/strtoimax (Makefile.am): Likewise.
72046         * modules/strtok_r (Makefile.am): Likewise.
72047         * modules/strtol (Makefile.am): Likewise.
72048         * modules/strtoll (Makefile.am): Likewise.
72049         * modules/strtoul (Makefile.am): Likewise.
72050         * modules/strtoull (Makefile.am): Likewise.
72051         * modules/strtoumax (Makefile.am): Likewise.
72052         * modules/strverscmp (Makefile.am): Likewise.
72053         * modules/sys_socket (Makefile.am): Likewise.
72054         * modules/sys_stat (Makefile.am): Likewise.
72055         * modules/sysexits (Makefile.am): Likewise.
72056         * modules/time_r (Makefile.am): Likewise.
72057         * modules/timegm (Makefile.am): Likewise.
72058         * modules/timespec (Makefile.am): Likewise.
72059         * modules/tmpfile-safer (Makefile.am): Likewise.
72060         * modules/trim (Makefile.am): Likewise.
72061         * modules/unistd-safer (Makefile.am): Likewise.
72062         * modules/unlinkdir (Makefile.am): Likewise.
72063         * modules/unlocked-io (Makefile.am): Likewise.
72064         * modules/userspec (Makefile.am): Likewise.
72065         * modules/utime (Makefile.am): Likewise.
72066         * modules/utimecmp (Makefile.am): Likewise.
72067         * modules/utimens (Makefile.am): Likewise.
72068         * modules/vasnprintf (Makefile.am): Likewise.
72069         * modules/vasprintf (Makefile.am): Likewise.
72070         * modules/vsnprintf (Makefile.am): Likewise.
72071         * modules/xalloc (Makefile.am): Likewise.
72072         * modules/xgetcwd (Makefile.am): Likewise.
72073         * modules/xnanosleep (Makefile.am): Likewise.
72074         * modules/xreadlink (Makefile.am): Likewise.
72075         * modules/xstrtod (Makefile.am): Likewise.
72076         * modules/xstrtol (Makefile.am): Likewise.
72077         * modules/xstrtold (Makefile.am): Likewise.
72078         * modules/yesno (Makefile.am): Likewise.
72079         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72080
72081 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72082
72083         * modules/error (Makefile.am): Distribute files through
72084         EXTRA_DIST, not lib_SOURCES.
72085
72086 2006-10-12  Eric Blake  <ebb9@byu.net>
72087
72088         * modules/error (Makefile.am): Distribute files in /lib.
72089         * modules/obstack (Makefile.am): Likewise.
72090
72091 2006-10-12  Bruno Haible  <bruno@clisp.org>
72092
72093         * modules/acl (Makefile.am): Distribute all files in lib/ through
72094         EXTRA_DIST.
72095         * modules/arcfour (Makefile.am): Likewise.
72096         * modules/arctwo (Makefile.am): Likewise.
72097         * modules/argmatch (Makefile.am): Likewise.
72098         * modules/argz (Makefile.am): Likewise.
72099         * modules/atexit (Makefile.am): Likewise.
72100         * modules/backupfile (Makefile.am): Likewise.
72101         * modules/c-strtod (Makefile.am): Likewise.
72102         * modules/c-strtold (Makefile.am): Likewise.
72103         * modules/calloc (Makefile.am): Likewise.
72104         * modules/canon-host (Makefile.am): Likewise.
72105         * modules/canonicalize (Makefile.am): Likewise.
72106         * modules/chdir-long (Makefile.am): Likewise.
72107         * modules/chdir-safer (Makefile.am): Likewise.
72108         * modules/check-version (Makefile.am): Likewise.
72109         * modules/chown (Makefile.am): Likewise.
72110         * modules/cloexec (Makefile.am): Likewise.
72111         * modules/close-stream (Makefile.am): Likewise.
72112         * modules/closeout (Makefile.am): Likewise.
72113         * modules/crc (Makefile.am): Likewise.
72114         * modules/cycle-check (Makefile.am): Likewise.
72115         * modules/des (Makefile.am): Likewise.
72116         * modules/dirfd (Makefile.am): Likewise.
72117         * modules/dirname (Makefile.am): Likewise.
72118         * modules/dup2 (Makefile.am): Likewise.
72119         * modules/euidaccess (Makefile.am): Likewise.
72120         * modules/exclude (Makefile.am): Likewise.
72121         * modules/exitfail (Makefile.am): Likewise.
72122         * modules/fcntl-safer (Makefile.am): Likewise.
72123         * modules/file-type (Makefile.am): Likewise.
72124         * modules/fileblocks (Makefile.am): Likewise.
72125         * modules/filemode (Makefile.am): Likewise.
72126         * modules/filenamecat (Makefile.am): Likewise.
72127         * modules/fnmatch (Makefile.am): Likewise.
72128         * modules/fopen-safer (Makefile.am): Likewise.
72129         * modules/fpending (Makefile.am): Likewise.
72130         * modules/fprintftime (Makefile.am): Likewise.
72131         * modules/free (Makefile.am): Likewise.
72132         * modules/fsusage (Makefile.am): Likewise.
72133         * modules/ftruncate (Makefile.am): Likewise.
72134         * modules/fts (Makefile.am): Likewise.
72135         * modules/gc (Makefile.am): Likewise.
72136         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72137         * modules/getaddrinfo (Makefile.am): Likewise.
72138         * modules/getcwd (Makefile.am): Likewise.
72139         * modules/getdelim (Makefile.am): Likewise.
72140         * modules/getdomainname (Makefile.am): Likewise.
72141         * modules/getgroups (Makefile.am): Likewise.
72142         * modules/gethostname (Makefile.am): Likewise.
72143         * modules/gethrxtime (Makefile.am): Likewise.
72144         * modules/getline (Makefile.am): Likewise.
72145         * modules/getloadavg (Makefile.am): Likewise.
72146         * modules/getlogin_r (Makefile.am): Likewise.
72147         * modules/getopt (Makefile.am): Likewise.
72148         * modules/getpass (Makefile.am): Likewise.
72149         * modules/getpass-gnu (Makefile.am): Likewise.
72150         * modules/getsubopt (Makefile.am): Likewise.
72151         * modules/gettime (Makefile.am): Likewise.
72152         * modules/gettimeofday (Makefile.am): Likewise.
72153         * modules/getugroups (Makefile.am): Likewise.
72154         * modules/getusershell (Makefile.am): Likewise.
72155         * modules/glob (Makefile.am): Likewise.
72156         * modules/group-member (Makefile.am): Likewise.
72157         * modules/hard-locale (Makefile.am): Likewise.
72158         * modules/hash (Makefile.am): Likewise.
72159         * modules/hmac-md5 (Makefile.am): Likewise.
72160         * modules/hmac-sha1 (Makefile.am): Likewise.
72161         * modules/human (Makefile.am): Likewise.
72162         * modules/idcache (Makefile.am): Likewise.
72163         * modules/imaxabs (Makefile.am): Likewise.
72164         * modules/imaxdiv (Makefile.am): Likewise.
72165         * modules/inet_ntop (Makefile.am): Likewise.
72166         * modules/inet_pton (Makefile.am): Likewise.
72167         * modules/inttostr (Makefile.am): Likewise.
72168         * modules/isapipe (Makefile.am): Likewise.
72169         * modules/lchown (Makefile.am): Likewise.
72170         * modules/long-options (Makefile.am): Likewise.
72171         * modules/lstat (Makefile.am): Likewise.
72172         * modules/malloc (Makefile.am): Likewise.
72173         * modules/mathl (Makefile.am): Likewise.
72174         * modules/mbchar (Makefile.am): Likewise.
72175         * modules/md2 (Makefile.am): Likewise.
72176         * modules/md4 (Makefile.am): Likewise.
72177         * modules/md5 (Makefile.am): Likewise.
72178         * modules/memcasecmp (Makefile.am): Likewise.
72179         * modules/memchr (Makefile.am): Likewise.
72180         * modules/memcmp (Makefile.am): Likewise.
72181         * modules/memcoll (Makefile.am): Likewise.
72182         * modules/memcpy (Makefile.am): Likewise.
72183         * modules/memmem (Makefile.am): Likewise.
72184         * modules/memmove (Makefile.am): Likewise.
72185         * modules/mempcpy (Makefile.am): Likewise.
72186         * modules/memrchr (Makefile.am): Likewise.
72187         * modules/memset (Makefile.am): Likewise.
72188         * modules/memxor (Makefile.am): Likewise.
72189         * modules/mkancesdirs (Makefile.am): Likewise.
72190         * modules/mkdir (Makefile.am): Likewise.
72191         * modules/mkdir-p (Makefile.am): Likewise.
72192         * modules/mkdtemp (Makefile.am): Likewise.
72193         * modules/mkstemp (Makefile.am): Likewise.
72194         * modules/mktime (Makefile.am): Likewise.
72195         * modules/modechange (Makefile.am): Likewise.
72196         * modules/mountlist (Makefile.am): Likewise.
72197         * modules/nanosleep (Makefile.am): Likewise.
72198         * modules/openat (Makefile.am): Likewise.
72199         * modules/pagealign_alloc (Makefile.am): Likewise.
72200         * modules/physmem (Makefile.am): Likewise.
72201         * modules/poll (Makefile.am): Likewise.
72202         * modules/posixtm (Makefile.am): Likewise.
72203         * modules/posixver (Makefile.am): Likewise.
72204         * modules/putenv (Makefile.am): Likewise.
72205         * modules/quote (Makefile.am): Likewise.
72206         * modules/quotearg (Makefile.am): Likewise.
72207         * modules/raise (Makefile.am): Likewise.
72208         * modules/read-file (Makefile.am): Likewise.
72209         * modules/readline (Makefile.am): Likewise.
72210         * modules/readlink (Makefile.am): Likewise.
72211         * modules/readtokens (Makefile.am): Likewise.
72212         * modules/readutmp (Makefile.am): Likewise.
72213         * modules/realloc (Makefile.am): Likewise.
72214         * modules/regex (Makefile.am): Likewise.
72215         * modules/rename (Makefile.am): Likewise.
72216         * modules/rename-dest-slash (Makefile.am): Likewise.
72217         * modules/rijndael (Makefile.am): Likewise.
72218         * modules/rmdir (Makefile.am): Likewise.
72219         * modules/rpmatch (Makefile.am): Likewise.
72220         * modules/safe-read (Makefile.am): Likewise.
72221         * modules/safe-write (Makefile.am): Likewise.
72222         * modules/same (Makefile.am): Likewise.
72223         * modules/save-cwd (Makefile.am): Likewise.
72224         * modules/savedir (Makefile.am): Likewise.
72225         * modules/setenv (Makefile.am): Likewise.
72226         * modules/settime (Makefile.am): Likewise.
72227         * modules/sha1 (Makefile.am): Likewise.
72228         * modules/sig2str (Makefile.am): Likewise.
72229         * modules/snprintf (Makefile.am): Likewise.
72230         * modules/stdlib-safer (Makefile.am): Likewise.
72231         * modules/stpcpy (Makefile.am): Likewise.
72232         * modules/stpncpy (Makefile.am): Likewise.
72233         * modules/strcase (Makefile.am): Likewise.
72234         * modules/strcasestr (Makefile.am): Likewise.
72235         * modules/strchrnul (Makefile.am): Likewise.
72236         * modules/strcspn (Makefile.am): Likewise.
72237         * modules/strdup (Makefile.am): Likewise.
72238         * modules/strerror (Makefile.am): Likewise.
72239         * modules/strftime (Makefile.am): Likewise.
72240         * modules/strndup (Makefile.am): Likewise.
72241         * modules/strnlen (Makefile.am): Likewise.
72242         * modules/strpbrk (Makefile.am): Likewise.
72243         * modules/strsep (Makefile.am): Likewise.
72244         * modules/strstr (Makefile.am): Likewise.
72245         * modules/strtod (Makefile.am): Likewise.
72246         * modules/strtoimax (Makefile.am): Likewise.
72247         * modules/strtok_r (Makefile.am): Likewise.
72248         * modules/strtol (Makefile.am): Likewise.
72249         * modules/strtoll (Makefile.am): Likewise.
72250         * modules/strtoul (Makefile.am): Likewise.
72251         * modules/strtoull (Makefile.am): Likewise.
72252         * modules/strtoumax (Makefile.am): Likewise.
72253         * modules/strverscmp (Makefile.am): Likewise.
72254         * modules/time_r (Makefile.am): Likewise.
72255         * modules/timegm (Makefile.am): Likewise.
72256         * modules/tmpfile-safer (Makefile.am): Likewise.
72257         * modules/unistd-safer (Makefile.am): Likewise.
72258         * modules/unlinkdir (Makefile.am): Likewise.
72259         * modules/userspec (Makefile.am): Likewise.
72260         * modules/utime (Makefile.am): Likewise.
72261         * modules/utimecmp (Makefile.am): Likewise.
72262         * modules/utimens (Makefile.am): Likewise.
72263         * modules/vasnprintf (Makefile.am): Likewise.
72264         * modules/vasprintf (Makefile.am): Likewise.
72265         * modules/vsnprintf (Makefile.am): Likewise.
72266         * modules/xalloc (Makefile.am): Likewise.
72267         * modules/xgetcwd (Makefile.am): Likewise.
72268         * modules/xnanosleep (Makefile.am): Likewise.
72269         * modules/xreadlink (Makefile.am): Likewise.
72270         * modules/xstrtod (Makefile.am): Likewise.
72271         * modules/xstrtol (Makefile.am): Likewise.
72272         * modules/xstrtold (Makefile.am): Likewise.
72273         * modules/yesno (Makefile.am): Likewise.
72274
72275 2006-10-12  Jim Meyering  <jim@meyering.net>
72276
72277         * m4/getloadavg.m4: Revert the change below.
72278
72279         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72280         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72281         fail with a symlink, which is what coreutils' ./bootstrap now
72282         creates by default.
72283
72284 2006-10-12  Bruno Haible  <bruno@clisp.org>
72285
72286         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72287         mingw.
72288         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72289         MSVC and mingw explicitly.
72290
72291 2006-10-11  Simon Josefsson  <jas@extundo.com>
72292             Bruno Haible  <bruno@clisp.org>
72293
72294         Add support for multiple gnulib-tool invocations in the scope of a
72295         single configure.ac file.
72296         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72297         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72298         with the same contents as the _LIBADD variable.
72299         (func_emit_initmacro_start, func_emit_initmacro_end,
72300         func_emit_initmacro_done): New functions.
72301         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72302         gl_LIBOBJS and gl_LTLIBOBJS.
72303
72304 2006-10-11  Bruno Haible  <bruno@clisp.org>
72305
72306         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72307         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72308         autoreconf. Instead, invoke autopoint explicitly but move back the
72309         *.m4 files from gnulib.
72310
72311 2006-10-11  Bruno Haible  <bruno@clisp.org>
72312
72313         * gnulib-tool (func_usage): Make module names after --create-testdir
72314         optional.
72315         (func_create_testdir): If no module was specified, use nearly all
72316         modules.
72317
72318 2006-10-12  Jim Meyering  <jim@meyering.net>
72319
72320         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72321         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72322         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72323         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72324         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72325         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72326         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72327         (fts_set_stat_required): New function.
72328         (fts_open): Defer the calls to fts_stat, if possible or requested.
72329         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72330         into fts_stat itself.
72331         (fts_read): Perform any required (deferred) fts_stat call.
72332         (fts_build): Likewise, for the directory we're about to open and read.
72333         In the readdir loop, carefully decide whether each entry will require
72334         an eventual call to fts_stat, using dirent.d_type info if available.
72335         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72336         a command line argument into this function.  Update all callers.
72337         Map a return value of FTS_DOT to FTS_D for a command line argument.
72338         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72339         Thanks to Miklos Szeredi for his tenacity and for the initial
72340         bug report about "find" failing on a FUSE-based file system.
72341
72342         * lib/fts.c (fts_open): Use consistent indentation.
72343
72344 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72345
72346         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72347         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72348         reported by Jim Meyering.  All uses of cache variables renamed
72349         to match Autoconf's.
72350         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72351         the other one.
72352
72353         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72354         Fix misspelling in diagnostic.
72355
72356 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72357
72358         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72359         defined.  Problem reported by Matthew Woehlke.
72360
72361         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72362         Add support for Tandem NonStop R series.
72363         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72364         Use new macro.
72365
72366         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72367         (has_trailing_slash): Omit size arg; all callers changed.
72368         Omit 'inline', since it doesn't help performance and we'd
72369         need to configure it.
72370         Don't count //, ///, etc. as having a trailing slash.
72371         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72372         (rpl_rename_dest_slash): On failure, use rename's errno rather
72373         than (in some cases) an incorrect or junk errno.
72374         Simplify code by removing need to compute length; this does
72375         cause it to make two passes instead of one over the file name,
72376         but it's worth it.
72377
72378         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72379         change, since Autoconf's version may no longer be appropriate now
72380         that we are using CVS Autoconf's version.  Add support for Tandem.
72381
72382 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72383             Bruno Haible  <bruno@clisp.org>
72384
72385         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72386         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72387         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72388         gl_AC_TYPE_LONG_LONG.
72389
72390         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72391         instead of HAVE_LONG_LONG.
72392         * lib/printf-args.c (printf_fetchargs): Likewise.
72393         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72394         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72395         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72396         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72397         gl_AC_TYPE_LONG_LONG.
72398
72399 2006-10-11  Bruno Haible  <bruno@clisp.org>
72400
72401         * m4/longlong.m4: Add comments.
72402         * m4/ulonglong.m4: Likewise.
72403
72404 2006-10-10  Bruno Haible  <bruno@clisp.org>
72405
72406         Make it possible to #define stpcpy, strdup to aliases.
72407         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72408         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72409
72410 2006-10-10  Bruno Haible  <bruno@clisp.org>
72411
72412         Make it possible to #define gcd to an alias.
72413         * lib/gcd.c: Include config.h.
72414
72415 2006-10-10  Bruno Haible  <bruno@clisp.org>
72416
72417         Make it possible to #define c_isascii to an alias.
72418         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72419         defined. Undefine the macros before defining them, to avoid gcc
72420         warnings.
72421         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72422         define NO_C_CTYPE_MACROS early.
72423
72424 2006-10-10  Bruno Haible  <bruno@clisp.org>
72425
72426         Make it possible to #define set_program_name to an alias.
72427         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72428         ENABLE_RELOCATABLE early.
72429
72430 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72431
72432         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72433         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72434         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72435         More generally, don't assume that 64-bit signed int is available
72436         if unsigned int is, and vice versa.
72437         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72438         unsigned symbols, not on their signed counterparts.
72439         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72440         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72441         (UINT64_C, UINTMAX_C):
72442         Likewise.
72443         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72444         unsigned counterparts.
72445         (Have_long_long, Unsigned): New macros.
72446         (Int): Renamed from INT.
72447         (strtoimax): Use the new macros.
72448         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72449         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72450         * modules/inttypes (inttypes.h): Substitute
72451         HAVE_UNSIGNED_LONG_LONG_INT.
72452         * modules/stdint (stdint.h): Likewise.
72453         (Files): Add m4/ulonglong.m4.
72454
72455 2006-10-10  Bruno Haible  <bruno@clisp.org>
72456
72457         Fix a gcc -Wshadow warning.
72458         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72459         to 'bucket'.
72460         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72461         gl_linked_indexof_from_to): Likewise.
72462         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72463         Likewise.
72464         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72465         Likewise.
72466         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72467         Reported by Eric Blake.
72468
72469 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72472         for NetBSD.  Problem reported by Bruno Haible.
72473
72474 2006-10-09  Jim Meyering  <jim@meyering.net>
72475
72476         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72477         Patch from Bruno Haible.
72478
72479 2006-10-09  Jim Meyering  <jim@meyering.net>
72480
72481         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72482         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72483         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72484
72485 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72486
72487         Don't include <config.h> twice; this doesn't work in some cases,
72488         e.g., when config.h has "#define intmax_t long long int" and
72489         we include <config.h>, <inttypes.h>, <config.h> in that order.
72490         Problem reported by Matthew Woehlke in:
72491         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72492         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72493         * lib/fts-cycle.c: Don't include config.h.
72494         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72495         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72496         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72497         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72498         inttypes.h.
72499         * lib/xstrtoumax.c: Likewise.
72500         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72501         __strtol and the like, so that this module is more like its siblings.
72502         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72503         Remove; no longer needed now that we assume gnulib inttypes.h.
72504
72505 2006-10-08  Bruno Haible  <bruno@clisp.org>
72506
72507         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72508         option.
72509
72510 2006-10-07  Jim Meyering  <jim@meyering.net>
72511
72512         * modules/inttypes (inttypes.h): Revert what seems to have been
72513         an inadvertent part of today's change: use "|", not "/" in the
72514         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72515
72516 2006-10-07  Bruno Haible  <bruno@clisp.org>
72517
72518         * modules/sublist: New file.
72519
72520 2006-10-07  Bruno Haible  <bruno@clisp.org>
72521
72522         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72523         * modules/argz (argz.h): Likewise.
72524         * modules/arpa_inet (arpa/inet.h): Likewise.
72525         * modules/byteswap (byteswap.h): Likewise.
72526         * modules/configmake (configmake.h): Likewise.
72527         * modules/fcntl (fcntl.h): Likewise.
72528         * modules/fnmatch (fnmatch.h): Likewise.
72529         * modules/getopt (getopt.h): Likewise.
72530         * modules/glob (glob.h): Likewise.
72531         * modules/inttypes (inttypes.h): Likewise.
72532         * modules/netinet_in (netinet/in.h): Likewise.
72533         * modules/poll (poll.h): Likewise.
72534         * modules/stdbool (stdbool.h): Likewise.
72535         * modules/stdint (stdint.h): Likewise.
72536         * modules/sys_select (sys/select.h): Likewise.
72537         * modules/sys_socket (sys/socket.h): Likewise.
72538         * modules/sys_stat (sys/stat.h): Likewise.
72539         * modules/sysexits (sysexits.h): Likewise.
72540         * modules/unistd (unistd.h): Likewise.
72541         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72542         Add a "DO NOT EDIT" comment to the generated file.
72543         (func_import): Likewise for gnulib-comp.m4.
72544
72545 2006-10-07  Bruno Haible  <bruno@clisp.org>
72546
72547         * lib/gl_sublist.h: New file.
72548         * lib/gl_sublist.c: New file.
72549
72550 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72551
72552         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72553         name (relative to the original working directory) and the file
72554         name component (relative to the temporary working directory).  All
72555         callers changed.
72556         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72557         * lib/mkdir-p.c (make_dir_parents): Likewise.
72558         * lib/mkdir-p.h (make_dir_parents): Likewise.
72559
72560 2006-10-06  Eric Blake  <ebb9@byu.net>
72561
72562         Define several macros for use by the clean-temp module.
72563         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72564         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72565         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72566
72567         * lib/clean-temp.h (close_stream_temp): New declaration.
72568         * lib/clean-temp.c (includes): Pull in headers according to what
72569         other modules are in use.
72570         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72571
72572 2006-10-06  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72575         instead of fopen, fwriteerror.
72576
72577 2006-10-06  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72580         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72581         int.
72582         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72583         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72584         Return an error indicator.
72585         Suggested by Eric Blake.
72586
72587 2006-10-06  Bruno Haible  <bruno@clisp.org>
72588
72589         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72590         Reported by Eric Blake.
72591
72592 2006-10-06  Bruno Haible  <bruno@clisp.org>
72593
72594         * modules/closeout (Description): Mention stderr too.
72595
72596 2006-10-06  Bruno Haible  <bruno@clisp.org>
72597         and Paul Eggert  <eggert@cs.ucla.edu>
72598
72599         * lib/closeout.c (close_stdout): Also close stderr.
72600         * lib/closeout.h: Update comment.
72601
72602 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72603
72604         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72605         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72606         * lib/dirchownmod.c: Include lchown.h.
72607         * lib/lchown.c: Don't include files that lchown.h now includes.
72608         Don't declare chown, since lchown.h now does that.
72609         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72610         (lchown): Define to rpl_chown if lchown is declared but
72611         does not exist.  Declare using a prototype if lchown is not
72612         declared.  Add a copyright notice.
72613         * lib/mkstemp.h: Include <unistd.h>.
72614         * lib/openat.c: Include lchown.h.
72615
72616         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72617         we now test for that separately.
72618         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72619         rather than O_NOFOLLOW, when testing whether it's possible to
72620         avoid a race condition reliably.
72621         * lib/savewd.c (savewd_chdir): Likewise.
72622
72623         Remove macros that are no longer needed now that stdint.h is
72624         reliable.
72625         * lib/fsusage.c (UINTMAX_MAX): Remove.
72626         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72627         * lib/utimecmp.c (SIZE_MAX): Remove.
72628
72629         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72630
72631         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72632         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72633         O_NOATIME works.
72634
72635 2006-10-05  Bruno Haible  <bruno@clisp.org>
72636
72637         * lib/gl_list.h (gl_sortedlist_search_from_to,
72638         gl_sortedlist_indexof_from_to): New declarations.
72639         (gl_list_implementation): New fields sortedlist_search_from_to,
72640         sortedlist_indexof_from_to.
72641         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72642         inline functions.
72643         * lib/gl_list.c (gl_sortedlist_search_from_to,
72644         gl_sortedlist_indexof_from_to): New functions.
72645         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72646         function.
72647         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72648         (gl_array_sortedlist_search_from_to): New function.
72649         (gl_array_list_implementation): Update.
72650         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72651         function.
72652         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72653         (gl_carray_sortedlist_search_from_to): New function.
72654         (gl_carray_list_implementation): Update.
72655         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72656         gl_linked_sortedlist_indexof_from_to): New functions.
72657         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72658         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72659         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72660         gl_tree_sortedlist_indexof_from_to): New functions.
72661         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72662         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72663         Update.
72664         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72665         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72666         Update.
72667
72668 2006-10-05  Bruno Haible  <bruno@clisp.org>
72669
72670         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72671         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72672         (struct gl_list_implementation): Add fields search_from_to,
72673         indexof_from_to. Remove fields search, indexof.
72674         (gl_list_search): Use the search_from_to method.
72675         (gl_list_search_from, gl_list_search_from_to): New functions.
72676         (gl_list_indexof): Use the indexof_from_to method.
72677         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72678         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72679         (gl_list_search_from, gl_list_search_from_to): New functions.
72680         (gl_list_indexof): Use the indexof_from_to method.
72681         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72682         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72683         gl_array_indexof. Add start_index, end_index arguments.
72684         (gl_array_search_from_to): Renamed from gl_array_search. Add
72685         start_index, end_index arguments.
72686         (gl_array_remove, gl_array_list_implementation): Update.
72687         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72688         gl_carray_indexof. Add start_index, end_index arguments.
72689         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72690         start_index, end_index arguments.
72691         (gl_carray_remove, gl_carray_list_implementation): Update.
72692         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72693         gl_linked_search. Add start_index, end_index arguments.
72694         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72695         start_index, end_index arguments.
72696         (gl_linked_remove): Update.
72697         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72698         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72699         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72700         field to 'size_t'.
72701         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72702         gl_tree_search. Add start_index, end_index arguments.
72703         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72704         start_index, end_index arguments.
72705         (gl_tree_remove): Update.
72706         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72707         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72708         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72709         function.
72710         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72711         gl_tree_search. Add start_index, end_index arguments.
72712         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72713         start_index, end_index arguments.
72714         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72715         Update.
72716         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72717
72718 2006-10-05  Bruno Haible  <bruno@clisp.org>
72719
72720         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72721
72722         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72723         fwriteerror_temp): New declarations.
72724         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72725         (descriptors): New variable.
72726         (cleanup): First, close the descriptors.
72727         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72728         fclose_temp, fwriteerror_temp): New functions.
72729
72730 2006-10-04  Jim Meyering  <jim@meyering.net>
72731
72732         * lib/fts.c (fts_open): Tiny comment change.
72733
72734 2006-10-04  Bruno Haible  <bruno@clisp.org>
72735
72736         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72737         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72738         gl_LOCK_BODY.
72739         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72740         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72741         gl_LOCK_EARLY_BODY.
72742         (gl_LOCK): Require gl_LOCK_BODY.
72743
72744 2006-10-04  Bruno Haible  <bruno@clisp.org>
72745
72746         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72747         (gl_oset_search_atleast): New declaration.
72748         (struct gl_oset_implementation): Add field 'search_atleast'.
72749         (gl_oset_search_atleast): New inline function.
72750         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72751         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72752         (gl_array_oset_implementation): Update.
72753         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72754         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72755         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72756
72757 2006-10-04  Bruno Haible  <bruno@clisp.org>
72758
72759         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72760
72761 2006-10-03  Bruno Haible  <bruno@clisp.org>
72762
72763         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72764         from gl_avltreehash_list_implementation.
72765
72766 2006-10-03  Bruno Haible  <bruno@clisp.org>
72767
72768         * lib/gl_oset.c (gl_oset_add): Fix return type.
72769
72770 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72771
72772         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72773
72774 2006-10-02  Eric Blake  <ebb9@byu.net>
72775
72776         * modules/strnlen (Depends-on): Add extensions.
72777
72778 2006-10-02  Eric Blake  <ebb9@byu.net>
72779
72780         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72781         definition in 2.60+.
72782
72783 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72784
72785         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72786         checks.
72787
72788 2006-10-02  Bruno Haible  <bruno@clisp.org>
72789
72790         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72791         to the AUTOMAKE_OPTIONS.
72792         Reported by Jim Meyering.
72793
72794 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72795
72796         Work around bug in Solaris 10 /proc file system:
72797         /proc/self/fd/NNN/.. isn't the parent directory of
72798         the directory whose file descriptor is NNN.  This needs to
72799         be worked around at run time, not compile time, since a
72800         program might be built on Solaris 8, where things work, and
72801         run on Solaris 10.
72802         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72803         to use the following interface instead:
72804         (OPENAT_BUFFER_SIZE): New macro.
72805         (openat_proc_name): New function.
72806         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72807         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72808         Likewise.
72809         * lib/openat-proc.c: New file.
72810         * modules/openat (Files): Add lib/openat-proc.c.
72811         (Depends-on): Add same-inode, stdbool.
72812         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72813
72814 2006-09-29  Bruno Haible  <bruno@clisp.org>
72815
72816         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72817         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72818         argument. Set stdout_closed before testing for ferror, not after.
72819         (fwriteerror, fwriteerror_no_ebadf): New functions.
72820
72821 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72822
72823         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72824
72825 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72826
72827         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72828         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72829
72830 2006-09-28  Jim Meyering  <jim@meyering.net>
72831
72832         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72833         Include <unistd.h>.
72834
72835 2006-09-28  Bruno Haible  <bruno@clisp.org>
72836
72837         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72838         * modules/linkedhash-list (Depends-on): Likewise.
72839         * modules/rbtreehash-list (Depends-on): Likewise.
72840
72841 2006-09-28  Bruno Haible  <bruno@clisp.org>
72842
72843         * lib/strndup.h: Simplify the redefinition of strndup.
72844         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72845         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72846
72847 2006-09-28  Bruno Haible  <bruno@clisp.org>
72848
72849         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72850         * lib/gl_linkedhash_list.c: Likewise.
72851         * lib/gl_rbtreehash_list.c: Likewise.
72852
72853 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72854
72855         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72856         getaddrinfo.
72857
72858         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72859         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72860         it causes <stdio_ext.h> to cause a compile-time error.
72861         Problem reported by Nelson H. F. Beebe.
72862         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72863         of HAVE_DECL___PENDING.
72864
72865         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72866         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72867         declaration.
72868
72869 2006-09-27  Jim Meyering  <jim@meyering.net>
72870
72871         This file could end up with a definition for a function
72872         named __strndup, rather than rpl_strndup on a system with
72873         incomplete weak_alias support.
72874         * lib/strndup.c (strndup): Rename from __strndup.
72875         Remove #defines that used to map __strndup to strndup.
72876         Don't use K&R prototypes.
72877         Remove LIBC-related code, since this file is not sync'd with glibc.
72878         * lib/strndup.h: Revamp, accordingly.
72879         * m4/strndup.m4: Modernize.
72880
72881 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72882
72883         * modules/savewd (Depends-on): Add 'raise'.
72884         * lib/savewd.c: Include <signal.h>, for 'raise'.
72885
72886 2006-09-26  Jim Meyering  <jim@meyering.net>
72887
72888         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72889         when we detect Darwin 8.7.0's acl_get_file bug.
72890         Rearrange to perform the new (below) run-test while $LIBS
72891         contains any acl-related library.  Set USE_ACL at the end.
72892         (gl_ACL_GET_FILE): New function.
72893
72894 2006-09-26  Eric Blake  <ebb9@byu.net>
72895
72896         * lib/verror.c: Include <config.h> unconditionally.
72897
72898 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72899
72900         * modules/clock-time (Maintainer): Add self.
72901         * modules/getlogin_r (Depends-on): Add extensions.
72902
72903 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72904
72905         * modules/clock-time: New module.
72906         * modules/nanosleep (Depends-on): Add clock-time.
72907         * modules/gethrxtime (Depends-on): Likewise.
72908         * modules/gettime (Depends-on): Likewise.
72909         * modules/settime (Depends-on): Likewise.
72910
72911         * modules/fts-lgpl: Depend on openat.
72912         * modules/mkancesdirs: Depend on savewd.
72913         * modules/mkdir-p: Likewise.
72914
72915 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72916
72917         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72918
72919         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72920         `gl_have_arbitrary_file_name_length_limit' to
72921         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72922         actually works between configure runs.
72923
72924 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72925             Bruno Haible  <bruno@clisp.org>
72926
72927         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72928
72929 2006-09-25  Jim Meyering  <jim@meyering.net>
72930
72931         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72932         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72933
72934 2006-09-25  Eric Blake  <ebb9@byu.net>
72935
72936         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72937         exec's in 2006-09-18 patch when shuffling fds.
72938
72939 2006-09-25  Bruno Haible  <bruno@clisp.org>
72940
72941         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72942         Reported by Jim Meyering.
72943
72944 2006-09-24  Jim Meyering  <jim@meyering.net>
72945
72946         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72947         compare a pointer against a literal "0".  That caused failures with
72948         at least HP-UX's hpcc.
72949
72950 2006-09-22  Simon Josefsson  <jas@extundo.com>
72951
72952         * modules/gc-sha1:
72953         * modules/gc-md4:
72954         * modules/gc-hmac-sha1:
72955         * modules/gc-hmac-md5:
72956         * modules/gc-des:
72957         * modules/gc-arcfour: Distribute more files.
72958
72959 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72960
72961         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72962         (gl_linked_iterator_from_to): Initialize struct completely.
72963         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72964         (gl_tree_iterator_from_to): Likewise
72965         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72966         * lib/gl_array_list.c [lint] (gl_array_iterator)
72967         (gl_array_iterator_from_to): Likewise.
72968         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72969         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72970         (gl_carray_iterator_from_to): Likewise.
72971
72972         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72973         * lib/md4.c (md4_process_block): Remove unused variable.
72974         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72975         parentheses for clarity.
72976
72977 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72978
72979         * modules/bison-i18n (Depends-on): Add gettext.
72980
72981 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72982
72983         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72984         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72985         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72986         also add missing comma that caused broken test.
72987         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72988         stdlib.h, for `abort'.
72989         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72990         variables.
72991         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72992         include unistd.h if present, for `rmdir'.
72993         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72994         variables.
72995         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72996         in the process include standard headers for prototypes.
72997         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72998         gets declared on GNU/Linux.
72999         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73000         unistd.h, for `rmdir'.
73001         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73002
73003         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73004         always true.
73005         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73006
73007         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73008
73009 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73010
73011         * gnulib-tool (func_version): Create output all at once.  This
73012         may help avoid triggering unnecessary SIGPIPEs, and at any
73013         rate it doesn't hurt.
73014
73015 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73016             Bruno Haible  <bruno@clisp.org>
73017
73018         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73019         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73020         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73021
73022         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73023         (gl_FUNC_VASPRINTF): Invoke it.
73024
73025 2006-09-22  Bruno Haible  <bruno@clisp.org>
73026
73027         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73028         getloadavg.c as first argument.
73029
73030 2006-09-22  Bruno Haible  <bruno@clisp.org>
73031
73032         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73033         at the beginning of the gl_INIT macro.
73034         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73035         gl_GETLOADAVG.
73036
73037 2006-09-22  Bruno Haible  <bruno@clisp.org>
73038
73039         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73040         module.
73041         Suggested by Ralf Wildenhues.
73042
73043 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73044
73045         Import this patch from libc:
73046
73047         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73048
73049         * lib/regex_internal.c (re_string_reconstruct): Handle
73050         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73051         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73052         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73053         re_string_context_at.
73054
73055         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73056         now requires it.
73057         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73058         gl_REGEX now does it for us.
73059         (gl_REGEX): Add test taken from
73060         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73061
73062         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73063         Check that large offsets work.  Modernize Autoconf usages.
73064         Prefer "yes" to mean a good thing rather than a bad.
73065         Don't put "#define mkstemp" in config.h, as this might interfere
73066         with standard system headers that "#define mkstemp mkstemp64".
73067
73068         * modules/mkstemp (Depends-on): Add extensions, so that
73069         mkstemp is visible on some platforms.
73070         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73071         (Include): Change to "mkstemp.h" from <stdlib.h>.
73072         (Files): Add mkstemp.h.
73073
73074         * lib/mkstemp.h: New file, since some standard headers
73075         #define mkstemp.
73076         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73077         Include "mkstemp.h".
73078         Make the _LIBC code resemble glibc original more,
73079         e.g., use K&R style.
73080         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73081         (mkstemp): Remove, since mkstemp.h does this for us.
73082         * lib/stdlib--.h: Include mkstemp.h.
73083
73084         Import this patch from libc:
73085
73086         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73087
73088         * lib/tempname.c (__gen_tempname): Change attempts_min
73089         into a macro.  Use preprocessor to decide how to initialize
73090         attempts [Coverity CID 67].
73091
73092 2006-09-20  Bruno Haible  <bruno@clisp.org>
73093
73094         * lib/mkdtemp.c: Import from libc.
73095         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73096                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73097                 attempts_min into a macro.  Use preprocessor to decide how to
73098                 initialize attempts [Coverity CID 67].
73099         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73100                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73101                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73102
73103 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73104
73105         * gnulib-tool (func_exit): New function, to allow to pass the
73106         exit status portably through the trap.  Use everywhere.
73107         (--help, --version): Signal a write error.
73108         (trap): catch SIGPIPE, for write errors.
73109         Exit at the end of the trap, with the correct exit status.
73110
73111 2006-09-19  Karl Berry  <karl@gnu.org>
73112
73113         * doc/gnulib.texi: note about the license texinfo files.
73114
73115 2006-09-19  Eric Blake  <ebb9@byu.net>
73116
73117         * gnulib-tool: Avoid space-tab.
73118
73119 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73120
73121         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73122         that prevented coreutils 6.1 from building.  Problem reported
73123         by Petter Reinholdtsen.
73124
73125 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73126
73127         * gnulib-tool (avoidlist): Fix typo that broke options like
73128         --avoid=lock that are used by coreutils bootstrap.
73129
73130 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73131
73132         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73133         more systematically.
73134
73135 2006-09-18  Jim Meyering  <jim@meyering.net>
73136
73137         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73138
73139 2006-09-18  Bruno Haible  <bruno@clisp.org>
73140
73141         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73142
73143 2006-09-18  Bruno Haible  <bruno@clisp.org>
73144
73145         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73146         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73147         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73148         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73149         * m4/gettext.m4: Require autoconf >= 2.52.
73150         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73151         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73152         of gl_cv_header_inttypes_h.
73153
73154 2006-09-18  Bruno Haible  <bruno@clisp.org>
73155
73156         * lib/javaversion.c: Include configmake.h.
73157
73158 2006-09-18  Bruno Haible  <bruno@clisp.org>
73159
73160         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73161         avoid that the while loops be executed in a subshell.
73162
73163 2006-09-18  Bruno Haible  <bruno@clisp.org>
73164
73165         * MODULES.html.sh (func_module): Break long lines.
73166         Suggested by Bruce Korb <bkorb@gnu.org>.
73167
73168 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73169
73170         Speed up by a factor of 1.12.
73171         * gnulib-tool (nl): New variable.
73172         (func_import): Rewrite include directive extraction to only read each
73173         directive once.
73174
73175 2006-09-17  Bruno Haible  <bruno@clisp.org>
73176
73177         * modules/javaversion (Makefile.am): Remove DEFS setting.
73178         (Depends-on): Add configmake, for PKGDATADIR definition.
73179
73180 2006-09-17  Bruno Haible  <bruno@clisp.org>
73181
73182         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73183
73184 2006-09-17  Bruno Haible  <bruno@clisp.org>
73185
73186         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73187         (func_modules_transitive_closure, func_modules_add_dummy,
73188         func_modules_to_filelist, func_import, func_create_testdir,
73189         func_create_megatestdir, ...): Use it wherever possible.
73190         Suggested by Ralf Wildenhues.
73191
73192 2006-09-16  Karl Berry  <karl@gnu.org>
73193
73194         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73195         to avoid sectioning errors.
73196         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73197         [ifinfo]: blank line after @center-ed titles.
73198         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73199         Spell FSF address consistently with others.
73200         (These changes approved by rms.)
73201
73202 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73203
73204         Speed up by a factor of 1.61.
73205         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73206         already checked module names again.
73207
73208 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73209
73210         Speed up by a factor of 1.13.
73211         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73212         for new_files, and the input to func_add_or_update.
73213
73214 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73215
73216         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73217         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73218
73219 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73220
73221         * modules/mkancesdirs (Depends-on): Add fcntl.
73222         * modules/savewd: New file.
73223         * MODULES.html.sh (File system functions): Add savewd.
73224
73225         * modules/configmake (Makefile.am): Add support for the
73226         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73227
73228 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73229
73230         * m4/savewd.m4: New file.
73231
73232 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73235         (dirchownmod): New arg FD.  All callers changed.
73236         Use FD rather than opening the directory ourself, as opening is
73237         now the caller's responsibility.
73238         * lib/dirchownmod.h: Likewise.
73239         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73240         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73241         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73242         (test_dir): Remove.
73243         (mkancesdirs): Return length of prefix of FILE that has already
73244         been made, or -2 if there is a child doing the work.  Redo
73245         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73246         ".", and treat ".." specially since it might stray back into
73247         already-created areas.  Use a subprocess if necessary.  New arg
73248         WD; all users changed.  MAKE_DIR function should now return 1
73249         if it creates a directory that is not readable.  Return -2 if
73250         a child process is spun off.
73251         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73252         Adjust signature to match code.
73253         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73254         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73255         all users changed.
73256         * lib/savewd.c, lib/savewd.h: New files.
73257
73258 2006-09-15  Jim Meyering  <jim@meyering.net>
73259
73260         * modules/rename-dest-slash: New module.
73261         * MODULES.html.sh (posix_compat): Add it here.
73262
73263         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73264
73265 2006-09-15  Jim Meyering  <jim@meyering.net>
73266
73267         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73268         file.
73269
73270         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73271
73272 2006-09-15  Jim Meyering  <jim@meyering.net>
73273
73274         * lib/rename-dest-slash.c (has_trailing_slash): Use
73275         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73276         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73277         test before testing whether SRC is a directory.
73278         Suggestions from Bruno Haible.
73279
73280         Avoid a warning about an unused variable.
73281         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73282         into the #ifdef block where it's used.
73283
73284         * lib/rename-dest-slash.c: New file.
73285
73286 2006-09-14  Bruno Haible  <bruno@clisp.org>
73287
73288         * lib/allocsa.c: Include <config.h> unconditionally.
73289         * lib/asnprintf.c: Likewise.
73290         * lib/asprintf.c: Likewise.
73291         * lib/c-strcasecmp.c: Likewise.
73292         * lib/c-strcasestr.c: Likewise.
73293         * lib/c-strncasecmp.c: Likewise.
73294         * lib/c-strstr.c: Likewise.
73295         * lib/classpath.c: Likewise.
73296         * lib/clean-temp.c: Likewise.
73297         * lib/concatpath.c: Likewise.
73298         * lib/copy-file.c: Likewise.
73299         * lib/csharpcomp.c: Likewise.
73300         * lib/csharpexec.c: Likewise.
73301         * lib/execute.c: Likewise.
73302         * lib/fatal-signal.c: Likewise.
73303         * lib/findprog.c: Likewise.
73304         * lib/fwriteerror.c: Likewise.
73305         * lib/gl_array_list.c: Likewise.
73306         * lib/gl_array_oset.c: Likewise.
73307         * lib/gl_avltree_list.c: Likewise.
73308         * lib/gl_avltree_oset.c: Likewise.
73309         * lib/gl_avltreehash_list.c: Likewise.
73310         * lib/gl_carray_list.c: Likewise.
73311         * lib/gl_linked_list.c: Likewise.
73312         * lib/gl_linkedhash_list.c: Likewise.
73313         * lib/gl_list.c: Likewise.
73314         * lib/gl_oset.c: Likewise.
73315         * lib/gl_rbtree_list.c: Likewise.
73316         * lib/gl_rbtree_oset.c: Likewise.
73317         * lib/gl_rbtreehash_list.c: Likewise.
73318         * lib/imaxabs.c: Likewise.
73319         * lib/imaxdiv.c: Likewise.
73320         * lib/javacomp.c: Likewise.
73321         * lib/javaexec.c: Likewise.
73322         * lib/javaversion.c: Likewise.
73323         * lib/linebreak.c: Likewise.
73324         * lib/localcharset.c: Likewise.
73325         * lib/lock.c: Likewise.
73326         * lib/mbchar.c: Likewise.
73327         * lib/mbswidth.c: Likewise.
73328         * lib/mkdtemp.c: Likewise.
73329         * lib/pipe.c: Likewise.
73330         * lib/printf-args.c: Likewise.
73331         * lib/printf-parse.c: Likewise.
73332         * lib/progname.c: Likewise.
73333         * lib/progreloc.c: Likewise.
73334         * lib/readlink.c: Likewise.
73335         * lib/sh-quote.c: Likewise.
73336         * lib/stpcpy.c: Likewise.
73337         * lib/stpncpy.c: Likewise.
73338         * lib/strcasecmp.c: Likewise.
73339         * lib/strcasestr.c: Likewise.
73340         * lib/strcspn.c: Likewise.
73341         * lib/striconv.c: Likewise.
73342         * lib/strncasecmp.c: Likewise.
73343         * lib/strnlen1.c: Likewise.
73344         * lib/strstr.c: Likewise.
73345         * lib/strtok_r.c: Likewise.
73346         * lib/tls.c: Likewise.
73347         * lib/tmpdir.c: Likewise.
73348         * lib/unicodeio.c: Likewise.
73349         * lib/unsetenv.c: Likewise.
73350         * lib/vasnprintf.c: Likewise.
73351         * lib/vasprintf.c: Likewise.
73352         * lib/wait-process.c: Likewise.
73353         * lib/xallocsa.c: Likewise.
73354         * lib/xsetenv.c: Likewise.
73355         * lib/xstriconv.c: Likewise.
73356
73357 2006-09-13  Simon Josefsson  <jas@extundo.com>
73358
73359         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73360         that internally, suggested by Ralf Wildenhues
73361         <Ralf.Wildenhues@gmx.de>.
73362
73363 2006-09-13  Simon Josefsson  <jas@extundo.com>
73364
73365         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73366         @LIBOBJS@.
73367         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73368
73369 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73370
73371         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73372         longer worry about uses that don't define HAVE_CONFIG_H.
73373         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73374         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73375         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73376         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73377         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73378         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73379         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73380         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73381         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73382         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73383         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73384         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73385         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73386         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73387         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73388         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73389         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73390         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73391         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73392         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73393         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73394         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73395         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73396         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73397         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73398         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73399         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73400         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73401         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73402         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73403         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73404         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73405         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73406         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73407         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73408         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73409         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73410         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73411         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73412         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73413         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73414         Likewise.
73415
73416 2006-09-13  Eric Blake  <ebb9@byu.net>
73417
73418         * lib/getopt.c: Fix typo in last commit.
73419
73420 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73421
73422         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73423         dgettext.
73424
73425 2006-09-12  Jim Meyering  <jim@meyering.net>
73426
73427         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73428         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73429         Reported by Nelson H. F. Beebe.
73430
73431 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73432
73433         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73434         program_invocation_name and program_invocation_short_name are
73435         initialized.
73436         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73437         and program_invocation_short_name to argp.h, so they are visible
73438         to user programs.
73439         * lib/argp.h: Likewise
73440
73441 2006-09-10  Bruno Haible  <bruno@clisp.org>
73442
73443         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73444         m4/inttypes_h.m4, m4/uintmax_t.m4.
73445
73446 2006-09-10  Bruno Haible  <bruno@clisp.org>
73447
73448         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73449         gl_AC_TYPE_UINTMAX_T.
73450
73451 2006-09-10  Bruno Haible  <bruno@clisp.org>
73452
73453         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73454
73455 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73456
73457         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73458         convention.  Text proposed by Bruno Haible.
73459         (struct argp_option): Document the use of N_() wrappers.
73460
73461         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73462         '\v', and translate the two parts separately, instead of feeding
73463         the whole string to gettext.  This allows to exclude
73464         '\v' from the strings visible to the translator by writing doc
73465         strings as N_("..") "\v" N_("..").
73466
73467 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73468
73469         * config/srclist.txt: Undo latest change; the bug was fixed.
73470
73471 2006-09-09  Bruno Haible  <bruno@clisp.org>
73472
73473         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73474         assignments if building a library without libtool.
73475         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73476         in func_emit_lib_Makefile_am.
73477         (func_import): When building a static library libfoo.a, arrange to
73478         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73479         (func_create_testdir): Likewise.
73480         * modules/gc (configure.ac, Makefile.am): If building statically,
73481         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73482         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73483         * modules/striconv (configure.ac, Makefile.am): Likewise.
73484         Based on a suggestion by Ralf Wildenhues.
73485
73486 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73487
73488         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73489         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73490         Also:
73491
73492         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73493         Add year_2050_test to catch glibc bug 2821
73494         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73495
73496         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73497         Prefer #ifdef to #if.
73498
73499         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73500         Return from 'main' instead of calling 'exit'.
73501
73502 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73505         returned the maximum time_t value rather than (time_t) -1.
73506         Problem originally reported by William Bardwell
73507         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73508
73509         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73510         Moved to here ...
73511         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73512         ... from here.
73513
73514 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73515
73516         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73517         2821 is fixed.
73518
73519 2006-09-08  Jim Meyering  <jim@meyering.net>
73520
73521         Don't make generated files read-only.  That would bother too many
73522         people.  However, do retain the ability to work when targets are
73523         read-only: remove the destination and temporary files before writing
73524         them (when generated via sed or echo), or by using the -f option for
73525         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73526         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73527         * modules/byteswap, modules/configmake, modules/fcntl:
73528         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73529         * modules/localcharset, modules/netinet_in, modules/poll:
73530         * modules/stdbool, modules/stdint, modules/sys_select:
73531         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73532
73533 2006-09-08  Jim Meyering  <jim@meyering.net>
73534
73535         Avoid new build failure on FreeBSD 6.0.
73536         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73537         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73538         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73539
73540 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73541
73542         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73543
73544 2006-09-07  Jim Meyering  <jim@meyering.net>
73545
73546         Fix global typo in last change: use chmod u-w, not chmod u-x.
73547         Spotted by Paul Eggert and Bruce Korb.
73548         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73549         * modules/byteswap, modules/configmake, modules/fcntl:
73550         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73551         * modules/localcharset, modules/netinet_in, modules/poll:
73552         * modules/stdbool, modules/stdint, modules/sys_select:
73553         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73554
73555 2006-09-06  Jim Meyering  <jim@meyering.net>
73556
73557         Make generated files be read-only.
73558         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73559         Ensure that each generated file is now read-only.
73560         * modules/argz: Likewise.
73561         * modules/arpa_inet: Likewise.
73562         * modules/byteswap: Likewise.
73563         * modules/configmake: Likewise.
73564         * modules/fcntl: Likewise.
73565         * modules/fnmatch: Likewise.
73566         * modules/getopt: Likewise.
73567         * modules/glob: Likewise.
73568         * modules/inttypes: Likewise.
73569         * modules/netinet_in: Likewise.
73570         * modules/poll: Likewise.
73571         * modules/stdbool: Likewise.
73572         * modules/stdint: Likewise.
73573         * modules/sys_select: Likewise.
73574         * modules/sys_socket: Likewise.
73575         * modules/sys_stat: Likewise.
73576         * modules/sysexits: Likewise.
73577         * modules/localcharset: Same as above, but continue using temporary
73578         file named "t-$@" (why different?) rather than the "$@-t" used
73579         everywhere else.
73580
73581         * modules/sysexits (Makefile.am): Replace literal occurrences
73582         of "sysexit.h" more readable, and more consistent, "$@".
73583
73584 2006-09-06  Bruno Haible  <bruno@clisp.org>
73585
73586         * modules/striconv: New file.
73587         * modules/xstriconv: New file.
73588         * MODULES.html.sh (Internationalization functions): Add striconv,
73589         xstriconv.
73590
73591 2006-09-06  Bruno Haible  <bruno@clisp.org>
73592
73593         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73594         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73595         not using libtool correctly.
73596
73597 2006-09-06  Bruno Haible  <bruno@clisp.org>
73598
73599         * lib/striconv.h: New file.
73600         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73601         iconvstring.c.
73602         * lib/xstriconv.h: New file.
73603         * lib/xstriconv.c: New file.
73604
73605 2006-09-06  Bruno Haible  <bruno@clisp.org>
73606
73607         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73608         lib_..._LDFLAGS.
73609
73610 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73611
73612         * lib/argz_.h: Sync from Libtool.
73613
73614         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73615                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73616
73617         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73618
73619 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73620
73621         * modules/trim: New file.
73622
73623 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73624
73625         * lib/trim.h: New file.
73626         * lib/trim.c: New file.
73627
73628 2006-09-05  Bruno Haible  <bruno@clisp.org>
73629
73630         * MODULES.html.sh (String handling): Add trim.
73631
73632 2006-09-04  Karl Berry  <karl@gnu.org>
73633
73634         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73635         until next release.
73636
73637 2006-09-03  Bruno Haible  <bruno@clisp.org>
73638
73639         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73640         correctly.
73641
73642 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73643
73644         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73645         not gl_GETLOADAVG.  Omit unneeded semicolons.
73646         Problems reported by Ralf Wildenhues in
73647         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73648         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73649         at the end, which is the usual gnulib style.
73650
73651         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73652         of doing all the work ourselves.
73653         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73654         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73655
73656 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73659         Problem reported by Ralf Wildenhues in
73660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73661
73662         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73663         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73664
73665 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73666
73667         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73668         yesterday's patch by changing test -n to test -z.
73669
73670 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73671
73672         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73673         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73674         the former is now obsolescent.
73675
73676         * modules/chdir-long (Depends-on): Add fcntl.
73677
73678 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73679
73680         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73681         obsolescent, and programs should use gnulib instead.
73682         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73683         but with prefixes changed.
73684
73685 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73686
73687         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73688         or stdbool.h, because they might not exist while configuring.
73689
73690         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73691         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73692         does that for us.
73693         (O_DIRECTORY): Remove.
73694
73695 2006-08-31  Eric Blake  <ebb9@byu.net>
73696
73697         * gnulib-tool: Don't let emacs change spaces to TAB.
73698
73699 2006-08-31  Bruno Haible  <bruno@clisp.org>
73700
73701         * gnulib-tool: When calling func_import more than once, do it in a
73702         subshell.
73703         Reported by Eric Blake <ebb9@byu.net>.
73704
73705 2006-08-31  Bruno Haible  <bruno@clisp.org>
73706
73707         * gnulib-tool (nl): Remove variable.
73708         (sed_transform_lib_file): Use more robust test for config-h module.
73709         (func_import): Fix typo in 2006-08-25 patch.
73710
73711 2006-08-31  Bruno Haible  <bruno@clisp.org>
73712
73713         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73714         specified, augment Makefile.am variables instead of assigning them.
73715
73716 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73717
73718         Work around a bug in both the Linux and SunOS 64-bit kernels:
73719         nanosleep mishandles sleeps for longer than 2**31 seconds.
73720         Problem reported by Frank v Waveren in
73721         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73722         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73723         Check for nanosleep bug.
73724         (LIB_NANOSLEEP): Append clock_gettime library if needed.
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         * lib/nanosleep.c (BILLION): New constant.
73733         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73734         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73735         implementation.
73736
73737 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73738
73739         * modules/nanosleep (Depends-on): Add gettime.
73740
73741 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73742         and Simon Josefsson  <jas@extundo.com>
73743         and Oskar Liljeblad  <oskar@osk.mine.nu>
73744
73745         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73746         * gnulib-tool (func_import): New license type 'unmodifiable license
73747         text'.
73748         * modules/fdl: Use it.  Longer description.
73749         * module/gpl, module/lgpl: New files.
73750
73751 2006-08-30  Jim Meyering  <jim@meyering.net>
73752
73753         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73754         shadowing the parameter.
73755
73756 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73757
73758         Sync from Libtool:
73759
73760         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73761
73762         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73763         sharing with gnulib.  Report by Eric Blake.
73764
73765 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73766
73767         * modules/isapipe: New file.
73768         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73769
73770 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73771
73772         * modules/configmake (Makefile.am): Add a comment, and omit
73773         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73774         by Bruno Haible.
73775
73776 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73777
73778         * m4/isapipe.m4: New file.
73779
73780 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73781
73782         * lib/isapipe.c, lib/isapipe.h: New files.
73783
73784 2006-08-29  Jim Meyering  <jim@meyering.net>
73785
73786         * modules/configmake (Makefile.am): Make configmake.h depend on
73787         Makefile.  Otherwise, a stale configmake.h could hang around.
73788
73789 2006-08-29  Eric Blake  <ebb9@byu.net>
73790
73791         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73792         resolution of upstream bug 3044.
73793
73794 2006-08-29  Bruno Haible  <bruno@clisp.org>
73795
73796         * modules/localcharset (Depends-on): Add configmake.
73797         (Makefile.am): Remove setting of LIBDIR through DEFS.
73798
73799 2006-08-29  Bruno Haible  <bruno@clisp.org>
73800
73801         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73802         defined.
73803
73804 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73805
73806         * modules/fcntl: New file.
73807         * modules/chdir-safer (Depends-on): Add fcntl.
73808         * modules/fts: Likewise.
73809         * modules/mkdir-p: Likewise.
73810
73811         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73812         This undoes the most recent change, since we're now addressing the
73813         problem in a different way.
73814
73815         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73816         into output, since the output might be called Makefile.am even
73817         if $makefile_name is something different.
73818         (func_import): Use $makefile_am rather than
73819         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73820         empty.
73821
73822         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73823
73824 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73825
73826         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73827         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73828         recent change to stdint.m4, since we're now addressing the problem in a
73829         different way.
73830
73831 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * m4/fcntl_h.m4: New file.
73834
73835 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         * lib/fcntl_.h: New file.
73838         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73839         the fcntl module.
73840         * lib/dirchownmod.c: Likewise.
73841         * lib/fts.c: Likewise.
73842
73843         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73844         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73845         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73846         just before including <inttypes.h>, to avoid circular inclusion.
73847
73848 2006-08-28  Jim Meyering  <jim@meyering.net>
73849
73850         * doc/visibility.texi: Actually read and correct the grammar of the
73851         sentence affected by yesterday's change.
73852
73853 2006-08-28  Eric Blake  <ebb9@byu.net>
73854
73855         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73856         needs wrapper.
73857
73858 2006-08-28  Eric Blake  <ebb9@byu.net>
73859
73860         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73861
73862 2006-08-28  Eric Blake  <ebb9@byu.net>
73863
73864         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73865
73866 2006-08-28  Bruno Haible  <bruno@clisp.org>
73867
73868         * modules/c-strstr: New file, from GNU gettext.
73869         * MODULES.html.sh (String handling): Add c-strstr.
73870
73871 2006-08-28  Bruno Haible  <bruno@clisp.org>
73872
73873         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73874         macros.
73875         Reported by Eric Blake.
73876
73877 2006-08-28  Bruno Haible  <bruno@clisp.org>
73878
73879         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73880         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73881         * lib/vasprintf.c: Include errno.h, limits.h.
73882         (EOVERFLOW): New fallback definition.
73883         (vasprintf): Test here whether the string length is > INT_MAX.
73884         * lib/vsnprintf.c: Include errno.h, limits.h.
73885         (EOVERFLOW): New fallback definition.
73886         (vsnprintf): Fix bug when generated string was too long for the buffer.
73887         Test here whether the string length is > INT_MAX.
73888
73889 2006-08-28  Bruno Haible  <bruno@clisp.org>
73890
73891         * lib/inttypes_.h (SCNX*): Remove definitions.
73892         Reported by Eric Blake.
73893
73894 2006-08-28  Bruno Haible  <bruno@clisp.org>
73895
73896         * lib/c-strstr.h: New file, from GNU gettext.
73897         * lib/c-strstr.c: New file, from GNU gettext.
73898
73899 2006-08-28  Bruno Haible  <bruno@clisp.org>
73900
73901         * gnulib-tool: Reorder some statements.
73902
73903 2006-08-28  Bruno Haible  <bruno@clisp.org>
73904
73905         * gnulib-tool: New option --makefile-name.
73906         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73907         $makefile_name.
73908         (func_import): Write $makefile_name to the cache file, and read it from
73909         there unless explicitly specified. Use $makefile_name as file name
73910         instead of Makefile.am. Adjust the recommendations accordingly.
73911
73912 2006-08-28  Bruno Haible  <bruno@clisp.org>
73913
73914         * gnulib-tool (func_verify_module): Check against misapplying patch.
73915
73916 2006-08-28  Bruno Haible  <bruno@clisp.org>
73917
73918         * gnulib-tool (func_relativize, func_relconcat): New functions.
73919         Give an error if --local-dir is given with --update.
73920         Remove trailing slashes from $local_gnulib_dir.
73921         (func_import): Store the relativized $local_gnulib_dir in
73922         gnulib-cache.m4, and read it from there if not specified explicitly.
73923
73924 2006-08-28  Bruno Haible  <bruno@clisp.org>
73925
73926         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73927         is the current directory. Respect also $local_gnulib_dir.
73928
73929 2006-08-28  Bruno Haible  <bruno@clisp.org>
73930             Simon Josefsson  <jas@extundo.com>
73931
73932         BeOS portability.
73933         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73934
73935 2006-08-27  Jim Meyering  <jim@meyering.net>
73936
73937         * doc/visibility.texi: Remove duplicate word: "pointer".
73938
73939 2006-08-26  Bruno Haible  <bruno@clisp.org>
73940
73941         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73942         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73943         (Makefile.am): Create inttypes.h from inttypes_.h.
73944         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73945
73946         * modules/imaxabs: New file.
73947
73948         * modules/imaxdiv: New file.
73949
73950 2006-08-26  Bruno Haible  <bruno@clisp.org>
73951
73952         * m4/inttypes.m4: New file.
73953         * m4/_inttypes_h.m4: Remove file.
73954         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73955         PRI_MACROS_BROKEN.
73956         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73957
73958         * m4/imaxabs.m4: New file.
73959
73960         * m4/imaxdiv.m4: New file.
73961
73962 2006-08-26  Bruno Haible  <bruno@clisp.org>
73963
73964         * lib/inttypes_.h: New file.
73965         * lib/inttypes.h: Remove file.
73966         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73967
73968         * lib/imaxabs.c: New file.
73969
73970         * lib/imaxdiv.c: New file.
73971
73972 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73973
73974         New config-h module, so that "make" output needn't be cluttered
73975         by -DHAVE_CONFIG_H.
73976         * MODULES.html.sh (Support for building libraries and executables):
73977         Add config-h.
73978         * modules/config-h: New file.
73979         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73980         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73981         the config-h module is used.
73982
73983         New configmake module, so that "make" output needn't be cluttered
73984         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73985         * MODULES.html.sh (Support for building libraries and executables):
73986         Add configmake.
73987         * modules/configmake: New file.
73988
73989 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73990
73991         * m4/config-h.m4: New file.
73992
73993 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73994
73995         * config/srclist.txt: Add elisp-comp.
73996
73997 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73998
73999         * MODULES.html.sh (Support for building libraries and executables):
74000         Add elisp-comp.
74001         * build-aux/elisp-comp: New file.
74002         * modules/elisp-comp: New file.
74003
74004 2006-08-24  Bruno Haible  <bruno@clisp.org>
74005
74006         * gnulib-tool (func_create_testdir): Use non-default values of
74007         sourcebase and m4base.
74008
74009 2006-08-24  Bruno Haible  <bruno@clisp.org>
74010
74011         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74012         HTML structure.
74013
74014 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74015
74016         * modules/openat (Depends-on): Add lchown.
74017
74018 2006-08-23  Bruno Haible  <bruno@clisp.org>
74019
74020         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74021         of gl_LOCK_EARLY instead of gl_LOCK.
74022
74023 2006-08-23  Bruno Haible  <bruno@clisp.org>
74024
74025         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74026         on OSF/1 to no.
74027         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74028
74029 2006-08-23  Bruno Haible  <bruno@clisp.org>
74030
74031         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74032         as unusable.
74033
74034         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74035         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74036         (gl_LOCK): New macro.
74037
74038 2006-08-22  Simon Josefsson  <jas@extundo.com>
74039
74040         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74041         to md5 module.
74042
74043 2006-08-22  Simon Josefsson  <jas@extundo.com>
74044
74045         * MODULES.html.sh: Add "Support for maintaining and release
74046         projects".
74047
74048         * build-aux/gnupload: New file, from coreutils.
74049
74050 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74051
74052         Avoid the need for AC_LIBSOURCES in m4 macros.
74053         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74054         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74055         * modules/check-version (EXTRA_DIST): Add check-version.h.
74056         * modules/crc (EXTRA_DIST): Add crc.h.
74057         * modules/des (EXTRA_DIST): Add des.h.
74058         * modules/gc (EXTRA_DIST): Add gc.h.
74059         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74060         * modules/getline (EXTRA_DIST): Add getline.h.
74061         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74062         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74063         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74064         * modules/md2 (EXTRA_DIST): Add md2.h.
74065         * modules/md4 (EXTRA_DIST): Add md4.h.
74066         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74067         * modules/read-file (EXTRA_DIST): Add read-file.h.
74068         * modules/readline (EXTRA_DIST): Add readline.h.
74069         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74070         rijndael-api-fst.h.
74071
74072 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74073
74074         * m4/rijndael.m4 (gl_ARCFOUR):
74075         * m4/arctwo.m4 (gl_ARCTWO):
74076         * m4/check-version.m4 (gl_CHECK_VERSION):
74077         * m4/crc.m4 (gl_CRC):
74078         * m4/des.m4 (gl_DES):
74079         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74080         * m4/gc.m4 (gl_GC):
74081         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74082         * m4/getline.m4 (gl_FUNC_GETLINE):
74083         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74084         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74085         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74086         * m4/md2.m4 (gl_MD2):
74087         * m4/md4.m4 (gl_MD4):
74088         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74089         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74090         * m4/readline.m4 (gl_FUNC_READLINE):
74091         * m4/rijndael.m4 (gl_RIJNDAEL):
74092         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74093         to get the necessary .h files and whatnot.
74094
74095 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74096
74097         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74098         gnulib rather than the other way around.
74099         * config/srclistvars.sh (COREUTILS): Remove.
74100
74101 2006-08-22  Jim Meyering  <jim@meyering.net>
74102
74103         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74104
74105         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74106
74107 2006-08-22  Eric Blake  <ebb9@byu.net>
74108
74109         * modules/regexprops-generic: New file.
74110         * MODULES.html.sh (Support for building documentation): List it.
74111
74112 2006-08-22  Eric Blake  <ebb9@byu.net>
74113
74114         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74115         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74116         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74117         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74118
74119 2006-08-22  Bruno Haible  <bruno@clisp.org>
74120
74121         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74122         and lib_LTLIBRARIES like the other lib_* variables.
74123
74124 2006-08-22  Bruno Haible  <bruno@clisp.org>
74125
74126         * build-aux/x-to-1.in: New file, from GNU gettext.
74127
74128 2006-08-22  Bruno Haible  <bruno@clisp.org>
74129
74130         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74131         <utmpx.h> exists.
74132
74133 2006-08-22  Bruno Haible  <bruno@clisp.org>
74134
74135         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74136         <utmpx.h> exists.
74137
74138 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         BeOS portability.
74141         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74142         exist.
74143         Problem reported by Bruno Haible.
74144
74145 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         Avoid the need for AC_LIBSOURCES in m4 macros.
74148         * modules/acl (EXTRA_DIST): Add acl.h.
74149         * modules/argmatch (Files): Add m4/argmatch.m4.
74150         (configure.ac): Add gl_ARGMATCH.
74151         (EXTRA_DIST): Renamed from lib_SOURCES, for
74152         consistency with the other modules.  Remove argmatch.c.
74153         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74154         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74155         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74156         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74157         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74158         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74159         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74160         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74161         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74162         * modules/closeout (EXTRA_DIST): Add closeout.h.
74163         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74164         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74165         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74166         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74167         dirname.h; remove basename.c and stripslash.c.
74168         * modules/exclude (EXTRA_DIST): Add exclude.h.
74169         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74170         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74171         * modules/file-type (EXTRA_DIST): Add file-type.h.
74172         * modules/filemode (EXTRA_DIST): Add filemode.h.
74173         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74174         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74175         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74176         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74177         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74178         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74179         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74180         * modules/getdate (EXTRA_DIST): Add getdate.c.
74181         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74182         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74183         * modules/getpass (EXTRA_DIST): Add getpass.h.
74184         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74185         * modules/group-member (EXTRA_DIST): Add group-member.h.
74186         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74187         * modules/hash (EXTRA_DIST): Add hash.h.
74188         * modules/human (EXTRA_DIST): Add human.h.
74189         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74190         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74191         * modules/lchown (EXTRA_DIST): Add lchown.h.
74192         * modules/long-options (EXTRA_DIST): Add long-options.h.
74193         * modules/lstat (EXTRA_DIST): Add lstat.h.
74194         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74195         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74196         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74197         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74198         * modules/memxor (EXTRA_DIST): Add memxor.h.
74199         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74200         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74201         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74202         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74203         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74204         * modules/physmem (EXTRA_DIST): Add physmem.h.
74205         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74206         * modules/posixver (EXTRA_DIST): Add posixver.h.
74207         * modules/quote (EXTRA_DIST): Add quote.h.
74208         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74209         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74210         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74211         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74212         regex_internal.h regexec.c.
74213         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74214         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74215         * modules/same (EXTRA_DIST): Add same.h.
74216         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74217         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74218         * modules/savedir (EXTRA_DIST): Add savedir.h.
74219         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74220         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74221         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74222         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74223         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74224         * modules/strdup (EXTRA_DIST): Add strdup.h.
74225         * modules/strftime (EXTRA_DIST): Add strftime.h.
74226         * modules/strndup (EXTRA_DIST): Add strndup.h.
74227         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74228         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74229         * modules/time_r (EXTRA_DIST): Add time_r.h.
74230         * modules/timespec (EXTRA_DIST): Add timespec.h.
74231         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74232         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74233         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74234         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74235         * modules/userspec (EXTRA_DIST): Add userspec.h.
74236         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74237         * modules/utimens (EXTRA_DIST): Add utimens.h.
74238         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74239         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74240         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74241         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74242         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74243         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74244         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74245         * modules/yesno (EXTRA_DIST): Add yesno.h.
74246
74247 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74248
74249         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74250
74251         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74252         * m4/dev-ino.m4, same-inode.m4: Remove.
74253
74254         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74255         * m4/acl.m4 (AC_FUNC_ACL):
74256         * m4/backupfile.m4 (gl_BACKUPFILE):
74257         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74258         * m4/canon-host.m4 (gl_CANON_HOST):
74259         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74260         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74261         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74262         * m4/cloexec.m4 (gl_CLOEXEC):
74263         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74264         * m4/closeout.m4 (gl_CLOSEOUT):
74265         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74266         * m4/dirname.m4 (gl_DIRNAME):
74267         * m4/exclude.m4 (gl_EXCLUDE):
74268         * m4/exitfail.m4 (gl_EXITFAIL):
74269         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74270         * m4/file-type.m4 (gl_FILE_TYPE):
74271         * m4/filemode.m4 (gl_FILEMODE):
74272         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74273         * m4/fpending.m4 (gl_FUNC_FPENDING):
74274         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74275         * m4/fts.m4 (gl_FUNC_FTS):
74276         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74277         * m4/getdate.m4 (gl_GETDATE):
74278         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74279         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74280         * m4/getpass.m4 (gl_FUNC_GETPASS):
74281         * m4/gettime.m4 (gl_GETTIME):
74282         * m4/getugroups.m4 (gl_GETUGROUPS):
74283         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74284         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74285         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74286         * m4/hash.m4 (gl_HASH):
74287         * m4/idcache.m4 (gl_IDCACHE):
74288         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74289         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74290         * m4/long-options.m4 (gl_LONG_OPTIONS):
74291         * m4/lstat.m4 (gl_FUNC_LSTAT):
74292         * m4/md5.m4 (gl_MD5):
74293         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74294         * m4/memcoll.m4 (gl_MEMCOLL):
74295         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74296         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74297         * m4/memxor.m4 (gl_MEMXOR):
74298         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74299         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74300         * m4/modechange.m4 (gl_MODECHANGE):
74301         * m4/mountlist.m4 (gl_MOUNTLIST):
74302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74303         * m4/openat.m4 (gl_FUNC_OPENAT):
74304         * m4/pathmax.m4 (gl_PATHMAX):
74305         * m4/physmem.m4 (gl_PHYSMEM):
74306         * m4/posixtm.m4 (gl_POSIXTM):
74307         * m4/posixver.m4 (gl_POSIXVER):
74308         * m4/quote.m4 (gl_QUOTE):
74309         * m4/quotearg.m4 (gl_QUOTEARG):
74310         * m4/readtokens.m4 (gl_READTOKENS):
74311         * m4/readutmp.m4 (gl_READUTMP):
74312         * m4/regex.m4 (gl_REGEX):
74313         * m4/safe-read.m4 (gl_SAFE_READ):
74314         * m4/safe-write.m4 (gl_SAFE_WRITE):
74315         * m4/same.m4 (gl_SAME):
74316         * m4/save-cwd.m4 (gl_SAVE_CWD):
74317         * m4/savedir.m4 (gl_SAVEDIR):
74318         * m4/settime.m4 (gl_SETTIME):
74319         * m4/sha1.m4 (gl_SHA1):
74320         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74321         * m4/stat-macros.m4 (gl_STAT_MACROS):
74322         * m4/stat-time.m4 (gl_STAT_TIME):
74323         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74324         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74325         * m4/strdup.m4 (gl_FUNC_STRDUP):
74326         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74327         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74328         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74329         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74330         * m4/time_r.m4 (gl_TIME_R):
74331         * m4/timespec.m4 (gl_TIMESPEC):
74332         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74333         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74334         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74335         * m4/userspec.m4 (gl_USERSPEC):
74336         * m4/utimecmp.m4 (gl_UTIMECMP):
74337         * m4/utimens.m4 (gl_UTIMENS):
74338         * m4/xalloc.m4 (gl_XALLOC):
74339         * m4/xgetcwd.m4 (gl_XGETCWD):
74340         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74341         * m4/xreadlink.m4 (gl_XREADLINK):
74342         * m4/xstrtod.m4 (gl_XSTRTOD):
74343         * m4/yesno.m4 (gl_YESNO):
74344         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74345         to get the necessary .h files and whatnot.
74346
74347 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74348             Bruno Haible  <bruno@clisp.org>
74349
74350         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74351         /bin/sh understanding of '!' conditional negation.
74352
74353 2006-08-21  Jim Meyering  <jim@meyering.net>
74354
74355         * modules/openat (Depends-on): Really alphabetize.
74356
74357         * modules/acl (Depends-on): Add error and quote.
74358
74359         * check-module (find_included_lib_files): Add at-func.c to the
74360         ok-to-include-more-than-once white list.
74361
74362         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74363
74364 2006-08-21  Bruno Haible  <bruno@clisp.org>
74365
74366         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74367         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74368         Reported by Martin Lambers <marlam@marlam.de>.
74369
74370 2006-08-21  Bruno Haible  <bruno@clisp.org>
74371
74372         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74373         specify an installation location, don't emit a noinst_LIBRARIES or
74374         noinst_LTLIBRARIES assignment.
74375
74376 2006-08-21  Bruno Haible  <bruno@clisp.org>
74377
74378         BeOS portability.
74379         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74380         BeOS has mbrtowc() but no <wctype.h>.
74381
74382 2006-08-21  Bruno Haible  <bruno@clisp.org>
74383
74384         BeOS portability.
74385         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74386         exist.
74387
74388 2006-08-21  Bruno Haible  <bruno@clisp.org>
74389
74390         BeOS portability.
74391         * lib/mbchar.h: Include <wctype.h> only if it exists.
74392
74393 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74394
74395         Remove files that are no longer needed by their respective modules.
74396         * m4/obstack.m4: Remove.
74397         * m4/strerror_r.m4: Remove.
74398         * m4/uint32_t.m4: Remove.
74399         * m4/uintptr_t.m4: Remove.
74400         * m4/ullong_max.m4: Remove.
74401         * m4/xstrtoimax.m4: Remove.
74402         * m4/xstrtoumax.m4: Remove.
74403
74404         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74405         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74406         dependencies now capture this.
74407
74408         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74409         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74410         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74411         * m4/human.m4 (gl_HUMAN): Likewise.
74412         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74413         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74414
74415         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74416
74417         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74418         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74419         stdint.
74420         * m4/human.m4 (gl_HUMAN): Likewise.
74421         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74422         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74423         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74424         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74425         * m4/xstrtol (gl_XSTRTOL): Likewise.
74426
74427         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74428         AC_TYPE_LONG_LONG_INT.
74429         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74430         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74431         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74432         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74433
74434         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74435         on stdbool.
74436
74437         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74438         (gl_PREREQ_XSTRTOUL): Remove.
74439
74440         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74441
74442         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74443         mode.
74444
74445 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74446
74447         Add and change modules to make it easier for coreutils to use
74448         gnulib-tool.
74449         * modules/backupfile (Files): Remove m4/d-ino.m4.
74450         (Depends-on): Add d-ino.
74451         * modules/cycle-check (Depends-on): Add stdint.
74452         (lib_SOURCES): Add cycle-check.h.
74453         * modules/d-ino: New module.
74454         * modules/d-type: New module.
74455         * modules/error (Files): Remove m4/strerror_r.m4.
74456         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74457         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74458         m4/inttypes_h.m4, m4/uintmax_t.m4.
74459         (Depends-on): Add stdint.
74460         (lib_SOURCES): Add fsusage.h.
74461         * modules/getcwd (Files): Remove d-ino.m4.
74462         (Depends-on): Add d-ino.
74463         * modules/getndelim2 (Depends-on): Add stdint.
74464         * modules/glob (Files): Remove m4/d-type.m4.
74465         (Depends-on): Add d-type.
74466         * modules/host-os: New module.
74467         * modules/human (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 human.h.
74471         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74472         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74473         m4/uintmax_t.m4, m4/ulonglong.m4.
74474         (Depends-on): Add stdint.
74475         (EXTRA_DIST): Add inttostr.h.
74476         * modules/lchmod: New module.
74477         * modules/link-follow: New module.
74478         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74479         (Depends-on): Add lchmod.
74480         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74481         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74482         (Depends-on): Add stdint.
74483         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74484         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74485         (Depends-on): Add stdint.
74486         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74487         * modules/perl: New module.
74488         * modules/regex (Depends-on): Add stdint.
74489         * modules/rmdir-errno: New module.
74490         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74491         m4/intmax_t.m4.
74492         (Depends-on): Add stdint.
74493         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74494         m4/uintmax_t.m4.
74495         (Depends-on): Add stdint.
74496         * modules/unlink-busy: New module.
74497         * modules/utimecmp (Depends-on): Add stdint.
74498         * modules/uptime: New module.
74499         * modules/winsz-ioctl: New module.
74500         * modules/winsz-termios: New module.
74501         * modules/xnanosleep (Depends-on): Add nanosleep.
74502         * modules/ullong_max: Remove.
74503         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74504         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74505         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74506         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74507         (Depends-on): Add inttypes.
74508         (lib_SOURCES): Add xstrtol.h.
74509         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74510         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74511         * MODULES.html.sh: Move 'assert' into the assert section.
74512         Move 'dummy' into the linking section.
74513         Remove ullong_max.
74514         Add section for compatibility checks for POSIX:2001 functions,
74515         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74516         winsz-ioctl, and winsz-termios into it.
74517         Add lchmod.
74518         Add top-level Misc section and put host-os, perl, and uptime
74519         into it.
74520
74521 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74522
74523         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74524         now assume the stdint module.  Do not include inttypes.h.
74525         * lib/fsusage.h: Likewise.
74526         * lib/getndelim2.c: Likewise.
74527         * lib/human.h: Likewise.
74528         * lib/inttostr.h: Likewise.
74529         * lib/obstack.c: Likewise.
74530         * lib/regex_internal.h: Likewise.
74531         * lib/tempname.c: Likewise.
74532         * lib/utimecmp.c: Likewise.
74533         * lib/xstrtol.h: Likewise.
74534
74535         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74536
74537         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74538         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74539         * lib/xtime.h: Likewise.
74540
74541 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74542
74543         * modules/openat (Files): Add lib/fchmodat.c.
74544         Fixes problem reported by Jay Youngman.
74545
74546 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74547
74548         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74549         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74550
74551 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74552             Bruno Haible  <bruno@clisp.org>
74553
74554         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74555         and is a script that invokes bison. Tighten the code. Add comments.
74556
74557 2006-08-18  Jim Meyering  <jim@meyering.net>
74558
74559         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74560         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74561         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74562         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74563
74564 2006-08-18  Bruno Haible  <bruno@clisp.org>
74565
74566         * modules/bison-i18n: New file.
74567         * MODULES.html.sh (Internationalization functions): Add it.
74568
74569 2006-08-18  Bruno Haible  <bruno@clisp.org>
74570
74571         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74572         sys/statvfs.h. When getmntinfo was found, check its declaration and
74573         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74574
74575 2006-08-18  Bruno Haible  <bruno@clisp.org>
74576
74577         * m4/bison-i18n.m4: New file, from bison.
74578
74579 2006-08-18  Bruno Haible  <bruno@clisp.org>
74580
74581         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74582         (ME_DUMMY): Treat "kernfs" as a dummy.
74583         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74584
74585 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         Update from coreutils.
74588
74589         2006-08-15  Jim Meyering  <jim@meyering.net>
74590
74591         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74592
74593         2006-01-17  Jim Meyering  <jim@meyering.net>
74594
74595         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74596
74597         2006-01-11  Jim Meyering  <jim@meyering.net>
74598
74599         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74600         Check for the lchmod function.
74601
74602 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         Update from coreutils.
74605
74606         * lib/__fpending.h: Add copyright notice.
74607         * lib/fprintftime.h: Likewise.
74608         * lib/savedir.c: Use (C) in copyright notice.
74609         * lib/savedir.h: Likewise.
74610
74611         2006-08-15  Jim Meyering  <jim@meyering.net>
74612
74613         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74614         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74615         in support of the EXPECTED_ERRNO macro.
74616         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74617         definitions.  Instead, define the appropriate symbols and include
74618         "at-func.c".
74619         * lib/mkdirat.c (mkdirat): Likewise.
74620         * lib/fchmodat.c (fchmodat): Likewise.
74621         (ENOSYS): Remove definition.
74622         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74623         it.  Don't include "unistd--.h" -- it wasn't ever used.
74624
74625         2006-01-17  Jim Meyering  <jim@meyering.net>
74626
74627         Rewrite fts.c not to change the current working directory,
74628         by using openat, fstatat, fdopendir, etc..
74629
74630         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74631         (HAVE_OPENAT_SUPPORT): Define.
74632         [_LIBC] (fchdir): Don't undef or define; no longer used.
74633         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74634         Now, this `function' always succeeds, and consumes its file descriptor
74635         parameter -- so callers must not close such FDs.  Update callers.
74636         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74637         (diropen): Add parameter, SP.  Adjust all callers.
74638         Implement using diropen_fd, rather than open.
74639         (fts_open): Initialize new member, fts_cwd_fd.
74640         Remove fts_rft-setting code.
74641         (fts_close): Close fts_cwd_fd, if necessary.
74642         (__opendir2): Define in terms of opendir or opendirat,
74643         depending on whether the FST_NOCHDIR flag is set.
74644         (fts_build): Since fts_safe_changedir consumes its FD, and since
74645         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74646         and close the dup'd file descriptor upon failure.
74647         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74648         (fts_safe_changedir): Tweak semantics to reflect that this function
74649         now calls cwd_advance_fd and hence consumes its FD argument.
74650         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74651         [struct FTS] (fts_rft): Remove now-unused member.
74652         [struct FTS] (fts_cycle.state): Improve comment.
74653
74654         * lib/openat.c (openat_needs_fchdir): New function.
74655         * lib/openat.h (openat_needs_fchdir): Declare it.
74656
74657 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74658
74659         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74660         Problem and fix reported by Pádraig Brady in
74661         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74662
74663 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74664
74665         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74666
74667 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74668
74669         * lib/memcoll.c (memcoll): Optimize for the common case where the
74670         arguments are bytewise equal.
74671
74672 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74673
74674         * doc/regexprops-generic.texi: Add a copyright notice.
74675
74676 2006-08-15  Bruno Haible  <bruno@clisp.org>
74677
74678         * modules/tmpdir (License): Change to LGPL.
74679
74680 2006-08-15  Bruno Haible  <bruno@clisp.org>
74681
74682         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74683         module.
74684
74685 2006-08-14  Simon Josefsson  <jas@extundo.com>
74686
74687         * config/srclist.txt: Add gnupload.
74688
74689 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74690
74691         Change copyright notice from LGPL 2 to GPL 2, since that's the
74692         standard form used in the gnulib repository.
74693         * tests/test-lock.c: Likewise.
74694         * tests/test-stdint.c: Likewise.
74695         * tests/test-tls.c: Likewise.
74696
74697         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74698         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74699         Add copyright notice.
74700
74701         * check-module: Add copyright notice.  Output a copyright
74702         notice if "--version" is specified.
74703         * modules/COPYING: New file.
74704         * tests/test-getaddrinfo.c: Add copyright notice.
74705         * tests/test-verify.c: Likewise.
74706
74707 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74708
74709         Change copyright notice from LGPL 2 to GPL 2, since that's the
74710         standard form used in the gnulib repository.
74711         * lib/lock.c: LGPL -> GPL.
74712         * lib/lock.h: Likewise.
74713         * lib/strnlen1.c: Likewise.
74714         * lib/strnlen1.h: Likewise.
74715         * lib/tls.c: Likewise.
74716         * lib/tls.h: Likewise.
74717         * lib/tmpdir.c: Likewise.
74718
74719         * lib/TODO: Remove; this belongs only in coreutils.
74720
74721 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74722
74723         Add copyright notices to long-enough files that lack them, since
74724         otherwise the files aren't clearly free.  Use the same notice that
74725         getdate.texi already uses.
74726         * doc/alloca-opt.texi: Add copyright notice.
74727         * doc/alloca.texi: Likewise.
74728         * doc/ctime.texi: Likewise.
74729         * doc/functions.texi: Likewise.
74730         * doc/gcd.texi: Likewise.
74731         * doc/gnulib-tool.texi: Likewise.
74732         * doc/inet_ntoa.texi: Likewise.
74733         * doc/visibility.texi: Likewise.
74734
74735         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74736         * doc/quote.texi: Add copyright notice.
74737
74738         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74739         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74740         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74741         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74742         is now obsolete, and give a pointer to the Sun list.
74743         Add copyright notice.
74744
74745 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74746
74747         * config/srclistvars.sh: Add copyright notice.
74748
74749 2006-08-14  Eric Blake  <ebb9@byu.net>
74750
74751         Import the following change from libc:
74752
74753         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74754
74755         Upstream bug 2997.
74756         * lib/misc/error.c: Add space between program name and message if file
74757         name is missing.
74758
74759 2006-08-12  Karl Berry  <karl@gnu.org>
74760
74761         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74762         remove, these originate in gnulib now.
74763
74764 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74765
74766         * doc/Makefile (standards.info standards.html standards.dvi):
74767         Also depend on make-stds.texi.
74768
74769 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74770
74771         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74772         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74773
74774         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74775         in wchar_t.  Problem reported by Eric Blake.
74776
74777         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74778         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74779         Also, help the compiler to keep LEN in a register.
74780
74781 2006-08-11  Eric Blake  <ebb9@byu.net>
74782
74783         * users.txt: Sort.  Add tar.
74784
74785 2006-08-11  Bruno Haible  <bruno@clisp.org>
74786
74787         * users.txt: New file.
74788
74789 2006-08-11  Bruno Haible  <bruno@clisp.org>
74790
74791         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74792         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74793
74794 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74795
74796         * modules/snprintf (Depends-on): Remove minmax.
74797         (Maintainer): Add self and Bruno.
74798
74799 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74800
74801         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74802         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74803         (EOVERFLOW): Define if the system does not.
74804         Do not include "minmax.h"; it wasn't used.
74805         (snprintf): Don't assume size_t promotes to an unsigned type.
74806         Fix bug when generated string was too long for the buffer: the
74807         buffer's contents are supposed to be the initial prefix of the
74808         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74809         exceeds INT_MAX; do the check ourselves.
74810
74811         Import the following changes from libc:
74812
74813         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74814
74815         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74816         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74817         set wc to the byte which couldn't be converted.
74818         (re_string_reconstruct): Don't clear valid_raw_len before calling
74819         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74820         tip_context using re_string_context_at.
74821
74822         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74823
74824         * lib/posix/regex.h: g++ still cannot handled [restrict].
74825
74826         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74827
74828         * lib/posix/regex.h: Remove special handling for VMS.
74829
74830 2006-08-10  Jim Meyering  <jim@meyering.net>
74831
74832         * modules/same-inode: New module.
74833         * modules/dev-ino: New module.
74834         * modules/cycle-check: Depend on these modules, rather than simply
74835         including their .h files.
74836         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74837         required via m4/cycle-check.m4.
74838         * modules/same: Depend on new same-inode module, rather than
74839         including same-inode.h.
74840         * modules/chdir-safer: New file.
74841
74842         * modules/chown (Depends-on): Add stat-macros.
74843
74844 2006-08-10  Jim Meyering  <jim@meyering.net>
74845
74846         * m4/cycle-check.m4: New file.
74847         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74848         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74849
74850 2006-08-10  Eric Blake  <ebb9@byu.net>
74851
74852         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74853         in from original proposal.
74854
74855 2006-08-10  Eric Blake  <ebb9@byu.net>
74856         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74857
74858         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74859         namespace.
74860
74861 2006-08-10  Bruno Haible  <bruno@clisp.org>
74862
74863         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74864         as well.
74865
74866 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74867
74868         Sync from coreutils.
74869
74870         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74871
74872         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74873         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74874
74875 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         * modules/restrict: Remove; no longer needed now that we assume
74878         Autoconf 2.59 or later.
74879         * MODULES.html.sh: Remove 'restrict'.
74880         * modules/argp (Depends-on): Remove 'restrict'.
74881         * modules/base64 (Depends-on): Likewise.
74882         * modules/gc (Depends-on): Likewise.
74883         * modules/getaddrinfo (Depends-on): Likewise.
74884         * modules/glob (Depends-on): Likewise.
74885         * modules/inet_ntop (Depends-on): Likewise.
74886         * modules/inet_pton (Depends-on): Likewise.
74887         * modules/memxor (Depends-on): Likewise.
74888         * modules/regex (Depends-on): Likewise.
74889         * modules/strtok_r (Depends-on): Likewise.
74890         * modules/time_r (Depends-on): Likewise.
74891
74892 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74893
74894         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74895         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74896         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74897         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74898         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74899         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74900         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74901         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74902
74903         Merge from coreutils.
74904         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74905         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74906         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74907         * m4/time_r.m4 (gl_TIME_R): Likewise.
74908
74909 2006-08-09  Karl Berry  <karl@gnu.org>
74910
74911         * config/srclist.txt: no more gettext-tools, per Bruno.
74912
74913 2006-08-08  Eric Blake  <ebb9@byu.net>
74914
74915         * modules/verror: New module.
74916         * MODULES.html.sh: Document it.
74917
74918 2006-08-08  Eric Blake  <ebb9@byu.net>
74919
74920         * lib/verror.h, lib/verror.c: New files.
74921
74922 2006-08-08  Eric Blake  <ebb9@byu.net>
74923
74924         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74925         verror_at_line output complies with GNU Coding Standards even when
74926         file is NULL.
74927
74928 2006-08-07  Bruno Haible  <bruno@clisp.org>
74929
74930         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74931         versions of AIX.
74932         Reported by Ralf Wildenhues.
74933
74934 2006-08-07  Bruno Haible  <bruno@clisp.org>
74935
74936         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74937         in an AC_DEFUN. Needed so that the autoconf snippets can use
74938         AC_REQUIRE.
74939
74940 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74941
74942         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74943         Initialize pkgdata_DATA.
74944         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74945         overriding it.
74946
74947 2006-08-06  Eric Blake  <ebb9@byu.net>
74948
74949         * lib/error.h: Fold in some upstream changes from glibc.
74950         * lib/error.c: Likewise.
74951
74952 2006-08-04  Bruno Haible  <bruno@clisp.org>
74953
74954         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74955         Make the mostlyclean-local rule depend on mostlyclean-generic.
74956         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74957
74958 2006-07-31  Bruno Haible  <bruno@clisp.org>
74959
74960         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74961         <stdlib.h>, <string.h>.
74962
74963 2006-07-30  Bruno Haible  <bruno@clisp.org>
74964
74965         * modules/readlink (License): Change to LGPL.
74966
74967 2006-07-30  Bruno Haible  <bruno@clisp.org>
74968
74969         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74970         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74971         set PKGDATADIR to point to it.
74972
74973 2006-07-30  Bruno Haible  <bruno@clisp.org>
74974
74975         * modules/csharpexec (configure.ac): Comment out macro invocation.
74976         * modules/javaexec (configure.ac): Likewise.
74977         * modules/javacomp-script (configure.ac): Likewise.
74978
74979         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74980
74981 2006-07-30  Bruno Haible  <bruno@clisp.org>
74982
74983         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74984         linked-list.
74985
74986 2006-07-30  Bruno Haible  <bruno@clisp.org>
74987
74988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74989
74990 2006-07-30  Bruno Haible  <bruno@clisp.org>
74991
74992         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74993         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74994         get removed.
74995
74996 2006-07-29  Bruno Haible  <bruno@clisp.org>
74997
74998         Make it possible for gnulib-tool to work with locally modified or
74999         augmented gnulib repositories.
75000         * gnulib-tool (func_usage): Document --local-dir option.
75001         (local_gnulib_dir): New variable.
75002         Handle --local-dir option.
75003         (func_lookup_file): New function.
75004         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75005         (func_get_description, func_get_filelist, func_get_description,
75006         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75007         func_get_automake_snippet, func_get_include_directive,
75008         func_get_license, func_get_maintainer): Use func_lookup_file.
75009         (func_import, func_create_testdir): Use func_lookup_file.
75010
75011 2006-07-29  Bruno Haible  <bruno@clisp.org>
75012
75013         * modules/setenv (Depends-on): Add unistd.
75014
75015 2006-07-29  Bruno Haible  <bruno@clisp.org>
75016
75017         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75018
75019 2006-07-29  Bruno Haible  <bruno@clisp.org>
75020
75021         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75022
75023 2006-07-29  Bruno Haible  <bruno@clisp.org>
75024
75025         * gnulib-tool (import, update): If there is no Makefile.am, look at
75026         aclocal.m4, instead of bailing out.
75027
75028 2006-07-29  Bruno Haible  <bruno@clisp.org>
75029
75030         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75031         Categorize the options by when they are useful.
75032
75033 2006-07-29  Bruno Haible  <bruno@clisp.org>
75034
75035         * gnulib-tool (func_usage): Document option --no-libtool.
75036         Handle option --no-libtool.
75037         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75038         for changed semantics of $libtool variable.
75039         (func_import): Likewise. If libtool is not used, show this through
75040         an option --no-libtool.
75041         (func_create_testdir): Update.
75042
75043 2006-07-29  Bruno Haible  <bruno@clisp.org>
75044
75045         * gnulib-tool (func_import): Extend error message about missing
75046         --doc-base.
75047
75048 2006-07-29  Bruno Haible  <bruno@clisp.org>
75049
75050         * gnulib-tool (func_import): Don't create the $docbase directory if
75051         there is no file to store there.
75052
75053 2006-07-29  Bruno Haible  <bruno@clisp.org>
75054
75055         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75056         relevant, look for configure.ac there, not in the current directory.
75057         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75058
75059 2006-07-29  Bruno Haible  <bruno@clisp.org>
75060
75061         * gnulib-tool (SORT): New variable.
75062         (func_usage): Undocument --assume-autoconf option.
75063         Remove --assume-autoconf option handling.
75064         (autoconf_minversion): Determine from the contents of configure.ac.
75065         (func_import): Remove autoconf_minversion handling.
75066         Suggested by Eric Blake.
75067
75068 2006-07-29  Bruno Haible  <bruno@clisp.org>
75069
75070         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75071
75072 2006-07-29  Bruno Haible  <bruno@clisp.org>
75073
75074         * config/srclist.txt (*setenv.[ch]): Remove rules.
75075
75076 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75077
75078         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75079
75080 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75081
75082         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75083         arpa/inet.h.
75084
75085 2006-07-28  Simon Josefsson  <jas@extundo.com>
75086
75087         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75088         * modules/inet_pton (Depends-on): Likewise.
75089
75090 2006-07-28  Simon Josefsson  <jas@extundo.com>
75091
75092         * m4/netinet_in_h.m4: New file.
75093
75094 2006-07-28  Simon Josefsson  <jas@extundo.com>
75095
75096         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75097         #include's.
75098
75099 2006-07-28  Simon Josefsson  <jas@extundo.com>
75100
75101         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75102         #include's.
75103
75104 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75107         setgid on directories only if they set these bits.
75108         * lib/modechange.h: Remove obsolete comment about masks.
75109
75110 2006-07-28  Eric Blake  <ebb9@byu.net>
75111
75112         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75113         macro expansion.
75114
75115 2006-07-28  Bruno Haible  <bruno@clisp.org>
75116
75117         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75118
75119 2006-07-28  Bruno Haible  <bruno@clisp.org>
75120
75121         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75122
75123 2006-07-28  Bruno Haible  <bruno@clisp.org>
75124
75125         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75126         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75127         Define fallbacks.
75128         Avoids link error on FreeBSD 4.x.
75129         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75130
75131         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75132         encoding.
75133         * lib/mbswidth.c (iswcntrl): Likewise.
75134
75135 2006-07-27  Bruno Haible  <bruno@clisp.org>
75136
75137         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75138         test.
75139
75140 2006-07-27  Bruno Haible  <bruno@clisp.org>
75141
75142         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75143         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75144         defined.
75145
75146 2006-07-26  Eric Blake  <ebb9@byu.net>
75147
75148         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75149
75150 2006-07-26  Eric Blake  <ebb9@byu.net>
75151
75152         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75153         like mingw that lack mkstemp.
75154         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75155         avoid compilation warning on mingw.
75156
75157 2006-07-26  Bruno Haible  <bruno@clisp.org>
75158
75159         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75160         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75161         INT_FAST*_MIN, INTPTR_MIN.
75162
75163 2006-07-25  Bruno Haible  <bruno@clisp.org>
75164
75165         * modules/version-etc (Depends-on): Add stdarg.
75166
75167 2006-07-25  Bruno Haible  <bruno@clisp.org>
75168
75169         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75170         complex commands.
75171
75172 2006-07-25  Bruno Haible  <bruno@clisp.org>
75173
75174         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75175         defined in <stdarg.h> or config.h.
75176
75177 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75178
75179         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75180         (gl_STDIO_SAFER): Remove.
75181
75182 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75183
75184         * MODULES.html.sh (File stream based Input/Output):
75185         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75186         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75187         * modules/fopen-safer, modules/tmpfile-safer: New files.
75188         * modules/stdio-safer: Remove.
75189
75190 2006-07-24  Bruno Haible  <bruno@clisp.org>
75191
75192         * modules/tmpdir: New file.
75193         * MODULES.html.sh (File system functions): Add it.
75194
75195 2006-07-24  Bruno Haible  <bruno@clisp.org>
75196
75197         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75198         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75199
75200 2006-07-24  Bruno Haible  <bruno@clisp.org>
75201
75202         * modules/clean-temp: New file.
75203
75204 2006-07-24  Bruno Haible  <bruno@clisp.org>
75205
75206         * m4/tmpdir.m4: New file, from GNU gettext.
75207
75208 2006-07-24  Bruno Haible  <bruno@clisp.org>
75209
75210         * lib/tmpdir.h: New file, from GNU gettext.
75211         * lib/tmpdir.c: New file, from GNU gettext.
75212
75213 2006-07-24  Bruno Haible  <bruno@clisp.org>
75214
75215         * lib/clean-temp.h: New file, from GNU gettext.
75216         * lib/clean-temp.c: New file, from GNU gettext.
75217
75218 2006-07-23  Eric Blake  <ebb9@byu.net>
75219
75220         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75221         (Depends-on): Add binary-io.
75222
75223 2006-07-23  Eric Blake  <ebb9@byu.net>
75224
75225         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75226
75227 2006-07-23  Eric Blake  <ebb9@byu.net>
75228
75229         * lib/tmpfile-safer.c: New file.
75230         * lib/stdio-safer.h (fopen_safer): Add prototype.
75231         * lib/stdio--.h (tmpfile): Make safer.
75232
75233 2006-07-23  Bruno Haible  <bruno@clisp.org>
75234
75235         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75236         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75237         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75238         gl_linked_remove_at): Use it.
75239
75240 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75241         and Simon Josefsson <jas@extundo.com>
75242
75243         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75244
75245         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75246
75247 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75248
75249         * modules/close-stream: New file.
75250         * modules/closeout (Description): Make it clear that it exits
75251         with a diagnostic on error.
75252         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75253         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75254
75255 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75256
75257         * m4/close-stream.m4: New file.
75258
75259 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75260
75261         * lib/close-stream.c, lib/close-stream.h: New files.
75262
75263 2006-07-22  Bruno Haible  <bruno@clisp.org>
75264
75265         Merge from GNU gettext 0.15.
75266
75267         2006-05-01  Bruno Haible  <bruno@clisp.org>
75268
75269                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75270
75271         2006-07-22  Bruno Haible  <bruno@clisp.org>
75272
75273                 * modules/javaversion: New file.
75274                 * MODULES.html.sh (Java): Add javaversion.
75275
75276         2006-03-12  Bruno Haible  <bruno@clisp.org>
75277
75278                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75279
75280         2005-12-04  Bruno Haible  <bruno@clisp.org>
75281
75282                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75283                 (untested).
75284
75285         2006-06-21  Bruno Haible  <bruno@clisp.org>
75286
75287                 Avoid warnings from recent versions of mcs.
75288                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75289                 -o, -L, -r any more. Use options documented since mcs-1.0
75290                 instead. Similarly for -g.
75291
75292         2005-12-04  Bruno Haible  <bruno@clisp.org>
75293
75294                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75295                 .resources, not .resource.
75296
75297         2005-07-09  Bruno Haible  <bruno@clisp.org>
75298
75299                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75300                 add a .dll suffix.
75301                 Reported by Mark Junker <mjscod@gmx.de>.
75302
75303         2006-07-22  Bruno Haible  <bruno@clisp.org>
75304
75305                 * modules/gettext: Upgrade to gettext-0.15.
75306                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75307                 m4/visibility.m4.
75308                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75309
75310 2006-07-22  Bruno Haible  <bruno@clisp.org>
75311
75312         Merge from GNU gettext 0.15.
75313
75314         2006-03-25  Bruno Haible  <bruno@clisp.org>
75315
75316                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75317
75318         2006-07-21  Bruno Haible  <bruno@clisp.org>
75319
75320                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75321                 "1.1".
75322
75323         2006-05-09  Bruno Haible  <bruno@clisp.org>
75324
75325                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75326                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75327                 for the conftestver execution.
75328
75329         2006-05-01  Bruno Haible  <bruno@clisp.org>
75330
75331                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75332                 optional target-version argument. Verify that the compiler
75333                 groks source of the specified source-version, or add -source
75334                 option as necessary. Verify that the compiler produces
75335                 bytecode in the specified target-version, or add -target and
75336                 -source options as necessary. Make the result of the test
75337                 available as variable CONF_JAVAC. Also log error output in
75338                 config.log.
75339
75340         2006-03-11  Bruno Haible  <bruno@clisp.org>
75341
75342                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75343
75344         2006-05-09  Bruno Haible  <bruno@clisp.org>
75345
75346                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75347                 CLASSPATH_SEPARATOR to a semicolon.
75348
75349         2006-03-12  Bruno Haible  <bruno@clisp.org>
75350
75351                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75352                 available as variable CONF_JAVA, for subsequent autoconf
75353                 tests. Also log error output in config.log.
75354
75355         2006-07-19  Bruno Haible  <bruno@clisp.org>
75356
75357                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75358                 that getline works on glibc2 systems. Needed to avoid trouble
75359                 in relocatable.c.
75360                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75361
75362         2005-12-04  Bruno Haible  <bruno@clisp.org>
75363
75364                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75365                 launcher (untested).
75366
75367         2005-12-04  Bruno Haible  <bruno@clisp.org>
75368
75369                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75370
75371         2006-07-22  Bruno Haible  <bruno@clisp.org>
75372
75373                 * gettext.m4: Update from GNU gettext-0.15.
75374                 * nls.m4: Likewise.
75375                 * po.m4: Likewise.
75376                 * inttypes-pri.m4: Likewise.
75377                 * inttypes-h.m4: Renamed from inttypes.m4.
75378                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75379
75380 2006-07-22  Bruno Haible  <bruno@clisp.org>
75381
75382         Merge from GNU gettext 0.15.
75383
75384         2005-07-05  Bruno Haible  <bruno@clisp.org>
75385
75386                 * printf-args.c (printf_fetchargs): Work around broken
75387                 definition of wint_t on mingw.
75388
75389         2005-02-12  Bruno Haible  <bruno@clisp.org>
75390
75391                 * xallocsa.h: Add extern "C" for C++.
75392
75393         2006-05-17  Bruno Haible  <bruno@clisp.org>
75394
75395                 Cygwin portability.
75396                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75397
75398         2006-04-30  Bruno Haible  <bruno@clisp.org>
75399
75400                 * progreloc.c: Include <mach-o/dyld.h> if available.
75401                 (find_executable): Use _NSGetExecutablePath when possible.
75402
75403         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75404
75405                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75406                 function.
75407
75408         2005-12-29  Bruno Haible  <bruno@clisp.org>
75409
75410                 * progreloc.c (set_program_name_and_installdir): Fix
75411                 compilation error.
75412
75413         2005-12-04  Bruno Haible  <bruno@clisp.org>
75414
75415                 Cygwin portability.
75416                 * progreloc.c: Include <windows.h> also on Cygwin.
75417                 (find_executable): Add support for Cygwin.
75418                 (set_program_name_and_installdir): Handle also platforms with
75419                 nonempty EXEEXT.
75420
75421         2006-07-11  Bruno Haible  <bruno@clisp.org>
75422
75423                 * javacomp.c: Fix a comment.
75424                 Reported by Jim Meyering.
75425
75426         2006-04-30  Bruno Haible  <bruno@clisp.org>
75427
75428                 * javacomp.h (compile_java_class): Add source_version,
75429                 target_version arguments.
75430                 * javacomp.c: Rewritten to choose only a compiler that
75431                 respects the specified source_version and target_version.
75432
75433         2006-06-27  Bruno Haible  <bruno@clisp.org>
75434
75435                 Assume correct S_ISDIR macro.
75436                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75437
75438         2006-07-22  Bruno Haible  <bruno@clisp.org>
75439
75440                 * javaversion.h: New file, from GNU gettext.
75441                 * javaversion.c: New file, from GNU gettext.
75442                 * javaversion.java: New file, from GNU gettext.
75443                 * javaversion.class: New file, from GNU gettext.
75444
75445         2006-05-17  Bruno Haible  <bruno@clisp.org>
75446
75447                 Cygwin portability.
75448                 * javaexec.c (execute_java_class): Test for jview program
75449                 also on Cygwin.
75450
75451         2006-04-09  Bruno Haible  <bruno@clisp.org>
75452
75453                 * fatal-signal.c: Don't include string.h.
75454                 (at_fatal_signal): Use a copying loop instead of memcpy.
75455
75456         2005-12-04  Bruno Haible  <bruno@clisp.org>
75457
75458                 * csharpexec.c: Add support for 'clix' launcher (untested).
75459                 (execute_csharp_using_sscli): New function.
75460                 (execute_csharp_program): Call it.
75461
75462         2006-06-21  Bruno Haible  <bruno@clisp.org>
75463
75464                 Avoid warnings from recent versions of mcs.
75465                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75466                 -o, -L, -r any more. Use options documented since mcs-1.0
75467                 instead. Similarly for -g.
75468
75469         2005-07-09  Bruno Haible  <bruno@clisp.org>
75470
75471                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75472                 add a .dll suffix.
75473                 Reported by Mark Junker <mjscod@gmx.de>.
75474
75475         2006-06-17  Bruno Haible  <bruno@clisp.org>
75476
75477                 * config.charset: Update for NetBSD 3.0.
75478
75479         2006-05-17  Bruno Haible  <bruno@clisp.org>
75480
75481                 Cygwin portability.
75482                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75483
75484         2006-05-16  Bruno Haible  <bruno@clisp.org>
75485
75486                 * localcharset.c [CYGWIN]: Include <windows.h>.
75487                 (get_charset_aliases): For Cygwin, return the same CPxxx
75488                 aliases list as under WIN32.
75489                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75490                 the environment variables. Fall back to GetACP().
75491
75492         2006-04-05  Bruno Haible  <bruno@clisp.org>
75493
75494                 * config.charset: Update Juan Manuel Guerrero's address.
75495
75496         2005-02-12  Bruno Haible  <bruno@clisp.org>
75497
75498                 * allocsa.h: Add extern "C" for C++.
75499
75500         2005-02-10  Bruno Haible  <bruno@clisp.org>
75501
75502                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75503                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75504
75505         2006-07-22  Bruno Haible  <bruno@clisp.org>
75506
75507                 * gettext.h: Update to GNU gettext-0.15.
75508
75509 2006-07-22  Bruno Haible  <bruno@clisp.org>
75510
75511         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75512         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75513         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75514
75515 2006-07-21  Eric Blake  <ebb9@byu.net>
75516
75517         * modules/stdlib-safer: New file.
75518         * MODULES.html.sh (File stream based Input/Output): Add
75519         stdlib-safer.
75520
75521 2006-07-21  Eric Blake  <ebb9@byu.net>
75522
75523         * lib/stdlib-safer.h: New file from coreutils, required by
75524         stdlib--.h.
75525
75526 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75527
75528         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75529
75530 2006-07-20  Bruno Haible  <bruno@clisp.org>
75531
75532         * gnulib-tool: Recognize new option --assume-autoconf.
75533         (autoconf_minversion): New variable.
75534         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75535
75536 2006-07-20  Bruno Haible  <bruno@clisp.org>
75537
75538         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75539
75540 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75541
75542         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75543         Reindent and repaginate.
75544
75545 2006-07-19  Derek Price  <derek@ximbiot.com>
75546
75547         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75548         Correct grammar.
75549
75550 2006-07-17  Bruno Haible  <bruno@clisp.org>
75551
75552         * modules/list: New file.
75553         * modules/array-list: New file.
75554         * modules/carray-list, modules/carray-list-tests: New files.
75555         * modules/linked-list, modules/linked-list-tests: New files.
75556         * modules/avltree-list, modules/avltree-list-tests: New files.
75557         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75558         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75559         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75560         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75561         * modules/oset: New file.
75562         * modules/array-oset: New file.
75563         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75564         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75565         * tests/test-carray_list.c: New file.
75566         * tests/test-linked_list.c: New file.
75567         * tests/test-avltree_list.c: New file.
75568         * tests/test-rbtree_list.c: New file.
75569         * tests/test-linkedhash_list.c: New file.
75570         * tests/test-avltreehash_list.c: New file.
75571         * tests/test-rbtreehash_list.c: New file.
75572         * tests/test-avltree_oset.c: New file.
75573         * tests/test-rbtree_oset.c: New file.
75574         * MODULES.html.sh (Container data structures): New section.
75575
75576 2006-07-17  Bruno Haible  <bruno@clisp.org>
75577
75578         * m4/gl_list.m4: New file.
75579
75580 2006-07-17  Bruno Haible  <bruno@clisp.org>
75581
75582         * lib/gl_list.h: New file.
75583         * lib/gl_list.c: New file.
75584         * lib/gl_array_list.h: New file.
75585         * lib/gl_array_list.c: New file.
75586         * lib/gl_carray_list.h: New file.
75587         * lib/gl_carray_list.c: New file.
75588         * lib/gl_linked_list.h: New file.
75589         * lib/gl_linked_list.c: New file.
75590         * lib/gl_anylinked_list1.h: New file.
75591         * lib/gl_anylinked_list2.h: New file.
75592         * lib/gl_avltree_list.h: New file.
75593         * lib/gl_avltree_list.c: New file.
75594         * lib/gl_anyavltree_list1.h: New file.
75595         * lib/gl_anyavltree_list2.h: New file.
75596         * lib/gl_rbtree_list.h: New file.
75597         * lib/gl_rbtree_list.c: New file.
75598         * lib/gl_anyrbtree_list1.h: New file.
75599         * lib/gl_anyrbtree_list2.h: New file.
75600         * lib/gl_anytree_list1.h: New file.
75601         * lib/gl_anytree_list2.h: New file.
75602         * lib/gl_linkedhash_list.h: New file.
75603         * lib/gl_linkedhash_list.c: New file.
75604         * lib/gl_anyhash_list1.h: New file.
75605         * lib/gl_anyhash_list2.h: New file.
75606         * lib/gl_avltreehash_list.h: New file.
75607         * lib/gl_avltreehash_list.c: New file.
75608         * lib/gl_rbtreehash_list.h: New file.
75609         * lib/gl_rbtreehash_list.c: New file.
75610         * lib/gl_anytreehash_list1.h: New file.
75611         * lib/gl_anytreehash_list2.h: New file.
75612
75613         * lib/gl_oset.h: New file.
75614         * lib/gl_oset.c: New file.
75615         * lib/gl_array_oset.h: New file.
75616         * lib/gl_array_oset.c: New file.
75617         * lib/gl_avltree_oset.h: New file.
75618         * lib/gl_avltree_oset.c: New file.
75619         * lib/gl_rbtree_oset.h: New file.
75620         * lib/gl_rbtree_oset.c: New file.
75621         * lib/gl_anytree_oset.h: New file.
75622
75623 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * m4/mkancesdirs.m4: New file.
75626         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75627         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75628         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75629         it.
75630
75631 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75632
75633         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75634         * lib/mkancesdirs.h: New files.
75635         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75636         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75637         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75638         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75639         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75640         callers changed.  Revamp internals significantly, by not
75641         attempting to create directories that are temporarily more
75642         permissive than the final results.  Do not attempt to use
75643         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75644         This removes some race conditions, fixes some bugs, and simplifies
75645         things.  Use new dirchownmod function to do owner and mode changes.
75646         * lib/mkdir-p.h: Likewise.
75647         * lib/modechange.c (octal_to_mode): New function.
75648         (struct mode_change): New member mentioned.
75649         (make_node_op_equals): New arg mentioned.  All callers changed.
75650         (mode_compile): Keep track of which mode bits the user has explicitly
75651         mentioned.
75652         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75653         New arg PMODE_BITS, to keep track of which mode bits the user
75654         mentioned; it treats S_ISUID and S_ISGID speciall.
75655         All callers changed.
75656         * lib/modechange.h: Likewise.
75657
75658 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75659
75660         * MODULES.html.sh: Add mkancestors.
75661         * modules/mkancesdirs: New module.
75662         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75663         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75664         The chdir-safer and afs files are now orphans; I'll remove them
75665         unless someone speaks up.
75666         Add lib/dirchownmod.c, lib/dirchownmod.h.
75667         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75668         Add lchown, mkancesdirs.
75669         (Maintainer): Add self.
75670
75671 2006-07-15  Karl Berry  <karl@gnu.org>
75672
75673         * gnulib-tool: help message wording/arrangement.
75674
75675 2006-07-14  Simon Josefsson  <jas@extundo.com>
75676
75677         * doc/gnulib.texi (Libtool and Windows): New section.
75678
75679 2006-07-12  Simon Josefsson  <jas@extundo.com>
75680
75681         * modules/gendocs (License): Fix license, approved by Karl.
75682
75683 2006-07-12  Eric Blake  <ebb9@byu.net>
75684
75685         * MODULES.html.sh: Add gendocs.
75686
75687 2006-07-11  Eric Blake  <ebb9@byu.net>
75688
75689         * modules/fdl: New module, to install doc/fdl.texi.
75690         * MODULES.html.sh: Add new section for documentation modules.
75691         * gnulib-tool: Avoid space-tab.
75692         (--doc-base): New option, to manage files from doc.
75693
75694 2006-07-11  Eric Blake  <ebb9@byu.net>
75695
75696         * m4/absolute-header.m4: Fix comments to match recent change.
75697
75698 2006-07-11  Eric Blake  <ebb9@byu.net>
75699
75700         * gnulib-tool: List --doc-base before --tests-base.
75701
75702 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75703
75704         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75705
75706 2006-07-11  Bruno Haible  <bruno@clisp.org>
75707
75708         * README: Mention where to put documentation.
75709
75710 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75711
75712         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75713
75714 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75715
75716         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75717         to stdint.m4.
75718
75719 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75720
75721         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75722         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75723         "no/such/file/stdint.h" when there is no such file, so that
75724         the resulting C code can be parsed by dodgy compilers.
75725         Problems reported by Bob Proulx.
75726
75727 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75728
75729         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75730         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75731         macros into the GNU _D_EXACT_NAMLEN.
75732         * lib/savedir.c:  Likewise.
75733         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75734
75735 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75736         and Paul Eggert  <eggert@cs.ucla.edu>
75737
75738         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75739         * m4/savedir.m4:
75740         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75741         macros into the GNU _D_EXACT_NAMLEN.
75742
75743 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75744
75745         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75746         around the absolute name, to work around a problem with the HP-UX
75747         11.23 native C compiler, reported by Bob Proulx.
75748
75749 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75750
75751         * doc/maintain.texi, make-stds.texi: Sync from
75752         <http://savannah.gnu.org/projects/gnustandards>.
75753
75754 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75755
75756         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75757
75758 2006-07-09  Jim Meyering  <jim@meyering.net>
75759
75760         * m4/glob.m4: Remove a doubled word in a comment.
75761
75762 2006-07-09  Jim Meyering  <jim@meyering.net>
75763
75764         * lib/argp-pv.c: Remove a doubled word in a comment.
75765         * lib/check-version.c (check_version): Likewise.
75766         * lib/javacomp.c (compile_java_class): Likewise.
75767
75768 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75769
75770         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75771         for the benefit of people using Autoconf 2.60.  If you want to
75772         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75773         (or m4/onceonly.m4, if pre-2.57) manually.
75774
75775 2006-07-08  Jim Meyering  <jim@meyering.net>
75776
75777         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75778         comment.
75779         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75780         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75781         comment.
75782
75783 2006-07-08  Jim Meyering  <jim@meyering.net>
75784
75785         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75786
75787 2006-07-07  Simon Josefsson  <jas@extundo.com>
75788
75789         * tests/test-crc.c: Change expected crc value, the test vector
75790         were probably computed using the old broken crc.c?
75791
75792 2006-07-06  Simon Josefsson  <jas@extundo.com>
75793
75794         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75795         now the canonical place for the M4 file).
75796
75797         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75798         from the sys_socket dependency now.
75799
75800         * modules/inet_pton (Files): Ditto.
75801
75802         * modules/inet_ntop (Files): Ditto.
75803
75804 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75805
75806         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75807         not gl_PREREQ_GETUSERSHELL.
75808
75809 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75810
75811         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75812         with only one argument, for Autoconf 2.60.
75813         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75814         expand to nothing, so add a shell command to avoid syntax error.
75815         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75816
75817 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75818
75819         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75820
75821 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75824         no longer needed.  Check for isblank decl.
75825         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75826         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75827         of existence.
75828
75829 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75830
75831         * lib/getloadavg.c: Use __VMS, not VMS.
75832         * lib/getopt.c: Likewise.
75833         * lib/getpagesize.h: Likewise.
75834         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75835         and probably does not work.
75836
75837 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         * lib/.cppi-disable: Add wcwidth.
75840         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75841         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75842         (ISGRAPH): Remove.  All uses changed to isgraph.
75843         (FOLD) [!defined _LIBC]: Remove special case.
75844         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75845         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75846         HAVE_ISBLANK.
75847         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75848         case.
75849
75850 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75851
75852         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75853         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75854         brackets.  Other minor changes to suppress some compiler
75855         warnings.
75856
75857 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75858         and Paul Eggert  <eggert@cs.ucla.edu>
75859
75860         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75861         of invoking obsolescent AC_HEADER_DIRENT macro.
75862         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75863         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75864         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75865         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75866         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75867         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75868         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75869         * m4/readdir.m4: Remove; no longer needed.
75870
75871 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75872         and Paul Eggert  <eggert@cs.ucla.edu>
75873
75874         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75875         Don't worry about this obsolete case any more.
75876         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75877         directories.
75878         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75879         worry about this obsolete case any more.
75880         * lib/fts.c: Likewise.
75881         * lib/getcwd.c: Likewise.
75882         * lib/glob.h: Likewise.
75883         * lib/savedir.c: Likewise.
75884
75885 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75886
75887         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75888         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75889         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75890         needed.
75891         All uses removed.
75892         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75893         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75894         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75895         needed.
75896         * m4/getdate.m4 (gl_GETDATE): Likewise.
75897         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75898         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75899         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75900         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75901         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75902         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75903         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75904         needed.
75905
75906 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * lib/memcasecmp.c: Include <limits.h>.
75909         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75910         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75911         Don't assume isdigit succeeds only on '0' through '9'.
75912
75913 2006-07-05  Eric Blake  <ebb9@byu.net>
75914
75915         * modules/getaddrinfo (Depends-on): Add snprintf.
75916
75917 2006-07-05  Eric Blake  <ebb9@byu.net>
75918
75919         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75920         to avoid 'header present but could not be compiled' on cygwin.
75921
75922 2006-07-05  Eric Blake  <ebb9@byu.net>
75923
75924         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75925         missing from netdb.h.
75926         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75927
75928 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75929
75930         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75931         no longer needed.
75932         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75933         * m4/getdate.m4 (gl_GETDATE): Likewise.
75934         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75935         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75936         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75937         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75938         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75939
75940 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75941
75942         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75943         All uses of is_space replaced by isspace.
75944         * lib/exit.h: Don't talk about STDC_HEADERS.
75945         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75946         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75947         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75948         replaced by isprint etc.
75949         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75950         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75951         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75952         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75953         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75954         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75955
75956 2006-07-05  Bruno Haible  <bruno@clisp.org>
75957
75958         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75959         the function exists, before testing against AIX.
75960         Reported by Martin Lambers <marlam@marlam.de>.
75961
75962 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75963
75964         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75965         From Mark D. Baushke.
75966
75967 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75968
75969         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75970         to the absolute name, not just one, to bypass Sun C 5.8's
75971         "warning: #include of /usr/include/... may be non-portable".
75972
75973 2006-07-04  Eric Blake  <ebb9@byu.net>
75974
75975         * modules/dirname-tests: New test module.
75976         * tests/test-dirname.c: New file, replacing dirname.c
75977         TEST_DIRNAME section that was recently deleted.
75978
75979 2006-07-04  Bruno Haible  <bruno@clisp.org>
75980
75981         Assume ANSI C header files and <ctype.h> functions.
75982         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75983         (mbsnwidth): Use isprint, iscntrl instead.
75984
75985 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75986
75987         Merge from coreutils.
75988         * MODULES.html.sh: Add xstrtold.
75989         * modules/xstrtold: New file.
75990         * modules/cycle-check (Files): Add lib/same-inode.h.
75991         * modules/dirname (Files): Add m4/double-slash-root.m4.
75992         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75993         * modules/mkdir-p (Files): Add lib/same-inode.h.
75994         * modules/same (Files): Add lib/same-inode.h.
75995
75996 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75997
75998         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75999         This is to keep the terminology clean; POSIX talks about
76000         "absolute pathnames", not "full pathnames", but the GNU
76001         Coding Standards say to use "path" for something else;
76002         so use "absolute" to keep both sides happy.
76003         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76004         Set gl_absolute_header, not gl_full_header_path.
76005         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76006         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76007         All uses changed.
76008
76009         Merge from coreutils.
76010
76011         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76012
76013         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76014         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76015         want to require the building of c-strtod.o.
76016         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76017         needs -lm directly.
76018         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76019
76020         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76021
76022         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76023         --as-needed option if available.  Problem reported by Albert Chin in
76024         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76025         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76026         cc merely issues a bunch of annoying warnings for --as-needed
76027         (this problem was reported by Bob Proulx).  Also, try linking with
76028         -lm to detect a bug in binutils 2.16 (this problem was reported
76029         by Ralf Wildenhues).
76030
76031         2006-06-18  Jim Meyering  <jim@meyering.net>
76032
76033         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76034         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76035         macro.
76036         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76037         also check for glibc-2.4's abort-inducing bug.
76038
76039         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76040         Low-probability clean-up should be to use rmdir to get rid of
76041         the just-created directory, not unlink.
76042
76043         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76044         configure fail, and request a bug report to inform us about it.
76045         Add a comment that, barring reports to the contrary, in 2007 we'll
76046         assume ftruncate is universally available.
76047
76048         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76049
76050         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76051
76052         2006-03-12  Jim Meyering  <jim@meyering.net>
76053
76054         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76055         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76056         * m4/same.m4 (gl_SAME): Likewise.
76057         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76058
76059         2006-03-11  Eric Blake  <ebb9@byu.net>
76060
76061         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76062         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76063         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76064         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76065
76066 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76067
76068         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76069         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76070         reported by Mark D. Baushke, one in
76071         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76072
76073         Merge from coreutils.
76074
76075         * lib/.cppi-disable: Add stdint_.h.
76076         * lib/.cvsignore: Add stdint.h.
76077
76078         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76081         both double and long double versions.
76082         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76083         * lib/xstrtold.c: New file.
76084         * lib/xstrtod.h (xstrtold): New decl.
76085
76086         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76087
76088         * lib/filemode.c (setst): Remove.
76089         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76090         (arguably) clearer, and the generated code is a bit smaller on my
76091         Debian GNU/Linux stable x86 host.
76092
76093         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76096         Assume that filemode.h includes sys/types.h and sys/stat.h.
76097         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76098         (ftypelet): Reorder to put common cases first, for efficiency.
76099         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76100         to do 'M'.
76101         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76102         of 10, for compatibility with FreeBSD.  All callers changed.
76103         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76104         types that can't be deduced solely from st_mode.  First arg is now a
76105         const pointer.
76106         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76107         (strmode): Renamed from mode_string.
76108         (filemodestring): New decl.
76109         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76110         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76111         needed.
76112         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76113
76114         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76115
76116         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76117         fsusage.h now does that.  Include fsusage.h first, to test interface.
76118         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76119         at most one method (the old code could have generated decls that
76120         didn't conform to C89, not that this was ever exercised).
76121         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76122
76123         2006-03-19  Jim Meyering  <jim@meyering.net>
76124
76125         Work even in a chroot where d_ino values for entries in "/"
76126         don't match the stat.st_ino values for the same names.
76127         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76128         number, iterate through all entries again, using lstat instead.
76129         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76130         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76131
76132         * lib/getcwd.c (__getcwd): Clarify a comment.
76133         Use memcpy in place of a call to strcpy.
76134
76135         2006-03-12  Jim Meyering  <jim@meyering.net>
76136
76137         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76138         matches that of the current directory (which we're about to chdir ".."
76139         out of), then save the dev-ino of the parent, instead.
76140
76141         * lib/same-inode.h (SAME_INODE): New file/macro.
76142         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76143         Include "same-inode.h", instead.
76144         * lib/same.c: Likewise.
76145         * lib/cycle-check.h: Include "same-inode.h".
76146         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76147         * lib/cycle-check.c (SAME_INODE): Remove definition.
76148         * lib/root-dev-ino.h: Include "same-inode.h".
76149
76150         2006-03-11  Eric Blake  <ebb9@byu.net>
76151
76152         * lib/same.c (same_name): s/base_name/last_component/
76153         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76154         * lib/filenamecat.c (file_name_concat): Likewise.
76155
76156         2006-03-11  Eric Blake  <ebb9@byu.net>,
76157                     Paul Eggert  <eggert@cs.ucla.edu>
76158
76159         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76160         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76161         drive prefix.
76162         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76163         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76164         (last_component): New method.
76165         * lib/dirname.c (dir_len): Determine when drive letters need a
76166         subsequent slash.  Preserve // when it is special.
76167         (dir_name): Don't append dot when drive letter is absolute.
76168         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76169         * lib/basename.c (base_name): New semantics - malloc the result.
76170         Preserve // when it is special.  Preserve relative files that look
76171         like drive letters.
76172         (base_len): Preserve // when it is special.
76173         (last_component): New method, similar to old base_name semantics.
76174         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76175         base_name.  Strip redundant slashes from ///.
76176
76177 2006-07-03  Jim Meyering  <jim@meyering.net>
76178
76179         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76180         macro is used before the first cycle_check call.
76181
76182 2006-07-03  Eric Blake  <ebb9@byu.net>
76183
76184         * modules/dirname (Depends-on): Add xstrndup.
76185
76186 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76187
76188         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76189         test cases, so that config.log is a bit easier to follow.
76190
76191 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76192
76193         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76194         both are 64 bits, since this seems to be the tradition, and this
76195         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76196         we ever run into a host that prefers long long to long in this
76197         case, we'll need another configure-time test.  Problem reported by
76198         Jim Meyering.
76199
76200 2006-07-02  Eric Blake  <ebb9@byu.net>
76201
76202         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76203
76204 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76205
76206         * modules/inttypes (Depends-on): No longer depends on stdint.
76207         * modules/stdint (Description): Say more about assumptions.
76208         Say that the fast types might differ.  Say macros are used.
76209         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76210         (Makefile.am): Revise list of substituted symbols to match
76211         new stdint.m4.
76212         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76213         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76214         * tests/test-stdint.c (verify_same_types)
76215         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76216         the code conforms to C99/C89.
76217         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76218         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76219
76220 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76223         but fix a bug, by requiring at least 64 bits.
76224         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76225         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76226         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76227         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76228
76229         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76230         changes.  Make 2.59 a prerequisite.  Check and substitute for
76231         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76232         inttypes.h.  Do not use special include files; just use the
76233         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76234         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76235         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76236         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76237         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76238         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76239         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76240         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76241         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76242         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76243         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76244         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76245         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76246         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76247         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76248         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76249         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76250         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76251         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76252         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76253         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76254         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76255         not check for things that C99 does not require, e.g., int8_t.  If
76256         a test isn't needed unless <stdint.h> isn't working, and is
76257         unlikely to be needed for any other reason, then don't do it
76258         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76259         size_t, since we assume C89 freestanding at least.  Do not check
76260         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76261         the right thing even if the types are not defined.  Instead use:
76262         (gl_STDINT_TYPE_PROPERTIES): New macro.
76263         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76264         testing whether <sys/types.h> clashes, as Autoconf does this for
76265         us now.  All uses removed.
76266         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76267         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76268         (gl_CHECK_TYPE_SAME):
76269         Remove; no longer needed.
76270         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76271         exists, since we'll return 0 anyway in that case.
76272         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76273
76274 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76275
76276         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76277         possible collision with system files.
76278         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76279         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76280         WCHAR_MIN and WCHAR_MAX in this case.
76281         (<stddef.h>): Do not include; no longer needed.
76282         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76283         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76284         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76285         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76286         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76287         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76288         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76289         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76290         !defined(__c99))]: Include in this case too, since it's harmless
76291         now.
76292         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76293         dangerous to do so.
76294         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76295         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76296         (_STDINT_MIN, _STDINT_MAX): New macros.
76297         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76298         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76299         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76300         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76301         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76302         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76303         macros, not typedefs; this simplifies things quite a bit.
76304         Use long int for all types narrower than int64_t.
76305         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76306         Define in terms of long long int or int64_t or long int,
76307         not int64_t or int32_t.  This saves some compile-time testing.
76308         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76309         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76310         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76311         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76312         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76313         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76314         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76315         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76316         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76317         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76318         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76319         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76320         undef any previous version and define our own version, for
76321         simplicity and consistency with the new macros for types.
76322         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76323         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76324         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76325         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76326         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76327         @WINT_T_SUFFIX@ to keep things simple here.
76328         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76329         Simplify by assuming typical 8/16/32/64 host, since we're
76330         already doing that elsewhere anyway.
76331         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76332         and assume long long int is 64 bits if available.  This
76333         speeds up 'configure'.
76334
76335 2006-07-01  Eric Blake  <ebb9@byu.net>
76336
76337         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76338         Reported by Andreas Buening.
76339
76340 2006-07-01  Eric Blake  <ebb9@byu.net>
76341
76342         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76343
76344 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76345
76346         * lib/getaddrinfo.c: fixed typo
76347
76348 2006-06-29  Jim Meyering  <jim@meyering.net>
76349
76350         * modules/strftime (Maintainer): Add my name, since with the
76351         FPRINTFTIME changes strftime.c has forked from glibc.
76352
76353 2006-06-29  Eric Blake  <ebb9@byu.net>
76354
76355         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76356
76357 2006-06-29  Eric Blake  <ebb9@byu.net>
76358
76359         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76360
76361 2006-06-29  Eric Blake  <ebb9@byu.net>
76362
76363         * lib/stat_.h: New file.
76364
76365 2006-06-29  Eric Blake  <ebb9@byu.net>
76366
76367         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76368         unused static function.
76369
76370 2006-06-29  Eric Blake  <ebb9@byu.net>
76371
76372         * doc/functions.texi (Function Portability): Document missing lstat
76373         on mingw.
76374
76375 2006-06-29  Eric Blake  <ebb9@byu.net>
76376
76377         * MODULES.html.sh: Add sys_stat.
76378         * modules/sys_stat: New module.
76379         * modules/mkstemp (Depends-on): Add sys_stat.
76380
76381 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76382
76383         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76384
76385 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76386
76387         * m4/c-bs-a.m4: Removed.
76388
76389 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76390
76391         * lib/strftime.c: Assume strftime() exists.
76392
76393 2006-06-29  Derek Price  <derek@ximbiot.com>
76394
76395         * modules/c-bs-a: Removed - \a is C89.
76396         * MODULES.html.sh: Remove c-bs-a.
76397
76398 2006-06-29  Bruno Haible  <bruno@clisp.org>
76399
76400         * modules/wcwidth (License): Change to LGPL.
76401
76402 2006-06-28  Simon Josefsson  <jas@extundo.com>
76403
76404         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76405         on _WIN32.
76406
76407         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76408         getnameinfo.
76409
76410 2006-06-28  Simon Josefsson  <jas@extundo.com>
76411
76412         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76413
76414 2006-06-28  Simon Josefsson  <jas@extundo.com>
76415
76416         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76417         functions there.  It will succeed on Windows XP, but on Windows
76418         2000 and (presumably) earlier, it will fail, and use the internal
76419         re-implementation.
76420         (use_win32_p): New function.
76421         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76422         Support AI_NUMERICSERV to disable getservbyname.
76423         (getnameinfo): New function, only supports
76424         NI_NUMERICHOST|NI_NUMERICSERV for now.
76425
76426         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76427         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76428         getnameinfo.
76429
76430 2006-06-28  Eric Blake  <ebb9@byu.net>
76431
76432         * modules/wcwidth: New file.
76433         * modules/mbchar (Depends-on): Add wcwidth.
76434         * modules/mbswidth (Depends-on): Add wcwidth.
76435         * MODULES.html.sh: Add wcwidth.
76436
76437 2006-06-28  Eric Blake  <ebb9@byu.net>
76438
76439         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76440         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76441
76442 2006-06-28  Eric Blake  <ebb9@byu.net>
76443
76444         * lib/xvasprintf.h: Fix comments.
76445
76446 2006-06-28  Eric Blake  <ebb9@byu.net>
76447
76448         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76449         * lib/mbswidth.c (wcwidth): Move from here...
76450         * lib/wcwidth.h: ...to this new file.
76451
76452 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76453
76454         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76455
76456         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76457         it's obsolete.
76458         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76459
76460 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76461
76462         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76463         Autoconf 2.60 says this stuff was obsolete.
76464
76465 2006-06-28  Bruno Haible  <bruno@clisp.org>
76466
76467         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76468
76469 2006-06-28  Bruno Haible  <bruno@clisp.org>
76470
76471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76472         gt_TYPE_WCHAR_T.
76473
76474 2006-06-28  Bruno Haible  <bruno@clisp.org>
76475
76476         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76477         declaration for wcwidth.
76478         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76479
76480 2006-06-28  Bruno Haible  <bruno@clisp.org>
76481
76482         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76483         (mkdir): Define using _mkdir.
76484
76485 2006-06-28  Bruno Haible  <bruno@clisp.org>
76486
76487         * lib/getaddrinfo.h: Fix POSIX URL.
76488         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76489         _WIN32.
76490         (use_win32_p): Make static.
76491         (getaddrinfo): Reject service name if it is empty or does not consist
76492         solely of decimal digits, or if its value is > 65535.
76493         (getnameinfo): Remove useless casts.
76494
76495 2006-06-27  Simon Josefsson  <jas@extundo.com>
76496
76497         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76498         Eggert and Martin Lambers.
76499
76500 2006-06-27  Simon Josefsson  <jas@extundo.com>
76501
76502         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76503         Eggert and Martin Lambers.
76504
76505 2006-06-27  Bruno Haible  <bruno@clisp.org>
76506
76507         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76508         result to 0, not to empty.
76509         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76510
76511 2006-06-27  Bruno Haible  <bruno@clisp.org>
76512
76513         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76514
76515 2006-06-26  Simon Josefsson  <jas@extundo.com>
76516
76517         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76518         present.
76519
76520 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76521
76522         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76523         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76524         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76525
76526 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76527
76528         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76529
76530 2006-06-26  Bruno Haible  <bruno@clisp.org>
76531
76532         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76533
76534 2006-06-26  Bruno Haible  <bruno@clisp.org>
76535
76536         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76537
76538 2006-06-26  Bruno Haible  <bruno@clisp.org>
76539
76540         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76541         SGI C compiler in pre-C99 mode.
76542         Suggested by Mark D. Baushke and Larry Jones.
76543
76544 2006-06-26  Bruno Haible  <bruno@clisp.org>
76545
76546         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76547         WCHAR_MAX.
76548         Reported by Mark D. Baushke and Larry Jones.
76549
76550 2006-06-26  Bruno Haible  <bruno@clisp.org>
76551
76552         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76553         in pre-C99 mode.
76554         Suggested by Mark D. Baushke and Larry Jones.
76555
76556 2006-06-23  Simon Josefsson  <jas@extundo.com>
76557             Bruno Haible  <bruno@clisp.org>
76558
76559         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76560         Emit mostlyclean-local rule.
76561         (func_emit_tests_Makefile_am): Likewise.
76562         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76563
76564 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76565
76566         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76567
76568 2006-06-23  Bruno Haible  <bruno@clisp.org>
76569
76570         * tests/test-stdint.c: Update to match ISO C 99 Technical
76571         Corrigendum 1.
76572
76573 2006-06-23  Bruno Haible  <bruno@clisp.org>
76574
76575         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76576
76577 2006-06-23  Bruno Haible  <bruno@clisp.org>
76578
76579         * lib/stdint_.h: Treat IRIX like OpenBSD.
76580
76581 2006-06-23  Bruno Haible  <bruno@clisp.org>
76582
76583         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76584         ISO C 99 Technical Corrigendum 1.
76585
76586 2006-06-22  Simon Josefsson  <jas@extundo.com>
76587
76588         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76589         MinGW.
76590
76591 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76592
76593         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76594         needed.  Some compiler complained about some of them.  Problem reported
76595         by Larry Jones in
76596         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76597
76598 2006-06-21  Simon Josefsson  <jas@extundo.com>
76599
76600         * tests/test-getaddrinfo.c: New file.
76601
76602         * modules/getaddrinfo-tests: New file.
76603
76604         * MODULES.html.sh: Add inet_pton.
76605
76606         * modules/inet_pton: New file.
76607
76608 2006-06-21  Simon Josefsson  <jas@extundo.com>
76609
76610         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76611         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76612         of using the (limited) gnulib implementation on Windows XP.
76613
76614         * m4/inet_pton.m4: New file.
76615
76616 2006-06-21  Simon Josefsson  <jas@extundo.com>
76617
76618         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76619         variable.
76620
76621         * lib/socket_.h: Don't define WINVER.
76622
76623         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76624         slightly modified to work in gnulib.
76625
76626 2006-06-21  Simon Josefsson  <jas@extundo.com>
76627
76628         * doc/gnulib.texi (Windows sockets): Add.
76629
76630 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76631
76632         * lib/read-file.c (fread_file): Start with buffer allocation of
76633         0 bytes rather than 1 byte; this simplifies the code.
76634         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76635         code to free buffer and save/restore errno.
76636         (internal_read_file): Remove unused local.
76637
76638 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76639
76640         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76641         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76642         Problem reported by Denis Excoffier in
76643         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76644
76645 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76646
76647         * modules/sys_socket, modules/socklen: Include sys/types since
76648         FreeBSD 4.x's sys/socket.h needs it.
76649
76650 2006-06-19  Simon Josefsson  <jas@extundo.com>
76651
76652         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76653
76654 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76657
76658 2006-06-19  Bruno Haible  <bruno@clisp.org>
76659
76660         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76661         and FULL_PATH_INTTYPES_H in angle brackets.
76662         Reported by Mark D. Baushke <mdb@gnu.org>.
76663
76664 2006-06-17  Eric Blake  <ebb9@byu.net>
76665
76666         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76667         errno.
76668
76669 2006-06-17  Bruno Haible  <bruno@clisp.org>
76670
76671         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76672         <sys/inttypes.h>.
76673
76674 2006-06-17  Bruno Haible  <bruno@clisp.org>
76675
76676         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76677         whether errno is declared. Assume <errno.h> declares errno.
76678
76679 2006-06-17  Bruno Haible  <bruno@clisp.org>
76680
76681         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76682
76683 2006-06-17  Bruno Haible  <bruno@clisp.org>
76684
76685         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76686         problem on Solaris 2.5.1.
76687
76688 2006-06-16  Eric Blake  <ebb9@byu.net>
76689
76690         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76691         * lib/unicodeio.c [!defined errno]: Likewise.
76692         * lib/strtol.c [!defined errno]: Likewise.
76693         * lib/strtod.c [!defined errno]: Likewise.
76694
76695 2006-06-15  Eric Blake  <ebb9@byu.net>
76696
76697         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76698
76699 2006-06-15  Eric Blake  <ebb9@byu.net>
76700
76701         * config/srclist.txt (ssize_t.m4): Lose sync.
76702
76703 2006-06-15  Bruno Haible  <bruno@clisp.org>
76704
76705         * modules/stdint (Files): Include m4/full-header-path.m4,
76706         m4/size_max.m4, m4/wchar_t.m4.
76707         (Makefile.am): Many more substitutions.
76708         * modules/stdint-tests: New file.
76709         * tests/test-stdint.c: New file.
76710
76711 2006-06-15  Bruno Haible  <bruno@clisp.org>
76712
76713         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76714         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76715         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76716         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76717         gl_CHECK_TYPE_SAME): New macros.
76718
76719 2006-06-15  Bruno Haible  <bruno@clisp.org>
76720
76721         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76722
76723 2006-06-15  Bruno Haible  <bruno@clisp.org>
76724
76725         * lib/stdint_.h: Rewritten to be fully auto-configured.
76726         Fixes bug on HP-UX/IA64.
76727
76728 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76729
76730         * lib/getdate.y (__attribute__): Don't define if already defined.
76731         Problem reported by Larry Jones.
76732         * lib/utimens.c (__attribute__): Likewise.
76733
76734 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76737         reported by Andreas Schwab.
76738
76739 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76740             Bruno Haible  <bruno@clisp.org>
76741
76742         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76743         check for the declaration of strnlen and a run test that exposes the
76744         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76745         rpl_strndup.
76746
76747 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76748             Bruno Haible  <bruno@clisp.org>
76749
76750         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76751
76752 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76753
76754         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76755         compile test, for Tru64 4.0D.
76756
76757 2006-05-28  Karl Berry  <karl@gnu.org>
76758
76759         * config/srclist.txt (printf-args.c): lose sync.
76760
76761 2006-05-26  Martin Lambers  <marlam@marlam.de>
76762
76763         * lib/getpass.c: Updates the test for the native W32 API, and adds
76764         missing includes, thus fixing compilation warnings.
76765
76766 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76767
76768         * lib/exclude.c (exclude_fnmatch): New function.
76769         (excluded_file_name): Call exclude_fnmatch.
76770         * lib/exclude.h (excluded_file_name): New prototype
76771
76772 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         * lib/tempname.c (small_open, large_open): New macros.
76775         (__open, __open64) [!_LIBC]: Remove.
76776         (__gen_tempname): Use small_open and large_open instead of __open
76777         and __open64.  This fixes a portability bug on HP-UX 11.11i
76778         reported by Simon Wing-Tang in
76779         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76780
76781 2006-05-24  Bruno Haible  <bruno@clisp.org>
76782
76783         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76784         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76785         Reported by Thorsten Maerz <torte@netztorte.de> via
76786         Aaron Stone <aaron@serendipity.cx>.
76787
76788 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76789
76790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76791         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76792         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76793         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76794         not really conditional on the cache.
76795         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76796
76797 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76800         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76801         (my_usleep): Don't mishandle maximum value.
76802
76803 2006-05-19  Jim Meyering  <jim@meyering.net>
76804
76805         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76806
76807 2006-05-17  Bruno Haible  <bruno@clisp.org>
76808
76809         Cygwin portability.
76810         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76811
76812 2006-05-17  Bruno Haible  <bruno@clisp.org>
76813
76814         * lib/stdint_.h: Fix recognition of Cygwin.
76815
76816 2006-05-15  Bruno Haible  <bruno@clisp.org>
76817
76818         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76819         on libtool patch by Ralf Wildenhues.
76820
76821 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76822
76823         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76824         test for C99 conformance; (bool) 0.5 is an integer constant
76825         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76826         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76827
76828 2006-05-11  Simon Josefsson  <jas@extundo.com>
76829
76830         * m4/xvasprintf.m4: Fix obvious typo.
76831
76832 2006-05-11  Jim Meyering  <jim@meyering.net>
76833
76834         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76835         James Lemley.
76836
76837 2006-05-10  Simon Josefsson  <jas@extundo.com>
76838
76839         * lib/md4.c: Typo fix, update copyright years.
76840         (K1, K2): Don't use L because it turn computations into 64-bit on
76841         64-bit platforms.
76842
76843 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76844
76845         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76846         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76847         unwanted sign propagation, e.g., on hosts with 64-bit int.
76848         There still are some problems with reeelly weird theoretical hosts
76849         (e.g., 33-bit int) but it's not worth worrying about now.
76850         * lib/sha1.c (rol): Likewise.
76851         (K1, K2, K3, K4): Remove unnecessary L suffix.
76852
76853 2006-05-10  Bruno Haible  <bruno@clisp.org>
76854
76855         * lib/des.c: Cast to avoid warnings.
76856
76857 2006-05-09  Bruno Haible  <bruno@clisp.org>
76858
76859         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76860         (Depends-on): Depend also on xsize, stdarg.
76861         (configure.ac): Add gl_XVASPRINTF.
76862
76863 2006-05-09  Bruno Haible  <bruno@clisp.org>
76864
76865         * m4/xvasprintf.m4: New file.
76866
76867 2006-05-09  Bruno Haible  <bruno@clisp.org>
76868
76869         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76870         (EOVERFLOW): Define fallback value.
76871         (xstrcat): New function.
76872         (xvasprintf): Recognize the special case of a string concatenation.
76873
76874 2006-05-08  Eric Blake  <ebb9@byu.net>
76875
76876         * gnulib-tool (func_version): Base copyright year on CVS date.
76877         (func_emit_copyright_notice): New function.
76878         (func_emit_lib_Makefile_am): Use it.
76879         (func_emit_tests_Makefile_am): Likewise.
76880         (func_import): Likewise.
76881
76882 2006-05-08  Bruno Haible  <bruno@clisp.org>
76883
76884         * modules/stdarg: New file.
76885         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76886
76887 2006-05-08  Bruno Haible  <bruno@clisp.org>
76888
76889         * m4/stdarg.m4: New file, from GNU gettext.
76890
76891 2006-05-08  Bruno Haible  <bruno@clisp.org>
76892
76893         * config/srclist.txt (build-aux/config.rpath): different from latest
76894         release.
76895
76896 2006-05-08  Bruno Haible  <bruno@clisp.org>
76897
76898         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76899
76900 2006-05-05  Jim Meyering  <jim@meyering.net>
76901
76902         * m4/warning.m4: New file, derived from bison's file by the same name.
76903
76904 2006-05-03  Bruno Haible  <bruno@clisp.org>
76905
76906         * lib/stdint_.h: Shorter URL.
76907         * lib/inttypes.h: Likewise.
76908
76909 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76912
76913 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76914
76915         * lib/verify.h: Document the internals better.  Most of this change
76916         was written by Bruno Haible.
76917
76918 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76919
76920         * doc/verify.texi: New file, partly based on a proposal by
76921         Bruno Haible.
76922
76923 2006-05-02  Bruno Haible  <bruno@clisp.org>
76924
76925         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76926         test from here...
76927         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76928
76929 2006-04-29  Bruno Haible  <bruno@clisp.org>
76930
76931         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76932         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76933
76934 2006-04-29  Bruno Haible  <bruno@clisp.org>
76935
76936         * gnulib-tool: Make --update option actually work.
76937
76938 2006-04-29  Bruno Haible  <bruno@clisp.org>
76939
76940         * doc/gcd.texi: New file.
76941         * doc/gnulib.texi: Include it.
76942
76943 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         * lib/getdate.y (get_date): When adding relative date, start with the
76946         initial time, not with the result of the first mktime call.
76947
76948 2006-04-25  Bruno Haible  <bruno@clisp.org>
76949
76950         * gnulib-tool (func_import): Output the include directives in three
76951         blocks, sorted separately.
76952         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76953
76954 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76955
76956         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76957         to define main with arguments, for C++.  Reported by Eric Blake.
76958         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76959         Prefer 'int main ()' to 'int main (void)', for C++.
76960         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76961         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76962         for 'main', for C99 and C++.
76963
76964 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76965
76966         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76967         Don't assume that exit status -1 is valid.
76968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76969         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76970         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76971         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76972         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76973         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76974         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76975         functions can be used without declaring them, or that you can
76976         exit with status -1.
76977         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76978
76979 2006-04-24  Karl Berry  <karl@gnu.org>
76980
76981         * config/srclist.txt (longdouble.m4): sync lost.
76982
76983 2006-04-24  Eric Blake  <ebb9@byu.net>
76984
76985         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76986
76987 2006-04-24  Bruno Haible  <bruno@clisp.org>
76988
76989         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76990         poll() implementation in AIX.
76991         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76992
76993 2006-04-24  Bruno Haible  <bruno@clisp.org>
76994
76995         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76996         assigned exactly once.
76997
76998 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76999             Bruno Haible  <bruno@clisp.org>
77000
77001         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77002         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77003         for AM_CPPFLAGS.
77004
77005 2006-04-23  Bruno Haible  <bruno@clisp.org>
77006
77007         * modules/copy-file: Depend on unistd.
77008         * modules/execute: Likewise.
77009         * modules/fatal-signal: Likewise.
77010         * modules/findprog: Likewise.
77011         * modules/mkdtemp : Likewise.
77012         * modules/pipe: Likewise.
77013         * modules/wait-process: Likewise.
77014
77015 2006-04-23  Bruno Haible  <bruno@clisp.org>
77016
77017         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77018         condition was already detected.
77019         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77020
77021 2006-04-23  Bruno Haible  <bruno@clisp.org>
77022
77023         * lib/copy-file.c: Include <unistd.h> unconditionally.
77024         * lib/execute.c: Likewise.
77025         * lib/fatal-signal.c: Likewise.
77026         * lib/findprog.c: Likewise.
77027         * lib/mkdtemp.c: Likewise.
77028         * lib/pipe.h: Likewise.
77029         * lib/pipe.c: Likewise.
77030         * lib/wait-process.h: Likewise.
77031
77032 2006-04-23  Bruno Haible  <bruno@clisp.org>
77033
77034         * gnulib-tool (func_usage): Fix --import description. Document
77035         --update.
77036         (func_import): Create temporary file in a temporary directory, if
77037         --dry-run is specified. Silence errors from 'grep' when there are no
77038         m4 files in $m4dir.
77039         (func_create_testdir): Silence errors from 'grep' when there are no
77040         m4 files in $m4dir.
77041         Reported by Karl Berry <karl@freefriends.org>.
77042
77043 2006-04-20  Bruno Haible  <bruno@clisp.org>
77044
77045         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77046         one argument, so that the code will be portable to Autoconf 2.60.
77047         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77048         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77049         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77050
77051 2006-04-19  Derek Price  <derek@ximbiot.com>
77052             Eric Blake  <ebb9@byu.net>
77053
77054         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77055         rather than "/full/path.h".  Update comment to match.  Shorten &
77056         generalize m4_translit call via AS_TR_CPP.
77057
77058 2006-04-19  Derek Price  <derek@ximbiot.com>
77059             Eric Blake  <ebb9@byu.net>
77060
77061         * lib/inttypes.h: Correct grammar in comment.
77062
77063 2006-04-18  Derek Price  <derek@ximbiot.com>
77064             Paul Eggert  <eggert@cs.ucla.edu>
77065
77066         * modules/inttypes: New file.
77067         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77068
77069 2006-04-18  Derek Price  <derek@ximbiot.com>
77070             Paul Eggert  <eggert@cs.ucla.edu>
77071
77072         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77073         New files.
77074
77075 2006-04-18  Derek Price  <derek@ximbiot.com>
77076             Paul Eggert  <eggert@cs.ucla.edu>
77077
77078         * lib/inttypes.h: New file.
77079         * lib/strtoimax.c: Assume <inttypes.h>.
77080
77081 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77082
77083         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77084         isn't mounted.  Problem reported by Kir Kolyshkin.
77085
77086 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77087
77088         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77089         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77090         Derek R. Price.
77091         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77092         implementation.
77093
77094 2006-04-12  Eric Blake  <ebb9@byu.net>
77095
77096         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77097         is now done automatically by the corresponding Autoconf macro.
77098
77099 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77100
77101         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77102         time_r.h.
77103
77104 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77105
77106         Merge regex changes from libc, removing some of our
77107         POSIX-conformance changes that were rejected and redoing them in a
77108         less-intrusive way.
77109
77110         * lib/regcomp.c (re_compile_internal, init_dfa):
77111         Length arg is now size_t, not Idx.  All uses changed.
77112         (peek_token): Forward decl now says internal_function.
77113         (__re_error_msgid, __re_error_msgid_idx):
77114         Now static rather than extern with attribute_hidden.
77115         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77116         For some reason libc prefers K&R style defns for external functions.
77117         (regerror) [!defined _LIBC]: Likewise.
77118         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77119         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77120         (build_range_exp, build_collating_symbol):
77121         Use K&R-style defn.
77122         (re_compile_fastmap): Use '\0' to memset, not 0.
77123         (utf8_sb_map): Make the calculations more obvious.
77124         (init_dfa, parse_bracket_exp, build_charclass_op):
77125         Call calloc and cast result, as glibc does.
77126         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77127         (build_range_exp, build_collating_symbol):
77128         Now internal functions.
77129
77130         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77131
77132         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77133         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77134         Don't depend on VMS; depend on __VMS instead, for POSIX
77135         namespace cleanness.
77136         (regoff_t): Define to ssize_t, not long int.
77137
77138         Remove the REG_ macros named below.  Instead, make the old names
77139         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77140         __USE_GNU_REGEX.
77141         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77142         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77143         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77144         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77145         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77146         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77147         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77148         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77149         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77150         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77151         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77152         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77153         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77154         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77155         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77156         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77157         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77158         (REG_NREGS):
77159         Remove.  All uses replaced by the old RE_* names.
77160         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77161         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77162         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77163         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77164         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77165         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77166         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77167         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77168         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77169         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77170         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77171         Don't bother having these macros be independent of each others'
77172         values, since they no longer exist in the POSIX name space.
77173
77174         Rename the following member names back to their old names,
77175         unless !__USE_GNU_REGEX.  All uses changed back.
77176         (buffer): Renamed from re_buffer.
77177         (allocated): Renamed from re_allocated.
77178         (used): Renamed from re_used.
77179         (syntax): Renamed from re_syntax.
77180         (fastmap): Renamed from re_fastmap.
77181         (translate): Renamed from re_translate.
77182         (can_be_null): Renamed from re_can_be_null.
77183         (regs_allocated): Renamed from re_regs_allocated.
77184         (fastmap_accurate): Renamed from re_fastmap_accurate.
77185         (no_sub): Renamed from re_no_sub.
77186         (not_bol): Renamed from re_not_bol.
77187         (not_eol): Renamed from re_not_eol.
77188         (newline_anchor): Renamed from re_newline_anchor.
77189         (num_regs): Renamed from rm_num_regs.
77190         (start): Renamed from rm_start.
77191         (end): Renamed from rm_end.
77192
77193         (free_state): Move up a bit.
77194
77195         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77196         #define to be empty.
77197         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77198         when that is what is intended.
77199         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77200         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77201         (MAX): New macro.
77202         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77203         All uses changed back to re_malloc, etc.  It's now the caller's
77204         responsibility to check for overflow; all callers changed.
77205         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77206         (re_x2nrealloc): Remove.
77207         (free_state): Remove decl.
77208
77209         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77210         (re_set_registers, re_exec):
77211         Use K&R-style defn.
77212
77213         2006-01-31  Roland McGrath  <roland@redhat.com>
77214
77215         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77216         Reported by Mike Frysinger <vapier@gentoo.org>.
77217
77218         2006-01-15  Andreas Jaeger  <aj@suse.de>
77219
77220         [BZ #1950]
77221         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77222         build_wcs_upper_buffer change.
77223         (build_wcs_upper_buffer): Change return type.
77224
77225         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77226
77227         * lib/regex_internal.h: Include <stdint.h> if available.
77228
77229         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77230
77231         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77232
77233         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77234
77235         * lib/regcomp.c: Adjust for changed secondary hash function.
77236
77237         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77238
77239         * lib/regex.h: Pretty printing.
77240         Clean up namespace a bit.
77241
77242         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77243
77244         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77245         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77246
77247         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77248                     Ulrich Drepper  <drepper@redhat.com>
77249
77250         [BZ #1302]
77251         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77252         changed.
77253         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77254
77255         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77256
77257         [BZ #281]
77258         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77259         * lib/regcomp.c: Remove unnecessary uses of
77260         unsigned RE_TRANSLATE_TYPE.
77261         * lib/regex_internal.h: Likewise.
77262         * lib/regex_internal.c: Likewise.
77263         * lib/regexec.c: Likewise.
77264         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77265
77266         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77267
77268         * lib/regexec.c (find_recover_state): Remove unnecessary
77269         initialization.
77270         (transit_state_bkref): Make DFA a const pointer.
77271         (get_subexp): Likewise.
77272         (check_arrival): Likewise.
77273         (update_cur_sifted_state): Likewise.
77274         (re_search_internal): Likewise.
77275         (prune_impossible_nodes): Likewise.
77276         (acquire_init_state_context): Likewise.
77277         (proceed_next_node): Likewise.
77278         (set_regs): Likewise.
77279         (free_fail_stack_return): Likewise.
77280         (check_arrival_expand_ecl): Mark DFA parameter as const.
77281         (check_arrival_expand_ecl_sub): Likewise.
77282         (check_subexp_limits): Likewise.
77283         (sub_epsilon_src_nodes):  Likewise.
77284         (add_epsilon_src_nodes):  Likewise.
77285         (merge_state_array): Likewise.
77286         (update_regs): Likewise.
77287         (build_trtable): Likewise.
77288         (sift_states_backward): Mark MCTX parameter as const.
77289         (build_sifted_states): Likewise.
77290         (update_cur_sifted_state): Likewise.
77291         (sift_states_mkref): Likewise.
77292         (check_arrival_expand_ecl): Mark eclosure as const.
77293         (check_dst_limits_calc_pos_1): Likewise.
77294         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77295         pointer.
77296
77297         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77298
77299         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77300         (transit_state_sb): Likewise.
77301         (transit_state_mb): Likewise.
77302         (sift_states_iter_mb): Likewise.
77303         (check_arrival_add_next_nodes): Likewise.
77304         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77305         [_LIBC] (re_search_2_stub): Use mempcpy.
77306
77307         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77308         mbrtowc for very simple UTF-8 case.
77309
77310         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77311         a pointer-to-const.
77312         (re_acquire_state_context): Likewise.
77313         * lib/regex_internal.h: Adjust prototypes.
77314
77315         * lib/regex.c: Prevent using C++ compilers.
77316
77317         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77318         (re_acquire_state_context): Likewise.
77319
77320 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77321
77322         * modules/regex (Depends-on): Add ssize_t.
77323
77324 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77325
77326         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77327         translation table.
77328
77329 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77330
77331         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77332
77333 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77334             Bruno Haible  <bruno@clisp.org>
77335
77336         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77337         <sys/types.h> and <inttypes.h>.
77338
77339 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77340
77341         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77342         `__error_t_defined', so argp.h will not typedef the former.
77343
77344 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77345
77346         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77347         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77348         glibc names.  Even if glibc is changed to conform to POSIX, the
77349         traditional names will be available anyway, since regex depends on
77350         the extensions module.  Also, fix a longstanding typo in the
77351         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77352         reported by Emanuele Giaquinta.  Also, change sense of cached
77353         variable, so that the message makes sense.
77354
77355 2006-03-24  Simon Josefsson  <jas@extundo.com>
77356
77357         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77358         including some doc fixes.
77359         (base64_encode_alloc): Fix +1 bug on allocation failures.
77360
77361 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77362
77363         * lib/base64.c (base64_encode): Do not read past end of array with
77364         unsanitized input on systems with CHAR_BIT > 8.
77365
77366 2006-03-24  Eric Blake  <ebb9@byu.net>
77367
77368         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77369
77370 2006-03-22  Karl Berry  <karl@gnu.org>
77371
77372         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77373         * config/srclistvars.sh (COREUTILS): new var.
77374
77375 2006-03-17  Jim Meyering  <jim@meyering.net>
77376
77377         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77378         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77379
77380 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77381
77382         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77383         no longer needs it.  Instead, check that regoff_t is as least
77384         as wide as ptrdiff_t.
77385
77386         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77387         so that our regex.h stays compatible with the installed regex.
77388         This is helpful for installers who configure --without-included-regex.
77389         Problem reported by Emanuele Giaquinta.
77390
77391 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77392
77393         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77394         Typedef to long int, not to off_, as POSIX will likely change
77395         in that direction.
77396
77397 2006-03-15  Eric Blake  <ebb9@byu.net>
77398
77399         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77400
77401 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77402
77403         * lib/argp-help.c (validate_uparams): Fix typo
77404         * lib/argp-parse.c (argp_default_options): Consistently begin help
77405         messages with a lowercase letter.
77406
77407 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77410         overrun buffers and shouldn't be used (much as gets shouldn't be
77411         used).
77412         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77413
77414 2006-03-08  Simon Josefsson  <jas@extundo.com>
77415
77416         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77417         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77418
77419 2006-03-08  Simon Josefsson  <jas@extundo.com>
77420
77421         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77422         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77423
77424 2006-03-08  Simon Josefsson  <jas@extundo.com>
77425
77426         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77427         signal that configure disabled the device.
77428
77429 2006-03-08  Simon Josefsson  <jas@extundo.com>
77430
77431         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77432         languages.
77433
77434 2006-03-07  Simon Josefsson  <jas@extundo.com>
77435
77436         * modules/getopt (Depends-on): Add unistd.
77437
77438         * modules/unistd: New file.
77439
77440 2006-03-07  Simon Josefsson  <jas@extundo.com>
77441
77442         * modules/gc-random: New file.
77443
77444 2006-03-07  Simon Josefsson  <jas@extundo.com>
77445
77446         * m4/unistd_h.m4: New file.
77447
77448 2006-03-07  Simon Josefsson  <jas@extundo.com>
77449
77450         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77451         test to be side-effect free by storing the result in the cache
77452         variable gl_cv_lib_readline, and moving the assignment of
77453         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77454         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77455
77456 2006-03-07  Simon Josefsson  <jas@extundo.com>
77457
77458         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77459         error on missing devices (the functions will return an error).
77460
77461         * m4/gc.m4: Move random stuff to gc-random.m4
77462
77463 2006-03-07  Simon Josefsson  <jas@extundo.com>
77464
77465         * lib/unistd_.h: New file.
77466
77467 2006-03-07  Simon Josefsson  <jas@extundo.com>
77468
77469         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77470
77471 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77472
77473         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77474         Problem reported by Juan Manuel Guerrero.
77475
77476 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77477
77478         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77479         the unistd module.
77480         * lib/getlogin_r.c: Likewise.
77481         * lib/getlogin_r.h: Likewise.
77482         * lib/glob.c: Likewise.
77483         * lib/pagealign_alloc.c: Likewise.
77484         * lib/unistd_.h: Remove; no longer needed.
77485
77486 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77487
77488         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77489         Add unistd.
77490         * modules/c-stack (Depends-on): Add unistd.
77491         * modules/getlogin_r: Likewise.
77492         * modules/glob: Likewise.
77493         * modules/pagealign_alloc: Likewise.
77494         * modules/unistd (Files): Remove lib/unistd_.h.
77495         (EXTRA_DIST): Remove.
77496         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77497         need unistd_.h.
77498         (MOSTLYCLEANFILES): Remove unistd.h-t.
77499
77500 2006-03-03  Simon Josefsson  <jas@extundo.com>
77501
77502         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77503
77504 2006-03-03  Simon Josefsson  <jas@extundo.com>
77505
77506         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77507         libidn and bison.
77508
77509 2006-03-03  Simon Josefsson  <jas@extundo.com>
77510
77511         * build-aux/maint.mk: Add indent target.
77512
77513 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77514
77515         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77516         our replacement poll.h in any case, to avoid a differing
77517         declaration from a system header.  Seen on AIX.
77518
77519 2006-03-01  Simon Josefsson  <jas@extundo.com>
77520
77521         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77522         <kasal@ucw.cz>.
77523
77524 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         * modules/gettime (Depends-on): Add extensions module.
77527         * modules/nanosleep (Depends-on): Likewise.
77528         * modules/settime (Depends-on): Likewise.
77529
77530 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77531
77532         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77533         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77534         pedantically.
77535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77536         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77537
77538         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77539         not "==".  Reported by Ralf Wildenhues.
77540
77541 2006-03-01  Karl Berry  <karl@gnu.org>
77542
77543         * doc/Copyright/request-*: new files, synced from gnuorg.
77544
77545 2006-03-01  Karl Berry  <karl@gnu.org>
77546
77547         * config/srclist.txt (Copyright/*): new entries.
77548
77549 2006-02-28  Simon Josefsson  <jas@extundo.com>
77550
77551         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77552
77553 2006-02-27  Simon Josefsson  <jas@extundo.com>
77554
77555         * lib/base64.h: Indent #define's.  From Jim Meyering
77556         <jim@meyering.net>.
77557
77558 2006-02-27  Jim Meyering  <jim@meyering.net>
77559
77560         Revert the change of 2006-02-24, so these files can continue
77561         to be sync'd from gettext.
77562         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77563         of `config.h'.
77564
77565 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77566
77567         * modules/intprops: New file.
77568         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77569         Add intprops.
77570         * modules/getloadavg (Files): Remove lib/intprops.h.
77571         (Depends-on): Add intprops.
77572         * modules/human: Likewise.
77573         * modules/inttostr: Likewise.
77574         * modules/openat: Likewise.
77575         * modules/sig2str: Likewise.
77576         * modules/userspec: Likewise.
77577         * modules/utimecmp: Likewise.
77578         * modules/xnanosleep: Likewise.
77579         * modules/xstrtol: Likewise.
77580
77581 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77582
77583         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77584         * modules/lock-tests (TESTS): Use $(EXEEXT).
77585         * modules/tls-tests: Likewise.
77586         * modules/argp-tests: Likewise.
77587         (check_PROGRAMS): New var, replacing...
77588         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77589
77590 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77591
77592         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77593         `config.h'.
77594
77595 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77596
77597         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77598
77599 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77600
77601         Sync from coreutils.
77602         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77603         gl_CHDIR_SAFER.
77604
77605 2006-02-22  Jim Meyering  <jim@meyering.net>
77606
77607         Sync from coreutils.
77608         * m4/chdir-safer.m4: New file.
77609
77610 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77611
77612         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77613         AT_FDCWD exceeds INT_MAX.
77614         * lib/openat.h (AT_FDCWD): Likewise.
77615
77616 2006-02-17  Eric Blake  <address@hidden>
77617
77618         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77619
77620 2006-02-16  Simon Josefsson  <jas@extundo.com>
77621
77622         * modules/getaddrinfo (Depends-on): Add sys_socket.
77623
77624 2006-02-15  Simon Josefsson  <jas@extundo.com>
77625
77626         * build-aux/maint.mk: Add dsyntax-check rule.
77627
77628 2006-02-15  Eric Blake  <ebb9@byu.net>
77629
77630         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77631         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77632         'present but cannot compile' warnings on cygwin.
77633         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77634         use ws2tcpip.h if sys/socket.h works.
77635         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77636         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77637
77638 2006-02-14  Simon Josefsson  <jas@extundo.com>
77639
77640         * modules/maintainer-makefile (Files): Rename.
77641
77642         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77643         and (the local) Makefile.cfg to maint-cfg.mk.
77644
77645         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77646         to the latter.
77647
77648         * modules/maintainer-makefile: New module.
77649
77650         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77651         severaly stripped to make it possible to build it up from scratch
77652         with reliable tests.
77653
77654         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77655         fixes to permit overriding the default actions when configure and
77656         makefile are not available.
77657
77658 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77659
77660         Sync from coreutils.
77661         * modules/lstat (Depends-on): Don't depend on xalloc.
77662         (License): Change from GPL to LGPL, since this is now simply a
77663         replacement for a libc function.
77664
77665 2006-02-14  Jim Meyering  <jim@meyering.net>
77666
77667         Sync from coreutils.
77668
77669         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77670         failure on deficient systems, and simplify gnulib lgpl dependencies.
77671         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77672         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77673
77674         * lib/xalloc-die.c: Remove unused definition of N_.
77675
77676 2006-02-14  Jim Meyering  <jim@meyering.net>
77677
77678         Sync from coreutils.
77679         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77680         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77681         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77682         double-quote uses of that variable, to accommodate the rare case in
77683         which getmntent is available in none of the libraries checked.  This
77684         happens at least on FreeBSD 5.0.
77685
77686 2006-02-13  Simon Josefsson  <jas@extundo.com>
77687
77688         * gnulib-tool (Usage): Fix --import, from
77689         karl@freefriends.org (Karl Berry).
77690
77691 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77692
77693         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77694
77695 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77696
77697         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77698         "autoupdate" on 2005-12-12.
77699
77700 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         * modules/closeout (Depends-on): Remove atexit.
77703
77704 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77705
77706         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77707         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77708
77709 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77710
77711         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77712         __EXTENSIONS__ if this causes compilation to fail.  Problem
77713         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77714         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77715
77716 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77719         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77720         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77721         All uses changed.
77722
77723 2006-01-26  Simon Josefsson  <jas@extundo.com>
77724
77725         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77726         prototype is visible on mingw32.
77727
77728         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77729         for mingw32.
77730
77731         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77732         mingw32).
77733
77734 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77735
77736         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77737         attempt to open for write; this always fails, at least on POSIX
77738         hosts.  This reinstates the 2006-01-09 change, which was
77739         inadvertently removed.
77740
77741 2006-01-26  Bruno Haible  <bruno@clisp.org>
77742
77743         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77744         Reported by Paul Eggert.
77745
77746 2006-01-26  Bruno Haible  <bruno@clisp.org>
77747             Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * lib/stdbool_.h (_Bool)
77750         [(! (defined __cplusplus || defined __BEOS__)
77751           && !defined __GNUC__
77752           && !(defined __HP_cc || defined __xlc__
77753                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77754                || defined __sgi))]:
77755         #define to signed char in these cases too; this simplifies
77756         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77757         etc., separately) and makes it more conservative.
77758
77759 2006-01-25  Simon Josefsson  <jas@extundo.com>
77760
77761         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77762         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77763         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77764
77765 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77766
77767         * lib/argp-namefrob.h: Bugfix. Remove stray #
77768
77769 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77772         so that we test the test.
77773         Check for yet another HP-UX cc bug involving *bool |= bool.
77774
77775 2006-01-25  Karl Berry  <karl@gnu.org>
77776
77777         * config/srclist.txt (vasnprintf.c): sync lost.
77778
77779 2006-01-25  Jim Meyering  <jim@meyering.net>
77780
77781         Sync from the stable (b5) branch of coreutils:
77782
77783         * lib/fts.c (fts_children): Don't let close() clobber errno from
77784         failed fchdir().
77785
77786         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77787         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77788         a dangling symlink.  That can also happen at least for ELOOP.
77789         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77790         FYI, this bug predates the inclusion of fts.c in coreutils.
77791
77792         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77793         in their own block, so pre-c99 compilers don't object.
77794
77795         Avoid the double-free (first in fts_read, second in fts_close) that
77796         would occur when an `active' directory is made inaccessible (e.g.,
77797         via chmod a-x) during a traversal.
77798         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77799         before returning.  Reproduce this failure by
77800         mkdir -p a/b; cd a; chmod a-x . b
77801         Reported by Stavros Passas.
77802
77803 2006-01-25  Jim Meyering  <jim@meyering.net>
77804
77805         * lib/fileblocks.c: Remove more useless parentheses.
77806         * lib/readutmp.h: Likewise.
77807
77808 2006-01-25  Bruno Haible  <bruno@clisp.org>
77809
77810         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77811         warnings.
77812         Reported by Paul Eggert.
77813
77814 2006-01-25  Bruno Haible  <bruno@clisp.org>
77815
77816         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77817         rid of a trap command. For Solaris sh.
77818         Reported by Mark D. Baushke <mdb@gnu.org>.
77819
77820 2006-01-24  Simon Josefsson  <jas@extundo.com>
77821
77822         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77823         Bruno.
77824
77825 2006-01-24  Karl Berry  <karl@gnu.org>
77826
77827         * config/srclist.txt (argp-namefrob.h): sync lost.
77828
77829 2006-01-24  Jim Meyering  <jim@meyering.net>
77830
77831         * modules/openat (Files): Add lib/intprops.h.
77832         From Mark D. Baushke.
77833
77834 2006-01-24  Jim Meyering  <jim@meyering.net>
77835
77836         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77837         Reported by Mark D. Baushke.
77838
77839 2006-01-24  Jim Meyering  <jim@meyering.net>
77840
77841         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77842
77843 2006-01-24  Bruno Haible  <bruno@clisp.org>
77844
77845         * modules/strnlen (Maintainer): Change from glibc to all.
77846
77847 2006-01-24  Bruno Haible  <bruno@clisp.org>
77848
77849         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77850         Patch by Paul Eggert.
77851
77852 2006-01-24  Bruno Haible  <bruno@clisp.org>
77853
77854         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77855         already has it.
77856         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77857         2005-11-26.
77858
77859         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77860         'signed char' to avoid problems with the built-in _Bool type.
77861         Reported by Paul Eggert on 2005-11-26.
77862
77863 2006-01-24  Bruno Haible  <bruno@clisp.org>
77864
77865         * gnulib-tool (func_import): Avoid constructing complicated sed
77866         expressions inside backquote.
77867         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77868
77869 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77870
77871         These changes imported from libc.
77872         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77873         test and two separate function calls.
77874         * lib/strndup.c (__strndup): Add libc_hidden_def.
77875
77876 2006-01-23  Simon Josefsson  <jas@extundo.com>
77877
77878         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77879         Remove the test_*_SOURCES variable: automake infers it by default.
77880         * modules/tls-tests: Likewise.
77881
77882 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77883
77884         Work around porting bugs reported by Dieter in
77885         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77886         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77887         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77888         Include "getopt.h" first, to check interface.
77889         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77890         !HAVE_DECL_GETENV.
77891         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77892         (__strndup): Revert to K&R-style function dfns, the glibc style.
77893         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77894         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77895         Include strnlen.h first, to get prototype properly.
77896         (strnlen): Renamed from __strnlen.
77897         Remove weak alias.
77898
77899 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77900
77901         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77902
77903 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77904
77905         * config/srclist.txt: Adjust to reflect glibc reorganization.
77906         This affects only comments.
77907
77908 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77909
77910          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77911          Reported by Bruce Korb <bkorb@gnu.org>.
77912
77913 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77914
77915         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77916         to pacify gcc -Wswitch-default.
77917
77918 2006-01-22  Bruno Haible  <bruno@clisp.org>
77919
77920         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77921         temporary buffer for sprintf, take into account the precision also
77922         for 'd', 'i', 'u', 'o', 'x', 'X'.
77923
77924 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77925
77926         * modules/argp-tests: New module
77927         * tests/test-argp.c: New file
77928         * tests/test-argp-2.sh: New file
77929
77930 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77931
77932         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77933         (__argp_base_name): Removed
77934         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77935         typo.
77936         (__argp_base_name): Provide macro definition or extern declaration
77937         depending on the configuration
77938
77939 2006-01-20  Simon Josefsson  <jas@extundo.com>
77940
77941         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77942
77943 2006-01-20  Simon Josefsson  <jas@extundo.com>
77944
77945         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77946
77947 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77948
77949         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77950         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77951         Suggested by Bruno Haible.
77952
77953 2006-01-20  Karl Berry  <karl@gnu.org>
77954
77955         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77956         until changes propagate, I guess.
77957
77958 2006-01-19  Simon Josefsson  <jas@extundo.com>
77959
77960         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77961
77962 2006-01-19  Simon Josefsson  <jas@extundo.com>
77963
77964         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77965
77966 2006-01-19  Simon Josefsson  <jas@extundo.com>
77967
77968         * gnulib-tool: Set check_PROGRAMS.
77969
77970         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77971         modules/des-tests, modules/gc-arcfour-tests,
77972         modules/gc-arctwo-tests, modules/gc-des-tests,
77973         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77974         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77975         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77976         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77977         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77978         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77979         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77980         test_*_SOURCES.
77981
77982 2006-01-18  Simon Josefsson  <jas@extundo.com>
77983
77984         * modules/socklen (Depends-on): Depend on sys_socket.
77985
77986 2006-01-18  Simon Josefsson  <jas@extundo.com>
77987
77988         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77989         modules/des-tests, modules/gc-arcfour-tests,
77990         modules/gc-arctwo-tests, modules/gc-des-tests,
77991         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77992         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77993         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77994         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77995         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77996         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77997         $(EXEEXT) to automake TESTS variable, for mingw32.
77998
77999 2006-01-17  Simon Josefsson  <jas@extundo.com>
78000
78001         * modules/socklen (Include): Need sys/socket.h.
78002
78003 2006-01-17  Bruno Haible  <bruno@clisp.org>
78004
78005         * modules/ssize_t (Include): Add <sys/types.h>.
78006
78007 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78008
78009         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78010         it's not portable and it doesn't work with cross-compiles.
78011         Problem reported by Bruno Haible.  Fix missing-$ typo in
78012         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78013         -zignore from being used with Sun's C compiler.
78014
78015 2006-01-12  Simon Josefsson  <jas@extundo.com>
78016
78017         * lib/base64.c: Fix warning, reported by Bruno Haible
78018         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78019
78020 2006-01-12  Bruno Haible  <bruno@clisp.org>
78021
78022         * modules/ldd: New file.
78023         * build-aux/ldd.sh.in: New file.
78024         * MODULES.html.sh (Support for building libraries and executables): Add
78025         ldd.
78026
78027 2006-01-12  Bruno Haible  <bruno@clisp.org>
78028
78029         * m4/ldd.m4: New file.
78030
78031 2006-01-12  Bruno Haible  <bruno@clisp.org>
78032
78033         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78034         endless loop while replacing $auxdir with build-aux.
78035
78036 2006-01-11  Simon Josefsson  <jas@extundo.com>
78037
78038         * lib/stdint_.h (SIZE_MAX): Add missing (.
78039
78040 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78041
78042         Sync from coreutils.
78043         * lib/md5.c: Fix commentary typos.
78044         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78045         * lib/md5.h (__attribute__): Remove; unused.
78046         * lib/sha1.c: Fix commentary to match md5 better.
78047         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78048         so that we don't need to worry about alignment.  All uses changed.
78049         This merges the 2005-10-28 md5 change into sha1.
78050
78051 2006-01-11  Jim Meyering  <jim@meyering.net>
78052
78053         Sync from coreutils.
78054         * lib/md5.c (OP): Fix spacing.
78055
78056 2006-01-11  Bruno Haible  <bruno@clisp.org>
78057
78058         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78059         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78060         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78061
78062 2006-01-11  Bruno Haible  <bruno@clisp.org>
78063
78064         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78065         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78066         the "early" section as well.
78067
78068 2006-01-11  Bruno Haible  <bruno@clisp.org>
78069
78070         Avoid "ar: no archive members specified" error on MacOS X.
78071         * gnulib-tool (func_modules_add_dummy): New function.
78072         (func_import, func_create_testdir): Invoke it.
78073
78074 2006-01-11  Bruno Haible  <bruno@clisp.org>
78075
78076         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78077         with $auxdir in AC_CONFIG_FILES statements.
78078
78079 2006-01-11  Bruno Haible  <bruno@clisp.org>
78080
78081         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78082         Initialize also noinst_HEADERS to empty.
78083
78084 2006-01-11  Bruno Haible  <bruno@clisp.org>
78085
78086         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78087         variables.
78088         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78089         autoreconf.
78090
78091 2006-01-11  Bruno Haible  <bruno@clisp.org>
78092
78093         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78094         overridable by the user.
78095         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78096
78097 2006-01-10  Simon Josefsson  <jas@extundo.com>
78098
78099         * modules/sys_socket: New file.
78100
78101 2006-01-10  Simon Josefsson  <jas@extundo.com>
78102
78103         * m4/sys_socket_h.m4: New file.
78104
78105 2006-01-10  Simon Josefsson  <jas@extundo.com>
78106
78107         * lib/socket_.h: New file.
78108
78109 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78110
78111         * modules/readutmp (Maintainer): Add myself.
78112
78113 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78114
78115         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78116         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78117         People who are still concerned with buggy memcmp implementations
78118         can invoke gl_FUNC_MEMCMP themselves.
78119
78120 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78121
78122         * lib/regex_internal.h (BITSET_WORD_BITS):
78123         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78124         preprocessor mishandles large unsigned values as if they were signed.
78125         Problem reported by Claudio Fontana in
78126         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78127
78128 2006-01-10  Jim Meyering  <jim@meyering.net>
78129
78130         Avoid the double-free (first in fts_read, second in fts_close) that
78131         would occur when an `active' directory is made inaccessible (e.g.,
78132         via chmod a-x) during a traversal.
78133         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78134         before returning.  Reproduce this failure by
78135         mkdir -p a/b; cd a; chmod a-x . b
78136         Reported by Stavros Passas.
78137
78138         Sync from coreutils.
78139         * lib/sha1.c: Tweak grammar in a comment.
78140
78141 2006-01-10  Jim Meyering  <jim@meyering.net>
78142
78143         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78144         Patch by Joerg Sonnenberger.
78145
78146 2006-01-10  Bruno Haible  <bruno@clisp.org>
78147
78148         * modules/readutmp: Depend on module free.
78149         * modules/strtok_r: Depend on module restrict.
78150
78151 2006-01-10  Bruno Haible  <bruno@clisp.org>
78152
78153         * modules/gettext (configure.ac): Add an invocation of
78154         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78155
78156 2006-01-10  Bruno Haible  <bruno@clisp.org>
78157
78158         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78159         Reported by Werner Lemberg <wl@gnu.org>.
78160
78161 2006-01-10  Bruno Haible  <bruno@clisp.org>
78162
78163         * lib/localcharset.c: Update from GNU gettext.
78164
78165 2006-01-10  Bruno Haible  <bruno@clisp.org>
78166
78167         * lib/argp.h (__const): Remove macro. Use const instead.
78168         * lib/argp-fmtstream.h (__const): Likewise.
78169         * lib/glob_.h (__const): Remove macro.
78170         * lib/glob-libc.h: Use const instead of __const.
78171
78172 2006-01-10  Bruno Haible  <bruno@clisp.org>
78173
78174         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78175         variable.
78176         Needed to avoid an automake error regarding the 'gettext' module.
78177
78178 2006-01-09  Simon Josefsson  <jas@extundo.com>
78179
78180         * modules/inet_ntop (Depends-on): Add restrict.
78181
78182 2006-01-09  Simon Josefsson  <jas@extundo.com>
78183
78184         * modules/gc-rijndael-tests (License): Put under LGPL.
78185
78186         * modules/gc-des-tests (License): Likewise.
78187
78188         * modules/gc-arcfour-tests (License): Likewise.
78189
78190         * modules/gc-arctwo-tests (License): Likewise.
78191
78192         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78193
78194         * modules/gc-hmac-sha1-tests (Files): Likewise.
78195
78196         * modules/gc-hmac-md5-tests (License): Likewise.
78197
78198         * modules/gc-sha1-tests (License): Likewise.
78199
78200         * modules/gc-md5-tests (License): Likewise.
78201
78202         * modules/gc-md4-tests (License): Likewise.
78203
78204         * modules/gc-md2-tests (License): Likewise.
78205
78206         * modules/gc-tests (License): Likewise.
78207
78208         * modules/des-tests (License): Likewise.
78209
78210         * modules/md4-tests (License): Likewise.
78211
78212         * modules/md2-tests (License): Likewise.
78213
78214 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         Sync from coreutils:
78217
78218         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78219         * modules/lib-ignore: New file.
78220         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78221         chdir-safer.m4, lchmod.m4.
78222         * modules/openat: Add mkdirat.c, openat-priv.h.
78223
78224 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78225
78226         Sync from coreutils.
78227         * m4/lib-ignore.m4: New file.
78228         * m4/lchmod.m4: New file.
78229
78230 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         Sync from coreutils.
78233         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78234         for write access: POSIX says that must fail.
78235         * lib/fts.c (diropen): Likewise.
78236         * lib/save-cwd.c (save_cwd): Likewise.
78237         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78238         well, for minor improvements on hosts that lack O_DIRECTORY.
78239         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78240         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78241         Fall back on chown if open failed with EACCES.
78242
78243         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78244         Report an error at compile-time if only a 1-second nominal clock
78245         resolution is found.
78246
78247         * lib/lchmod.h: New file.
78248         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78249         (make_dir_parents): Use lchown rather than chown, and
78250         lchmod rather than chmod.
78251
78252         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78253         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78254         "proc" reported by n0dalus.
78255
78256         * lib/mountlist.c: Include <limits.h>.
78257         (dev_from_mount_options)
78258         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78259         New function.  It no longer assumes "dev=" has the System V meaning
78260         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78261         (read_file_system_list)
78262         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78263         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78264         dev= in that case.
78265
78266         * lib/posixtm.h (PDS_PRE_2000): New macro.
78267         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78268         allow_century.  All usages changed.  Reject dates outside the range
78269         1969-1999 if PDS_PRE_2000 is used.
78270
78271 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         Sync from coreutils.
78274         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78275         (Time of day items): Mention the possibility of leap seconds.
78276         Problem reported by Dr. David Alan Gilbert.
78277
78278 2006-01-09  Jim Meyering  <jim@meyering.net>
78279
78280         Sync from coreutils.
78281
78282         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78283
78284         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78285
78286         * lib/modechange.c (mode_compile): Reject an invalid mode string
78287         that starts with an octal digit.  From Andreas Gruenbacher.
78288
78289         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78290         and dup to open_safer and dup_safer, respectively.
78291         (openat_permissive): Fix typo in comment.
78292
78293         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78294         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78295         (_): Remove; no longer needed.
78296         (openat): Renamed from rpl_openat; no need for rpl_openat
78297         since openat.h renames openat for us.
78298         Replace most of the body with a call to openat_permissive,
78299         to avoid duplicate code.
78300         Port to (probably hypothetical) environments were mode_t is
78301         wider than int.
78302         (openat_permissive): Require mode arg, so that we can check
78303         types better.  Put it just after flags.  Change cwd failure
78304         indicator from pointer-to-bool to pointer-to-errno-value.
78305         All callers changed.
78306         Invoke openat_save_fail and/or openat_restore_fail if
78307         cwd_errno is null, so that openat can call us.
78308         (openat_permissive, fdopendir, fstatat, unlinkat):
78309         Simplify errno handling to avoid some duplicate code,
78310         as it's OK to set errno on success.
78311         * lib/openat.h: Revamp code so that function macros depend on
78312         __OPENAT_PREFIX only, not also on AT_FDCWD.
78313         (openat_ro): Remove.  Caller changed to use openat_permissive.
78314         (openat_permissive): Now a macro, if not a function.
78315         (openat_restore_fail, openat_save_fail): Now always functions,
78316         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78317
78318         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78319         and openat.c.
78320         * lib/mkdirat.c: Include openat-priv.h.
78321         Remove definitions of macros defined therein.
78322         * lib/openat.c: Likewise.
78323
78324         * lib/mkdirat.c (mkdirat): New file and function.
78325         * lib/openat.h (mkdirat): Declare.
78326
78327         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78328
78329         * lib/openat.h (openat_permissive): Declare.
78330         (openat_ro): Define.
78331
78332         * lib/openat.c (EXPECTED_ERRNO): New macro.
78333         (openat_permissive): New function -- used in remove.c rewrite.
78334         (all functions): Set errno just before returning, only if there
78335         was an actual failure.
78336         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78337
78338         Emulate openat-family functions using Linux's procfs, if possible.
78339         Idea and some code based on Ulrich Drepper's glibc changes.
78340
78341         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78342         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78343         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78344         before falling back on save_cwd and restore_cwd.
78345         (fdopendir, fstatat, unlinkat): Likewise.
78346
78347         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78348         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78349
78350         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78351         as second argument to va_arg.  Otherwise, some versions of gcc
78352         warn that `if this code is reached, the program will abort'.
78353
78354 2006-01-09  Jim Meyering  <jim@meyering.net>
78355
78356         Sync from coreutils.
78357         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78358         Require openat-priv.h.
78359
78360 2006-01-09  Bruno Haible  <bruno@clisp.org>
78361
78362         * modules/strnlen (Include): Use strnlen.h.
78363
78364 2006-01-09  Bruno Haible  <bruno@clisp.org>
78365
78366         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78367
78368 2006-01-09  Bruno Haible  <bruno@clisp.org>
78369
78370         * lib/sysexit_.h (EX_OK): New macro.
78371         Suggested by Martin Lambers <marlam@marlam.de>.
78372
78373 2006-01-09  Bruno Haible  <bruno@clisp.org>
78374
78375         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78376         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78377
78378 2006-01-09  Bruno Haible  <bruno@clisp.org>
78379
78380         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78381         numbers.
78382
78383 2006-01-09  Bruno Haible  <bruno@clisp.org>
78384
78385         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78386         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78387         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78388         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78389
78390 2006-01-09  Bruno Haible  <bruno@clisp.org>
78391
78392         * build-aux/javacomp.sh.in: New file, moved from lib/.
78393         * modules/javacomp-script (Files): Update.
78394         (configure.ac): Add AC_CONFIG_FILES invocation.
78395         (EXTRA_DIST): Remove variable.
78396
78397         * build-aux/javaexec.sh.in: New file, moved from lib/.
78398         * modules/javaexec (Files): Update.
78399         (configure.ac): Add AC_CONFIG_FILES invocation.
78400         (EXTRA_DIST): Remove javaexec.sh.in.
78401
78402         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78403         * modules/csharpcomp-script (Files): Update.
78404         (configure.ac): Add AC_CONFIG_FILES invocation.
78405         (EXTRA_DIST): Remove variable.
78406
78407         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78408         * modules/csharpexec (Files): Update.
78409         (configure.ac): Add AC_CONFIG_FILES invocation.
78410         (EXTRA_DIST): Remove csharpexec.sh.in.
78411
78412 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78413
78414         Sync from coreutils.
78415
78416         Add POSIX ACL support
78417         * lib/acl.h (copy_acl, set_acl): Add declarations.
78418         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78419         systems other than Linux.
78420         (chmod_or_fchmod): New function: use fchmod when possible,
78421         and chmod otherwise.
78422         (file_has_acl): Add a POSIX ACL implementation, with a
78423         Linux-specific subcase.
78424         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78425         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78426         acls are unsupported.
78427         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78428         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78429         are unsupported.
78430
78431 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78432
78433         Sync from coreutils.
78434         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78435
78436 2006-01-07  Bruno Haible  <bruno@clisp.org>
78437
78438         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78439         gl_EARLY.
78440
78441 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78442
78443         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78444         Problem reported for Mingw by Mark Junker.
78445
78446 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78447
78448         * README: Gnulib normally doesn't generate a tarball.
78449
78450 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78451
78452         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78453         long int, not int, for nanosecond counts, so that people who are
78454         used to POSIX struct timespec won't be surprised.  Reported by Jim
78455         Meyering.
78456
78457 2005-12-28  Bruno Haible  <bruno@clisp.org>
78458
78459         * build-aux/config.rpath: Update from GNU gettext.
78460
78461 2005-12-16  Jim Meyering  <jim@meyering.net>
78462
78463         * modules/fprintftime: New module.
78464         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78465
78466 2005-12-16  Jim Meyering  <jim@meyering.net>
78467
78468         * m4/fprintftime.m4: New file.
78469
78470 2005-12-16  Jim Meyering  <jim@meyering.net>
78471
78472         * lib/fprintftime.c, lib/fprintftime.h: New files.
78473
78474 2005-12-15  Simon Josefsson  <jas@extundo.com>
78475
78476         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78477         new m4/socklen.m4.
78478
78479 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78480
78481         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78482         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78483
78484 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78485
78486         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78487         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78488         struct uparams is valid. Fall back to the default values if it is
78489         not.
78490
78491 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78492
78493         * modules/argp (Files): Add argp-pin.c
78494         (Depends-on): dirname
78495         (lib_SOURCES): Add argp-pin.c
78496
78497 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78498
78499         * m4/argp.m4:  Check if program_invocation_name and
78500         program_invocation_short_name are declared and define appropriate
78501         macros if they are not.
78502
78503 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78504
78505         * lib/argp-help.c (__argp_base_name): New function
78506         (__argp_short_program_name): Rewrite using __argp_base_name
78507         * lib/argp-namefrob.h: Define program_invocation_name and
78508         program_invocation_short_name if requested
78509         (__argp_base_name): Add prototype
78510         * lib/argp-parse.c (argp_def): Use gettext wrappers
78511         (argp_default_parser): Use __argp_base_name
78512         * lib/argp-pin.c: New file. Defines program_invocation_name and
78513         program_invocation_short_name on systems that lack them.
78514
78515 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78516
78517         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78518         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78519         porting problem reported by Georg Schwarz in
78520         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78521
78522 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78523
78524         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78525         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78526         porting problem reported by Georg Schwarz in
78527         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78528
78529 2005-12-05  Bruno Haible  <bruno@clisp.org>
78530
78531         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78532         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78533         Reported by Mark Junker <mjscod@gmx.de>.
78534
78535 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78536
78537         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78538         Use implementation from Albert Chin, with some
78539         comments/corrections by Stepan Kasal and myself.
78540
78541 2005-12-02  Bruno Haible  <bruno@clisp.org>
78542
78543         * gnulib-tool (func_import): Accept GPLed build tool modules when
78544         --lgpl is given.
78545         * modules/csharpcomp-script: New file.
78546         * modules/csharpcomp: Depend on it.
78547         * modules/javacomp-script: New file.
78548         * modules/javacomp: Depend on it.
78549         Suggested by Simon Josefsson.
78550
78551 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78552
78553         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78554         statement, to work around an HP-UX 10.20 compiler bug reported by
78555         Peter O'Gorman.
78556
78557 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78558
78559         * modules/savedir (Depends-on): Add openat.
78560
78561 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78562
78563         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78564         (uintmax_t) [defined uintmax_t]: Do not declare.
78565         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78566         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78567         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78568         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78569         sake of portability to weird hosts that C allows (though we don't
78570         know of any practical examples).
78571
78572         * lib/savedir.h (fdsavedir): New decl.
78573         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78574         contains most of the former guts of savedir.
78575         (savedir): Use savedirstream.
78576         Include "openat.h".
78577
78578 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * modules/obstack (Files): Add m4/ulonglong.m4.
78581         Problem reported by Davide Angelocola.
78582
78583 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78586         coreutils no longer futzes with rounding modes.
78587
78588 2005-11-14  Jim Meyering  <jim@meyering.net>
78589
78590         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78591         replacement of mkstemp.
78592
78593 2005-11-10  Simon Josefsson  <jas@extundo.com>
78594
78595         * lib/readline.c: Remove EOL.
78596
78597 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78598
78599         * modules/gethrxtime (Depends-on): Add gettime.
78600
78601 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78602
78603         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78604         or gettimeofday; no longer needed.
78605
78606 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78607
78608         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78609         time business.
78610         (gethrxtime) [! (HAVE_NANOUPTIME
78611         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78612         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78613         our own approximation.
78614
78615 2005-11-08  Eric Blake  <ebb9@byu.net>
78616
78617         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78618
78619 2005-11-08  Eric Blake  <ebb9@byu.net>
78620
78621         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78622
78623 2005-11-04  Bruno Haible  <bruno@clisp.org>
78624
78625         * gnulib-tool: Implement --update mode.
78626
78627 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78628
78629         Fix porting problem reported by Theodoros V. Kalamatianos.
78630         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78631         Don't assume that futimes failing means we must fail.
78632
78633 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78636         variables to suggest the intended function of the PATH_MAX check.
78637
78638 2005-10-30  Kean Johnston  <jkj@sco.com>
78639
78640         Trivial changes to support SCO systems.
78641         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78642         as PATH_MAX.
78643         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78644         where __ptr is null when no I/O is pending.
78645
78646 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78647
78648         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78649         leave errno alone.  Problem reported by Dmitry V. Levin.
78650
78651 2005-10-28  Simon Josefsson  <jas@extundo.com>
78652
78653         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78654         Test more.
78655
78656         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78657
78658         * modules/md2, modules/md2-tests: New files.
78659
78660 2005-10-28  Simon Josefsson  <jas@extundo.com>
78661
78662         * m4/inet_ntop.m4: More tests.
78663
78664         * m4/gc-md2.m4, md2.m4: New file.
78665
78666 2005-10-28  Simon Josefsson  <jas@extundo.com>
78667
78668         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78669         "restrict" keywords, as per POSIX.  Protect the function
78670         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78671         Don't use K&R prototypes.  Check the sprintf return values.
78672         Re-define EAFNOSUPPORT if not present.  Indent.
78673
78674         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78675         suggested by Bruno Haible <bruno@clisp.org>.
78676
78677         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78678
78679         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78680
78681         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78682         libgcrypt).
78683
78684         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78685
78686         * lib/md2.h, lib/md2.c: New files.
78687
78688 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78689
78690         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78691         errno alone.  Problem reported by Frederic Jolliton.
78692
78693 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78694
78695         * modules/verify (License): Change from GPL to LGPL.  This is a
78696         tiny module and there are apparently near-equivalents that are
78697         under the BSD license.
78698
78699 2005-10-24  Simon Josefsson  <jas@extundo.com>
78700
78701         * modules/sha1: Relicense to LGPL.
78702
78703 2005-10-24  Simon Josefsson  <jas@extundo.com>
78704
78705         * lib/md4.h: Shrink buffer size, now that we changed the type.
78706
78707 2005-10-23  Simon Josefsson  <jas@extundo.com>
78708
78709         * gnulib-tool (func_import): Fix --tests-base.
78710
78711 2005-10-22  Simon Josefsson  <jas@extundo.com>
78712
78713         * modules/arcfour (Depends-on): Need stdint.
78714
78715 2005-10-22  Simon Josefsson  <jas@extundo.com>
78716
78717         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78718         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78719
78720 2005-10-22  Simon Josefsson  <jas@extundo.com>
78721
78722         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78723         suggested by Bruno Haible <bruno@clisp.org>.
78724
78725 2005-10-22  Simon Josefsson  <jas@extundo.com>
78726
78727         * lib/crc.h: Include stddef.h, for size_t.
78728
78729 2005-10-22  Simon Josefsson  <jas@extundo.com>
78730
78731         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78732         arcfour_context struct (simplify test vector testing in GNU
78733         Shishi).
78734
78735 2005-10-21  Simon Josefsson  <jas@extundo.com>
78736
78737         * modules/des, modules/des-tests: New files.
78738
78739         * modules/gc-des, modules/gc-des-tests: New files.
78740
78741         * tests/test-des.c, tests/test-gc-des.c: New file.
78742
78743 2005-10-21  Simon Josefsson  <jas@extundo.com>
78744
78745         * modules/arctwo, modules/arctwo-tests: New files.
78746
78747         * tests/test-arctwo.c: New file.
78748
78749         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78750
78751         * tests/test-gc-arctwo.c: New file.
78752
78753 2005-10-21  Simon Josefsson  <jas@extundo.com>
78754
78755         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78756         Bruno Haible <bruno@clisp.org>.
78757
78758         * m4/gc-des.m4: New file.
78759
78760 2005-10-21  Simon Josefsson  <jas@extundo.com>
78761
78762         * m4/arctwo.m4: New file.
78763
78764         * m4/gc-arctwo.m4: New file.
78765
78766 2005-10-21  Simon Josefsson  <jas@extundo.com>
78767
78768         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78769         block.
78770
78771 2005-10-21  Simon Josefsson  <jas@extundo.com>
78772
78773         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78774         <bruno@clisp.org>.
78775
78776         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78777
78778         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78779         Bruno Haible <bruno@clisp.org>.
78780
78781         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78782         <bruno@clisp.org>.
78783
78784 2005-10-21  Simon Josefsson  <jas@extundo.com>
78785
78786         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78787
78788 2005-10-21  Simon Josefsson  <jas@extundo.com>
78789
78790         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78791
78792 2005-10-21  Simon Josefsson  <jas@extundo.com>
78793
78794         * lib/des.h, lib/des.c: New files.
78795
78796         * lib/gc-gnulib.c: Support DES.c
78797
78798 2005-10-21  Simon Josefsson  <jas@extundo.com>
78799
78800         * lib/arctwo.h, lib/arctwo.c: New files.
78801
78802         * lib/gc-gnulib.c: Support ARCTWO.
78803
78804 2005-10-21  Simon Josefsson  <jas@extundo.com>
78805
78806         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78807         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78808
78809 2005-10-21  Simon Josefsson  <jas@extundo.com>
78810
78811         * gnulib-tool (func_import, func_create_testdir): Define automake
78812         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78813         Makefile.am snippet),
78814         suggested by Bruno Haible <bruno@clisp.org>.
78815
78816         * modules/gc (Makefile.am): Use it.
78817
78818 2005-10-21  Bruno Haible  <bruno@clisp.org>
78819
78820         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78821         patch.
78822
78823 2005-10-19  Simon Josefsson  <jas@extundo.com>
78824
78825         * tests/test-gc-rijndael.c: New file.
78826
78827         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78828
78829 2005-10-19  Simon Josefsson  <jas@extundo.com>
78830
78831         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78832         interface too.
78833
78834 2005-10-19  Simon Josefsson  <jas@extundo.com>
78835
78836         * tests/test-gc-arcfour.c: New file.
78837
78838         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78839
78840 2005-10-19  Simon Josefsson  <jas@extundo.com>
78841
78842         * modules/gc-md4, modules/gc-md4-tests: New file.
78843
78844         * tests/test-gc-md4.c: New file.
78845
78846 2005-10-19  Simon Josefsson  <jas@extundo.com>
78847
78848         * m4/gc-md4.m4: New file.
78849
78850 2005-10-19  Simon Josefsson  <jas@extundo.com>
78851
78852         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78853         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78854         <kasal@ucw.cz>.
78855
78856 2005-10-19  Simon Josefsson  <jas@extundo.com>
78857
78858         * m4/gc-arcfour.m4: New file.
78859
78860         * m4/gc-rijndael.m4: New file.
78861
78862 2005-10-19  Simon Josefsson  <jas@extundo.com>
78863
78864         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78865
78866 2005-10-19  Simon Josefsson  <jas@extundo.com>
78867
78868         * lib/gc-gnulib.c: Support ARCFOUR.
78869
78870 2005-10-19  Simon Josefsson  <jas@extundo.com>
78871
78872         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78873         support.
78874
78875         * lib/gc.h: Add ECB enum type.
78876
78877         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78878
78879 2005-10-18  Simon Josefsson  <jas@extundo.com>
78880
78881         * tests/test-md5.c: New file.
78882
78883         * modules/md5-tests: New file.
78884
78885 2005-10-18  Simon Josefsson  <jas@extundo.com>
78886
78887         * tests/test-md4.c: New file.
78888
78889         * modules/md4, modules/md4-tests: New files.
78890
78891 2005-10-18  Simon Josefsson  <jas@extundo.com>
78892
78893         * m4/md4.m4: New file.
78894
78895 2005-10-18  Simon Josefsson  <jas@extundo.com>
78896
78897         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78898
78899 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78900
78901         * gnulib-tool (func_create_testdir): Omit the second check whether
78902         BUILT_SOURCES in nonempty.
78903
78904 2005-10-17  Simon Josefsson  <jas@extundo.com>
78905
78906         * tests/test-rijndael.c: New file.
78907
78908 2005-10-17  Simon Josefsson  <jas@extundo.com>
78909
78910         * modules/sha1: Depend on stdint instead of md5.
78911
78912         * modules/md5: Depend on stdint, remove uint32_t.
78913
78914 2005-10-17  Simon Josefsson  <jas@extundo.com>
78915
78916         * modules/gc-sha1-tests: New file.
78917
78918         * tests/test-gc-sha1.c: New file.
78919
78920 2005-10-17  Simon Josefsson  <jas@extundo.com>
78921
78922         * m4/md5.m4: Remove call to uint32_t.m4.
78923
78924 2005-10-17  Simon Josefsson  <jas@extundo.com>
78925
78926         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78927
78928         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78929         md5.h.
78930
78931         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78932
78933         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78934
78935 2005-10-17  Simon Josefsson  <jas@extundo.com>
78936
78937         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78938
78939 2005-10-17  Simon Josefsson  <jas@extundo.com>
78940
78941         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78942
78943 2005-10-17  Simon Josefsson  <jas@extundo.com>
78944
78945         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78946
78947         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78948
78949 2005-10-17  Bruno Haible  <bruno@clisp.org>
78950
78951         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78952         that it can also be used in a test.
78953
78954 2005-10-16  Bruno Haible  <bruno@clisp.org>
78955
78956         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78957         TESTS_ENVIRONMENT, so that individual tests can augment it.
78958
78959         * gnulib-tool (func_create_testdir): Use an intermediate target for
78960         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78961         macros, like $(ALLOCA_H), which cannot be passed through the command
78962         line.
78963
78964 2005-10-15  Simon Josefsson  <jas@extundo.com>
78965
78966         * modules/rijndael-tests: New file.
78967
78968         * modules/rijndael: New file.
78969
78970 2005-10-15  Simon Josefsson  <jas@extundo.com>
78971
78972         * m4/rijndael.m4: New file.
78973
78974 2005-10-15  Simon Josefsson  <jas@extundo.com>
78975
78976         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78977
78978         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78979
78980 2005-10-14  Simon Josefsson  <jas@extundo.com>
78981
78982         * tests/test-arcfour.c: New file.
78983
78984         * modules/arcfour, modules/arcfour-tests: New files.
78985
78986 2005-10-14  Simon Josefsson  <jas@extundo.com>
78987
78988         * m4/arcfour.m4: New file.
78989
78990 2005-10-14  Simon Josefsson  <jas@extundo.com>
78991
78992         * lib/arcfour.h, lib/arcfour.c: New files.
78993
78994 2005-10-14  Roland McGrath  <roland@redhat.com>
78995
78996         Import from libc.  [BZ #1331]
78997         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78998         macro argument.
78999         Reported by Matej Vela <vela@debian.org>.
79000
79001 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79002
79003         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79004         include <wchar.h>; no longer needed.
79005
79006 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79007
79008         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79009
79010 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79011         and  Ulrich Drepper  <drepper@redhat.com>
79012
79013         Import from libc.
79014         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79015         instead of inline stream orientation test and two separate
79016         function calls.  Pay no attention to USE_IN_LIBIO.
79017
79018 2005-10-13  Simon Josefsson  <jas@extundo.com>
79019
79020         * modules/gc-hmac-md5-tests: New file.
79021
79022         * tests/test-gc-hmac-sha1.c: New file.
79023
79024         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79025
79026         * modules/gc-hmac-md5-tests: New file.
79027
79028         * tests/test-gc-md5.c: New file.
79029
79030         * modules/gc-md5-tests: New file.
79031
79032 2005-10-13  Simon Josefsson  <jas@extundo.com>
79033
79034         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79035         Move memory allocation outside of loop.
79036
79037 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79040         intermediate directory is in a read-only file system.  Problem
79041         reported by Eric Blake.
79042
79043 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79044
79045         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79046
79047 2005-10-12  Simon Josefsson  <jas@extundo.com>
79048
79049         * tests/test-hmac-sha1.c: New file.
79050
79051         * modules/hmac-sha1-tests: New file.
79052
79053         * modules/hmac-sha1: New file.
79054
79055 2005-10-12  Simon Josefsson  <jas@extundo.com>
79056
79057         * modules/gc-sha1: New file.
79058
79059 2005-10-12  Simon Josefsson  <jas@extundo.com>
79060
79061         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79062
79063         * tests/test-gc-pbkdf2-sha1.c: New file.
79064
79065 2005-10-12  Simon Josefsson  <jas@extundo.com>
79066
79067         * modules/gc-md5, modules/gc-hmac-md5: New files.
79068
79069         * modules/gc (Files): Remove md5, memxor and hmac files.
79070
79071 2005-10-12  Simon Josefsson  <jas@extundo.com>
79072
79073         * m4/gc-pbkdf2-sha1.m4: New file.
79074
79075         * m4/gc-hmac-sha1.m4: New file.
79076
79077         * m4/gc-sha1: New file.
79078
79079         * m4/hmac-sha1.m4: New file.
79080
79081 2005-10-12  Simon Josefsson  <jas@extundo.com>
79082
79083         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79084
79085         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79086
79087 2005-10-12  Simon Josefsson  <jas@extundo.com>
79088
79089         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79090         suggested by Bruno Haible <bruno@clisp.org>.
79091
79092 2005-10-12  Simon Josefsson  <jas@extundo.com>
79093
79094         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79095
79096 2005-10-12  Simon Josefsson  <jas@extundo.com>
79097
79098         * lib/gc-pbkdf2-sha1.c: New file.
79099
79100         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79101
79102 2005-10-12  Simon Josefsson  <jas@extundo.com>
79103
79104         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79105
79106         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79107
79108 2005-10-12  Simon Josefsson  <jas@extundo.com>
79109
79110         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79111         GC_USE_HMAC_MD5, respectively.
79112
79113         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79114         (gc_md5): Fix typo.
79115
79116         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79117
79118         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79119
79120         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79121
79122 2005-10-12  Bruno Haible  <bruno@clisp.org>
79123
79124         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79125         Reported by Stepan Kasal <kasal@ucw.cz>.
79126
79127 2005-10-11  Simon Josefsson  <jas@extundo.com>
79128
79129         * tests/test-crc.c: New file.
79130
79131         * modules/crc, modules/crc-tests: New files.
79132
79133 2005-10-11  Simon Josefsson  <jas@extundo.com>
79134
79135         * m4/crc.m4: New file.
79136
79137 2005-10-11  Simon Josefsson  <jas@extundo.com>
79138
79139         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79140
79141         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79142
79143         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79144
79145 2005-10-11  Simon Josefsson  <jas@extundo.com>
79146
79147         * lib/crc.h, lib/crc.c: New files.
79148
79149         * lib/gc.h (gc_hash_buffer): Add doc.
79150
79151 2005-10-11  Bruno Haible  <bruno@clisp.org>
79152
79153         * modules/c-strcasestr: New file.
79154         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79155
79156 2005-10-11  Bruno Haible  <bruno@clisp.org>
79157
79158         * modules/c-strcase: New file.
79159         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79160
79161 2005-10-11  Bruno Haible  <bruno@clisp.org>
79162
79163         * lib/strcasecmp.c: Include limits.h.
79164         (strcasecmp): Avoid integer overflow on exotic platforms.
79165         * lib/strncasecmp.c: Include limits.h.
79166         (strncasecmp): Avoid integer overflow on exotic platforms.
79167         Reported by Paul Eggert.
79168
79169 2005-10-11  Bruno Haible  <bruno@clisp.org>
79170
79171         * lib/c-strcasestr.h: New file, from GNU gettext.
79172         * lib/c-strcasestr.c: New file, from GNU gettext.
79173
79174 2005-10-11  Bruno Haible  <bruno@clisp.org>
79175
79176         * lib/c-strcase.h: New file, from GNU gettext.
79177         * lib/c-strcasecmp.c: New file, from GNU gettext.
79178         * lib/c-strncasecmp.c: New file, from GNU gettext.
79179
79180 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79181
79182         * modules/mempcpy (License): GPL -> LGPL.
79183         * modules/strchrnul (License): Likewise.
79184         * modules/sysexits (License): Likewise.
79185
79186 2005-10-08  Simon Josefsson  <jas@extundo.com>
79187
79188         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79189
79190 2005-10-07  Simon Josefsson  <jas@extundo.com>
79191
79192         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79193
79194 2005-10-06  Simon Josefsson  <jas@extundo.com>
79195
79196         * tests/test-hmac-md5.c: New file.
79197
79198         * modules/hmac-md5-tests: New file.
79199
79200         * modules/hmac-md5: New file.
79201
79202 2005-10-06  Simon Josefsson  <jas@extundo.com>
79203
79204         * m4/hmac-md5.m4: New file.
79205
79206         * m4/memxor.m4: Require gl_C_RESTRICT.
79207
79208 2005-10-06  Simon Josefsson  <jas@extundo.com>
79209
79210         * lib/memxor.c (memxor): Avoid casts and warnings.
79211
79212 2005-10-06  Simon Josefsson  <jas@extundo.com>
79213
79214         * lib/hmac-md5.c: New file.
79215
79216         * lib/hmac.h: New file.
79217
79218 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79219
79220         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79221         promotes to int, not unsigned int, to catch the AIX 5.3
79222         compiler bug.
79223
79224 2005-10-05  Simon Josefsson  <jas@extundo.com>
79225
79226         * modules/memxor: New file.
79227
79228         * modules/iconv (Files): Move config.rpath to havelib, it is used
79229         there.
79230
79231         * modules/havelib (Files): Add config.rpath.
79232
79233 2005-10-05  Simon Josefsson  <jas@extundo.com>
79234
79235         * m4/memxor.m4: New file.
79236
79237 2005-10-05  Simon Josefsson  <jas@extundo.com>
79238
79239         * lib/memxor.c (memxor): Fix compiler error.
79240
79241         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79242         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79243
79244         * lib/memxor.h, lib/memxor.c: New files.
79245
79246         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79247         we assume all systems have it, suggested by Jim Meyering
79248         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79249         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79250         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79251         same reasons.
79252
79253 2005-10-05  Simon Josefsson  <jas@extundo.com>
79254
79255         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79256
79257 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79258
79259         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79260         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79261         needed, since the source code now assumes these .h files.
79262
79263 2005-10-05  Derek Price  <derek@ximbiot.com>
79264
79265         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79266
79267 2005-10-05  Bruno Haible  <bruno@clisp.org>
79268
79269         * modules/stdint (License): Change to LGPL.
79270
79271 2005-10-04  Simon Josefsson  <jas@extundo.com>
79272
79273         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79274         D. Baushke" <mdb@gnu.org>.
79275
79276 2005-10-04  Bruno Haible  <bruno@clisp.org>
79277
79278         * lib/verify.h (verify_true): Provide alternative definition for C++.
79279
79280 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79281
79282         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79283         (SSIZE_MAX): New macro, if not already defined.
79284         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79285         than 2 GiB.
79286
79287 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79288
79289         Sync from coreutils.
79290         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79291         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79292         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79293         ULLONG_MAX doesn't work with 2.7.2.1.
79294
79295 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79296
79297         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79298         From Ben Pfaff.
79299
79300         * modules/exclude (Depends-on): Depend on verify.
79301         * modules/strtoimax (Depends-on): Likewise.
79302         * modules/utimecmp (Depends-on): Likewise.
79303
79304 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         * lib/exclude.c: Include verify.h.
79307         (verify): Remove.  All callers changed to use verify.h's version.
79308         * lib/strtoimax.c: Likewise.
79309         * lib/utimecmp.c: Likewis.e
79310
79311         Sync from coreutils.
79312         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79313         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79314         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79315         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79316         bother returning ENOSYS if settimeofday or stime fails; just let
79317         them return whatever errno they want to return.
79318         * lib/utimens.c: Include unistd.h, for dup2.
79319         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79320         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79321
79322 2005-10-02  Jim Meyering  <jim@meyering.net>
79323
79324         Sync from coreutils.
79325         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79326         from glibc-2.2.5 that fails for read-only files.
79327
79328 2005-10-02  Jim Meyering  <jim@meyering.net>
79329
79330         Sync from coreutils.
79331         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79332         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79333         `#if HAVE_CONFIG_H'.
79334         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79335         Remove AT_FDCWD test.
79336         Do not consume the fd unless successful.
79337         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79338         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79339         block, so that we don't even try to compile it if settimeofday is
79340         available.  This works around a compilation failure on OSF1 V5.1,
79341         due to stime requiring a `long int*' while tv_sec is `int'.
79342
79343 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79344
79345         Sync from coreutils.
79346         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79347         against `yes', rather than just testing for nonempty.
79348
79349 2005-10-01  Simon Josefsson  <jas@extundo.com>
79350
79351         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79352         and Darwin.
79353
79354         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79355         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79356         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79357         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79358         Check if struct addrinfo is declared.
79359
79360 2005-10-01  Simon Josefsson  <jas@extundo.com>
79361
79362         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79363         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79364         AI_* and EAI_* definitions.  Protect function declarations.
79365
79366 2005-10-01  Jim Meyering  <jim@meyering.net>
79367
79368         Sync from coreutils.
79369
79370         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79371         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79372         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79373         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79374         in the inet and nsl libraries.  Required on Solaris 5.7.
79375
79376 2005-10-01  Jim Meyering  <jim@meyering.net>
79377
79378         Sync from coreutils.
79379         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79380         in the inet and nsl libraries.  Required on Solaris 5.7.
79381
79382 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79383
79384         * lib/getdelim.c (getdelim): Remove unused variables.
79385
79386 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79389         so that the code works even with ancient cpp.  Portability problem
79390         with GCC 2.7.2.1 reported by Thomas M.Ott.
79391
79392 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79393
79394         * modules/regex (Depends-on): Add strcase.
79395
79396         * modules/gethostname (Licence): Change from GPL to LGPL, since
79397         gethostname.c is a trivial implementation of a standard library
79398         function.
79399         * modules/poll (License): Change from GPL to LGPL, since it's
79400         derived from LGPL code.
79401
79402 2005-09-27  Jim Meyering  <jim@meyering.net>
79403
79404         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79405         HAVE_CONFIG_H.
79406
79407         * lib/intprops.h (signed_type_or_expr__): Define.
79408         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79409         for unsigned types.
79410
79411 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79412
79413         * lib/verify.h (verify_expr): Remove, replacing with:
79414         (verify_true): New macro that returns true instead of void.
79415         (verify_type__): Remove.
79416         (verify): Use verify_true rather than verify_type__.
79417
79418 2005-09-26  Bruno Haible  <bruno@clisp.org>
79419
79420         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79421         is necessary.
79422         (lib_SOURCES): Remove mbchar.c.
79423         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79424         (Files): Add m4/mbrtowc.m4.
79425         * modules/mbiter: Likewise.
79426         * modules/mbuiter: Likewise.
79427
79428 2005-09-26  Bruno Haible  <bruno@clisp.org>
79429
79430         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79431         compile mbchar.c if they are not both present.
79432         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79433         * m4/mbiter.m4 (gl_MBITER): Likewise.
79434         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79435         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79436         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79437
79438 2005-09-25  Jim Meyering  <jim@meyering.net>
79439
79440         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79441         also uses socklen_t.
79442
79443 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79444
79445         * lib/utimens.c (ENOSYS): Define if not already defined.
79446         (futimens): Support having a null PATH if the file descriptor
79447         is nonnegative.
79448
79449         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79450         Remove.
79451         (__attribute): Define to empty unless GCC 3.1 or later.
79452         This works around a core dump on OpenBSD 3.4, which has GCC
79453         2.95.3, which dumps core when given __attribute__(()).  It also
79454         simplifies other tests, since we really don't want to bother with
79455         worrying about which ancient version of GCC supported what.
79456         Original problem reported by Yoann Vandoorselaere, with part of
79457         the fix suggested by Derek Price.
79458
79459 2005-09-24  Jim Meyering  <jim@meyering.net>
79460
79461         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79462         so we can once again use a positive bitfield width of 1 -- now we
79463         don't have to explain why we were using a bitfield width of 2.
79464
79465 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79468         and similarly for the other external symbols.  Problem reported
79469         by James Gallager.
79470
79471         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79472         bug reported by Jim Meyering.
79473
79474         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79475         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79476         not needed, since socklen is a prerequisite module.
79477
79478 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79479
79480         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79481         Problem reported by Eric Blake.
79482         (getaddrinfo): Initialize se so that it's not garbage.
79483         Redo internal storage allocation so that it doesn't make unportable
79484         assumptions about alignment.
79485         Fix a memory leak.
79486
79487         * lib/utimens.c (futimens): Use futimesat if available.
79488         Prefer it to futimes since it doesn't have the futimes bug.
79489
79490         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79491         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79492         Instead, declare a function that returns a pointer to an array,
79493         and use verify_type__ to declare the size of the array.
79494         Problem and germ of a solution reported by Bruno Haible.
79495         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79496         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79497
79498 2005-09-23  Jim Meyering  <jim@meyering.net>
79499
79500         Sync from coreutils.
79501         Correct build failure (socklen_t not defined) on at least
79502         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79503         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79504
79505 2005-09-23  Jim Meyering  <jim@meyering.net>
79506
79507         * modules/getaddrinfo (Depends-on): Add socklen.
79508
79509 2005-09-23  Bruno Haible  <bruno@clisp.org>
79510
79511         * tests/test-verify.c: New file.
79512
79513 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         Sync from coreutils.
79516
79517         * modules/argmatch (Depends-on): Add verify.
79518         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79519         unistd-safer.
79520         * modules/save-cwd (Depends-on): Likewise.
79521
79522         * modules/openat (Files): Add lib/openat-die.c.
79523         (Depends-on): Remove error, exitfail.
79524         Add dirname.
79525
79526         * modules/verify: New file.
79527         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79528         with "verify" module.
79529
79530 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79531
79532         Sync from coreutils.
79533
79534         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79535         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79536         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79537         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79538         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79539         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79540         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79541         Don't bother checking for string.h, stdlib.h, unistd.h.
79542         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79543         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79544         module's job.
79545         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79546         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79547
79548         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79549         (gl_GETDATE): Use it.
79550
79551         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79552
79553 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79554
79555         Sync from coreutils.
79556
79557         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79558         stat-time.h.
79559         * lib/argmatch.h: Include verify.h
79560         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79561         (ARGMATCH_ASSERT): Remove; unused.
79562         * lib/canonicalize.c: Assume STDC_HEADERS.
79563         * lib/exclude.c: Include "strcase.h".
79564         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79565         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79566         and stdio-safer.h.
79567         (getusershell): Call fopen, not fopen_safer.
79568         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79569         Do not include unistd-safer.h.
79570         (save_cwd): Don't call fd_safer; no longer needed
79571         now that we include fcntl--.h.
79572
79573         * lib/getdate.y (relative_time): New type.
79574         (RELATIVE_TIME_0): New constant.
79575         (parser_control): Use relative_time instead of doing it ourselves.
79576         (%union): Add new relative_time rel member.
79577         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79578         Now typeless.
79579         (relunit, relunit_snumber): Now of type rel.
79580         (zone, rel, relunit, get_date): Adjust to above changes.
79581
79582         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79583         Do not include unistd-safer.h.
79584         (getloadavg): Don't call fd_safer; no longer needed
79585         now that we include fcntl--.h.
79586
79587         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79588         (make_dir_parents): Treat ENOSYS like EEXIST.
79589
79590         Improve quality of diagnostics on restore_cwd failure.
79591         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79592         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79593         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79594         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79595         each time through the loop.  Do not diagnose restore_cwd failure;
79596         that is the caller's job (and perhaps the caller does not care).
79597
79598         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79599         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79600         If the file already exists but is not a directory, don't bother
79601         to try to make its parents.
79602         Close potential file descriptor leak if we can't chdir("/") (!).
79603         Don't always return true if chdir($PWD) fails; return true only
79604         if the requested action was done successfully (except for the
79605         chdir($PWD)).
79606         Don't log final directory unless we actually made it.
79607         Refactor to avoid duplicate code to fix up permissions.
79608         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79609
79610         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79611         to make it a bit faster and (I hope) clearer.
79612         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79613         Fix bug in formats like %2N.
79614
79615         * lib/verify.h: New file.
79616
79617 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79618
79619         Sync from coreutils.
79620         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79621
79622 2005-09-22  Jim Meyering  <jim@meyering.net>
79623
79624         Sync from coreutils.
79625
79626         * m4/lstat.m4 (gl_FUNC_LSTAT):
79627         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79628         Remove obsolete comment.
79629         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79630         * m4/xstrtod.m4: Likewise.
79631
79632         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79633
79634 2005-09-22  Jim Meyering  <jim@meyering.net>
79635
79636         Sync from coreutils.
79637
79638         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79639
79640         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79641         the .tm_year member, since otherwise gcc-4.0 would now warn about
79642         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79643
79644         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79645         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79646
79647         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79648         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79649         when run in a time zone for which daylight savings time is in effect
79650         for the starting date.
79651
79652         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79653         stop us from restricting permissions of just-created absolute-named
79654         directories.
79655         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79656         to restore initial working directory.
79657         * lib/mkdir-p.c (make_dir_parents): New parameter:
79658         different_working_dir, to tell caller if/when we change the working
79659         directory and are unable to return to the initial one.
79660         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79661         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79662         `return false'.  This fixes a bug introduced on 2004-07-30.
79663
79664         * lib/openat.c (fdopendir): Be sure to close the supplied
79665         file descriptor before returning.  This makes our replacement
79666         implementation a little closer to Solaris's, where fdopendir
79667         ties the file descriptor to the returned DIR* pointer.
79668         * lib/openat.c (unlinkat): New function.
79669         * lib/openat.h (unlinkat): Add prototype.
79670         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79671         (openat_restore_fail): Rename from openat_restore_die.
79672         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79673
79674         Provide an alternative to exiting immediately upon save_cwd or
79675         restore_cwd failure.  Now, an application can arrange e.g.,
79676         to perform a longjump in that case.
79677         * lib/openat.c: Include dirname.h.
79678         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79679         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79680         and openat_restore_die rather than calling error directly.
79681         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79682
79683         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79684         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79685         define.
79686
79687         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79688         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79689                             int utc, int nanoseconds);
79690         Background:
79691         date should not have to allocate a megabyte of virtual memory to
79692         handle a format argument like +%1048575T.  When implemented with
79693         strftime, it must allocate such a buffer, use strftime to fill it
79694         in, print it, then free it.
79695         With fprintftime, it simply prints everything and exits.
79696         With no need for memory allocation, that's one fewer way to fail.
79697         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79698         optional field width, not before, so we accept %9:z, not %:9z.
79699         (my_strftime): Be sure to use L_('x') for literals.
79700
79701         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79702         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79703         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79704         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79705         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79706         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79707         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79708         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79709         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79710         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79711         * lib/xgethostname.c, lib/xreadlink.c:
79712         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79713
79714         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79715         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79716         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79717         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79718         and don't include <sys/file.h>).
79719
79720 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79721
79722         Sync from coreutils.
79723
79724         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79725         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79726         [!LDAV_DONE]: Avoid unused variable warning.
79727
79728 2005-09-21  Bruno Haible  <bruno@clisp.org>
79729
79730         * lib/unicodeio.h (unicode_to_mb): New declaration.
79731
79732 2005-09-20  Derek Price  <derek@ximbiot.com>
79733
79734         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79735         getaddrinfo.h.
79736
79737 2005-09-20  Bruno Haible  <bruno@clisp.org>
79738
79739         * gnulib-tool: Remove trailing slashes from the values specified for
79740         --source-base, --m4-base, --tests-base, --aux-dir.
79741         Suggested by Simon Josefsson <jas@extundo.com>.
79742
79743 2005-09-20  Bruno Haible  <bruno@clisp.org>
79744
79745         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79746         func_modules_to_filelist, func_import, func_create_testdir): Make all
79747         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79748         change when gnulib-tool is invoked in a different locale.
79749
79750 2005-09-19  Simon Josefsson  <jas@extundo.com>
79751
79752         * m4/socklen.m4: Fix typo.
79753
79754 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79755
79756         Use a consistent style for including <config.h>.
79757         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79758         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79759         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79760         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79761         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79762         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79763         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79764         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79765         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79766         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79767         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79768         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79769         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79770         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79771         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79772         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79773         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79774         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79775         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79776         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79777         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79778         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79779         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79780         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79781         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79782         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79783         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79784         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79785         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79786         lib/xstrtoumax.c, lib/yesno.c:
79787         Standardize inclusion of config.h.
79788         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79789         lib/inttostr.h:  Removed inclusion of config.h from header files.
79790         * lib/inttostr.c:  Adjusted in-tree users.
79791         * lib/timespec.h: Remove superfluous warning to include config.h.
79792         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79793         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79794         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79795         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79796         config.h with HAVE_CONFIG_H.
79797
79798 2005-09-19  Jim Meyering  <jim@meyering.net>
79799
79800         * modules/pathmax (License): Change to LGPL.
79801
79802 2005-09-19  Derek Price  <derek@ximbiot.com>
79803
79804         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79805
79806 2005-09-19  Bruno Haible  <bruno@clisp.org>
79807
79808         * gnulib-tool (import): Provide default for --tests-base.
79809
79810 2005-09-19  Bruno Haible  <bruno@clisp.org>
79811
79812         * doc/quote.texi: New file, extracted from gnulib.texi.
79813         * doc/ctime.texi: New file, extracted from gnulib.texi.
79814         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79815         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79816         * doc/gnulib.texi: Include them.
79817
79818 2005-09-18  Bruno Haible  <bruno@clisp.org>
79819
79820         Portability fix.
79821         * gnulib-tool (func_readlink): New function.
79822         (func_ln_if_changed): Use it.
79823
79824 2005-09-18  Bruno Haible  <bruno@clisp.org>
79825
79826         * gnulib-tool: Support --with-tests also with --import.
79827         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79828         (func_import): Use variables $testsbase and $inctests. Emit a
79829         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79830         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79831         SUBDIRS += $testsdir.
79832         (func_create_testdir): Update.
79833
79834 2005-09-18  Bruno Haible  <bruno@clisp.org>
79835
79836         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79837         instead of $dry_run.
79838         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79839         (func_ln_if_changed): Don't handle dry-run here.
79840         (func_import): In dry-run mode, detect more precisely which actions
79841         would be performed, and don't use "...ing" verbs.
79842
79843 2005-09-18  Bruno Haible  <bruno@clisp.org>
79844
79845         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79846         (func_import): Use join on two temporary files instead of three nested
79847         loops, in order to determine which files are new or old.
79848
79849 2005-09-18  Bruno Haible  <bruno@clisp.org>
79850
79851         * gnulib-tool (func_import): Comment out code that spits out the
79852         new files with --dry-run.
79853
79854 2005-09-18  Bruno Haible  <bruno@clisp.org>
79855
79856         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79857
79858 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79859
79860         * lib/stat-time.h: New file.
79861         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79862         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79863         in a different way.
79864         (timespec_cmp): New function.
79865         * lib/utimecmp.c: Include stat-time.h.
79866         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79867         members exist, not on the obsolescent ST_MTIM_NSEC.
79868         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79869
79870 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79871
79872         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79873
79874 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * MODULES.html.sh (File system functions): Add stat-time.
79877         * modules/stat-time: New file.
79878         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79879         is now done in a different way, by the stat-time module.
79880         * modules/utimecmp (Depends-on): Add stat-time.
79881
79882 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79883
79884         * m4/st_mtim.m4: Remove.  Superseded by...
79885         * m4/stat-time.m4: New file.
79886         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79887         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79888
79889 2005-09-15  Derek Price  <derek@ximbiot.com>
79890
79891         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79892
79893 2005-09-15  Derek Price  <derek@ximbiot.com>
79894
79895         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79896         * lib/regex_internal.c: Ditto, using this...
79897         (__GNUC_PREREQ): ...new macro.
79898         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79899         using...
79900         (__GNUC_PREREQ): ...this new macro.
79901
79902         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79903
79904 2005-09-15  Derek Price  <derek@ximbiot.com>
79905             Paul Eggert  <eggert@cs.ucla.edu>
79906
79907         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79908         changes, consolidating in...
79909         * lib/regex_internal.h: ...this file.
79910
79911 2005-09-13  Jim Meyering  <jim@meyering.net>
79912
79913         * lib/canon-host.c: Filter through gnu indent and reword comments
79914         slightly.
79915         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79916
79917 2005-09-13  Derek Price  <derek@ximbiot.com>
79918
79919         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79920         failure.
79921         Reported by Jim Meyering  <jim@meyering.net>.
79922
79923 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79924
79925         * lib/base64.c: Typo.
79926         (base64_encode): Put b64str in initialized data section.
79927
79928 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         Merge glibc and coreutils changes into gnulib, plus a few
79931         extra fixes.
79932         * lib/md5.c: Use #error rather than a string.
79933         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79934         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79935         (__attribute__): Define to empty for non recent-GCC.
79936         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79937         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79938         Renamed from their non-__ counterparts, with new macros replacing
79939         them if not _LIBC.  Add __THROW attribute.
79940         (rol): Remove.
79941         (struct md5_ctx): Align buffer if using GCC.
79942         * lib/sha1.h (struct sha1_ctx): Likewise.
79943         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79944         The old name was backwards.
79945         (NOTSWAP): Remove; not used.
79946         (rol): New macro, moved here from md5.h.
79947         (sha1_process_block): Remove a FIXME that doesn't make sense.
79948
79949 2005-09-12  Derek Price  <derek@ximbiot.com>
79950
79951         Return usable errors from canon-host.
79952         * lib/canon-host.h: New file.
79953         * lib/canon-host.c (canon_host): Wrap...
79954         (canon_host_r): ...this new function, which now relies exclusively on
79955         getaddrinfo.
79956         (ch_strerror): New function.
79957         (last_cherror): New global.
79958         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79959         interface.
79960         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79961         void *.
79962         (freeaddrinfo): Free ai->ai_canonname when set.
79963
79964 2005-09-12  Derek Price  <derek@ximbiot.com>
79965
79966         Make canon-host require getaddrinfo.
79967         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79968         AC_LIBSOURCE canon-host.h.  Call...
79969         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79970         gl_GETADDRINFO.
79971         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79972
79973 2005-09-12  Derek Price  <derek@ximbiot.com>
79974
79975         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79976         LGPL.
79977         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79978
79979 2005-09-12  Derek Price  <derek@ximbiot.com>
79980
79981         * lib/gai_strerror.c: Include config.h when available.  Include
79982         getaddrinfo.h before other headers to test interface.
79983         Reported by Larry Jones <lawrence.jones@ugs.com>.
79984
79985 2005-09-12  Derek Price  <derek@ximbiot.com>
79986             Paul Eggert  <eggert@cs.ucla.edu>
79987
79988         * modules/glob (Files): Add glob-libc.h.
79989
79990 2005-09-12  Derek Price  <derek@ximbiot.com>
79991             Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79994         glob_.h, glob-libc.h.
79995         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79996
79997 2005-09-12  Derek Price  <derek@ximbiot.com>
79998             Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80001         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80002         protecting things that should be done only in gnulib contexts.
80003         * lib/glob_.h: New file, containing only the glob things needed for
80004         gnulib.
80005         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80006         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80007         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80008         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80009         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80010         and to respect the namespace rules better.
80011
80012 2005-09-08  Simon Josefsson  <jas@extundo.com>
80013
80014         * modules/socklen: New file.
80015
80016 2005-09-08  Simon Josefsson  <jas@extundo.com>
80017
80018         * m4/socklen.m4: New file.
80019
80020 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80021
80022         * modules/utimens (Files): Add m4/utimbuf.m4, since
80023         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80024         Reported by Sergey Poznyakoff.
80025
80026 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80027
80028         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80029         definitions, since that's the preferred style in glibc.
80030         Fix a minor spacing issue, and update copyright notice to match
80031         glibc's.
80032
80033 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80034
80035         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80036
80037 2005-09-06  Simon Josefsson  <jas@extundo.com>
80038
80039         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80040         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80041
80042 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80043
80044         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80045         warning.
80046
80047 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80048
80049         * config/srclist.txt: Add glibc bug 1302.
80050
80051 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80052
80053         Change bitset word type from unsigned int to unsigned long int,
80054         as this has better performance on typical 64-bit hosts.
80055         Port bitset code to hosts with unusual word sizes.
80056         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80057         (build_collating_symbol):
80058         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80059         argument is a bitset.  This is merely a style issue, but it makes
80060         it clearer that an entire array is expected.
80061         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80062         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80063         Port to the case where bitset_word is not the same as unsigned int.
80064         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80065         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80066         Likewise.
80067         * lib/regexec.c (check_dst_limits_calc_pos_1,
80068         check_subexp_matching_top):
80069         (build_trtable, group_nodes_into_DFAstates):
80070         Likewise.
80071         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80072         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80073         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80074         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80075         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80076         * lib/regcomp.c (optimize_subexps, lower_subexp):
80077         Work even if bitset_word has holes in its bitwise representation.
80078         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80079         * lib/regexec.c (check_dst_limits_calc_pos_1,
80080         check_subexp_matching_top):
80081         Likewise.
80082         * lib/regex_internal.c (re_string_reconstruct):
80083         Don't assume UCHAR_MAX == 255.
80084         * lib/regex_internal.h (bitset_set_all): Likewise.
80085         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80086         All uses changed.
80087         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80088         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80089         All uses changed.
80090         (BITSET_WORD_MAX): New macro.
80091         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80092         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80093         (bitset_empty, bitset_copy):
80094         Prefer sizeof (bitset) to multiplying it out ourselves.
80095         (bitset_not_merge): Remove; unused.
80096         (bitset_contain): Return bool, not unsigned int with one bit on.
80097         All callers changed.
80098         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80099         alignment than re_node_set; do this by defining a new internal
80100         type struct dests_alloc and using it to allocate memory.
80101
80102 2005-09-05  Bruno Haible  <bruno@clisp.org>
80103
80104         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80105         links.
80106
80107 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80108
80109         * modules/size_max (Makefile.am): Add size_max.h
80110
80111 2005-09-04  Derek Price  <derek@ximbiot.com>
80112
80113         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80114
80115 2005-09-03  Simon Josefsson  <jas@extundo.com>
80116
80117         * gnulib-tool: Fix typo.
80118
80119 2005-09-03  Simon Josefsson  <jas@extundo.com>
80120
80121         * config/srclist.txt: Add glibc bug 1293.
80122
80123 2005-09-03  Derek Price  <derek@ximbiot.com>
80124
80125         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80126         From Larry Jones <lawrence.jones@ugs.com>.
80127
80128 2005-09-02  Simon Josefsson  <jas@extundo.com>
80129
80130         * modules/socklen: New file.
80131
80132 2005-09-02  Simon Josefsson  <jas@extundo.com>
80133
80134         * modules/havelib: New module.
80135
80136         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80137         Use havelib.
80138
80139 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         Check for arithmetic overflow when calculating sizes, to prevent
80142         some buffer-overflow issues.  These patches are conservative, in the
80143         sense that when I couldn't determine whether an overflow was possible,
80144         I inserted a run-time check.
80145         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80146         macros.
80147         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80148         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80149         (re_xnrealloc, re_x2nrealloc): New inline functions.
80150         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80151         parse_bracket_exp):
80152         (build_equiv_class, build_charclass): Check for arithmetic overflow
80153         in size expression calculations.
80154         * lib/regex_internal.c (re_string_realloc_buffers):
80155         (build_wcs_upper_buffer, re_node_set_add_intersect):
80156         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80157         (re_dfa_add_node, register_state): Likewise.
80158         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80159         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80160         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80161         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80162
80163 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80164
80165         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80166         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80167
80168 2005-09-02  Bruno Haible  <bruno@clisp.org>
80169
80170         Support for lib vs. lib64 distinction on biarch platforms.
80171         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80172         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80173         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80174
80175 2005-09-02  Bruno Haible  <bruno@clisp.org>
80176
80177         * gnulib-tool (import): In the other first-use case, provide defaults
80178         as well.
80179
80180 2005-09-02  Bruno Haible  <bruno@clisp.org>
80181
80182         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80183         patches not yet found in the latest gettext release.
80184
80185 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80188         to avoid a collision with bits/local_lim.h in glibc.
80189         All uses changed.  Problem reported by Dmitry V. Levin in
80190         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80191
80192         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80193         bugs in int versus size_t comparisons.
80194         (re_string_context_at): Fix bug where the code assumed that
80195         Idx is signed.
80196
80197         Use bool where appropriate.
80198         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80199         All callers changed.
80200         (calc_eclosure_iter): Likewise, for ROOT arg.
80201         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80202         (build_charclass_op): Likewise, for NON_MATCH arg.
80203         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80204         (re_string_construct_common): Likewise, for ICASE arg.
80205         * lib/regexec.c (re_search_2_stub, re_search_stub):
80206         Likewise, for RET_LEN arg.
80207         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80208         (set_regs): Likewise, for FL_BACKTRACK arg.
80209         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80210         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80211         (calc_eclosure_iter, parse_bracket_exp):
80212         Use bool for internal variables that are booleans.
80213         * lib/regexec.c (re_search_internal, check_matching,
80214         proceed_next_node):
80215         (set_regs, build_sifted_states, sift_states_bkref):
80216         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80217         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80218         (find_collation_sequence_value):
80219         Likewise.
80220         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80221         (re_node_set_compare):
80222         Return bool, not int. All callers changed.
80223         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80224         (build_trtable, check_node_accept): Likewise.
80225         * lib/regex_internal.h: Include stdbool.h.
80226
80227         Fix bugs uncovered when converting to bool.
80228         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80229         failure instead of charging ahead blindly.
80230         * lib/regex_internal.c (register_state): Likewise.
80231         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80232         for freeing internal storage.
80233         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80234         bitset pieces used as boolean, to avoid undefined behavior
80235         on hosts that do int overflow checking.
80236
80237 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80238
80239         * config/srclist.txt: Add glibc bugs 1285-1287.
80240
80241 2005-09-01  Jim Meyering  <jim@meyering.net>
80242
80243         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80244         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80245         Require gl_STAT_MACROS, too.
80246
80247 2005-09-01  Bruno Haible  <bruno@clisp.org>
80248
80249         * gnulib-tool (import): In the first-use case, provide defaults.
80250
80251 2005-09-01  Bruno Haible  <bruno@clisp.org>
80252
80253         * gnulib-tool (func_import): Remove the .tmp files.
80254
80255 2005-09-01  Bruno Haible  <bruno@clisp.org>
80256
80257         * gnulib-tool (func_import): Fix handling of symbolic links.
80258
80259 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80262         old glibc regex code mishandles strings longer than 2**31 bytes.
80263         This patch fixes this when the regex code is used in gnulib
80264         (i.e., outside glibc).
80265
80266         This patch should not affect the use of the regex code inside
80267         glibc.  No doubt this problem also needs to be handled for glibc
80268         as well, but the result will be an incompatible change to the
80269         glibc ABI, and the old ABI will have to be supported too.  That
80270         can be the the subject for another patch.
80271
80272         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80273         governing whether the rest of this patch is active.  By default,
80274         the macro is disabled and the patch has no effect.
80275         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80276         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80277         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80278         (re_match_2, re_set_registers): Use the new types.
80279         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80280         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80281         New macros.
80282         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80283         (re_string_context_at, bin_tree_t, re_dfastate_t):
80284         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80285         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80286         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80287         (re_string_char_size_at, re_string_wchar_at):
80288         (re_string_elem_size_at):
80289         Use the new types and macros to port to 64-bit hosts.
80290         Use unsigned types for internal values, so that the code
80291         mostly works even for arrays larger than SSIZE_MAX.
80292         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80293         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80294         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80295         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80296         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80297         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80298         (calc_inveclosure, parse_dup_op, build_range_exp):
80299         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80300         (fetch_number, create_token_tree, mark_opt_subexp):
80301         Likewise.
80302         * lib/regex_internal.c (re_string_construct_common,
80303         create_ci_newstate):
80304         (create_cd_newstate, re_string_allocate, re_string_construct):
80305         (re_string_realloc_buffers, build_wcs_upper_buffer):
80306         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80307         (re_string_reconstruct, re_string_peek_byte_case):
80308         (re_string_fetch_byte_case, re_string_context_at):
80309         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80310         (re_node_set_init_copy, re_node_set_add_intersect):
80311         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80312         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80313         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80314         (re_acquire_state, re_acquire_state_context, register_state):
80315         Likewise.
80316         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80317         search_cur_bkref_entry):
80318         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80319         (re_search_internal, re_search_2_stub, re_search_stub)
80320         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80321         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80322         (update_cur_sifted_state, check_dst_limits):
80323         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80324         (check_subexp_limits, sift_states_bkref, merge_state_array):
80325         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80326         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80327         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80328         (expand_bkref_cache, check_node_accept_bytes):
80329         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80330         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80331         (acquire_init_state_context, check_halt_node_context):
80332         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80333         (sift_states_backward, clean_state_log_if_needed):
80334         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80335         (find_recover_state, transit_state_sb, transit_state_mb):
80336         (transit_state_bkref, build_trtable, match_ctx_clean):
80337         Likewise.
80338         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80339         to work around an assumption that REG_MISSING is negative.
80340
80341         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80342         (seek_collating_symbol_entry) [defined _LIBC]:
80343         (lookup_collation_sequence_value) [defined _LIBC]:
80344         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80345         Use prototypes rather than old-style function definitions.
80346         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80347         (transit_state_sb) [0]:
80348         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80349
80350         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80351         rm_eo.
80352
80353         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80354         (optimize_subexps, lower_subexp):
80355         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80356         since the signed shift might overflow.  Use 1u<<31 instead.
80357         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80358         Likewise.
80359         * lib/regexec.c (check_dst_limits_calc_pos_1,
80360         check_subexp_matching_top): Likewise.
80361
80362         * lib/regcomp.c (optimize_subexps, lower_subexp):
80363         Use CHAR_BIT rather than 8, for clarity.
80364         * lib/regexec.c (check_dst_limits_calc_pos_1):
80365         (check_subexp_matching_top): Likewise.
80366         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80367         have to worry about portability issues when shifting it left.
80368         Remove no-longer-needed test for table_size > 0.
80369         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80370         in a word, as the resulting behavior is undefined.
80371         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80372         in one case, a <= should have been an <, and in another case the
80373         whole test was missing.
80374         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80375         the standard name CHAR_BIT.
80376         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80377         this is not true on one's complement and signed-magnitude hosts.
80378
80379         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80380         next_last_offset.
80381         (struct re_dfa_t): Remove unused member states_alloc.
80382         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80383
80384 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80385
80386         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80387         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80388         and large-file glibc and in 32-bit large-file Solaris.
80389
80390 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80391
80392         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80393         lengths fit in regoff_t; this isn't true if regoff_t is the same
80394         width as size_t.
80395         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80396         (= START + RANGE) instead of RANGE.  This avoids overflow
80397         problems when regoff_t is the same width as size_t.
80398         All callers changed.
80399         (re_search_2_stub): Check for overflow when adding the
80400         sizes of the two strings.
80401         (re_search_stub): Check for overflow when adding START
80402         to RANGE; if it occurs, substitute the extreme value.
80403
80404 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80405
80406         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80407
80408 2005-08-31  Jim Meyering  <jim@meyering.net>
80409
80410         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80411         a pointer-to-const.
80412         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80413         (register_state): Likewise.
80414         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80415         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80416         (group_nodes_into_DFAstates): Likewise.
80417
80418 2005-08-31  Jim Meyering  <jim@meyering.net>
80419
80420         * check-module: Add a FIXME comment.
80421
80422 2005-08-31  Eric Blake  <ebb9@byu.net>
80423
80424         * modules/unistd-safer (Files): Add unistd--.h.
80425         * modules/stdio-safer (Files): Add stdio--.h.
80426
80427 2005-08-31  Derek Price  <derek@ximbiot.com>
80428
80429         * lib/getdelim.c (getdelim): Return EOF on EOF.
80430         Reported by Larry Jones <lawrence.jones@ugs.com>.
80431
80432 2005-08-31  Bruno Haible  <bruno@clisp.org>
80433
80434         Avoid unnecessary diffs in the generated lib/Makefile.am.
80435         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80436         the generated files.
80437         (func_import): Don't set cmd.
80438
80439 2005-08-31  Bruno Haible  <bruno@clisp.org>
80440
80441         * lib/strstr.c: Include <stddef.h>, for NULL.
80442         * lib/strcasestr.c: Likewise.
80443         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80444
80445 2005-08-31  Bruno Haible  <bruno@clisp.org>
80446
80447         * gnulib-tool: New option --macro-prefix.
80448         (func_import): Use macro_prefix.
80449         (import): Handle option --macro-prefix.
80450
80451 2005-08-31  Bruno Haible  <bruno@clisp.org>
80452
80453         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80454         Also use new variables cached_lgpl, cached_libtool.
80455
80456 2005-08-31  Bruno Haible  <bruno@clisp.org>
80457
80458         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80459         always instantiating them.
80460
80461 2005-08-31  Bruno Haible  <bruno@clisp.org>
80462
80463         * gnulib-tool (func_import): Read the previous cached settings
80464         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80465         earlier added by gnulib but are now dropped. Warn when a gnulib file
80466         overwrites a non-gnulib file.
80467
80468 2005-08-31  Bruno Haible  <bruno@clisp.org>
80469
80470         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80471         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80472         projects that don't keep autogenerated files in CVS. Put into
80473         actioncmd only the specified modules, not the transitive closure.
80474
80475 2005-08-31  Bruno Haible  <bruno@clisp.org>
80476
80477         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80478         Create directories that shall be filled.
80479         (import): Don't look for gl_* macros in configure.ac. Recurse across
80480         all directories containing a gnulib-cache.m4 files, if meaningful.
80481
80482 2005-08-31  Bruno Haible  <bruno@clisp.org>
80483
80484         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80485         (import): Set seen_libtool when we see gl_LIBTOOL.
80486
80487 2005-08-31  Bruno Haible  <bruno@clisp.org>
80488
80489         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80490         declaration macro definitions from generated gnulib.m4.
80491
80492 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80493
80494         * lib/iconvme.h: Add prototype for iconv_alloc.
80495
80496 2005-08-29  Simon Josefsson  <jas@extundo.com>
80497
80498         * lib/iconvme.c: Fix errno.
80499
80500 2005-08-29  Bruno Haible  <bruno@clisp.org>
80501
80502         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80503         that it works when the directory contains spaces.
80504
80505 2005-08-29  Bruno Haible  <bruno@clisp.org>
80506
80507         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80508
80509 2005-08-29  Bruno Haible  <bruno@clisp.org>
80510
80511         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80512         Emit more advice.
80513
80514 2005-08-29  Bruno Haible  <bruno@clisp.org>
80515         and Stepan Kasal  <kasal@ucw.cz>
80516
80517         * check-module: If more parameters are given, check each of them
80518         separately; add more exceptions, as noted by Jim Meyering.
80519         (check_module): New procedure.
80520         (%exempt_header): Now contains all exceptions.
80521
80522 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80523
80524         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80525
80526 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80527
80528         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80529
80530 2005-08-28  Bruno Haible  <bruno@clisp.org>
80531
80532         * m4/gnulib-tool.m4: New file.
80533
80534 2005-08-27  Jim Meyering  <jim@meyering.net>
80535
80536         * modules/unistd-safer (Files): Add pipe-safer.c.
80537         * modules/fcntl-safer (Files): Add creat-safer.c.
80538
80539 2005-08-27  Jim Meyering  <jim@meyering.net>
80540
80541         * m4/stdlib-safer.m4: New file.  From coreutils.
80542         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80543         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80544         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80545         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80546         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80547
80548 2005-08-27  Jim Meyering  <jim@meyering.net>
80549
80550         * lib/fopen-safer.c: Merge minor changes from coreutils.
80551         * lib/dup-safer.c: Likewise.
80552         * lib/fd-safer.c: Likewise.
80553
80554         Merge from coreutils.
80555         * lib/stdio--.h: New file.
80556         * lib/stdlib--.h: New file.
80557         * lib/mkstemp-safer.c: New file.
80558
80559         GNU tar needs these.
80560         * lib/pipe-safer.c: New file.
80561         * lib/creat-safer.c: New file.
80562         * lib/fcntl--.h (creat): Define to creat_safer.
80563         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80564         * lib/unistd--.h (pipe): Define to pipe_safer.
80565         * lib/unistd-safer.h: Declare pipe_safer.
80566
80567 2005-08-26  Simon Josefsson  <jas@extundo.com>
80568
80569         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80570         Haible <bruno@clisp.org>.
80571
80572 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80573
80574         * lib/regex_internal.h: Remove all references to
80575         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80576         or better.
80577         (bitset_not, bitset_merge, bitset_not_merge):
80578         (bitset_mask, re_string_allocate, re_string_construct):
80579         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80580         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80581         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80582         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80583         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80584         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80585         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80586         (re_acquire_state_context):
80587         Remove unnecessary forward decls.
80588         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80589         Put __attribute at function definition,
80590         now that the function decl has been removed.
80591         * lib/regex_internal.c (re_string_peek_byte_case):
80592         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80593         Likewise.
80594
80595 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80596
80597         * m4/regex.m4: Add AC_PREREQ(2.50).
80598         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80599
80600 2005-08-25  Simon Josefsson  <jas@extundo.com>
80601
80602         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80603         __fsetlocking.
80604
80605 2005-08-25  Simon Josefsson  <jas@extundo.com>
80606
80607         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80608         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80609         GLIBC specific code.
80610
80611 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80612
80613         Make regex safe for g++.  This fixes one real bug (an "err"
80614         that should have been "*err").  g++ problem reported by
80615         Sam Steingold.
80616         * lib/regex_internal.h (re_calloc): New macro, consistent with
80617         re_malloc etc.  All callers of calloc changed to use re_calloc.
80618         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80619         not int.  All callers changed.
80620         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80621         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80622         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80623         (find_recover_state): Change "err" to "*err"; this fixes what
80624         appears to be a real bug.
80625         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80626         versus int.
80627
80628 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80629
80630         * modules/regex (Depends-on): Add malloc, since the code
80631         assumes that !malloc(0) means failure.
80632
80633 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80634
80635         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80636
80637         alloca modernization/simplification for regex.
80638         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80639         needs to be at the start of the file, and can be moved into
80640         regex_internal.h and simplified.
80641         * lib/regex_internal.h: Include <alloca.h>.
80642         (__libc_use_alloca) [!defined _LIBC]: New macro.
80643         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80644         now works outside glibc.
80645
80646 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80647
80648         * config/srclist.txt: Add glibc bugs 1241, 1245.
80649
80650 2005-08-25  Jim Meyering  <jim@meyering.net>
80651
80652         * lib/open-safer.c: Include <config.h>.
80653         Otherwise, we'd lose LARGEFILE support in any file using
80654         e.g. "fcntl--.h"
80655
80656 2005-08-25  Bruno Haible  <bruno@clisp.org>
80657
80658         * m4/minmax.m4: Require autoconf 2.52.
80659         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80660         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80661         alternatives of translit over the alphabet.
80662         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80663
80664 2005-08-24  Simon Josefsson  <jas@extundo.com>
80665
80666         * tests/test-getpass.c: New file.
80667
80668 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80669
80670         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80671         for GNU regex features.
80672
80673 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80674
80675         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80676         * lib/regex.h (regerror): Likewise.
80677
80678         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80679         requires this.  (The code never needed it.)
80680
80681         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80682         All uses of recently-renamed identifiers changed to use the new,
80683         POSIX-compliant names.  The code will build and run just fine
80684         without these changes, but it's better to eat our own dog food
80685         and use the standard-conforming names.
80686
80687         * lib/regex.h: Fix a multitude of POSIX name space violations.
80688         These changes have an effect only for programs that define
80689         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80690         do not change anything for programs compiled in the normal way.
80691         Also, there is no effect on the ABI.
80692
80693         (_REGEX_SOURCE): New macro.
80694         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80695         defined and _GNU_SOURCE is not; this fixes a name space violation.
80696
80697         Rename the following macros to obey POSIX requirements.
80698         The old names are still visible as macros if _REGEX_SOURCE is defined.
80699         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80700         RE_BACKSLASH_ESCAPE_IN_LISTS.
80701         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80702         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80703         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80704         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80705         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80706         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80707         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80708         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80709         (REG_INTERVALS): renamed from RE_INTERVALS.
80710         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80711         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80712         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80713         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80714         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80715         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80716         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80717         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80718         RE_UNMATCHED_RIGHT_PAREN_ORD.
80719         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80720         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80721         (REG_DEBUG): renamed from RE_DEBUG.
80722         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80723         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80724         unusual, since we can't clash with the POSIX REG_ICASE.
80725         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80726         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80727         (REG_NO_SUB): renamed from RE_NO_SUB.
80728         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80729         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80730         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80731         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80732         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80733         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80734         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80735         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80736         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80737         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80738         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80739         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80740         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80741         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80742         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80743         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80744         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80745         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80746         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80747         (REG_FIXED): Renamed from REGS_FIXED.
80748         (REG_NREGS): Renamed from RE_NREGS.
80749
80750         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80751         of other REG_* macros, since POSIX says the user is allowed to
80752         #undef these macros selectively.
80753
80754         (reg_errcode_t): Update comment stating what other tables need
80755         to be consistent.
80756
80757         Rename the following enum values to obey POSIX requirements.
80758         The old names are still visible as macros.
80759         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80760         is not defined, since GNU is supposed to be a superset of POSIX as
80761         much as possible, and since we want reg_errcode_t to be a signed
80762         type for implementation consistency.
80763         (_REG_NOERROR): Renamed from REG_NOERROR.
80764         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80765         (_REG_BADPAT): Renamed from REG_BADPAT.
80766         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80767         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80768         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80769         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80770         (_REG_EBRACK): Renamed from REG_EBRACK.
80771         (_REG_EPAREN): Renamed from REG_EPAREN.
80772         (_REG_EBRACE): Renamed from REG_EBRACE.
80773         (_REG_BADBR): Renamed from REG_BADBR.
80774         (_REG_ERANGE): Renamed from REG_ERANGE.
80775         (_REG_ESPACE): Renamed from REG_ESPACE.
80776         (_REG_BADRPT): Renamed from REG_BADRPT.
80777         (_REG_EEND): Renamed from REG_EEND.
80778         (_REG_ESIZE): Renamed from REG_ESIZE.
80779         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80780         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80781         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80782         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80783         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80784
80785         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80786         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80787         changed.  But support the old name if the new one is not defined
80788         and if _REGEX_SOURCE.
80789
80790         Change the following member names in struct re_pattern_buffer.
80791         The old names are still supported if !_REGEX_SOURCE.
80792         The new names are always supported, regardless of _REGEX_SOURCE.
80793         (re_buffer): Renamed from buffer.
80794         (re_allocated): Renamed from allocated.
80795         (re_used): Renamed from used.
80796         (re_syntax): Renamed from syntax.
80797         (re_fastmap): Renamed from fastmap.
80798         (re_translate): Renamed from translate.
80799         (re_can_be_null): Renamed from can_be_null.
80800         (re_regs_allocated): Renamed from regs_allocated.
80801         (re_fastmap_accurate): Renamed from fastmap_accurate.
80802         (re_no_sub): Renamed from no_sub.
80803         (re_not_bol): Renamed from not_bol.
80804         (re_not_eol): Renamed from not_eol.
80805         (re_newline_anchor): Renamed from newline_anchor.
80806
80807         Change the following member names in struct re_registers.
80808         The old names are still supported if !_REGEX_SOURCE.
80809         The new names are always supported, regardless of _REGEX_SOURCE.
80810         (rm_num_regs): Renamed from num_regs.
80811         (rm_start): Renamed from start.
80812         (rm_end): Renamed from end.
80813
80814         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80815         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80816         Prepend __ to parameter names.
80817
80818         Undo yesterday's changes.
80819
80820 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80821
80822         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80823         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80824         lib/regex.c.
80825
80826 2005-08-24  Jim Meyering  <jim@meyering.net>
80827
80828         Sync from coreutils.
80829         * m4/fcntl-safer.m4: New file.
80830
80831         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80832         and object files for this module.
80833
80834 2005-08-24  Jim Meyering  <jim@meyering.net>
80835
80836         Sync from coreutils.
80837         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80838
80839 2005-08-24  Jim Meyering  <jim@meyering.net>
80840
80841         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80842         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80843
80844 2005-08-24  Jim Meyering  <jim@meyering.net>
80845
80846         * modules/fcntl-safer: New module.
80847         * modules/fts (Depends-on): Add fcntl-safer.
80848         * MODULES.html.sh (File descriptor based Input/Output):
80849         Add fcntl-safer.
80850
80851 2005-08-24  Bruno Haible  <bruno@clisp.org>
80852
80853         Support for unit test modules.
80854         * modules/README: Mention tests modules.
80855         * modules/TEMPLATE-TESTS: New file.
80856         * gnulib-tool: New options --extract-tests-module, --with-tests and
80857         --tests-base (unused for the moment).
80858         (testsbase, inctests): New variables.
80859         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80860         (func_verify_module): Exclude TEMPLATE-TESTS.
80861         (func_verify_nontests_module, func_verify_tests_module): New functions.
80862         (func_get_dependencies): Add implicit dependency for tests modules.
80863         (func_get_tests_module): New function.
80864         (func_modules_transitive_closure): When --with-tests was specified,
80865         include the unit tests as well, unless explicitly avoided.
80866         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80867         (func_emit_tests_Makefile_am): New function.
80868         (func_create_testdir): When --with-tests was specified, emit a
80869         tests/ directory.
80870         * MODULES.html.sh (Future developments): Update.
80871
80872 2005-08-24  Bruno Haible  <bruno@clisp.org>
80873
80874         * modules/tls-tests: New file.
80875         * tests/test-tls.c: New file, from GNU gettext.
80876
80877 2005-08-24  Bruno Haible  <bruno@clisp.org>
80878
80879         * modules/lock-tests: New file.
80880         * tests/test-lock.c: New file, from GNU gettext.
80881
80882 2005-08-24  Bruno Haible  <bruno@clisp.org>
80883
80884         * lib/lock.h: Add multiple inclusion guard.
80885         * lib/tls.h: Add multiple inclusion guard.
80886
80887 2005-08-24  Bruno Haible  <bruno@clisp.org>
80888
80889         * gnulib-tool: Add support for the --aux-dir option to
80890         --create-testdir, --create-megatestdir, --test, --megatest.
80891         (func_create_testdir, func_create_megatestdir): Optionally emit a
80892         AC_CONFIG_AUX_DIR directive.
80893         (create-testdir, create-megatestdir, test, megatest): Provide a
80894         default value for $auxdir.
80895
80896 2005-08-24  Bruno Haible  <bruno@clisp.org>
80897
80898         * gnulib-tool (import): Use compound statement instead of subshell
80899         where possible.
80900
80901 2005-08-24  Bruno Haible  <bruno@clisp.org>
80902
80903         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80904
80905 2005-08-24  Bruno Haible  <bruno@clisp.org>
80906
80907         * gnulib-tool (func_version): Update.
80908
80909 2005-08-24  Bruno Haible  <bruno@clisp.org>
80910
80911         * gnulib-tool (func_import, func_create_testdir,
80912         func_create_megatestdir): Quote all autoconf macro arguments.
80913
80914 2005-08-24  Bruno Haible  <bruno@clisp.org>
80915
80916         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80917         option --force, because --force causes the aclocal.m4 of each
80918         subdirectory to be newer than the corresponding config.h.in.
80919
80920 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80921
80922         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80923         All contents moved to gl_REGEX.
80924         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80925         assume that it does.
80926
80927 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80928
80929         * lib/regex.h (REG_NOSYS)
80930         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80931         Define, since POSIX requires it as of 2001.
80932         (_REG_ENOSYS)
80933         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80934         New private symbol, used to keep the enum signed in all cases.
80935         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80936         Youngman in
80937         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80938
80939         * lib/regex_internal.c (re_string_skip_chars, register_state):
80940         (calc_state_hash):
80941         Remove forward decls; no longer needed now that we use prototypes.
80942         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80943         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80944         (clean_state_log_if_needed): Likewise.
80945
80946 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80947
80948         * config/srclist.txt: Add glibc bugs 1231-1233.
80949
80950 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80951
80952         Fix problems reported by Sam Steingold in
80953         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80954         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80955         assumed that reg_errcode_t is a signed type, which is not
80956         necessarily true if _XOPEN_SOURCE is not defined.
80957         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80958         since some compilers warn about it otherwise.
80959
80960 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80961
80962         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80963         (init_word_char, create_initial_state, duplicate_node_closure):
80964         (fetch_token, peek_token_bracket, build_range_exp):
80965         (build_collating_symbol): Remove forward decls; no longer needed
80966         now that we use prototypes.
80967
80968         * lib/regcomp.c:
80969         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80970         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80971         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80972         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80973         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80974         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80975         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80976         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80977         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80978         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80979         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80980         (build_charclass, build_charclass_op, fetch_number, create_tree):
80981         (create_token_tree, mark_opt_subexp, duplicate_tree):
80982         Use prototypes rather than old-style definitions.
80983
80984         * lib/regex_internal.c:
80985         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80986         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80987         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80988         (re_string_reconstruct, re_string_peek_byte_case):
80989         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80990         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80991         (re_node_set_init_copy, re_node_set_add_intersect):
80992         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80993         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80994         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80995         (re_acquire_state, re_acquire_state_context, register_state):
80996         (create_ci_newstate, create_cd_newstate, free_state):
80997         Likewise.
80998         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80999         re_search_2):
81000         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81001         (re_search_internal, prune_impossible_nodes):
81002         (acquire_init_state_context, check_matching, static):
81003         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81004         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81005         (update_regs, sift_states_backward, build_sifted_states):
81006         (clean_state_log_if_needed, merge_state_array):
81007         (update_cur_sifted_state, add_epsilon_src_nodes):
81008         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81009         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81010         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81011         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81012         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81013         (check_arrival, check_arrival_add_next_nodes):
81014         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81015         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81016         (check_node_accept_bytes, check_node_accept, extend_buffers):
81017         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81018         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81019         (sift_ctx_init):
81020         Likewise.
81021
81022         * lib/regex_internal.h:
81023         (re_string_allocate, re_string_construct, re_string_reconstruct):
81024         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81025         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81026         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81027         (re_string_context_at, re_string_peek_byte_case):
81028         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81029         is defined, since we now use prototypes always.
81030
81031         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81032         C89 or better.  All uses removed.
81033
81034 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81035
81036         * config/srclist.txt: Add glibc bugs 1220-1227.
81037
81038 2005-08-20  Jim Meyering  <jim@meyering.net>
81039
81040         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81041         of unused local, dfa.
81042
81043 2005-08-20  Bruno Haible  <bruno@clisp.org>
81044
81045         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81046
81047 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81048
81049         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81050         (re_node_set_insert_last, re_dfa_add_node):
81051         Rename local variables to avoid GCC shadowing warnings.
81052
81053 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81054
81055         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81056         [defined lint]: Suppress bogus uninitialized-variable warnings.
81057
81058         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81059         and let the caller return REG_ESPACE if out of space.  This
81060         removes an uninitialied-variable warning with GCC 4.0.1, and also
81061         avoids taking the address of a local variable.  All callers
81062         changed.
81063
81064 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81065
81066         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81067         $LIBCSRC/posix/regexec.c.
81068         Add glibc bug 1217 for regcomp.c.
81069
81070 2005-08-19  Jim Meyering  <jim@meyering.net>
81071
81072         * lib/regexec.c (proceed_next_node): Redo local variables to
81073         avoid GCC shadowing warnings.
81074
81075 2005-08-18  Bruno Haible  <bruno@clisp.org>
81076
81077         * lib/strstr.c (strstr): Fix return value in multibyte case.
81078         * lib/strcasestr.c (strcasestr): Likewise.
81079
81080 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81081
81082         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81083
81084 2005-08-17  Jim Meyering  <jim@meyering.net>
81085
81086         Make the %s format (seconds since the epoch) work for a negative
81087         number and when used with a zero-padded field width, e.g. %015s.
81088
81089         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81090         label so that it precedes the code to set `digits'.  Otherwise,
81091         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81092         print `00-22'.  Now, it prints `-0022', as it should.
81093
81094 2005-08-17  Bruno Haible  <bruno@clisp.org>
81095
81096         * modules/strstr (Files): Add m4/mbrtowc.m4.
81097         (Depends-on): Add mbuiter.
81098
81099 2005-08-17  Bruno Haible  <bruno@clisp.org>
81100
81101         * modules/strcasestr: New file.
81102         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81103         strcasestr.
81104
81105 2005-08-17  Bruno Haible  <bruno@clisp.org>
81106
81107         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81108
81109 2005-08-17  Bruno Haible  <bruno@clisp.org>
81110
81111         * modules/mbuiter: New file.
81112         * MODULES.html.sh (Extended multibyte and wide character utilities):
81113         Add mbuiter.
81114
81115 2005-08-17  Bruno Haible  <bruno@clisp.org>
81116
81117         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81118         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81119
81120 2005-08-17  Bruno Haible  <bruno@clisp.org>
81121
81122         * m4/strcasestr.m4: New file.
81123
81124 2005-08-17  Bruno Haible  <bruno@clisp.org>
81125
81126         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81127         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81128
81129 2005-08-17  Bruno Haible  <bruno@clisp.org>
81130
81131         * lib/strcasestr.h: New file.
81132         * lib/strcasestr.c: New file.
81133
81134 2005-08-17  Bruno Haible  <bruno@clisp.org>
81135
81136         * lib/strcasecmp.c: Use mbuiter.h.
81137
81138 2005-08-17  Bruno Haible  <bruno@clisp.org>
81139
81140         * lib/mbuiter.h: New file.
81141
81142 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81143
81144         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81145         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81146         and gl_GETOPT are both invoked via different paths (as happens
81147         with GNU tar CVS because it uses both argp and getopt), the former
81148         wins.
81149
81150 2005-08-16  Bruno Haible  <bruno@clisp.org>
81151
81152         * modules/tls: New file.
81153         * MODULES.html.sh (Multithreading): Add tls.
81154
81155 2005-08-16  Bruno Haible  <bruno@clisp.org>
81156
81157         * modules/strnlen1: New file.
81158         * MODULES.html.sh (String handling): Add strnlen1.
81159
81160 2005-08-16  Bruno Haible  <bruno@clisp.org>
81161
81162         * modules/strcase (Files): Add m4/mbrtowc.m4.
81163         (Depends-on): Add strnlen1, mbchar.
81164
81165 2005-08-16  Bruno Haible  <bruno@clisp.org>
81166
81167         * modules/mbiter: New file.
81168         * MODULES.html.sh (Extended multibyte and wide character utilities):
81169         Add mbiter.
81170
81171 2005-08-16  Bruno Haible  <bruno@clisp.org>
81172
81173         * modules/mbfile: New file.
81174         * MODULES.html.sh (Extended multibyte and wide character utilities):
81175         Add mbfile.
81176
81177 2005-08-16  Bruno Haible  <bruno@clisp.org>
81178
81179         * modules/mbchar: New file.
81180         * MODULES.html.sh (Extended multibyte and wide character utilities):
81181         New section.
81182
81183 2005-08-16  Bruno Haible  <bruno@clisp.org>
81184
81185         * m4/tls.m4: New file, from GNU gettext.
81186
81187 2005-08-16  Bruno Haible  <bruno@clisp.org>
81188
81189         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81190         always.
81191         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81192
81193 2005-08-16  Bruno Haible  <bruno@clisp.org>
81194
81195         * m4/mbiter.m4: New file.
81196
81197 2005-08-16  Bruno Haible  <bruno@clisp.org>
81198
81199         * m4/mbfile.m4: New file.
81200
81201 2005-08-16  Bruno Haible  <bruno@clisp.org>
81202
81203         * m4/mbchar.m4: New file.
81204
81205 2005-08-16  Bruno Haible  <bruno@clisp.org>
81206
81207         * lib/tls.h: New file, from GNU gettext.
81208         * lib/tls.c: New file, from GNU gettext.
81209
81210 2005-08-16  Bruno Haible  <bruno@clisp.org>
81211
81212         * lib/strnlen1.h: New file.
81213         * lib/strnlen1.c: New file.
81214
81215 2005-08-16  Bruno Haible  <bruno@clisp.org>
81216
81217         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81218         (mbi_init): Update.
81219         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81220         NUL byte, not after it.
81221
81222 2005-08-16  Bruno Haible  <bruno@clisp.org>
81223
81224         * lib/strcase.h (strcasecmp): Add note in comments.
81225         * lib/strncasecmp.c: Use code from strcasecmp.c.
81226         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81227         (strcasecmp): Work correctly in multibyte locales.
81228
81229 2005-08-16  Bruno Haible  <bruno@clisp.org>
81230
81231         * lib/mbiter.h: New file.
81232
81233 2005-08-16  Bruno Haible  <bruno@clisp.org>
81234
81235         * lib/mbfile.h: New file.
81236
81237 2005-08-16  Bruno Haible  <bruno@clisp.org>
81238
81239         * lib/mbchar.h: New file.
81240         * lib/mbchar.c: New file.
81241
81242 2005-08-16  Bruno Haible  <bruno@clisp.org>
81243
81244         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81245         the valid ones. Makes the comparison operations transitive:
81246         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81247         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81248
81249 2005-08-15  Simon Josefsson  <jas@extundo.com>
81250
81251         * modules/ssize_t (License): Change to 'unlimited'.
81252
81253         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81254
81255 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81256
81257         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81258         Add comments for each pending glibc patch.
81259
81260 2005-08-15  Bruno Haible  <bruno@clisp.org>
81261
81262         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81263         __cplusplus is defined.
81264
81265 2005-08-14  Jim Meyering  <jim@meyering.net>
81266
81267         Sync from coreutils.
81268
81269         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81270         Use the hash-table-based cycle-detection code not just when
81271         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81272         Reported by James Youngman in
81273         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81274         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81275         FTS_TIGHT_CYCLE_CHECK.
81276         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81277         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81278         once again.
81279         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81280         * lib/fts.c (fd_safer): Remove decl.
81281         Include fcntl--.h rather than unistd-safer.h
81282         (fts_safe_changedir): Don't call fd_safer; no longer needed
81283         now that we include fcntl--.h.
81284
81285 2005-08-12  Simon Josefsson  <jas@extundo.com>
81286
81287         * modules/getndelim2: Use ssize_t module.
81288         * modules/getnline: Likewise.
81289         * modules/safe-read: Likewise.
81290         * modules/xreadlink: Likewise.
81291
81292         * modules/ssize_t: New file.
81293
81294 2005-08-12  Simon Josefsson  <jas@extundo.com>
81295
81296         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81297
81298 2005-08-12  Simon Josefsson  <jas@extundo.com>
81299
81300         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81301         ssize_t.
81302
81303 2005-08-12  Simon Josefsson  <jas@extundo.com>
81304
81305         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81306         readline, getdelim and check_version.
81307         (Support for systems lacking ISO C 99: Sizes of integer types):
81308         Add size_max.
81309
81310 2005-08-12  Bruno Haible  <bruno@clisp.org>
81311
81312         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81313
81314 2005-08-11  Simon Josefsson  <jas@extundo.com>
81315
81316         * modules/readline: New file.
81317
81318         * modules/strnlen (Files): Add strnlen.h.
81319
81320 2005-08-11  Simon Josefsson  <jas@extundo.com>
81321
81322         * m4/readline.m4: New file.
81323
81324 2005-08-11  Simon Josefsson  <jas@extundo.com>
81325
81326         * lib/readline.h, readline.c: New file.
81327
81328 2005-08-11  Simon Josefsson  <jas@extundo.com>
81329
81330         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81331         gl_AVOID.
81332
81333 2005-08-11  Bruno Haible  <bruno@clisp.org>
81334
81335         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81336
81337 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81338
81339         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81340
81341 2005-08-10  Simon Josefsson  <jas@extundo.com>
81342
81343         * tests/test-iconvme.c: New file.
81344
81345 2005-08-10  Simon Josefsson  <jas@extundo.com>
81346
81347         * m4/strnlen.m4: New file.
81348
81349         * m4/strndup.m4: Don't check for strnlen declaration, done in
81350         strnlen.m4.
81351
81352 2005-08-10  Simon Josefsson  <jas@extundo.com>
81353
81354         * lib/strndup.c: Use strnlen.h.
81355
81356         * lib/strnlen.h: New file.
81357
81358 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81359
81360         * README: Typos.
81361
81362 2005-08-02  Simon Josefsson  <jas@extundo.com>
81363
81364         * modules/readline: New file.
81365
81366 2005-08-02  Simon Josefsson  <jas@extundo.com>
81367
81368         * modules/getdelim: New file.
81369
81370         * modules/getline: Rewrite, don't use getndelim2.
81371
81372 2005-08-02  Simon Josefsson  <jas@extundo.com>
81373
81374         * m4/getline.m4: Separate out getdelim stuff into separate module.
81375
81376         * m4/getdelim.m4: New file.
81377
81378 2005-08-02  Simon Josefsson  <jas@extundo.com>
81379
81380         * lib/getline.h, getline.c: Rewrite.
81381
81382         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81383
81384 2005-07-31  Bruno Haible  <bruno@clisp.org>
81385
81386         * lib/lock.h (gl_lock_initializer): New macro.
81387         (gl_lock_define_initialized): Use it.
81388         (gl_rwlock_initializer): New macro.
81389         (gl_rwlock_define_initialized): Use it.
81390         (gl_recursive_lock_initializer): New macro.
81391         (gl_recursive_lock_define_initialized): Use it.
81392
81393 2005-07-30  Karl Berry  <karl@gnu.org>
81394
81395         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81396         Report from Ben Pfaff, regarding getopt.
81397
81398 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81399
81400         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81401         normal way.
81402         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81403         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81404         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81405         (gl_GETOPT): Use the new macros.  Most of the implementation
81406         is moved to the new macros.  This is for programs like Emacs
81407         that don't want all the functionality of gl_GETOPT.
81408
81409 2005-07-26  Bruno Haible  <bruno@clisp.org>
81410
81411         * m4/lock.m4: Update from GNU gettext.
81412
81413 2005-07-26  Bruno Haible  <bruno@clisp.org>
81414
81415         * lib/lock.h: Update from GNU gettext.
81416         * lib/lock.c: Update from GNU gettext.
81417
81418 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81419
81420         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81421         obsolescent AC_TRY_RUN.  Include the default includes files, for
81422         'exit'.
81423
81424 2005-07-24  Bruno Haible  <bruno@clisp.org>
81425
81426         * modules/visibility: New file.
81427         * MODULES.html.sh (Misc): Add visibility.
81428
81429 2005-07-24  Bruno Haible  <bruno@clisp.org>
81430
81431         * m4/visibility.m4: New file.
81432
81433 2005-07-24  Bruno Haible  <bruno@clisp.org>
81434
81435         * doc/visibility.texi: New file.
81436
81437 2005-07-22  Bruno Haible  <bruno@clisp.org>
81438
81439         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81440         $(ALLOCA_H), redundant through BUILT_SOURCES.
81441         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81442         redundant through BUILT_SOURCES.
81443         * modules/byteswap (Makefile.am): Remove explicit dependency on
81444         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81445         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81446         $(FNMATCH_H), redundant through BUILT_SOURCES.
81447         * modules/getopt (Makefile.am): Remove explicit dependency on
81448         $(GETOPT_H), redundant through BUILT_SOURCES.
81449         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81450         redundant through BUILT_SOURCES.
81451         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81452         redundant through BUILT_SOURCES.
81453         * modules/stdbool (Makefile.am): Remove explicit dependency on
81454         $(STDBOOL_H), redundant through BUILT_SOURCES.
81455         * modules/stdint (Makefile.am): Remove explicit dependency on
81456         $(STDINT_H), redundant through BUILT_SOURCES.
81457         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81458         Remove explicit dependency on $(SYSEXITS_H).
81459         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81460
81461 2005-07-18  Simon Josefsson  <jas@extundo.com>
81462
81463         * lib/check-version.c (check_version): Accept identical versions too.
81464
81465 2005-07-18  Bruno Haible  <bruno@clisp.org>
81466
81467         * modules/lock: New file.
81468         * MODULES.html.sh (Multithreading): New section.
81469
81470 2005-07-18  Bruno Haible  <bruno@clisp.org>
81471
81472         * m4/lock.m4: New file, from GNU gettext.
81473
81474 2005-07-18  Bruno Haible  <bruno@clisp.org>
81475
81476         * lib/lock.h: New file, from GNU gettext.
81477         * lib/lock.c: New file, from GNU gettext.
81478
81479 2005-07-18  Bruno Haible  <bruno@clisp.org>
81480
81481         * lib/lock.h (gl_once_t): New type.
81482         (gl_once_define, gl_once): New macros.
81483         * lib/lock.c (fresh_once): New variable.
81484         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81485         functions.
81486
81487 2005-07-16  Simon Josefsson  <jas@extundo.com>
81488
81489         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81490         workaround, suggested by Bruno.
81491
81492 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81493
81494         * modules/xalloc (Depends-on): Add xalloc-die.
81495         * modules/xvasprintf (Depends-on): Add xalloc-die.
81496
81497 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81498
81499         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81500         with a minor change.
81501
81502 2005-07-15  Bruno Haible  <bruno@clisp.org>
81503
81504         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81505         When using lib/poll.c, define poll as rpl_poll.
81506
81507 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81508
81509         * modules/argp (Depends-on): Remove unlocked-io.
81510
81511 2005-07-14  Derek Price  <derek@ximbiot.com>
81512
81513         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81514         for glob symlink bug.
81515
81516 2005-07-14  Bruno Haible  <bruno@clisp.org>
81517
81518         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81519         Instead, test for *_unlocked function declarations directly.
81520
81521 2005-07-11  Simon Josefsson  <jas@extundo.com>
81522
81523         * modules/size_max: New file.
81524
81525         * modules/xsize: Depend on size_max module for size_max.m4.
81526
81527 2005-07-11  Simon Josefsson  <jas@extundo.com>
81528
81529         * lib/size_max.h: New file.
81530
81531 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81532
81533         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81534         copyright symbol and the year.
81535         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81536         (version_etc_va): Use parameterized copyright notice.
81537         Reword to conform to the current GNU coding standards.
81538
81539 2005-07-11  Karl Berry  <karl@gnu.org>
81540
81541         * doc/gnulib.texi (Quoting): new node.
81542         (Initial import): more info, from Patrice.
81543
81544 2005-07-11  Bruno Haible  <bruno@clisp.org>
81545
81546         * gnulib-tool (func_usage): Document option --avoid.
81547         (Command line options): Handle --avoid.
81548         (func_acceptable): New function.
81549         (func_modules_transitive_closure): Use it.
81550
81551 2005-07-11  Bruno Haible  <bruno@clisp.org>
81552
81553         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81554         Reported by Jim Meyering.
81555
81556 2005-07-10  Bruno Haible  <bruno@clisp.org>
81557
81558         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81559         Needed when size_t is smaller than 'unsigned int'.
81560         Reported by Paul Eggert.
81561
81562 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81563
81564         * modules/argp (Depends-on): Add unlocked-io
81565
81566 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81567
81568         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81569         block of defines.
81570
81571 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81572
81573         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81574         fix now.
81575
81576 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81577         and Paul Eggert  <eggert@cs.ucla.edu>
81578
81579         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81580         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81581
81582 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81583
81584         * modules/regex (Files): Add lib/regex_internal.c,
81585         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81586         (Depends-on): Add extensions.
81587         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81588
81589 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81590
81591         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81592         pathconf.
81593         * m4/same.m4 (gl_SAME): Likewise.
81594         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81595
81596         * m4/regex.m4: Adjust to new libc regex implementation.
81597         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81598         all the .c and .h parts of (the new) regex.
81599         Quote the m4 stuff better.
81600         Check for RE_ICASE bug of old gnulib.
81601         Check for REG_STARTEND of recent libc.
81602         Rename local variables from jm_* to gl_*.
81603         Quote operand of "test -f".
81604         Say "recent enough" version of libc, not "version 2".
81605         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81606         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81607         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81608         Remove check for btowc, isascii.
81609         Require AM_LANGINFO_CODESET.
81610
81611 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81612
81613         * lib/regex.c, regex.h: Sync from libc.
81614         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81615         * lib/regexec.c:
81616         New files, synced from libc, except that regex_internal.h
81617         currently has a small porting fix.
81618
81619 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81620
81621         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81622         regex_internal.c, regexec.c.
81623         Add regex_internal.h too, but as a comment, since the libc version
81624         is currently broken in gnulib mode.
81625
81626 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81627
81628         Support programs like Emacs that use gnulib but not gettext.
81629         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81630         * modules/gettext-h: New file.
81631         * modules/gettext (Files): Remove lib/gettext.h.
81632         (Depends-on): Add gettext-h.
81633         (Makefile.am): Remove lib_SOURCES.
81634         * modules/argmatch, modules/c-stack, modules/closeout:
81635         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81636         * modules/execute, modules/file-type, modules/getaddrinfo:
81637         * modules/getopt, modules/human, modules/javacomp:
81638         * modules/javaexec, modules/mkdir-p, modules/obstack:
81639         * modules/openat, modules/pagealign_alloc, modules/pipe:
81640         * modules/quotearg, modules/regex, modules/rpmatch:
81641         * modules/unicodeio, modules/userspec, modules/version-etc:
81642         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81643         * modules/xsetenv:
81644         Depend on gettext-h, not gettext.
81645
81646 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81647
81648         * gnulib-tool (func_import): Add support for 'public domain' license.
81649         * modules/alloca, modules/atexit, modules/memmove:
81650         Now public domain, not GPL.
81651         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81652         * modules/realloc, modules/strerror, modules/strtod:
81653         Now LGPL, not GPL.
81654
81655 2005-07-05  Bruno Haible  <bruno@clisp.org>
81656
81657         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81658         autoconf CVS. Needed for mingw.
81659
81660 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81661
81662         Remove the dependency of the strftime module on the tzset module.
81663         * modules/strftime (Depends-on): Remove dependency on tzset.
81664
81665 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81666
81667         Remove the dependency of the strftime module on the tzset module.
81668         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81669         gl_FUNC_TZSET_CLOBBER.
81670
81671 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81672
81673         Remove the dependency of the strftime module on the tzset module.
81674         * lib/strftime.c (my_strftime)
81675         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81676         Copy the input structure, to work around some of the bug with
81677         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81678         Solaris releases, you should also use the tzset module, but we won't
81679         require it as a dependency any more since we don't want LGPLed code
81680         to depend on GPLed code.
81681
81682 2005-07-02  Jim Meyering  <jim@meyering.net>
81683
81684         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81685         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81686         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81687         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81688
81689 2005-07-02  Jim Meyering  <jim@meyering.net>
81690
81691         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81692
81693 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81694
81695         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81696         declares only 'struct timespec;' (!).
81697
81698 2005-07-01  Jim Meyering  <jim@meyering.net>
81699
81700         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81701         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81702         * lib/save-cwd.c, tempname.c:
81703         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81704         and don't include <sys/file.h>).
81705
81706 2005-06-29  Jim Meyering  <jim@meyering.net>
81707
81708         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81709         type name.  Use the variable name instead.
81710         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81711         Likewise.
81712
81713 2005-06-28  Simon Josefsson  <jas@extundo.com>
81714
81715         * modules/check-version (Files): Add check-version.m4.
81716
81717 2005-06-28  Simon Josefsson  <jas@extundo.com>
81718
81719         * m4/check-version.m4: New file, suggested by Jim Meyering
81720         <jim@meyering.net>.
81721
81722 2005-06-28  Simon Josefsson  <jas@extundo.com>
81723
81724         * lib/check-version.h, lib/check-version.c: New files.
81725
81726 2005-06-28  Simon Josefsson  <jas@extundo.com>
81727
81728         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81729         collision with global variable.  Better indentation.  Don't
81730         increment buffer pointer beyond buffer end.  Based on comments
81731         from Paul Eggert <eggert@cs.ucla.edu>.
81732
81733         * lib/base64.h: Indent.
81734
81735 2005-06-28  Simon Josefsson  <jas@extundo.com>
81736
81737         * doc/gnulib.texi (Library version handling): New section.
81738
81739 2005-06-28  Jim Meyering  <jim@meyering.net>
81740
81741         * check-module (find_included_lib_files): Hard-code another
81742         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81743         but modules/fts-lgpl (correctly) does not list those files.
81744
81745         * modules/canonicalize (Files): Add lib/pathmax.h.
81746
81747 2005-06-25  Simon Josefsson  <jas@extundo.com>
81748
81749         * modules/check-version: New file.
81750
81751 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81752
81753         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81754         initializer of struct addrinfo, as an indication that we don't
81755         care how many members the structure has.
81756
81757 2005-06-24  Derek Price  <derek@ximbiot.com>
81758         and Bruno Haible  <bruno@clisp.org>
81759
81760         Remove stat module & update lstat.
81761         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81762         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81763         * m4/stat.m4: Remove this file.
81764
81765 2005-06-24  Derek Price  <derek@ximbiot.com>
81766         and Bruno Haible  <bruno@clisp.org>
81767
81768         Remove stat module & update lstat.
81769         * lib/stat.c: Remove this file...
81770         (slash_aware_lstat): ...moving this content and its support...
81771         * lib/lstat.c (rpl_lstat): ...into here.
81772         * lib/lstat.h: New file.
81773
81774 2005-06-24  Derek Price  <derek@ximbiot.com>
81775         and Bruno Haible  <bruno@clisp.org>
81776
81777         Remove stat module & update lstat.
81778         * config/srclist.txt (libc sources): Remove stat.
81779
81780 2005-06-24  Derek Price  <derek@ximbiot.com>
81781         and Bruno Haible  <bruno@clisp.org>
81782
81783         Remove stat module & update lstat.
81784         * MODULES.html.sh (stat): Remove.
81785         * MODULES.html: Regenerated.
81786         * modules/lstat (Description): Correct function name.
81787         (Files): Add "lstat.h".
81788         (Depends-on): Remove stat, add xalloc, stat-macros.
81789         * modules/stat: Remove this file.
81790         (Include): Add "lstat.h", remove <sys/stat.h>.
81791
81792 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81793
81794         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81795         (ranged_convert): Don't save conversion in a temporary struct.
81796         This causes a warning with GCC 4.0.0, and anyway in the typical
81797         case it's not worth the extra 100 bytes or so of code.
81798         (ranged_convert, __mktime_internal): When calling a function via a
81799         pointer P, use P () rather than (*P) (), as we now assume C89 or
81800         better.
81801
81802 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81803
81804         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81805         "who -r" failed to give output.  Problem reported by Tim Waugh.
81806
81807         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81808         (xcalloc): Use it to avoid needless tests.
81809         Problem reported by Jim Meyering.
81810
81811 2005-06-20  Derek Price  <derek@ximbiot.com>
81812
81813         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81814         unnecessary for Autoconfs > 2.59c.
81815
81816 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81817
81818         * lib/argp.h (__option_is_short): Check upper limit of
81819         __key. Isprint() requires its argument to have the value
81820         of an unsigned char or EOF.
81821
81822 2005-06-16  Jim Meyering  <jim@meyering.net>
81823
81824         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81825         when either N or S is zero.
81826
81827 2005-06-16  Derek Price  <derek@ximbiot.com>
81828
81829         * m4/bison.m4: Declare YACC & YFLAGS precious.
81830
81831 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81832
81833         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81834         multibyte string or pattern, fall back on unibyte matching.
81835         Problem reported by James Youngman.
81836
81837 2005-06-08  Bruno Haible  <bruno@clisp.org>
81838
81839         * modules/csharpcomp: New file.
81840         * MODULES.html.sh (C#): Add csharpcomp.
81841
81842 2005-06-08  Bruno Haible  <bruno@clisp.org>
81843
81844         * m4/csharpcomp.m4: New file, from GNU gettext.
81845
81846 2005-06-08  Bruno Haible  <bruno@clisp.org>
81847
81848         * lib/csharpcomp.h: New file, from GNU gettext.
81849         * lib/csharpcomp.c: New file, from GNU gettext.
81850         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81851
81852 2005-06-08  Bruno Haible  <bruno@clisp.org>
81853
81854         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81855         warning on mingw.
81856
81857 2005-06-07  Derek Price  <derek@ximbiot.com>
81858
81859         Sync from CVS.
81860         * lib/glob_.h: Indent nested #ifdef.
81861
81862 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81863
81864         Sync from coreutils.
81865         Use "file name" when talking about file names, instead of "filename"
81866         or "path", as per the GNU coding standards.
81867         * lib/mkdir-p.c: Renamed from makepath.c.
81868         (make_dir_parents): Renamed from make_path.  All callers changed.
81869         * lib/mkdir-p.h: Likewise.  All includers changed.
81870         * lib/filenamecat.c: Renamed from path-concat.c.
81871         (file_name_concat): Renamed from path_concat.  All callers changed.
81872         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81873         * lib/filenamecat.h: Likewise.  All includers changed.
81874         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81875         in comments or local variable names.
81876         * lib/basename.c: Likewise.
81877         * lib/canonicalize.c, canonicalize.h: Likewise.
81878         * lib/dirname.c, dirname.h: Likewise.
81879         * lib/euidaccess.c: Likewise.
81880         * lib/exclude.c: Likewise
81881         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81882         * lib/fsusage.c, fsuage.h: Likewise.
81883         * lib/fts.c, fts_.h: Likewise.
81884         * lib/getcwd.c: Likewise.
81885         * lib/getloadavg.c: Likewise.
81886         * lib/mkstemp.c: Likewise.
81887         * lib/mountlist.c, mountlist.h: Likewise.
81888         * lib/openat.c, openat.h: Likewise.
81889         * lib/readlink-stub.c: Likewise.
81890         * lib/readutmp.c, readutmp.h: Likewise.
81891         * lib/rename.c: Likewise.
81892         * lib/rmdir.c: Likewise.
81893         * lib/same.c: Likewise.
81894         * lib/savedir.c: Likewise.
81895         * lib/stripslash.c: Likewise.
81896         * lib/tempname.c: Likewise.
81897         * lib/xreadlink.c: Likewise.
81898         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81899         All uses changed.
81900         * lib/exclude.h: Likewise.
81901
81902         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81903         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81904         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81905         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81906         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81907         files have been getting away with it for years (MORE/BSD 4.3
81908         is extinct now).
81909         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81910         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81911
81912         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81913         Define to 256, not 255, as per modern POSIX.
81914
81915 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81916
81917         Sync from coreutils.
81918         Use "file name" when talking about file names, instead of "filename"
81919         or "path", as per the GNU coding standards.
81920         * MODULES.html.sh: mkdir-p renamed from makepath.
81921         filenamecat renamed from path-concat.
81922         * modules/filenamecat: Renamed from modules/path-concat.
81923         (Files): filenamecat.h and filenamecat.c renamed from
81924         path-concat.h and path-concat.c.
81925         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81926         (Include): filenamecat.h, not path-concat.h.
81927         * modules/mkdir-p: Renamed from modules/makepath.
81928         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81929         makepath.c.
81930         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81931         (Include): mkdir-p.h, not makepath.h.
81932
81933 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81934
81935         Sync from coreutils.
81936         * m4/mkdir-p.m4: Renamed from makepath.m4.
81937         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81938         Rename files from makepath.c to mkdir-p.c, and from
81939         makepath.h to mkdir-p.h.
81940         * m4/filenamecat.m4: Renamed from path-concat.m4.
81941         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81942         Rename files from path-concat.c to filenamecat.c,
81943         and from path-concat.h to filenamecat.h.
81944         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81945         "file name" in local variables or comments.
81946         * m4/rename.m4: Likewise.
81947
81948 2005-06-01  Bruno Haible  <bruno@clisp.org>
81949
81950         * modules/csharpexec: New file.
81951         * MODULES.html.sh (C#): New section.
81952
81953 2005-06-01  Bruno Haible  <bruno@clisp.org>
81954
81955         * m4/csharp.m4: New file, from GNU gettext.
81956         * m4/csharpexec.m4: New file, from GNU gettext.
81957
81958 2005-06-01  Bruno Haible  <bruno@clisp.org>
81959
81960         * lib/csharpexec.h: New file, from GNU gettext.
81961         * lib/csharpexec.c: New file, from GNU gettext.
81962         * lib/csharpexec.sh.in: New file, from GNU gettext.
81963
81964 2005-05-31  Derek Price  <derek@ximbiot.com>
81965             Paul Eggert  <eggert@cs.ucla.edu>
81966
81967         Sync from cvs.
81968         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81969
81970 2005-05-31  Derek Price  <derek@ximbiot.com>
81971             Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         Sync from cvs.
81974         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81975
81976 2005-05-29  Derek Price  <derek@ximbiot.com>
81977
81978         * config/srclist.txt (glob_.h, glob.c): Add these files.
81979
81980 2005-05-29  Derek Price  <derek@ximbiot.com>
81981
81982         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81983         * modules/glob: New file.
81984         * modules/getlogin_r: Add link to POSIX spec in description.
81985
81986 2005-05-29  Derek Price  <derek@ximbiot.com>
81987             Paul Eggert  <eggert@cs.ucla.edu>
81988
81989         * m4/glob.m4: New file.
81990
81991 2005-05-29  Derek Price  <derek@ximbiot.com>
81992             Paul Eggert  <eggert@cs.ucla.edu>
81993
81994         * lib/glob_.h, lib/glob.c: New files.
81995
81996 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81997
81998         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81999         * modules/fts-lgpl (Depends-on): Remove gettext.
82000
82001 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82002
82003         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82004         and don't require gt_INTTYPES_PRI.
82005
82006 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82007
82008         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82009
82010         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82011         the configuration hassle isn't worth it.
82012         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82013         (LONGEST_MODIFIER, PRIuMAX): Remove.
82014
82015 2005-05-27  Bruno Haible  <bruno@clisp.org>
82016
82017         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82018
82019 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82020
82021         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82022         _POSIX_PTHREAD_SEMANTICS for Solaris.
82023
82024 2005-05-25  Derek Price  <derek@ximbiot.com>
82025
82026         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82027
82028 2005-05-25  Derek Price  <derek@ximbiot.com>
82029             Paul Eggert  <eggert@cs.ucla.edu>
82030
82031         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82032         * lib/getlogin_r.c, getlogin_r.h: New files.
82033
82034 2005-05-25  Bruno Haible  <bruno@clisp.org>
82035             Derek Price  <derek@ximbiot.com>
82036
82037         * lib/getlogin_r.h: Simplify API documentation.
82038
82039 2005-05-23  Derek Price  <derek@ximbiot.com>
82040
82041         * modules/minmax (Files): Add m4/minmax.m4.
82042         (configure.ac): Add gl_MINMAX.
82043
82044 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82045
82046         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82047         so that unistd-safer.h (GPL'ed code) need not be included.
82048
82049 2005-05-22  Bruno Haible  <bruno@clisp.org>
82050
82051         * m4/minmax.m4: New file.
82052         Based on a patch by Derek Price <derek@ximbiot.com>.
82053
82054 2005-05-22  Bruno Haible  <bruno@clisp.org>
82055
82056         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82057         (INT64_MIN): Fix definition.
82058         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82059
82060         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82061         NEED_SIGNED_INT_TYPES.
82062
82063         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82064         HAVE_SYSTEM_INTTYPES.
82065
82066 2005-05-22  Bruno Haible  <bruno@clisp.org>
82067
82068         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82069         Also include <sys/param.h> if it defines MIN, MAX.
82070         Based on a patch by Derek Price <derek@ximbiot.com>.
82071
82072 2005-05-21  Jim Meyering  <jim@meyering.net>
82073
82074         * modules/fts (Files): Add m4/inttypes-pri.m4.
82075         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82076
82077 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82078
82079         New fts module.
82080         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82081         (setup_dir, free_dir): New functions.
82082         (enter_dir, leave_dir): Define trivial
82083         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82084         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82085         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82086         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82087         Move to fts-cycle.c.
82088         (fts_open): Use setup_dir.
82089         (fts_close): Use free_dir.
82090         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82091         This adds a label and some gotos, but the alternatives were messier.
82092         Check for memory allocation failure when entering a dir.
82093         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82094         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82095         (FTS): New member fts_cycle, that is a union that contains the
82096         old active_dir_ht and cycle_state.  All uses changed to mention
82097         fts_cycle.ht and fts_cycle.state.
82098         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82099         fts.c, with the following changes:
82100         (setup_dir, free_dir): New functions.
82101         (enter_dir): Now returns bool.  Return true if successful, false
82102         if memory exhausted.  All callers changed.
82103         Do not bother partly cleaning up on
82104         memory allocation failure; that is free_dir's job.
82105         However, free ad if hash_insert fails, to avoid memory leak.
82106         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82107         fts->fts_options to see which union member to use.
82108
82109 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82110
82111         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82112         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82113
82114 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82115
82116         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82117
82118 2005-05-20  Jim Meyering  <jim@meyering.net>
82119
82120         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82121         Now a macro, to pacify GCC.
82122
82123 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82124
82125         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82126         of -1.
82127
82128 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82129
82130         * lib/chown.c (rpl_chown): Return -1 on failure.
82131
82132 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82133
82134         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82135         Don't check for stddef.h.
82136         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82137         don't use its results.
82138         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82139         since we include them unconditionally.  Don't require
82140         AM_STDBOOL_H, since stdbool is a prerequisite.
82141         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82142         since we assume C89 or better.
82143         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82144         as we don't use their results.
82145         Don't check for fchdir, memmove, memset, strrchr, as we use
82146         them unconditionally.
82147         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82148         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82149
82150 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82151
82152         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82153         Include <stddef.h> unconditionally, since we assume C89 now.
82154         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82155         * lib/fts.c: Include fts_.h first, to check interface.
82156         Do not include intprops.h; no longer needed.
82157         Include cycle-check.h and hash.h, since fts_.h no longer does.
82158         Remove unnecessary casts of closedir to void.
82159         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82160         decide whether to decrement nlinks.
82161         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82162         (FTS): Use struct hash_table * instead of Hash_table, so that
82163         we no longer need to include hash.h here.
82164
82165 2005-05-18  Jim Meyering  <jim@meyering.net>
82166
82167         * modules/dirfd (License): Change to LGPL.  Most of the code
82168         is already in the public domain.
82169
82170 2005-05-18  Jim Meyering  <jim@meyering.net>
82171
82172         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82173         Reported by Yoann Vandoorselaere.
82174
82175 2005-05-17  Jim Meyering  <jim@meyering.net>
82176
82177         * m4/fts.m4: New file, from coreutils.
82178
82179 2005-05-17  Jim Meyering  <jim@meyering.net>
82180
82181         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82182
82183 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82184
82185         Sync from coreutils.
82186         * m4/unlinkdir.m4: New file.
82187
82188 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82189
82190         Sync from coreutils.
82191         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82192         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82193         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82194         White space changes only.
82195         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82196         special.
82197         * lib/yesno.c: Include getline.h, not ctype.h.
82198         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82199         Use getline to remove arbitrary restriction on response length.
82200
82201 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82202
82203         * config/srclist-update: Spell out "Street" in FSF postal
82204         mail address; this is the style the FSF seems to prefer.
82205
82206         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82207         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82208         this updates FSF postal mail address.
82209
82210         Sync from coreutils.
82211         * modules/unlinkdir: New file.
82212         * modules/yesno (Depends-on): Add getline.
82213         * MODULES.html.sh (File system functions): Add unlinkdir.
82214
82215 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82216
82217         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82218         lib/strsep.h:
82219         Change the initial comment to refer to GPL, not LGPL.
82220         gnulib-tool will change it to LGPL as needed.
82221
82222         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82223         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82224         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82225         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82226         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82227         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82228         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82229         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82230         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82231         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82232         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82233         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82234         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82235         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82236         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82237         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82238         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82239         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82240         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82241         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82242         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82243         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82244         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82245         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82246         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82247         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82248         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82249         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82250         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82251         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82252         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82253         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82254         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82255         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82256         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82257         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82258         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82259         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82260         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82261         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82262         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82263         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82264         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82265         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82266         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82267         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82268         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82269         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82270         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82271         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82272         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82273         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82274         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82275         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82276         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82277         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82278         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82279         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82280         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82281         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82282         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82283         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82284         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82285         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82286         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82287         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82288         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82289         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82290         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82291         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82292         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82293         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82294         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82295         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82296         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82297         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82298         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82299         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82300         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82301         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82302         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82303         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82304         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82305         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82306         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82307         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82308         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82309         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82310         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82311         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82312         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82313         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82314         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82315         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82316         lib/yesno.c, lib/yesno.h:
82317         Update FSF postal mail address.
82318
82319 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82320
82321         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82322         tests/test-memmem.c, tests/test-stpncpy.c:
82323         Update FSF postal mail address.
82324
82325 2005-05-13  Bruno Haible  <bruno@clisp.org>
82326
82327         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82328         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82329         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82330         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82331         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82332         Add support for 64-bit integers in the MSVC compiler.
82333
82334 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82335
82336         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82337
82338 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82339
82340         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82341
82342 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82343
82344         * doc/getdate.texi (General date syntax): Don't say that date
82345         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82346         Problem reported by Nic Ferrier.
82347
82348 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82349
82350         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82351         specified in ai_socktype. Fix invalid ai_protocol
82352         check. ai_protocol is usually set to 0 or depending on
82353         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82354         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82355         ai_socktype / ai_protocol in the returned addrinfo structure.
82356
82357 2005-05-10  Simon Josefsson  <jas@extundo.com>
82358
82359         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82360         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82361
82362 2005-05-10  Karl Berry  <karl@gnu.org>
82363
82364         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82365         (from http://www.gnu.org/licenses).
82366         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82367         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82368         fdl.texi suffices.
82369
82370 2005-05-10  Karl Berry  <karl@gnu.org>
82371
82372         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82373         (COPYING.DOC): remove.
82374
82375         * config/srclist-update: new FSF address.
82376
82377 2005-05-10  Derek Price  <derek@ximbiot.com>
82378
82379         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82380         possible.
82381
82382 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82383             Bruno Haible  <bruno@clisp.org>
82384
82385         * modules/inet_ntop: New file.
82386         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82387         inet_ntop.
82388
82389 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82390             Bruno Haible  <bruno@clisp.org>
82391
82392         * m4/inet_ntop.m4: New file.
82393
82394 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82395             Bruno Haible  <bruno@clisp.org>
82396
82397         * lib/inet_ntop.h: New file.
82398         * lib/inet_ntop.c: New file, from glibc with modifications.
82399
82400 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82401
82402         * modules/time_r (License): Change to LGPL.
82403         * modules/extensions (License): Change to LGPL.  Actually,
82404         the license is more permissive than that, but currently gnulib-tool
82405         doesn't know how to handle more-permissive licenses.
82406
82407         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82408         Problem reported by Dave Love.
82409
82410 2005-05-08  Jim Meyering  <jim@meyering.net>
82411
82412         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82413         blank.
82414
82415 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82416
82417         * modules/argmatch (Depends-on): Add stdbool.
82418         * modules/backupfile (Depends-on): Likewise.
82419         * modules/chdir-long (Depends-on): Likewise.
82420         * modules/closeout (Depends-on): Likewise.
82421         * modules/cycle-check (Depends-on): Likewise.
82422         * modules/dirname (Depends-on): Likewise.
82423         * modules/fnmatch (Depends-on): Likewise.
82424         * modules/fsusage (Depends-on): Likewise.
82425         * modules/fwriteerror (Depends-on): Likewise.
82426         * modules/getcwd (Depends-on): Likewise.
82427         * modules/getloadavg (Depends-on): Likewise.
82428         * modules/hard-locale (Depends-on): Likewise.
82429         * modules/makepath (Depends-on): Likewise.
82430         * modules/mountlist (Depends-on): Likewise.
82431         * modules/nanosleep (Depends-on): Likewise.
82432         * modules/posixtm (Depends-on): Likewise.
82433         * modules/quotearg (Depends-on): Likewise.
82434         * modules/readtokens (Depends-on): Likewise.
82435         * modules/readtokens0 (Depends-on): Likewise.
82436         * modules/readutmp (Depends-on): Likewise.
82437         * modules/save-cwd (Depends-on): Likewise.
82438         * modules/strftime (Depends-on): Likewise.
82439         * modules/userspec (Depends-on): Likewise.
82440         * modules/utimecmp (Depends-on): Likewise.
82441         * modules/xgetcwd (Depends-on): Likewise.
82442         * modules/xnanosleep (Depends-on): Likewise.
82443         * modules/xstrtod (Depends-on): Likewise.
82444         * modules/yesno (Depends-on): Likewise.
82445
82446 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82447
82448         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82449         needless checks.
82450
82451 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82452
82453         Merge from coreutils.  Among other things,
82454         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82455         * lib/fd-safer.c: New file.
82456         * lib/fcntl-safer.h, open-safer.c: Remove.
82457         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82458         * lib/dup-safer.c: Include unistd-safer.h first.
82459         Don't include errno.h.
82460         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82461         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82462         * lib/file-type.c: Rely on file-type.h change.
82463         * lib/getloadavg.c: Include unistd-safer.h.
82464         (getloadavg): Use safer open.
82465         * lib/getusershell.c: Include "stdio-safer.h".
82466         (getusershell): Use safer fopen.
82467         * lib/long-options.c (long_options): Use NULL rather than 0.
82468         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82469         'free'.
82470         * lib/modechange.c: Likewise.
82471         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82472         (MODE_DONE): New constant.
82473         (struct mode_change): Remove 'next' member.
82474         (make_node_op_equals): New function; like the old one of the
82475         same name, except it allocates an array.
82476         (mode_compile, mode_create_from_ref): Use it.
82477         (mode_compile): Allocate result as an array, not a linked list.
82478         Parse octal string ourself, so that we catch mistakes like "+0".
82479         (mode_adjust): Arg is an array, not a linked list.
82480         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82481         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82482         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82483         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82484         Remove.  This is now stat-macros.h's job.
82485         (talloc): Remove.  All callers replaced by xalloc, so that
82486         our invokers don't have to worry about reporting memory failures.
82487         (make_node_op_equals): Remove.
82488         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82489         New constants.
82490         (struct mode_change): Moved here from modechange.h.
82491         (mode_append_entry): Remove.
82492         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82493         apps to have incorrect behavior.  Use simpler algorithm for head
82494         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82495         Detect more invalid usages rather than having somewhat-random behavior.
82496         Don't insert an "a=" action, as that leads to incorrect behavior.
82497         (mode_compile, mode_create_from_ref): Return NULL on error instead
82498         of an enum, since now there's only one way to have an error.  All
82499         callers changed.
82500         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82501         at the correct time.  Simplify calculation of "+u" and its ilk.
82502         Don't mishandle "+X".
82503         (mode_free): Remove "register" and localize decls.
82504         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82505         (struct mode_change): Move to modechange.c; callers don't
82506         need to see this stuff.
82507         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82508         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82509         (mode_change, mode_adjust): Reflect the new signatures noted above.
82510         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82511         that might redefine system include files.
82512         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82513         (my_usleep): Use NULL rather than (void *) 0.
82514         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82515         Use siginterrupt to specify that system calls should be interrupted.
82516         (rpl_nanosleep): Move initialization of suspended closer to call of
82517         my_usleep.
82518         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82519         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82520         (desirable_utmp_entry): New function.
82521         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82522         using x2nrealloc, to simplify logic.
82523         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82524         size calculation.  Do not assume utmp file is a regular file.
82525         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82526         (READ_UTMP_CHECK_PIDS): New constant.
82527         * lib/save-cwd.c: Include unistd-safer.h.
82528         (save_cwd): Use fd_safer.
82529         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82530         [!_LIBC] Include "stat-macros.h" instead.
82531         * lib/unistd-safer.h (fd_safer): New decl.
82532
82533 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82534
82535         * modules/getloadavg (Depends-on): Add unistd-safer.
82536         * modules/getusershell (Depends-on): Add stdio-safer.
82537         * modules/lstat (Depends-on): Remove xalloc.
82538         * modules/mkstemp (Depends-on): Add stat-macros.
82539         * modules/modechange (Depends-on): Remove xstrtol.
82540         Add stat-macros, xalloc.
82541         * modules/save-cwd (Depends-on): Add unistd-safer.
82542         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82543         * modules/unistd-safer (Files): Add lib/fd-safer.c
82544         (Makefile.am): Remove lib_SOURCES.
82545
82546         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82547         Remove fcntl-safer; unistd-safer supersedes it.
82548
82549 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82550
82551         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82552         AC_HEADER_STAT.
82553         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82554         (gl_PREREQ_CHOWN): Remove.
82555         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82556         it.  Don't require AC_HEADER_STAT.
82557         (gl_PREREQ_LSTAT): Remove.
82558         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82559         Don't require AC_HEADER_STAT.
82560         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82561         (gl_PREREQ_RMDIR): Remove.
82562         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82563         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82564         the stat-macros module a prerequisite.
82565         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82566         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82567         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82568         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82569         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82570         variable names.
82571         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82572         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82573         variable prefixes.
82574         * m4/fcntl-safer.m4: Remove.
82575         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82576         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82577         Invoke gl_PREREQ_FD_SAFER.
82578         (gl_PREREQ_FD_SAFER): New macro.
82579         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82580         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82581         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82582         Remove duplicate call to AC_LIBOBJ(readutmp).
82583         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82584
82585         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82586         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82587
82588 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82589
82590         * MODULES.html.sh (Misc): Add byteswap.
82591
82592 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82593
82594         * modules/getcwd (Depends-on): Add extensions.
82595         * modules/openat (Depends-on): Likewise.
82596
82597 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82598
82599         * modules/byteswap: New file.
82600
82601 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82602
82603         * m4/byteswap.m4: New file.
82604
82605 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82606
82607         * lib/byteswap_.h: New file.
82608
82609 2005-04-25  Karl Berry  <karl@gnu.org>
82610
82611         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82612
82613 2005-04-25  Albert Chin  <china@thewrittenword.com>
82614
82615         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82616         Toolkit C bug.
82617
82618 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82619
82620         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82621         (func_ln_if_changed): Remove forcibly for no error message
82622         in case file does not exist.
82623
82624 2005-04-19  Simon Josefsson  <jas@extundo.com>
82625
82626         * gnulib-tool (Options): Make --symlink mean --symbolic.
82627
82628 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82629
82630         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82631
82632 2005-04-16  Simon Josefsson  <jas@extundo.com>
82633
82634         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82635
82636 2005-04-15  Simon Josefsson  <jas@extundo.com>
82637
82638         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82639
82640 2005-04-15  Simon Josefsson  <jas@extundo.com>
82641
82642         * gnulib-tool: Rename --symlink to --symbolic.
82643
82644 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82645
82646         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82647         symbolic links to files instead of copying/moving.  Add --aux-dir,
82648         specifying directory relative --dir where auxiliary build tools
82649         are placed.
82650
82651 2005-04-14  Bruno Haible  <bruno@clisp.org>
82652
82653         * modules/allocsa (License): Change to LGPL.
82654         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82655
82656 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82657
82658         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82659         that "UTC +1 second" continues to work.  Problem reported
82660         by Dmitry V. Levin.
82661         (relunit_snumber): New rule.
82662         (relunit): Use it.
82663
82664 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82665
82666         * lib/getdate.y (universal_time_zone_table): New constant.
82667         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82668         universal_time_zone_table.
82669         (lookup_zone): Prefer universal_time_zone_table to
82670         local_time_zone_table, so that "GMT" time stamps are allowed in
82671         London during the summer.  Problem reported by Ian Abbott.
82672
82673 2005-04-12  Jim Meyering  <jim@meyering.net>
82674
82675         * lib/human.c (humblock): Set *options even when returning due to
82676         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82677         warning from gcc-4.
82678
82679 2005-04-09  Jim Meyering  <jim@meyering.net>
82680
82681         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82682         -Wuninitialized: initialize tm0.tm_year.
82683
82684 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82685
82686         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82687         count, since there's no maximum.  All uses changed.
82688         Add member dsts_seen.
82689         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82690         not being INT_MAX.
82691         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82692         Use pc_rels_seen to decide whther a date is absolute.
82693
82694         * lib/getdate.y (number): Don't overwrite year.
82695         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82696         check.
82697
82698 2005-04-02  Simon Josefsson  <jas@extundo.com>
82699
82700         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82701         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82702
82703 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82704
82705         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82706         where no absolute path name can be longer than PATH_MAX.
82707
82708 2005-03-27  Jim Meyering  <jim@meyering.net>
82709
82710         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82711
82712 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82713
82714         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82715         "one's complement" -> "ones' complement" in comment, as per Knuth.
82716         "value of type" -> "type or expression" in comment.
82717         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82718
82719 2005-03-26  Jim Meyering  <jim@meyering.net>
82720
82721         Comment nits.
82722         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82723         Correct typos: s/or/of/.
82724
82725 2005-03-26  Jim Meyering  <jim@meyering.net>
82726
82727         * modules/check-include-files: Move to ../ and rename to...
82728         * check-module: ...this.
82729
82730 2005-03-25  Jim Meyering  <jim@meyering.net>
82731
82732         * modules/xvasprintf (Files): Add xalloc.h.
82733
82734 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82735
82736         * modules/gettext (Files): config/config.rpath ->
82737         build-aux/config.rpath
82738         * modules/iconv (Files): Likewise.
82739         Problem reported by Oskar Liljeblad.
82740
82741 2005-03-23  Jim Meyering  <jim@meyering.net>
82742
82743         * modules/check-include-files: New script to check for
82744         missing dependencies, multiple includes, etc.
82745
82746         * modules/c-strtold (Depends-on): Add xalloc.
82747         * modules/c-strtod (Depends-on): Add xalloc.
82748         * modules/hash (Depends-on): Add xalloc.
82749         (Files): Remove lib/xalloc.h.
82750
82751         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82752         * modules/userspec (Files): Add lib/inttostr.h.
82753
82754 2005-03-23  Jim Meyering  <jim@meyering.net>
82755
82756         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82757
82758 2005-03-22  Jim Meyering  <jim@meyering.net>
82759
82760         * modules/stat-macros: New module.
82761         * modules/canonicalize, modules/euidaccess, modules/file-type,
82762         * modules/filemode, modules/lchown, modules/makepath,
82763         * modules/rmdir, modules/stat: Depend on new stat-macros module
82764         rather than listing lib/stat-macros.h manually.
82765         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82766
82767 2005-03-22  Jim Meyering  <jim@meyering.net>
82768
82769         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82770
82771 2005-03-22  Bruno Haible  <bruno@clisp.org>
82772
82773         * config/srclist.txt: Replace target directory 'config' with
82774         'build-aux'.
82775         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82776         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82777         ../build-aux/.
82778
82779 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82780
82781         * modules/chdir-long (Depends-on): Add mempcpy.
82782
82783         * modules/acl, modules/backupfile, modules/c-strtod,
82784         modules/c-strtold, modules/canon-host, modules/canonicalize,
82785         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82786         modules/exclude, modules/exitfail, modules/file-type,
82787         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82788         modules/getdate, modules/getline, modules/getpagesize,
82789         modules/getpass, modules/getugroups, modules/group-member,
82790         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82791         modules/inttostr, modules/long-options, modules/makepath,
82792         modules/md5, modules/memcasecmp, modules/memcoll,
82793         modules/modechange, modules/mountlist, modules/path-concat,
82794         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82795         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82796         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82797         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82798         modules/strftime, modules/strndup, modules/strverscmp,
82799         modules/timespec, modules/unlocked-io, modules/userspec,
82800         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82801         modules/yesno:
82802         Remove lib_SOURCES line from Makefile.am section, as this is now
82803         done automatically by the corresponding Autoconf macro.
82804
82805 2005-03-21  Jim Meyering  <jim@meyering.net>
82806
82807         Changes imported from coreutils.
82808
82809         * lib/cycle-check.c: Don't include xalloc.h.
82810
82811         * lib/path-concat.c: Don't include assert.h.
82812         (path_concat): Remove assertion that would have triggered
82813         for ABASE starting with more than one slash.
82814         Reported by Andreas Schwab.
82815
82816         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82817         properly when ABASE is an absolute file name.
82818         Correct the description of this function.
82819         Include <assert.h>.
82820         Add an assertion and a test driver.
82821         This fixes a bug introduced on 2004-07-02.
82822         Andreas Schwab reported the resulting failure of cp --parents:
82823         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82824
82825 2005-03-21  Jim Meyering  <jim@meyering.net>
82826
82827         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82828         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82829
82830 2005-03-21  Jim Meyering  <jim@meyering.net>
82831         and  Paul Eggert  <eggert@cs.ucla.edu>
82832
82833         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82834         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82835         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82836         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82837         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82838         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82839         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82840         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82841         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82842         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82843         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82844         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82845         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82846         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82847         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82848         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82849         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82850         for these modules.
82851
82852 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82853
82854         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82855         (which shouldn't happen), generate nothing instead of returning 0
82856         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82857
82858 2005-03-16  Bruno Haible  <bruno@clisp.org>
82859
82860         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82861         HAVE_LONGLONG_64BIT.
82862
82863 2005-03-16  Bruno Haible  <bruno@clisp.org>
82864
82865         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82866         HAVE_LONGLONG_64BIT.
82867
82868 2005-03-16  Bruno Haible  <bruno@clisp.org>
82869
82870         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82871         HAVE_LONGLONG_64BIT.
82872
82873 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82876         reliably distinguish strftime failure from empty output on POSIX
82877         hosts.
82878
82879 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82880
82881         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82882         (iconv_string): Don't guess a size-zero buffer, as that might cause
82883         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82884         result would be 'too large', where 'too large' is (heuristically)
82885         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82886         overflow concerns.  This will prevent some unwanted malloc failures
82887         when the inputs are very large.
82888
82889 2005-03-15  Karl Berry  <karl@gnu.org>
82890
82891         * config/srclist.txt (config.rpath): from gettext.
82892         * config/config.rpath: update.
82893
82894 2005-03-15  Bruno Haible  <bruno@clisp.org>
82895
82896         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82897         to 'negate'.
82898
82899         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82900         variable.
82901
82902         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82903         results.
82904
82905 2005-03-14  Simon Josefsson  <jas@extundo.com>
82906
82907         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82908         <fx@gnu.org>.
82909
82910 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82911
82912         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82913         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82914         intprops.h.
82915         * lib/strtol.c: Likewise.
82916
82917 2005-03-14  Jim Meyering  <jim@meyering.net>
82918
82919         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82920         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82921         to be nonzero so that we (and caller) can detect the difference
82922         between a valid zero-length expansion and an error return, even
82923         when the underlying strftime fails before writing anything into
82924         that location.
82925
82926 2005-03-14  Bruno Haible  <bruno@clisp.org>
82927
82928         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82929         Update from GNU gettext 0.14.3.
82930
82931 2005-03-10  Jim Meyering  <jim@meyering.net>
82932
82933         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82934
82935 2005-03-10  Jim Meyering  <jim@meyering.net>
82936
82937         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82938         so that this module works on systems without fchdir.
82939
82940 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82941
82942         Factor int-properties macros into a single file, except for
82943         glibc-related files.
82944         * lib/intprops.h: New file.
82945         * lib/getloadavg.c: Include it instead of limits.h.
82946         (INT_STRLEN_BOUND): Remove.
82947         * lib/human.c: Include intprops.h.
82948         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82949         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82950         302/1000.
82951         * lib/inttostr.h: Include intprops.h instead of limits.h.
82952         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82953         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82954         for consistency with intprops.h.
82955         (time_t_is_integer, twos_complement_arithmetic): Use them.
82956         * lib/sig2str.h: Include <signal.h>, intprops.h.
82957         (INT_STRLEN_BOUND): Remove.
82958         * lib/strftime.c (TYPE_SIGNED): Remove.
82959         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82960         * lib/strtol.c: Adjust comments to match intprops.h.
82961         * lib/userspec.c: Include intprops.h.
82962         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82963         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82964         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82965         instead of rolling our own expressions.
82966         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82967
82968         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82969         instead of int.
82970         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82971         the right thing even if adding 1900 would overflow.  Similarly
82972         for tm_mon + 1 and tm_yday + 1.
82973         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82974         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82975         (DO_SIGNED_NUMBER): New macro.
82976         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82977
82978 2005-03-07  Bruno Haible  <bruno@clisp.org>
82979
82980         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82981
82982 2005-03-07  Bruno Haible  <bruno@clisp.org>
82983
82984         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82985
82986 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82987
82988         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82989         (func_import): Only replace files via --import when they have actually
82990         changed.
82991
82992 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82993
82994         * m4/mmap-anon.m4: New file.
82995         * m4/pagealign_alloc.m4: New file.
82996
82997 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82998             Bruno Haible  <bruno@clisp.org>
82999
83000         * modules/pagealign_alloc: New file.
83001         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83002
83003 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83004             Bruno Haible  <bruno@clisp.org>
83005
83006         * lib/pagealign_alloc.h: New file.
83007         * lib/pagealign_alloc.c: New file.
83008
83009 2005-03-03  Bruno Haible  <bruno@clisp.org>
83010
83011         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83012         Use an all-permissive copyright notice, recommended by RMS.
83013
83014 2005-03-02  Bruno Haible  <bruno@clisp.org>
83015
83016         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83017         of AIX, the replacement has to be done only after <string.h> is
83018         included, therefore not in config.h. stpncpy.h does the replacement,
83019         and stpncpy.c uses it.
83020
83021 2005-03-02  Bruno Haible  <bruno@clisp.org>
83022
83023         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83024         stpncpy.c uses it.
83025
83026 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83027
83028         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83029         The workaround isn't strictly needed for POSIX conformance, and
83030         it's too much of a pain to configure and maintain.  We'll ask
83031         people to fix their kernels instead.
83032         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83033         (NANOSLEEP_BUG_WORKAROUND): Remove.
83034         (xnanosleep): Remove the workaround.
83035
83036 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83037
83038         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83039         Reported by Derek Price.
83040         (Include): Add "timespec.h".
83041
83042         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83043
83044 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83045
83046         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83047         to detect nanosleep bug.
83048
83049 2005-03-01  Bruno Haible  <bruno@clisp.org>
83050
83051         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83052
83053 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83054
83055         * modules/gethrxtime: New file.
83056         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83057         (Depends-on): Add gethrxtime.
83058         (configure.ac): Add gl_XNANOSLEEP.
83059         (Makefile.am): Remove lib_SOURCES line.
83060
83061 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83062
83063         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83064         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83065
83066 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83067
83068         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83069         * lib/timespec.h (gettime): Return void, since it always
83070         succeeds now.  All uses changed.
83071         * lib/gettime.c (gettime): Likewise.
83072         [HAVE_NANOTIME]: Prefer nanotime.
83073         Assume gettimeofday succeeds, as POSIX requires.
83074         Assime time () succeeds, since other code already does.
83075         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83076         (timespec_subtract): Remove.
83077         (NANOSLEEP_BUG_WORKAROUND): New constant.
83078         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83079         things considerably.  Use it only on GNU/Linux hosts, since the
83080         workaround shouldn't be needed elsewhere.
83081
83082 2005-02-24  Bruno Haible  <bruno@clisp.org>
83083
83084         * modules/gettext (Files): Add m4/glibc2.m4.
83085
83086 2005-02-24  Bruno Haible  <bruno@clisp.org>
83087
83088         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83089         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83090         * m4/progtest.m4:
83091         Update from GNU gettext 0.14.2.
83092         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83093
83094 2005-02-24  Bruno Haible  <bruno@clisp.org>
83095
83096         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83097         * lib/config.charset: Update from GNU gettext 0.14.2.
83098
83099 2005-02-24  Bruno Haible  <bruno@clisp.org>
83100
83101         * lib/gettext.h: Update from GNU gettext 0.14.2.
83102
83103 2005-02-23  Simon Josefsson  <jas@extundo.com>
83104
83105         * m4/iconvme.m4: New file.
83106
83107 2005-02-23  Jim Meyering  <jim@meyering.net>
83108
83109         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83110         change.
83111         Thanks to Bruno Haible for catching it.
83112
83113 2005-02-22  Simon Josefsson  <jas@extundo.com>
83114
83115         * modules/iconvme: New file.
83116
83117         * MODULES.html.sh: Add iconvme.
83118
83119 2005-02-22  Simon Josefsson  <jas@extundo.com>
83120
83121         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83122
83123 2005-02-22  Simon Josefsson  <jas@extundo.com>
83124
83125         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83126
83127 2005-02-22  Jim Meyering  <jim@meyering.net>
83128
83129         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83130         s/ifndef/ifdef/.
83131
83132 2005-02-20  Neil Conway  <neilc@samurai.com>
83133
83134         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83135         returned by OSX/Darwin if the specified buffer is not large
83136         enough for the hostname.
83137
83138 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83139
83140         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83141         pass it to _help, otherwise the latter coredumps trying to
83142         dereference state.root_argp.
83143
83144 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83145
83146         * modules/chdir-long (Depends-on): Add memrchr.
83147         * modules/memrchr (Files): Add lib/memrchr.h.
83148         (Include): "memrchr.h".
83149
83150 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83151
83152         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83153
83154 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83155
83156         * lib/memrchr.h: New file.
83157         * lib/chdir-long.c: Include it.
83158         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83159         Don't bother including stddef.h.
83160
83161 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83162
83163         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83164         inclusion.
83165         Include <sys/types.h>, for dev_t.
83166         (ME_DUMMY, ME_REMOTE): Move from here....
83167         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83168         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83169         Dmitry V. Levin.
83170         Include mountlist.h first, to test the interface.
83171
83172 2005-01-29  Bruno Haible  <bruno@clisp.org>
83173
83174         * lib/progname.c (program_name): Initialize.
83175         Needed when linking statically on MacOS X.
83176
83177 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83178
83179         Sync from coreutils.
83180         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83181         (Depends-on): Add c-strtod.
83182         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83183
83184 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83185
83186         Sync from coreutils.
83187         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83188
83189         Remove files that are specific to coreutils.
83190         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83191
83192 2005-01-28  Bruno Haible  <bruno@clisp.org>
83193
83194         * modules/javacomp: New file.
83195         * MODULES.html.sh (Java): Add javacomp.
83196
83197 2005-01-28  Bruno Haible  <bruno@clisp.org>
83198
83199         * m4/javacomp.m4: New file, from GNU gettext.
83200
83201 2005-01-28  Bruno Haible  <bruno@clisp.org>
83202
83203         * lib/javacomp.sh.in: New file, from GNU gettext.
83204         * lib/javacomp.h: New file, from GNU gettext.
83205         * lib/javacomp.c: New file, from GNU gettext.
83206
83207 2005-01-26  Simon Josefsson  <jas@extundo.com>
83208
83209         * lib/gai_strerror.c: Use GPL in header.
83210
83211 2005-01-26  Bruno Haible  <bruno@clisp.org>
83212
83213         * modules/javaexec: New file.
83214         * MODULES.html.sh (Java): Add javaexec.
83215
83216 2005-01-26  Bruno Haible  <bruno@clisp.org>
83217
83218         * m4/javaexec.m4: New file, from GNU gettext.
83219
83220 2005-01-26  Bruno Haible  <bruno@clisp.org>
83221
83222         * lib/javaexec.sh.in: New file, from GNU gettext.
83223         * lib/javaexec.h: New file, from GNU gettext.
83224         * lib/javaexec.c: New file, from GNU gettext.
83225
83226 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83227
83228         * modules/lchown (Depends-on): Remove lchown.h
83229
83230 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83231
83232         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83233         must be defined if the header file was not found, in order
83234         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83235
83236 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83237
83238         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83239         initializers for struct pentry_state.
83240         (__argp_error): Check return value of __asprintf
83241         (__argp_failure): Translate error message
83242
83243         * lib/argp-parse.c: Removed braces around the expansion of N_()
83244
83245 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83246
83247         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83248         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83249         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83250         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83251         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83252         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83253         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83254         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83255         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83256         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83257         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83258         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83259         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83260         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83261         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83262         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83263         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83264         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83265         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83266         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83267         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83268         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83269         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83270         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83271         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83272         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83273         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83274         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83275         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83276         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83277         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83278         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83279         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83280         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83281         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83282         Use an all-permissive copyright notice, recommended by RMS.
83283
83284 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83285
83286         * modules/chdir-long (Depends-on): Remove mempcpy.
83287
83288 2005-01-21  Jim Meyering  <jim@meyering.net>
83289
83290         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83291         same value as for Solaris 9.
83292
83293         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83294         component length.  This included changing the parameter to be
83295         of type `char *' rather than `char const *'.
83296         * lib/chdir-long.h (chdir_long): Update prototype.
83297
83298         * lib/openat.c (fdopendir, fstatat): New functions.
83299         * lib/openat.h: Include headers required for use of DIR and struct
83300         stat.
83301         [AT_SYMLINK_NOFOLLOW]: Define.
83302         (fdopendir, fstatat): Add prototypes.
83303
83304 2005-01-21  Bruno Haible  <bruno@clisp.org>
83305
83306         * modules/classpath: New file.
83307         * MODULES.html.sh (Java): Add classpath.
83308
83309 2005-01-21  Bruno Haible  <bruno@clisp.org>
83310
83311         * lib/classpath.h: New file, from GNU gettext.
83312         * lib/classpath.c: New file, from GNU gettext.
83313
83314 2005-01-20  Simon Josefsson  <jas@extundo.com>
83315
83316         * modules/version-etc-fsf: New file.
83317
83318 2005-01-20  Simon Josefsson  <jas@extundo.com>
83319
83320         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83321         * lib/version-etc.c: Remove version_etc_copyright.
83322         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83323         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83324
83325 2005-01-20  Simon Josefsson  <jas@extundo.com>
83326
83327         * lib/base64.h (isbase64): Add.
83328
83329         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83330         using a unsigned prototype, don't inline.
83331         (base64_decode): Use it.
83332
83333 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83334
83335         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83336         it.
83337
83338 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83339
83340         * lib/save-cwd.c (save_cwd): Remove code to support the case
83341         where fchdir is missing or flaky.
83342
83343 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83344
83345         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83346
83347 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83348
83349         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83350         AC_LIBSOURCES now does this.
83351         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83352         with new ullong_max module.
83353
83354 2005-01-19  Bruno Haible  <bruno@clisp.org>
83355
83356         * modules/sh-quote: New file.
83357         * MODULES.html.sh (Executing programs): Add sh-quote.
83358
83359 2005-01-19  Bruno Haible  <bruno@clisp.org>
83360
83361         * lib/sh-quote.h: New file, from GNU gettext.
83362         * lib/sh-quote.c: New file, from GNU gettext.
83363
83364 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83365
83366         Merge from coreutils.
83367         * m4/ullong_max.m4: New file.
83368         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83369         (gl_MACROS): Assume localeconv exists.
83370
83371 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83372
83373         Merge changes from coreutils, as described below in several
83374         changelogs dated today.
83375
83376         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83377         (O_DIRECTORY): Remove; not needed here, since "." must be
83378         a directory.  All uses removed.
83379         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83380         universal on Suns, and we also need to test for IRIX.
83381         Revamp code to use 'if' rather than '#if'.
83382         Avoid unnecessary comparison of cwd->desc to 0.
83383
83384         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83385         for known valid error numbers rather than observed invalid ones.
83386
83387 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83388
83389         * modules/ullong_max: New file.
83390
83391         * modules/chdir-long, modules/openat: New files.
83392         * modules/save-cwd (Depends-on): Depend on chdir-long.
83393         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83394
83395 2005-01-18  Jim Meyering  <jim@meyering.net>
83396
83397         Merge from coreutils.
83398         * m4/chdir-long.m4, m4/openat.m4: New files.
83399         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83400         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83401         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83402         is sane and DOES follow symlinks.  Besides, testing 20 different
83403         systems found no broken chown implementations.
83404         Prompted by a change in rsync's copy of this macro.
83405         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83406
83407         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83408
83409         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83410         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83411         NULL-means-set-to-current-time semantics.
83412         Remove temporary file immediately, rather than waiting
83413         for configure's at-exit trap code to do it.
83414
83415 2005-01-18  Jim Meyering  <jim@meyering.net>
83416
83417         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83418
83419         * lib/utimens.c (futimens): Account for the fact that futimes
83420         can also fail with errno == ENOSYS or errno == ENOENT.
83421         Patch from Dmitry V. Levin.
83422
83423         Change the name of the robust chdir function from chdir to chdir_long.
83424         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83425         (restore_cwd): Use chdir_long, not chdir.
83426         * lib/chdir-long.c: Renamed from chdir.c.
83427         * lib/chdir-long.h: Renamed from chdir.h.
83428         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83429         Hurd.
83430
83431 2005-01-18  Bruno Haible  <bruno@clisp.org>
83432
83433         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83434         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83435         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83436         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83437         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83438         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83439         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83440         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83441         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83442         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83443         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83444         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83445         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83446         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83447         Use an all-permissive copyright notice, recommended by RMS.
83448
83449 2005-01-18  Bob Proulx  <bob@proulx.com>
83450
83451         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83452         simplify offsetof() macro construct to avoid compile failure with
83453         native HP-UX 11.0 ANSI C compiler.
83454
83455 2005-01-17  Bruno Haible  <bruno@clisp.org>
83456
83457         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83458         redundant because stpncpy.m4 takes care of it.
83459
83460 2005-01-17  Bruno Haible  <bruno@clisp.org>
83461
83462         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83463
83464 2005-01-17  Bruno Haible  <bruno@clisp.org>
83465
83466         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83467         used.
83468
83469 2005-01-17  Bruno Haible  <bruno@clisp.org>
83470
83471         * lib/fwriteerror.h (fwriteerror): Change specification to include
83472         fclose.
83473         * lib/fwriteerror.c: Include <stdbool.h>.
83474         (fwriteerror): At the end, close the file stream. Record whether
83475         stdout was already closed.
83476
83477 2005-01-17  Bruno Haible  <bruno@clisp.org>
83478
83479         * lib/execute.c (environ): Declare if needed.
83480         * lib/pipe.c (environ): Likewise.
83481         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83482
83483 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83484
83485         * modules/argp: Depend on vsnprintf
83486
83487 2005-01-10  Jim Meyering  <jim@meyering.net>
83488
83489         * modules/closeout (Depends-on): Add atexit.
83490
83491 2005-01-06  Bruno Haible  <bruno@clisp.org>
83492
83493         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83494
83495 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83496
83497         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83498         definitions to be after all include files, to avoid collisions.
83499         Problem reported by Bob Proulx.
83500
83501 2005-01-04  Jim Meyering  <jim@meyering.net>
83502
83503         Changes imported from coreutils.
83504         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83505         as the mkstemp template, use a temporary directory and an
83506         8.3-friendly template to avoid trouble on systems like DJGPP.
83507         Reported by Juan M. Guerrero via Stepan Kasal.
83508         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83509         close. Remove the temporary directory right away, rather than waiting
83510         for configure's at-exit trap code to do it.
83511         Suggestion from Stepan Kasal.
83512
83513 2005-01-01  Simon Josefsson  <jas@extundo.com>
83514
83515         * gnulib-tool: Print #include directives when --import'ing.
83516
83517 2004-12-28  Simon Josefsson  <jas@extundo.com>
83518
83519         * tests/test-base64.c: Include required header files.  Remove
83520         unused variables.
83521
83522 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83523
83524         * modules/error (Depends-on): Remove gettext.
83525
83526 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83527
83528         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83529         not needed.  This removes a dependency on the gettext module.
83530         [defined _LIBC]: Do not include <libintl.h>; not needed.
83531
83532 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83533
83534         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83535         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83536
83537 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83538
83539         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83540         HAVE_DECL_STRTOLD.
83541
83542 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83543
83544         * modules/getdate (Depends-on): Remove alloca-opt.
83545
83546 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83547
83548         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83549
83550 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83551
83552         * lib/argp-parse.c: Include <stddef.h>.
83553         (alignof, alignto): New macros.
83554         (parser_init): Don't assume that void * is aligned sufficiently
83555         for struct option.
83556
83557         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83558         need to extend the stack.
83559         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83560         large.
83561
83562 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83563
83564         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83565
83566 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83567
83568         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83569         (2004-10-24) change.  Apparently this was a false alarm.
83570
83571         * modules/getdate: Depend on alloca-opt, not alloca.
83572
83573 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83574
83575         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83576         Remove now-obsolete comment about AIX.
83577         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83578         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83579         (YYMAXDEPTH): New macro.
83580
83581 2004-12-18  Simon Josefsson  <jas@extundo.com>
83582
83583         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83584
83585 2004-12-18  Bruno Haible  <bruno@clisp.org>
83586
83587         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83588
83589 2004-12-18  Bruno Haible  <bruno@clisp.org>
83590
83591         * lib/fatal-signal.c (fatal_signals): Make non-const.
83592         (init_fatal_signals): New function.
83593         (uninstall_handlers, install_handlers): Ignore signals that were set to
83594         SIG_IGN.
83595         (at_fatal_signal): Call init_fatal_signals.
83596         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83597         SIG_IGN.
83598         Reported by Paul Eggert.
83599
83600 2004-12-18  Bruno Haible  <bruno@clisp.org>
83601
83602         * doc/alloca.texi: New file.
83603         * doc/alloca-opt.texi: New file.
83604
83605 2004-12-17  Jim Meyering  <jim@meyering.net>
83606
83607         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83608         Otherwise, install-sh could exit with improper exit status when
83609         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83610
83611 2004-12-16  Simon Josefsson  <jas@extundo.com>
83612
83613         * tests/test-base64.c: Add license.
83614
83615 2004-12-15  Stepan Kasal  <address@hidden>
83616
83617         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83618
83619 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83620
83621         * modules/getcwd (Files): Add m4/d-ino.m4.
83622         Suggested by Mark D. Baushke.
83623
83624 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83625
83626         * lib/getdate.y (textint): New member "negative".
83627         (time_zone_hhmm): New function.
83628         Expect 14 shift-reduce conflicts, not 13.
83629         (o_colon_minutes): New rule.
83630         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83631         (yylex): Set the "negative" member of signed numbers.
83632
83633 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83634
83635         * doc/getdate.texi (Time of day items, Time zone items):
83636         Describe new formats +00:00, UTC+00:00.
83637
83638 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83639
83640         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83641         spurious "-l"s.  Problem reported by Stepan Kasal.
83642
83643 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83644
83645         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83646         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83647
83648 2004-12-04  Simon Josefsson  <jas@extundo.com>
83649
83650         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83651         Vandoorselaere <yoann@prelude-ids.org>.
83652
83653 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83654
83655         Changes imported from coreutils.
83656         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83657         exist.
83658         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83659
83660 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83661
83662         Changes imported from coreutils.
83663         * lib/hard-locale.c: Assume <locale.h> exists.
83664         Include "strdup.h".
83665         (GLIBC_VERSION): New macro.
83666         (hard_locale): Assume setlocale exists.
83667         Rewrite to avoid #ifdef.
83668         Use strdup rather than malloc + strcpy.
83669         * lib/human.c: Assume <locale.h> exists.
83670         (human_readable): Assume localeconv exists.
83671
83672 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83673
83674         * modules/hard-locale (Depends-on): Add strdup.
83675
83676 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83677
83678         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83679         convert T2, not T.  (Imported from libc.)
83680
83681 2004-11-30  Simon Josefsson  <jas@extundo.com>
83682
83683         * modules/restrict (License): Change to LGPL.
83684
83685 2004-11-30  Simon Josefsson  <jas@extundo.com>
83686
83687         * m4/restrict.m4: Add copyright and copying conditions.
83688
83689 2004-11-30  Simon Josefsson  <jas@extundo.com>
83690
83691         * m4/base64.m4: New file.
83692
83693 2004-11-30  Simon Josefsson  <jas@extundo.com>
83694
83695         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83696         base64.
83697
83698         * tests/test-base64.c: New file.
83699
83700         * modules/base64: New file.
83701
83702 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83703
83704         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83705         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83706
83707         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83708
83709 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83710
83711         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83712         (__getcwd.c): Don't restore errno; glibc doesn't.
83713         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83714         first, falling back to our code only if its results look suspicious.
83715         Ensure that the resulting buffer is only as large as necessary.
83716
83717         * lib/readutmp.c: Include readutmp.h first.
83718         Include <errno.h>, since readutmp.h no longer does that.
83719         * lib/readutmp.h: Don't include <errno.h>,
83720         <sys/param.h>, <time.h>; not needed to establish interface.
83721         (errno): Remove decl.
83722         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83723         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83724         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83725
83726 2004-11-28  Simon Josefsson  <jas@extundo.com>
83727
83728         * lib/base64.h, base64.c: New file.
83729
83730 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83731
83732         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83733
83734 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83735
83736         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83737         (Depends-on): Remove pathmax, same.  Add mempcpy.
83738         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83739         (Makefile.am): Append getcwd.h to lib_SOURCES.
83740         (Include): Add getcwd.h.
83741         (Maintainer): Change from Jim Meyering to "all, glibc",
83742         since getdate now uses intended-for-glibc code.
83743         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83744         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83745
83746 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83747
83748         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83749         HP's ANSI C compiler.
83750         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83751         Declaring int functions causes warnings on some modern systems and
83752         shouldn't be needed to compile on ancient ones.
83753         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83754         defined.
83755
83756         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83757         with the following changes.
83758         (__set_errno): Parenthesize properly.
83759         Include <stdbool.h>.
83760         (MIN, MAX, MATCHING_INO): New macros.
83761         (__getcwd): Define with prototype, not K&R form.
83762         Use heuristics to allocate default buffer on stack if possible.
83763         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83764         behavior, and to avoid the PATH_MAX limit when computing
83765         ../../../../...
83766         Use MATCHING_INO to compare inode number to file.
83767         Check for arithmetic overflow in size calculations.
83768         Fix bug in reallocation of dot array that caused getcwd to fail
83769         on directories nested deeper than 75.
83770         Be more careful about saving errno on error.
83771         Do not use realloc; use only free+malloc, as this is a bit
83772         more flexible and avoids a needless copy operation.
83773         Do not inspect st_dev and st_ino for symbolic links; POSIX
83774         doesn't specify the latter.
83775         Check for closedir errors.
83776         Avoid needless casts.
83777         Use "#ifdef weak_alias" around weak_alias, to be like other
83778         glibc code.
83779         The following changes to getcwd.c have effect only when used in
83780         gnulib; they have no effect inside glibc proper.
83781         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83782         as alloca isn't used.
83783         (alloca, __alloca): Likewise.
83784         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83785         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83786         unconditionally, as gnulib assumes C89 or better.
83787         Do not include <sys/param.h>.
83788         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83789         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83790         better.
83791         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83792         Include <dirent.h> in a way that is compatible with modern Autoconf.
83793         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83794         New macros, if not already defined.
83795         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83796         Use "_LIBC", not "defined _LIBC", for consistency.
83797         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83798         a mempcpy module.
83799         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83800         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83801         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83802         credit only to Jim Meyering and adjust the copyright dates.
83803         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83804         <stdlib.h>, <unistd.h>, "pathmax.h".
83805         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83806         (INITIAL_BUFFER_SIZE): Remove.
83807         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83808
83809 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83810
83811         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83812         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83813         Use the _ONCE methods, for efficiency.
83814         Check for fcntl.h.  In test program, include <errno.h>
83815         and <fcntl.h> if available.  Remove old K&R cruft from
83816         test program.  Check for common errors in GNU/Linux,
83817         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83818         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83819         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83820         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83821         name accordingly.
83822         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83823         accommodate new getcwd.c.
83824         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83825         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83826         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83827         that's all we need now.
83828
83829 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83830
83831         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83832         argp-parse.c depends on getopt internals, that means we should
83833         always use our getopt, to be on the safe side.
83834         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83835         order not to spoil the result of an eventual previous invocation
83836         of gl_GETOPT_SUBSTITUTE.
83837
83838 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83839
83840         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83841         redefinition warnings. To avoid them, include the defines
83842         in `#if !defined __need_getopt ... #endif'. The only place
83843         where __getopt_argv_const is used is in definitions
83844         of getopt_long and getopt_long_only below, which are as well
83845         protected by `#ifndef __need_getopt'.
83846         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83847         __need_getopt after including <stdio.h> and <unistd.h> These
83848         headers might have defined it.
83849
83850 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83851
83852         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83853
83854 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83855
83856         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83857         (futimens): New function, which uses futimes if available.
83858         (futimens, utimens): Support timespec==NULL, with same semantics
83859         as utime and utimens.
83860         * lib/utimens.h (futimens): New decl.
83861
83862 2004-11-23  Jim Meyering  <jim@meyering.net>
83863
83864         * lib/getopt_.h: Remove trailing blanks.
83865
83866 2004-11-23  Jim Meyering  <jim@meyering.net>
83867
83868         * lib/__fpending.c: Add comment.
83869
83870 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83871
83872         * modules/canonicalize (Depends-on): Add xreadlink.
83873         Problem reported by James Youngman.
83874
83875 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83876
83877         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83878         New macros.
83879         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83880         optopt): Use them instead of invoking ## directly; otherwise, the
83881         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83882
83883 2004-11-19  Bruno Haible  <bruno@clisp.org>
83884
83885         * lib/strtok_r.c: Move comments from here...
83886         * lib/strtok_r.h: ... to here.
83887
83888 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83889
83890         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83891         implementations that mishandle size_t overflow.
83892
83893 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83894
83895         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83896         might fail.  Problem reported by Yoann Vandoorselaere.
83897         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83898         implementations that mishandle size_t overflow.
83899
83900 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83901
83902         * modules/canon-host (Depends-on): Add strdup.
83903
83904 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83905
83906         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83907
83908 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83909
83910         * lib/canon-host.c: Include "strdup.h".
83911         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83912         Use strdup instead of malloc/strcpy to duplicate strings.
83913
83914         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83915         (human_space_before_unit): New constant.
83916         * lib/human.c (human_readable): Support it.
83917
83918         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83919         (xgetcwd): Set errno correctly when failing.
83920         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83921         the failure is actually due to a PATH_MAX problem.
83922
83923         Further getopt changes to make it more likely that glibc will
83924         buy the changes back.
83925         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83926         (getopt): Use it, so to preserve glibc semantic
83927         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83928         when compiling for libc.
83929         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83930         (getopt_long, getopt_long_only): Use it.
83931
83932         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83933         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83934         (getopt): Argv is now char * const *, as per standard.
83935         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83936         not char *__getopt_argv_const *.
83937         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83938         _getopt_long_only_r): Likewise.
83939         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83940         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83941         _getopt_long_r, _getopt_long_only_r): Likewise.
83942         * lib/getopt_.h (__getopt_argv_const): Remove.
83943         (getopt): Argv is now char * const *, as per standard.
83944
83945         * lib/getdate.y (tORDINAL): New token.
83946         (day, relunit): Allow it for relative times.
83947         (relative_time_table): Use tORDINAL for ordinals.
83948
83949 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83950
83951         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83952         Document that "second" isn't allowed as an ordinal number.
83953
83954 2004-11-16  Jim Meyering  <jim@meyering.net>
83955
83956         * modules/closeout (Depends-on): Add fpending.
83957
83958 2004-11-15  Jim Meyering  <jim@meyering.net>
83959
83960         * lib/closeout.c: Include "__fpending.h" once again.
83961         Include <stdbool.h>.
83962         (close_stdout): Don't fail just because stdout was closed initially,
83963         since some programs don't write to stdout in the normal course of
83964         operation (other than --version and --help), and we don't want this
83965         function to make e.g. `touch file >&-' fail.
83966         But do fail if it was closed and someone has tried to write to it.
83967         E.g., `printf foo >&-' must fail.
83968
83969 2004-11-13  Jim Meyering  <jim@meyering.net>
83970
83971         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83972
83973 2004-11-12  Simon Josefsson  <jas@extundo.com>
83974
83975         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83976         small doc fix is still pending.
83977
83978 2004-11-11  Simon Josefsson  <jas@extundo.com>
83979
83980         * modules/strtok_r: New file.
83981
83982         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83983         strtok_r.
83984
83985 2004-11-11  Simon Josefsson  <jas@extundo.com>
83986
83987         * m4/strtok_r.m4: New file.
83988
83989         * m4/getopt.m4: Replace opterr.
83990
83991 2004-11-11  Simon Josefsson  <jas@extundo.com>
83992
83993         * lib/strtok_r.h, strtok_r.c: New file.
83994
83995 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83996
83997         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83998         of replacing opterr, getopt, etc.  This should handle the
83999         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84000
84001 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84002
84003         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84004         we can stop lying to compilers about the constness of argv when we
84005         are compiled outside glibc.
84006         (getopt, getopt_long, getopt_long_only): Use it.
84007         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84008         _getopt_internal, getopt): Likewise.
84009         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84010         _getopt_long_only_r): Likewise.
84011         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84012         _getopt_long_r, _getopt_long_only_r): Likewise.
84013
84014         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84015         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84016         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84017         the other external symbols.
84018         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84019         declaration, since the above renaming now works around collisions.
84020
84021 2004-11-11  Jim Meyering  <jim@meyering.net>
84022
84023         * lib/linebreak.c: Remove trailing blanks.
84024         * lib/alloca_.h: Likewise.
84025         * lib/acosl.c: Likewise.
84026         * lib/euidaccess.c: Likewise.
84027         * lib/allocsa.h: Likewise.
84028
84029 2004-11-10  Simon Josefsson  <jas@extundo.com>
84030
84031         * m4/getaddrinfo.m4: New file.
84032
84033 2004-11-10  Simon Josefsson  <jas@extundo.com>
84034
84035         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84036
84037 2004-11-10  Simon Josefsson  <jas@extundo.com>
84038
84039         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84040         getaddrinfo.
84041
84042         * modules/getaddrinfo: New file.
84043
84044 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84047
84048 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84049
84050         * lib/mktime.c (SHR): New macro, which is a portable
84051         substitute for >> that should work even on Crays.
84052         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84053         Problem reported by Mark D. Baushke in
84054         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84055         * lib/getdate.y (SHR): Likewise.
84056         (tm_diff): Use it.
84057         * lib/strftime.c (SHR): Likewise.
84058         (tm_diff): Use it.
84059         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84060         quote_these_too, so that right shifts are well defined.  All uses
84061         changed.
84062
84063 2004-11-10  Jim Meyering  <jim@meyering.net>
84064
84065         Ensure that no close failure goes unreported.
84066         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84067         return early when it seems there's nothing to flush.
84068         Don't include __fpending.h.
84069
84070 2004-11-10  Jim Meyering  <jim@meyering.net>
84071
84072         * modules/closeout (Depends-on): Remove fpending.
84073
84074 2004-11-10  Jim Meyering  <jim@meyering.net>
84075
84076         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84077
84078 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84079
84080         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84081         gl_FUNC_STRFTIME.
84082         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84083         and AC_REQUIRE when possible, to avoid duplicate checks.
84084         Check for <wchar.h>.
84085
84086 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84087
84088         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84089
84090 2004-11-09  Bruno Haible  <bruno@clisp.org>
84091
84092         * m4/sockpfaf.m4: New file.
84093
84094 2004-11-05  Bruno Haible  <bruno@clisp.org>
84095
84096         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84097         Reported by Mark D. Baushke <mdb@cvshome.org>.
84098
84099 2004-11-04  Bruno Haible  <bruno@clisp.org>
84100
84101         2004-09-11  Bruno Haible  <bruno@clisp.org>
84102                 * allocsa.valgrind: New file.
84103         2004-02-06  Bruno Haible  <bruno@clisp.org>
84104                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84105                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84106                 Reported by Christopher Seip <chris.seip@hp.com>.
84107
84108 2004-11-04  Bruno Haible  <bruno@clisp.org>
84109
84110         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84111         (Makefile.am): Distribute it.
84112
84113 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84114
84115         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84116         with errno == ERANGE if the buffer is too small.
84117         Problem reported by Mark D. Baushke.
84118
84119 2004-11-03  Albert Chin  <china@thewrittenword.com>
84120             Paul Eggert  <eggert@cs.ucla.edu>
84121
84122         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84123         equivalent, substitute $ac_type for equivalent type rather than
84124         blindly using uint32_t *always* which won't work if uint32_t is not
84125         available.  Define _UINT32_T to work around typedef of uint32_t if
84126         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84127         2.5.1.
84128
84129 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84130
84131         * m4/jm-macros.m4: Sync from coreutils.
84132         (gl_MACROS): Check for mbrlen, for pathchk.
84133         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84134
84135 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84136
84137         * lib/xreadlink.c (MAXSIZE): New macro.
84138         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84139         size does not exceed MAXSIZE.  Avoid cast.
84140         As suggested by Mark D. Baushke in
84141         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84142         if readlink fails with buffer size just under MAXSIZE, try again
84143         with MAXSIZE.
84144
84145 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84146
84147         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84148
84149 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84150         and  Paul Eggert  <eggert@cs.ucla.edu>
84151
84152         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84153         (get_date): Overparenthesize to avoid GCC warning.
84154
84155 2004-11-02  Bruno Haible  <bruno@clisp.org>
84156
84157         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84158         returns void.
84159
84160 2004-11-02  Bruno Haible  <bruno@clisp.org>
84161
84162         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84163         function returns void.
84164
84165 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84166
84167         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84168         fflush_unlocked, flockfile, funlockfile, funlockfile,
84169         fputs_unlocked, putc_unlocked.
84170
84171 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84172
84173         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84174         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84175         already declared.
84176
84177 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84178
84179         * modules/getdate (Files): Add doc/getdate.texi.
84180         (Depends-on): Add setenv, xalloc.
84181
84182 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84183
84184         * lib/getdate.y: Add support for TZ="foo" within a date string.
84185         Fix some bugs near time_t boundaries.  Reject dates with
84186         out-of-range components, e.g., "Sept 31".
84187         Include <stdlib.h>, "setenv.h", "xalloc.h".
84188         (ISDIGIT_LOCALE): Remove; unused.
84189         Note that the TZ and time functions used here are not reentrant.
84190         (mktime_ok, get_tz): New functions.
84191         (TZBUFSIZE): New constant.
84192         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84193         This requires that we sometimes generate our own TZ="XXX..." setting.
84194
84195 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84196
84197         * doc/getdate.texi: New file, from coreutils with modifications for
84198         the new TZ parsing.
84199
84200 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84201
84202         * lib/mktime.c (not_equal_tm): Remove redundant check.
84203
84204 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84205
84206         * modules/regex (lib_SOURCES): Add regex.c.
84207         Reported by James Youngman in
84208         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84209
84210 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84211
84212         * lib/getdate.y: Use Bison 1.875 features, and some minor
84213         code cleanups.  This change does not affect semantics.
84214         Don't include <stdlib.h>; no longer needed.
84215         Don't include unlocked-io.h; only the "#if TEST" code uses
84216         stdio, and performance isn't crucial there.
84217         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84218         Bison 1.875 features as described below.
84219         All uses of "PC." replaced by "pc->".
84220         (YYSTYPE): Add a forward declaration.
84221         (yylex, yyerror): Use full prototypes in forward decls.
84222         Use "%pure-parser" rather than obsolescent "%pure_parser".
84223         Use %parse-param and %lex-param instead of obsolescent
84224         YYPARSE_PARAM and YYLEX_PARAM.
84225         (meridian_table, month_and_day_table, time_units_table,
84226         relative_time_table, time_zone_table, military_table,
84227         lookup_zone, lookup_word, get_date):
84228         Use NULL instead of 0 where appropriate.
84229         (to_hour): Avoid abort (), to avoid a dependency on
84230         stdlib.h.
84231         (yyerror, yylex): Now accepts parser_control * arg.
84232         (main) [TEST]: Use '\0' rather than 0 for char.
84233
84234 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84235
84236         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84237
84238 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84239
84240         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84241         It's now the caller's responsibility to handle the case where
84242         !HAVE_GETPAGESIZE && !defined getpagesize.
84243
84244         * lib/mktime.c (leapyear): Arg is long int, not int.
84245
84246 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84247
84248         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84249
84250 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84251
84252         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84253         missing.  Problem reported by James Youngman.
84254
84255 2004-10-16  Simon Josefsson  <jas@extundo.com>
84256
84257         * gnulib-tool: Fix comments.  Fix parse problem.
84258         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84259
84260 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84263         implementation of getopt_long.  Problem reported by Alexander Taler in:
84264         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84265
84266 2004-10-15  Bruno Haible  <bruno@clisp.org>
84267
84268         * gnulib-tool: Untabify. Initialize supplied_libname.
84269         (func_usage): More homogenous output.
84270         (func_modules_transitive_closure, func_modules_to_filelist,
84271         func_emit_lib_Makefile_am): New functions.
84272         (func_import): New function, extracted from big case statement. Use
84273         func_get_license, func_modules_transitive_closure,
84274         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84275         opt_lgpl. Don't use test -a, as it's not portable.
84276         (func_create_testdir): Use func_modules_transitive_closure,
84277         func_modules_to_filelist, func_emit_lib_Makefile_am.
84278
84279 2004-10-15  Bruno Haible  <bruno@clisp.org>
84280
84281         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84282
84283 2004-10-15  Bruno Haible  <bruno@clisp.org>
84284
84285         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84286         the portions belonging to each module.
84287         Suggested by Derek Robert Price <derek@ximbiot.com>.
84288
84289 2004-10-12  Simon Josefsson  <jas@extundo.com>
84290
84291         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84292         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84293         to real functions.
84294
84295 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84296
84297         * modules/vsnprintf: New file.
84298
84299 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84300
84301         * m4/vsnprintf.m4: New file.
84302
84303 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84304
84305         * lib/vsnprintf.h: New file.
84306         * lib/vsnprintf.c: New file.
84307
84308 2004-10-11  Bruno Haible  <bruno@clisp.org>
84309
84310         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84311         vsnprintf.
84312
84313 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84314
84315         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84316
84317 2004-10-07  Bruno Haible  <bruno@clisp.org>
84318
84319         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84320         fits into the provided buffer.
84321
84322 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84323
84324         * lib/diacrit.c, diacrit.h: Add GPL notice.
84325
84326         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84327         notice.
84328         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84329         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84330         This avoids a potential constant-folding bug.
84331
84332 2004-10-05  Bruno Haible  <bruno@clisp.org>
84333
84334         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84335         for the declaration of strsep.
84336
84337 2004-10-05  Bruno Haible  <bruno@clisp.org>
84338
84339         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84340
84341 2004-10-04  Simon Josefsson  <jas@extundo.com>
84342
84343         * modules/memmem: New file.
84344         * tests/test-memmem.c: New file.
84345         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84346
84347 2004-10-04  Simon Josefsson  <jas@extundo.com>
84348
84349         * m4/memmem.m4: New file.
84350
84351 2004-10-04  Simon Josefsson  <jas@extundo.com>
84352
84353         * lib/memmem.h: New file.
84354         * lib/memmem.c: New file, taken from glibc.
84355
84356 2004-10-04  Simon Josefsson  <jas@extundo.com>
84357
84358         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84359         '#ifdef USE_UNLOCKED_IO'.
84360
84361 2004-10-04  Simon Josefsson  <jas@extundo.com>
84362
84363         * config/srclist.txt: Add memmem from glibc.
84364
84365 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84366
84367         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84368
84369         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84370         modules/exclude, modules/getdate, modules/getline,
84371         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84372         modules/getusershell, modules/linebuffer, modules/md5,
84373         modules/mountlist, modules/posixtm, modules/readtokens,
84374         modules/readutmp, modules/regex, modules/sha1,
84375         modules/version-etc, modules/yesno:
84376         Remove dependency on unlocked-io.
84377
84378 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84379
84380         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84381
84382         * m4/unlocked-io.m4: Add copyright notice.
84383         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84384
84385 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84386
84387         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84388         * lib/xmalloc.c (xmemdup): Likewise.
84389         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84390         XFREE): Remove these long-obsolescent macros.
84391         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84392         * lib/xstrdup.c: Remove.
84393
84394         * lib/regex.c (re_comp): Cast gettext return value to char *,
84395         Problem reported by Martin Neitzel via Mark D. Baushke.
84396
84397 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84398
84399         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84400         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84401         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84402         regex.c, sha1.c, version-etc.c, yesno.c:
84403         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84404         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84405         the includer's responsibility.
84406
84407         Sync from coreutils.
84408
84409         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84410         points to the start of a string, as the C Standard says the
84411         resulting behavior is undefined.
84412
84413         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84414         simple -> simple_backups, numbered_existing ->
84415         numbered_existing_backups, numbered -> numbered_backups
84416         to avoid shadowing problems.  All uses changed.
84417         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84418         * lib/backupfile.c (check_extension, numbered_backup):
84419         Rename locals to avoid shadowing 'basename'.
84420         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84421         once.
84422
84423         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84424         * lib/.cvsignore: Add getopt.h.
84425
84426 2004-10-04  Bruno Haible  <bruno@clisp.org>
84427
84428         * modules/README: New file.
84429         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84430         not a module.
84431
84432 2004-10-02  Jim Meyering  <jim@meyering.net>
84433
84434         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84435
84436 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84437
84438         * modules/strsep: New file.
84439
84440 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84441
84442         * m4/strsep.m4: New file.
84443
84444 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84445
84446         * lib/strsep.h: New file.
84447         * lib/strsep.c: New file.
84448
84449 2004-10-01  Simon Josefsson  <jas@extundo.com>
84450
84451         * lib/snprintf.c (snprintf): Handle size==0.
84452
84453 2004-10-01  Simon Josefsson  <jas@extundo.com>
84454             Bruno Haible  <bruno@clisp.org>
84455
84456         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84457         (snprintf): Declare 'args'.
84458
84459 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84460
84461         * lib/snprintf.c: Remove comments as to why each header is needed.
84462
84463 2004-10-01  Bruno Haible  <bruno@clisp.org>
84464
84465         * MODULES.html.sh: Add strsep.
84466
84467 2004-09-30  Simon Josefsson  <jas@extundo.com>
84468
84469         * modules/snprintf: New file.
84470
84471 2004-09-30  Simon Josefsson  <jas@extundo.com>
84472
84473         * m4/snprintf.m4: New file.
84474
84475 2004-09-30  Simon Josefsson  <jas@extundo.com>
84476
84477         * lib/snprintf.h, lib/snprintf.c: New files.
84478
84479 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84480
84481         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84482         (hol_entry_help): Never translate an empty string.
84483         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84484         * lib/argp.h (OPTION_NO_TRANS): New option.
84485
84486 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84487
84488         * modules/argp (Maintainer): Replace Simon Josefsson
84489         by Sergey Poznyakoff.
84490
84491 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84492
84493         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84494         changes merged back into glibc.
84495
84496 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84497
84498         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84499
84500 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84501
84502         * lib/xvasprintf.c: Include xalloc.h.
84503         (xvasprintf): Use xalloc_die, not xmalloc_die.
84504
84505 2004-09-29  Bruno Haible  <bruno@clisp.org>
84506
84507         * modules/alloca-opt: New file, derived from modules/alloca.
84508         * modules/allocsa: Depend on alloca-opt instead of alloca.
84509         * modules/setenv: Likewise.
84510         * modules/vasnprintf: Likewise.
84511         * MODULES.html.sh: Add alloca-opt.
84512
84513 2004-09-28  Simon Josefsson  <jas@extundo.com>
84514
84515         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84516         LGPL, and to replace license template from GPL to LGPL.
84517
84518 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84519
84520         * modules/dummy: Change license to LGPL.
84521
84522 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84523
84524         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84525
84526 2004-09-24  Simon Josefsson  <jas@extundo.com>
84527
84528         * modules/minmax (License): Change from GPL to LGPL.
84529
84530 2004-09-23  Simon Josefsson  <jas@extundo.com>
84531
84532         * gnulib-tool (--import): Typo.
84533
84534 2004-09-23  Simon Josefsson  <jas@extundo.com>
84535
84536         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84537
84538 2004-09-22  Bruno Haible  <bruno@clisp.org>
84539
84540         * modules/*: Add 'License' field.
84541         * gnulib-tool: Accept --extract-license option.
84542         (func_get_license): New function.
84543
84544 2004-09-21  Bruno Haible  <bruno@clisp.org>
84545
84546         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84547         Reported by Simon Josefsson.
84548
84549 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84550
84551         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84552         gl_AC_TYPE_LONG_LONG.
84553
84554 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84555
84556         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84557
84558 2004-09-18  Simon Josefsson  <jas@extundo.com>
84559         and  Paul Eggert  <eggert@cs.ucla.edu>
84560
84561         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84562         calls with autoreconf.  Define GL_LIB.
84563
84564 2004-09-14  Karl Berry  <karl@gnu.org>
84565
84566         * config/srclist.txt: unsync setenv.c, sigh.
84567
84568 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84569
84570         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84571         Problem reported by Bruno Haible in:
84572         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84573
84574 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84575
84576         * config/srclist.txt: Comment out argp-pvh.c.
84577
84578 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84579
84580         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84581         in case some system header has #define'd it.  Problem reported by
84582         Soeren D. Schulze in
84583         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84584
84585 2004-09-09  Karl Berry  <karl@gnu.org>
84586
84587         * regex.[ch]: delete from the root.  These were supposed to be
84588                 synced with emacs cvs, but this has not happened for about
84589                 a year, and anyway nothing else uses emacs regex.[ch].
84590                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84591                 lib/regex[.ch] is untouched.
84592
84593 2004-09-09  Bruno Haible  <bruno@clisp.org>
84594
84595         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84596
84597 2004-09-09  Bruno Haible  <bruno@clisp.org>
84598
84599         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84600         modifications.
84601         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84602
84603 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84604
84605         * modules/xvasprintf: New file.
84606         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84607
84608 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84609
84610         * lib/xvasprintf.h: New file.
84611         * lib/xvasprintf.c: New file.
84612         * lib/xasprintf.c: New file.
84613
84614 2004-09-08  Bruno Haible  <bruno@clisp.org>
84615
84616         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84617
84618 2004-09-08  Bruno Haible  <bruno@clisp.org>
84619
84620         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84621         length is > INT_MAX.
84622         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84623         more.
84624
84625 2004-09-08  Bruno Haible  <bruno@clisp.org>
84626
84627         * lib/stdint_.h: New file, taken from GNU clisp.
84628
84629 2004-09-08  Bruno Haible  <bruno@clisp.org>
84630             Oskar Liljeblad  <oskar@osk.mine.nu>
84631
84632         * modules/stdint: New file.
84633         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84634
84635 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84636
84637         Import from coreutils.
84638         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84639         strings on unbounded length.  alloca's performance benefits aren't
84640         that important here.
84641         (V_STRDUP): Remove.
84642         (parse_with_separator): New function, with most of the internals
84643         of the old parse_user_spec.  Allow user to omit both user and group,
84644         for compatibility with FreeBSD.
84645         Clone only the user name, not the entire spec.
84646         Do not set *uid, *gid unless entirely successful.
84647         Avoid memory leak in some failing cases.
84648         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84649         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84650         (parse_user_spec): Rewrite to use parse_with_separator.
84651
84652 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84653
84654         * modules/userspec: Don't depend on alloca.
84655
84656 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84657
84658         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84659
84660 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84661
84662         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84663         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84664         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84665
84666 2004-08-16  Simon Josefsson  <jas@extundo.com>
84667
84668         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84669         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84670         Add --dry-run for --import.
84671         Let user provided command line parameters override configure.ac
84672         settings.
84673
84674 2004-08-12  Simon Josefsson  <jas@extundo.com>
84675
84676         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84677         as discussed with Paul Eggert in threads rooted at
84678         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84679         and
84680         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84681         Before, the test was empty, and relied on ELIDE_CODE in source
84682         code.)
84683         (gl_PREREQ_GETOPT): New macro.
84684         (gl_GETOPT): Use them.
84685
84686 2004-08-12  Simon Josefsson  <jas@extundo.com>
84687
84688         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84689         * lib/getopt_.h: Renamed from getopt.h.
84690
84691 2004-08-12  Simon Josefsson  <jas@extundo.com>
84692
84693         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84694         Change default library name from libfoo to libgnu.
84695         Now, if you have a configure.ac that says:
84696                 gl_SOURCE_BASE(gl)
84697                 gl_M4_BASE(gl/m4)
84698                 gl_MODULES(error getopt etcetera)
84699                 gl_INIT
84700         you can import all you need by running:
84701                 ../gnulib/gnulib-tool --import
84702
84703         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84704         (Makefile.am): Rewrite, use logic from argz.
84705         (Include): Use <getopt.h> instead of "getopt.h".
84706
84707 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84708
84709         * modules/argp (Files): Add m4/unlocked-io.m4.
84710         (Depends-on): Add extensions.
84711
84712 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84713
84714         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84715         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84716         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84717         Check for program_invocation_name, program_invocation_short_name,
84718         flockfile, funlockfile, features.h, _getopt_long_only_r.
84719
84720 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84721
84722         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84723         its complicated substitute.
84724         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84725         and program_invocation_name.
84726         (__argp_basename) [!_LIBC]: Remove; the only use was
84727         replaced by its body.
84728         (__argp_short_program_name): Change condition from
84729         !defined __argp_short_program_name to
84730         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84731         to match argp-namefrob.h.
84732         (__argp_failure): Don't assume strerror_r returns char *.
84733         * lib/argp-parse.c (N_): Define unconditionally.
84734         (argp_default_options): Fill out initializers with 0 to avoid
84735         gcc warnings.
84736
84737 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84738
84739         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84740         getopt1.c.
84741
84742 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84743
84744         Merge from coreutils.
84745
84746         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84747
84748         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84749         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84750
84751 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84752
84753         Merge from coreutils.
84754
84755         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84756         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84757         for Reliant Unix 5.43.
84758
84759         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84760         (union fooround): Use uintmax_t, not long int.
84761         The rest is a merge from libc:
84762         [defined _LIBC]: Include <shlib-compat.h>.
84763         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84764
84765         * lib/settime.c (settime): Recode to avoid warning with
84766         Sun Forte C 6U2.
84767
84768         * lib/strverscmp.c: Convert to UTF-8.
84769
84770 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84771
84772         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84773         m4/uintmax_t.m4.
84774
84775 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84776
84777         * modules/xalloc-die: New file.
84778         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84779
84780         * modules/md5 (Files): Add m4/uint32_t.m4.
84781         * modules/sha1: Renamed from modules/sha.
84782         (Files):
84783         Rename lib/sha.h to lib/sha1.h.
84784         Rename lib/sha.c to lib/sha1.c.
84785         Rename m4/sha.m4 to m4/sha1.m4.
84786         (lib_SOURCES): Likewise.
84787         (configure.ac): Rename gl_SHA to gl_SHA1.
84788         (Include): sha.h -> sha1.h.
84789
84790 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84791
84792         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84793         * m4/sha1.m4: Renamed from sha.m4.
84794         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84795
84796 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84797
84798         * lib/obstack.h (obstack_empty_p):
84799         Don't assume that chunk->contents is suitably aligned.
84800         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84801         Likewise. Problem reported by Benno in
84802         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84803
84804         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84805         readable.  This could be improved further but it'd take some work.
84806
84807 2004-08-08  Simon Josefsson  <jas@extundo.com>
84808
84809         * modules/xgethostname (Depends-on): Remove exit and error (not
84810         used).
84811
84812         * modules/getpass-gnu: Add getpass.h.
84813         (Depends-on): Add stdbool.
84814         * modules/getpass: Add getpass.h.
84815
84816 2004-08-08  Simon Josefsson  <jas@extundo.com>
84817
84818         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84819         Check getpass declaration.
84820
84821 2004-08-08  Simon Josefsson  <jas@extundo.com>
84822
84823         * lib/xgethostname.c: Don't include error.h (not used).
84824
84825         * lib/getpass.h: Add.
84826         * lib/getpass.c: Include getpass.h first.
84827
84828 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84829
84830         * lib/xalloc-die.c: New file.
84831         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84832         All uses removed.
84833         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84834         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84835         xalloc-die.c.
84836         (_, N_, xalloc_die): Move to xalloc-die.c.
84837         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84838         so that we needn't mess with xalloc_msg_memory_exhausted.
84839
84840         * lib/sha1.h: Renamed from sha.h.
84841         (SHA1_H): Renamed from _SHA_H.
84842         (sha1_ctx): Renamed from sha_ctx.
84843         (sha1_init_ctx): Renamed from sha_init_ctx.
84844         (sha1_process_block): Renamed from sha_process_block.
84845         (sha1_process_bytes): Renamed from sha_process_bytes.
84846         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84847         (sha1_read_ctx): Renamed from sha_read_ctx.
84848         (sha1_stream): Renamed from sha_stream.
84849         (sha1_buffer): Renamed from sha_buffer.
84850         * lib/sha1.c: Likewise; renamed from sha.c.
84851         Do not include <sys/types.h>.
84852         Include <stddef.h> rather than <stdlib.h>.
84853
84854 2004-08-08  Bruno Haible  <bruno@clisp.org>
84855
84856         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84857         FILESYSTEM_PREFIX_LEN.
84858         * lib/progreloc.c: Likewise.
84859         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84860
84861 2004-08-06  Simon Josefsson  <jas@extundo.com>
84862
84863         * modules/progname (Depends-on): Don't depend on stdbool.
84864
84865 2004-08-06  Simon Josefsson  <jas@extundo.com>
84866
84867         * modules/getsubopt: New file.
84868         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84869         getsubopt.
84870
84871 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84872
84873         More merge from coreutils.
84874
84875         * m4/utimens.m4, m4/utimecmp.m4: New files.
84876         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84877         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84878         prereq.m4, sha.m4: Import changes from coreutils.
84879
84880 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84881
84882         More merge from coreutils.
84883         * modules/raise, modules/readtokens0, modules/utimens:
84884         * modules/utimecmp, module/xnanosleep: New files.
84885         * modules/strftime: Add lib/strftime.h.
84886         Change include from <time.h> to "strftime.h".
84887         * modules/yesno: Add lib/yesno.h.
84888         * modules/backupfile: Remove lib/addext.c.
84889         * modules/euidaccess: Add stat-macros.h.
84890         * modules/canonicalize, modules/euidaccess,
84891         modules/filemode, modules/lchown, modules/makepath,
84892         modules/rmdir, modules/stat: Likewise.
84893
84894 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84895
84896         Merge from tar.
84897         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84898         SIZE_MAX is a valid preprocessor constant.
84899         (__argp_basename): Change from "#ifndef _LIBC"
84900         to "#ifndef __argp_short_program_name", so that
84901         we don't compile these functions for tar.
84902
84903         More merges from coreutils.
84904         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84905         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84906         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84907         * lib/addext.c: Remove; no longer needed.
84908         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84909         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84910         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84911         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84912         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84913         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84914         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84915         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84916         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84917         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84918         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84919         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84920         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84921         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84922         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84923         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84924         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84925         Import changes from coreutils.
84926
84927 2004-08-05  Simon Josefsson  <jas@extundo.com>
84928
84929         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84930
84931 2004-08-05  Simon Josefsson  <jas@extundo.com>
84932
84933         * m4/getsubopt.m4: New file.
84934
84935 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84936
84937         Merge from coreutils.
84938
84939         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84940         * m4/getcwd-path-max.m4: New files.
84941
84942         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84943         FILESYSTEM_PREFIX_LEN ->
84944         FILE_SYSTEM_PREFIX_LEN.
84945         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84946         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84947         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84948         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84949
84950         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84951         prerequisite modules now handle the DOS stuff.
84952         Don't check for unistd.h.
84953
84954 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84955
84956         Merge from coreutils.
84957
84958         * lib/.gdb-history: Remove; this doesn't belong here.
84959
84960         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84961         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84962         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84963         * lib/getcwd.c: New files.
84964
84965         * lib/dirname.h: Include <stdbool.h>.
84966         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84967         for consistency with POSIX terminology.  All uses changed.
84968         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84969         (strip_trailing_slashes): Use bool for booleans.
84970         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84971
84972         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84973         sometimes returns a positive errno value even when it succeeds.
84974         (print_errno_message) [!LIBC]: Fall back on strerror if
84975         __strerror_r fails.
84976
84977         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84978         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84979         (longest_relative_suffix): New function.
84980         (path_concat): Use it.  Assume first argument is not NULL.
84981         Port to DOS.  Omit redundant separators.
84982         Report an error instead of returning NULL.
84983         Use mempcpy instead of memcpy.
84984         (xpath_concat): Remove: not declared or used.
84985
84986         * lib/same.h: Include <stdbool.h>
84987         (same_name): Return bool, not int.
84988         * lib/same.c (same_name): Likewise.
84989         (errno): Don't declare; we assume C89 or better now.
84990
84991         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84992         if not already defined.
84993
84994         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84995         * lib/dup-safer.c (errno): Likewise.
84996
84997 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84998
84999         Merge from coreutils.
85000         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85001         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85002         * modules/path-concat: Don't depend on strdup.
85003
85004 2004-08-03  Simon Josefsson  <jas@extundo.com>
85005
85006         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85007         * lib/progname.h: Don't include stdbool.h.
85008
85009 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85010
85011         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85012         * MODULES.html.sh (func_all_modules): Remove fatal.
85013
85014 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85015
85016         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85017
85018 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85019
85020         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85021         working.
85022
85023 2004-08-02  Simon Josefsson  <jas@extundo.com>
85024
85025         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85026         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85027         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85028
85029 2004-08-01  Simon Josefsson  <jas@extundo.com>
85030
85031         * lib/xgetdomainname.c: Include stdlib.h, for free().
85032
85033 2004-07-19  Bruno Haible  <bruno@clisp.org>
85034
85035         * MODULES.html.sh (func_all_modules): Add dummy.
85036
85037 2004-07-16  Simon Josefsson  <jas@extundo.com>
85038
85039         * modules/dummy: New file.
85040
85041 2004-07-16  Simon Josefsson  <jas@extundo.com>
85042
85043         * lib/dummy.c: New file.
85044
85045 2004-07-16  Bruno Haible  <bruno@clisp.org>
85046
85047         * lib/backupfile.h: Add extern "C" for C++.
85048         * lib/closeout.h: Likewise.
85049         * lib/copy-file.h: Likewise.
85050         * lib/findprog.h: Likewise.
85051         * lib/full-write.h: Likewise.
85052         * lib/pathname.h: Likewise.
85053         * lib/progname.h: Likewise.
85054         * lib/stpcpy.h: Likewise.
85055         * lib/stpncpy.h: Likewise.
85056         * lib/strcase.h: Likewise.
85057         * lib/strstr.h: Likewise.
85058         * lib/xalloc.h: Likewise.
85059
85060         * lib/mbswidth.h: Add extern "C" for C++.
85061         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85062
85063 2004-07-13  Robert Millan  <robertmh@gnu.org>
85064
85065         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85066
85067 2004-07-09  Simon Josefsson  <jas@extundo.com>
85068
85069         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85070         failed without this.)
85071
85072 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85073
85074         * modules/chown (Files): Add lib/fchown-stub.c, since
85075         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85076
85077 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85078
85079         * lib/fchown-stub.c: New file.
85080
85081 2004-06-24  Jim Meyering  <jim@meyering.net>
85082
85083         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85084
85085 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85086
85087         * modules/argz: Omit "#include".
85088
85089         * MODULES.html.sh (func_all_modules): Add calloc, to match
85090         2004-06-01 addition of calloc module.
85091
85092 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85093
85094         * m4/argz.m4: New file, which is autoupdated from libtool.
85095
85096 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85097
85098         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85099         libtool.
85100
85101 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85102
85103         * config/srclist-update: Don't insist on "USA." before the
85104         close-comment, as libtool omits the period and puts the */ on a
85105         separate line.
85106         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85107         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85108
85109 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85110
85111         * modules/argz: New file.
85112         * MODULES.html.sh (func_all_modules): Add argz.
85113
85114 2004-06-12  Jim Meyering  <jim@meyering.net>
85115         and  Paul Eggert  <eggert@cs.ucla.edu>
85116
85117         * modules/hash (Files): Add lib/xalloc.h.
85118         * modules/pipe (Depends-on): Add wait-process.
85119         * modules/stat (Depends-on): Add xalloc.
85120         * modules/userspec (Files): Add lib/userspec.h.
85121         * modules/xstrto
85122
85123         Upgrade from gettext-0.13.
85124         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85125         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85126         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85127
85128 2004-06-10  Jim Meyering  <jim@meyering.net>
85129
85130         * lib/calloc.c: New file.
85131
85132 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85133
85134         * lib/getdate.y (yylex): Allow space between sign and number.
85135         Problem reported by Dan Jacobson.
85136
85137 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85138
85139         Merge from coreutils CVS.
85140
85141         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85142         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85143         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85144         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85145         xstrtol.m4: Fix copyright date and/or serial number.
85146
85147         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85148         See if we need an fchown replacement.
85149         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85150         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85151         and use the replacement function if we detect either defect.
85152
85153         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85154         gl_UTIMECMP.
85155
85156 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85157         and  Jim Meyering  <jim@meyering.net>
85158
85159         Merge from coreutils CVS.
85160
85161         * lib/stat-macros.h: New file, with contents from file-type.h
85162         and coreutils' system.h.
85163         * lib/file-type.c: Include "stat-macros.h".
85164         * lib/file-type.h (file_type): Move all macro definitions to new file,
85165         stat-macros.h.
85166
85167         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85168         Wrap old code with this conditional.
85169         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85170         function that does not dereference symlinks.
85171         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85172
85173         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85174         dependency problems.
85175         (xreadlink): Accept new arg SIZE, for efficiency.
85176         All decls and uses changed.
85177         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85178
85179         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85180         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85181
85182         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85183         sysexits.h.
85184
85185 2004-06-01  Jim Meyering  <jim@meyering.net>
85186
85187         * m4/calloc.m4: New file.
85188
85189 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85190
85191         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85192         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85193         Also, fix a typo in a diagnostic.
85194
85195 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85196
85197         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85198         or AC_FUNC_REALLOC.
85199
85200 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85201
85202         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85203         macros to be defined.
85204         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85205         the allocator returns NULL because the requested size is zero.
85206
85207 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85208
85209         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85210         var.  Add comment explaining why libc still defines it.  This
85211         merges the following patch from glibc:
85212         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85213
85214 2004-05-20  Andreas Schwab  <schwab@suse.de>
85215
85216         * m4/free.m4: Replace free if it not known to work, not the other
85217         way round.
85218
85219 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85220
85221         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85222         present in glibc since revision 1.1 of this file.
85223         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85224         obstack_alignment_mask, obstack_alloc, obstack_base,
85225         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85226         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85227         obstack_grow0, obstack_init, obstack_int_grow,
85228         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85229         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85230         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85231         nonexistent functions.
85232
85233 2004-05-18  Karl Berry  <karl@gnu.org>
85234
85235         * config/srclist.txt: break link for vasnprintf.c.
85236
85237 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85238
85239         Port obstack to the AS/400, where pointers are 16 bytes wide and
85240         you cannot cast an integer to a valid pointer.  This patch is
85241         currently waiting to be integrated into glibc; see
85242         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85243
85244         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85245         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85246         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85247         (struct obstack): temp member is now a union of a pointer and
85248         an integer, instead of an integer.  All integer uses changed.
85249         This does not affect the physical layout of struct obstack,
85250         except on hosts (like the AS/400) where the size or alignment of
85251         void * is greater than that of ptrdiff_t.
85252         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85253         __STDC__)]: Store temporary in pointer member of union, not
85254         integer member.
85255         * lib/obstack.c: Include <stddef.h>, for offsetof.
85256         (struct fooalign): Remove; it doesn't need a name.
85257         (union fooround): Change double to long double, and add void *.
85258         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85259         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85260         not a macro.  Hence the values are always int; so remove all
85261         casts-to-int in uses.
85262
85263 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85264
85265         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85266         we can get this patch merged into glibc.
85267
85268 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85269             Paul Eggert  <eggert@cs.ucla.edu>
85270
85271         * m4/argp: Depend on alloca.
85272
85273 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85274             Paul Eggert  <eggert@cs.ucla.edu>
85275
85276         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85277         freecoding.
85278
85279 2004-05-17  Bruno Haible  <bruno@clisp.org>
85280
85281         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85282         precision that consists of a '.' followed by an empty digit string.
85283         Patch by Tor Lillqvist <tml@iki.fi>.
85284
85285 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85286
85287         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85288         for backward compatibility with older code.  We need our own
85289         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85290         it under some other name, and our alloca.h will define it.
85291
85292 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85293             Derek Price  <derek@ximbiot.com>
85294
85295         * lib/alloca.c: Include <alloca.h>, to get our interface.
85296         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85297         include <alloca.h> first.  Use C89 prototype for alloca; this
85298         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85299         Use #elif for simplicity, since we can assume C89 now.
85300         Don't try to source the system alloca.h since it will not be found
85301         and to prevent recursively including its replacement.
85302         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85303         * lib/regex.c: Likewise.
85304
85305 2004-05-16  Derek Price  <derek@ximbiot.com>
85306             Paul Eggert  <eggert@cs.ucla.edu>
85307
85308         getline cleanup.  This changes the getndelim2 API: both order of
85309         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85310         no delimiter).
85311
85312         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85313         interface does that.
85314         (getline): Always use getdelim, so that we don't have two
85315         copies of this code.
85316         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85317         if available.
85318         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85319         (GETNDELIM2_MAXIMUM): New macro.
85320         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85321         instead of the old practice of delim2==0.  All callers changed.
85322         Return -1 on overflow, instead of returning junk.
85323         Do not set *linesize unless allocation succeeds.
85324         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85325         that we include sys/types.h.
85326         * lib/getnline.h: Likewise.
85327         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85328         (getndelim2): Reorder arguments.
85329         * lib/getnline.c (getnline, getndelim):
85330         Don't discard the NMAX argument.
85331         (getnline): Invoke getndelim, to avoid code duplication.
85332         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85333         of (size_t) -1 by callers of the getnline family.
85334
85335 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85336
85337         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85338         Check for gettimeofday.
85339         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85340         Check for settimeofday, stime.
85341
85342 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85343
85344         * lib/nanosleep.c (suspended): Change its type from int to
85345         sig_atomic_t volatile.
85346         (first_call): Make it private to rpl_nanosleep, and have it
85347         be zero initially as that's a bit faster.
85348         (my_usleep): Round up fractional times instead of truncating them,
85349         as this is the usual meaning for 'sleep'.
85350
85351         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85352         doesn't work.
85353         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85354         (ENOSYS): Define if not defined.
85355         (settime): Fall back on stime if it exists and settimeofday fails.
85356         But don't bother with fallbacks if a method fails with errno == EPERM.
85357
85358 2004-05-11  Jim Meyering  <jim@meyering.net>
85359
85360         Prior to this change, the save_cwd caller required read access to the
85361         current directory on most systems (ones with the fchdir function).
85362
85363         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85364         fails, try write-only, and finally, resort to using xgetcwd.
85365
85366 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85367
85368         * lib/obstack.c, obstack.h: Import changes from libc.
85369
85370 2004-04-28  Bruno Haible  <bruno@clisp.org>
85371
85372         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85373         also implicitly appends .exe to executables.
85374         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85375         accepts Windows pathnames.
85376         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85377         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85378         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85379         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85380         Reported by Derek Robert Price <derek@ximbiot.com>.
85381
85382 2004-04-21  Karl Berry  <karl@gnu.org>
85383
85384         * config/srclist.txt (localcharset.c): break sync.
85385
85386 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85387
85388         * m4/host-os.m4: Add a copyright notice.
85389
85390 2004-04-20  Jim Meyering  <jim@meyering.net>
85391
85392         Change UTILS_ to gl_ in AC_DEFINE'd names.
85393         Change utils_- and jm_-prefixed variables, too.
85394         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85395         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85396         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85397
85398         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85399         Don't emit trailing blanks.
85400         Also rename jm_-prefixed variables to have gl_ prefix.
85401
85402         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85403         Also rename jm_-prefixed variables to have gl_ prefix.
85404
85405         * m4/jm-macros.m4: Reflect the renamings.
85406         * m4/prereq.m4: Likewise.
85407
85408 2004-04-20  Jim Meyering  <jim@meyering.net>
85409
85410         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85411         memory.
85412
85413 2004-04-20  Jim Meyering  <jim@meyering.net>
85414             Bruno Haible  <bruno@clisp.org>
85415
85416         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85417         memory when realloc fails.
85418
85419 2004-04-19  Jim Meyering  <jim@meyering.net>
85420
85421         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85422         now that readutmp.c may call `free (0)'.
85423
85424 2004-04-19  Bruno Haible  <bruno@clisp.org>
85425
85426         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85427         * m4/inttypes_h.m4: Likewise.
85428         * m4/stdint_h.m4: Likewise.
85429         * m4/intmax_t.m4: Likewise.
85430         * m4/uintmax_t.m4: Likewise.
85431
85432 2004-04-18  Jim Meyering  <jim@meyering.net>
85433
85434         * m4/prereq.m4: Don't forbid jm_ prefix.
85435
85436         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85437         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85438         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85439         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85440         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85441         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85442         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85443         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85444         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85445         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85446         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85447         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85448         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85449         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85450         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85451         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85452         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85453         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85454         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85455
85456 2004-04-18  Jim Meyering  <jim@meyering.net>
85457
85458         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85459         failure, don't leak memory and do call END_UTMP_ENT.
85460
85461 2004-04-16  Jim Meyering  <jim@meyering.net>
85462
85463         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85464         coreutils' stat program.
85465         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85466
85467 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85468
85469         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85470         C89.
85471         (CHAR_BIT): Remove, since we assume C89.
85472         Include <stdint.h> if available, as per current Autoconf CVS advice.
85473
85474 2004-03-31  Jim Meyering  <jim@meyering.net>
85475
85476         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85477         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85478         * m4/xalloc.m4: Likewise.
85479
85480 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85481
85482         Merge from coreutils.
85483
85484         * m4/inttostr.m4: New file.
85485         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85486         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85487         Require gl_CLOCK_TIME.
85488         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85489
85490 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85491
85492         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85493         not bool, to be more consistent with Unix conventions.
85494         Suggested by Bruno Haible.
85495
85496         Merge from coreutils.
85497
85498         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85499         * lib/umaxtostr.c: New files.
85500
85501         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85502         the usual <time.h> dance.
85503         (get_date): Change signature to support fractional time stamps.
85504         All callers changed.
85505         * lib/getdate.y: Include "getdate.h" first, as we can now
85506         assume C89 and don't need to worry about 'const'.
85507         Similarly, include "unlocked-io.h" near start, not in middle.
85508         Include <limits.h>.
85509         (textint.value): Use long int rather than int.
85510         (textint.digits): Use size_t rather than int.
85511         (BILLION, LOG10_BILLION): New constants.
85512         (parser_control): New member rel_ns.  Members day_ordinal,
85513         time_zone, month, day, hour, minutes, rel_year, rel_month,
85514         rel_day, rel_hour, rel_minutes, rel_seconds
85515         are now long int, not int.  Member seconds is now struct timespec,
85516         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85517         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85518         not int.
85519         (%union.intval): Now long int, not int.
85520         New member timespec.
85521         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85522         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85523         (spec): Now is a timespec or an item list.
85524         (timespec, items): New nonterminals.
85525         (time, rel, relunit, number, get_date):
85526         Add support for fractional seconds.
85527         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85528         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85529         (to_hour): First arg is now long int, not int.
85530         (to_year): Returns long int, not int.
85531         Don't treat year -70 like 70.
85532         (tm_diff): Returns long int, not int.
85533         (lookup_word): Use bool instead of int when appropriate.
85534         (yylex): Use size_t for count, not int.
85535         Detect overflow when parsing large integer constants.
85536         Add support for fractions.
85537         (get_date): Make pointers 'const' if possible.
85538         Use more-portable code to detect integer overflow.
85539         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85540         Don't use ctime; it's not reliable if the year has >4 digits.
85541
85542         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85543         This is for compatibility with BSD.
85544
85545         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85546         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85547         From coreutils' system.h.
85548
85549         * lib/userspec.c: Don't include "posixver.h".
85550         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85551         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85552         compatible extension.  Simplify code by removing a boolean int
85553         that was always nonzero if a string was nonnull.
85554
85555 2004-03-30  Jim Meyering  <jim@meyering.net>
85556
85557         Merge from coreutils.
85558
85559         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85560         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85561         on some systems one must include <grp.h> before it.
85562         Reported by Christian Krackowizer.
85563
85564 2004-03-30  Jim Meyering  <jim@meyering.net>
85565
85566         Merge from coreutils.
85567
85568         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85569
85570         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85571         an empty input stream.
85572
85573         * lib/readtokens.c: Include <stdbool.h>.
85574         (readtoken): Use `size_t' rather than int/long.
85575         All callers adjusted.
85576         Use `bool' rather than `int' where appropriate.
85577         Use memset rather than an explicit loop.
85578         Use x2nrealloc rather than xrealloc.
85579         Allow the use of `\0' as a delimiter.
85580         (readtokens): Likewise.
85581         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85582
85583 2004-03-30  Jim Meyering  <jim@meyering.net>
85584
85585         * m4/realloc.m4: Remove file, since now it does no more than
85586         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85587         the `configure.ac' section of module/realloc.
85588         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85589
85590 2004-03-30  Bruno Haible  <bruno@clisp.org>
85591
85592         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85593         nonnull.
85594
85595 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85596
85597         Merge changes to getloadavg.c from coreutils and Emacs.
85598
85599         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85600         Define to an expression, not to the empty string.
85601         Include cloexec.h and xalloc.h.
85602         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85603         Use set_cloexec_flag rather than rolling our own.
85604         * lib/cloexec.c, lib/cloexec.h: New files.
85605
85606 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85607
85608         * m4/cloexec.m4: New file.
85609
85610 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85611
85612         * lib/getopt.h: Sync with libc CVS.
85613
85614 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85615             Bruno Haible  <bruno@clisp.org>
85616
85617         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85618         mbswidth.
85619
85620 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85621             Bruno Haible  <bruno@clisp.org>
85622
85623         * lib/mbswidth.h: Include <wchar.h> only if
85624         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85625         <wchar.h>.
85626         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85627
85628 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85629
85630         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85631         Sync with libc CVS.
85632         * lib/getopt_int.h: New file, also synced from libc.
85633
85634 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85635
85636         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85637         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85638         Bring back getopt.c, getopt.h, getopt1.c.
85639
85640 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85641
85642         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85643         All uses changed.  Check for sa_sigaction member; this fixes
85644         a bug first reported by Jason Andrade in
85645         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85646
85647 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85648
85649         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85650         '#if' expressions.  Unlike the code it replaces, it does not
85651         depend on (defined _SC_PAGESIZE).  However, it does depend on
85652         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85653         first reported by Jason Andrade in
85654         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85655
85656 2004-02-25  Simon Josefsson  <jas@extundo.com>
85657
85658         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85659
85660 2004-02-25  Simon Josefsson  <jas@extundo.com>
85661
85662         * lib/strdup.h: New file.
85663         * lib/strdup.c: Include it.
85664         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85665         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85666
85667 2004-02-23  Karl Berry  <karl@gnu.org>
85668
85669         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85670         (from fencepost.gnu.org:/gd/gnuorg).
85671
85672 2004-02-23  Karl Berry  <karl@gnu.org>
85673
85674         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85675         * config/srclist.txt: add maintain/standards documents.
85676
85677 2004-02-18  Bruno Haible  <bruno@clisp.org>
85678
85679         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85680         Reported by Derek Robert Price <derek@ximbiot.com>.
85681
85682 2004-02-16  Karl Berry  <karl@gnu.org>
85683
85684         * config/mkinstalldirs, install-sh: update from automake.
85685
85686 2004-02-06  Karl Berry  <karl@gnu.org>
85687
85688         * m4/po.m4: update from gettext 0.14.1.
85689
85690 2004-02-06  Karl Berry  <karl@gnu.org>
85691
85692         * lib/config.charset: update from gettext 0.14.1.
85693
85694 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85695
85696         Add comments and code, prompted by suggestions from Bruno Haible
85697         for sh-quote.
85698         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85699         describing the enum quoting_style values.
85700         * lib/quotearg.c (quotearg_alloc): New function.
85701         (quotearg_buffer_restyled): Treat lone { and } as special.
85702         Treat = as special.  Work around bug with older shells
85703         that "see" a '\' that is really the 2nd byte of a multibyte char.
85704         Quote empty string with shell_quoting_style.
85705
85706 2004-02-03  Bruno Haible  <bruno@clisp.org>
85707
85708         * m4/pipe.m4: New file, from GNU gettext.
85709
85710 2004-02-03  Bruno Haible  <bruno@clisp.org>
85711
85712         * lib/pipe.h: New file, from GNU gettext.
85713         * lib/pipe.c: New file, from GNU gettext.
85714
85715 2004-01-27  Bruno Haible  <bruno@clisp.org>
85716
85717         * m4/execute.m4: New file, from GNU gettext.
85718
85719 2004-01-27  Bruno Haible  <bruno@clisp.org>
85720
85721         * lib/execute.h: New file, from GNU gettext.
85722         * lib/execute.c: New file, from GNU gettext.
85723         * lib/w32spawn.h: New file, from GNU gettext.
85724
85725 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85726
85727         Merge from diffutils.
85728
85729         * lib/file-type.c (file_type): Add typed memory objects.
85730         * lib/file-type.h (S_TYPEISTMO): New macro.
85731
85732         * lib/c-stack.h (c_stack_action): Remove argv argument.
85733         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85734         (die): Don't calculate message unless segv_action returns.
85735         (get_stack_location, min_address_from_argv, max_address_from_argv,
85736         volatile stack_base, volatile_stack_size): Remove.
85737         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85738         that every segmentation violation is a stack overflow.  (Ouch!)
85739         See Debian bug 136249 (still outstanding) for more info about why
85740         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85741
85742 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85743
85744         Exit-status fix from coreutils.
85745
85746         Use exit_failure consistently in place of EXIT_FAILURE,
85747         so that program exit statuses are consistent on failure.
85748
85749         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85750         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85751         * lib/argmatch.h: Comment fix to match the above.
85752         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85753         Now a macro referring to exit_failure, instead of a separate
85754         variable.  Include "exitfail.h" to get it.
85755         * lib/xstrtol.h: Include "exitfail.h".
85756         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85757
85758         * lib/long-options.c (parse_long_options): Use prototype
85759         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85760         for clarity.
85761
85762 2004-01-21  Jim Meyering  <jim@meyering.net>
85763
85764         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85765         so as not to conflict with a different-sized __mktime_internal
85766         function in GNU libc.
85767         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85768         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85769
85770 2004-01-20  Karl Berry  <karl@gnu.org>
85771
85772         * config/config.guess: update from config.
85773
85774         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85775
85776 2004-01-20  Bruno Haible  <bruno@clisp.org>
85777
85778         Safer stack allocation.
85779         * lib/setenv.c: Include allocsa.h.
85780         (alloca): Remove fallback definition.
85781         (freea): Remove macro.
85782         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85783         instead of freea.
85784
85785 2004-01-20  Bruno Haible  <bruno@clisp.org>
85786
85787         * m4/eealloc.m4: New file, from GNU gettext.
85788
85789 2004-01-20  Bruno Haible  <bruno@clisp.org>
85790
85791         * m4/allocsa.m4: New file, from GNU gettext.
85792
85793 2004-01-20  Bruno Haible  <bruno@clisp.org>
85794
85795         * lib/xallocsa.h: New file, from GNU gettext.
85796         * lib/xallocsa.c: New file, from GNU gettext.
85797
85798 2004-01-20  Bruno Haible  <bruno@clisp.org>
85799
85800         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85801
85802 2004-01-20  Bruno Haible  <bruno@clisp.org>
85803
85804         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85805         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85806         specially.
85807
85808 2004-01-20  Bruno Haible  <bruno@clisp.org>
85809
85810         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85811         patch.
85812
85813 2004-01-20  Bruno Haible  <bruno@clisp.org>
85814
85815         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85816
85817 2004-01-20  Bruno Haible  <bruno@clisp.org>
85818
85819         * lib/eealloc.h: New file.
85820
85821 2004-01-20  Bruno Haible  <bruno@clisp.org>
85822
85823         * lib/binary-io.h: Avoid warnings on Cygwin.
85824
85825 2004-01-20  Bruno Haible  <bruno@clisp.org>
85826
85827         * lib/allocsa.h: New file, from GNU gettext.
85828         * lib/allocsa.c: New file, from GNU gettext.
85829
85830 2004-01-18  Karl Berry  <karl@gnu.org>
85831
85832         * doc/gpl.texi, doc/lgpl.texi: new files.
85833
85834 2004-01-18  Karl Berry  <karl@gnu.org>
85835
85836         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85837         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85838
85839 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85840
85841         Merge from coreutils.
85842
85843         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85844         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85845         (gl_DEFAULT_POSIX2_VERSION): Move
85846         the documentation from 'configure' into 'config.hin',
85847         so that 'configure --help' isn't burdened by it and
85848         we don't have to worry about its formatting there.
85849         Reword the documentation so that it's more succinct
85850         and can be run together into a single paragraph.
85851         * m4/same.m4 (gl_SAME): Check for pathconf.
85852
85853 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85854
85855         Merge from coreutils.
85856
85857         * lib/posixver.c: Include posixver.h.
85858
85859         * lib/same.c: Include <stdbool.h>, <limits.h>.
85860         (_POSIX_NAME_MAX): Define if not defined.
85861         (MIN): New macro.
85862         (same_name): If file names are silently truncated, report
85863         that the file names are the same if they are the same after
85864         the silent truncation.
85865
85866         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85867         conversion function.
85868         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85869         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85870         longer needed.
85871
85872 2004-01-15  Jim Meyering  <jim@meyering.net>
85873
85874         Merge from coreutils.
85875
85876         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85877         if no library is required.
85878         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85879         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85880         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85881         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85882         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85883         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85884         value, $ac_cv_search_crypt, if it's "none required".
85885         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85886         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85887         not gl_FUNC_GETLOADAVG.
85888         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85889         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85890
85891 2004-01-15  Jim Meyering  <jim@meyering.net>
85892
85893         Merge from coreutils.
85894
85895         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85896         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85897         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85898
85899         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85900         optional configure-time default.
85901
85902         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85903
85904         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85905
85906 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85907
85908         Merge from coreutils.
85909
85910         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85911         value, $ac_cv_search_nanosleep, if it's "none required".
85912
85913 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85914
85915         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85916         with like-named macro in fnmatch.c.
85917         (EXT): Use an internal constant instead.
85918
85919         Merge fnmatch patches from glibc.
85920         * lib/fnmatch.c (mbsinit): Remove define.
85921         Add libc_hidden_ver (__fnmatch, fnmatch).
85922         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85923         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85924
85925 2004-01-14  Karl Berry  <karl@gnu.org>
85926
85927         * config/install-sh: update from automake.
85928
85929 2004-01-13  Karl Berry  <karl@gnu.org>
85930
85931         * config/install-sh: update from automake.
85932
85933 2004-01-09  Karl Berry  <karl@gnu.org>
85934
85935         * config/install-sh: update from automake.
85936
85937 2004-01-05  Karl Berry  <karl@gnu.org>
85938
85939         * config/config.{sub,guess}: update from config.
85940
85941 2003-12-31  Karl Berry  <karl@gnu.org>
85942
85943         * config/depcomp: update from automake.
85944
85945 2003-12-14  Karl Berry  <karl@gnu.org>
85946
85947         * lib/config.charset: update from gettext-runtime.
85948
85949 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85950
85951         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85952         Bug reported by Alfred M. Szmidt.
85953
85954 2003-12-03  Bruno Haible  <bruno@clisp.org>
85955
85956         * m4/gettext.m4: Upgrade from gettext-0.13.
85957         * m4/po.m4: Upgrade from gettext-0.13.
85958         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85959         * m4/intmax.m4: New file, from gettext-0.13.
85960         * m4/printf-posix.m4: New file, from gettext-0.13.
85961
85962 2003-11-29  Karl Berry  <karl@gnu.org>
85963
85964         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85965
85966 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85967             Bruno Haible  <bruno@clisp.org>
85968
85969         * lib/printf-parse.h: Don't include sys/types.h.
85970         (ARG_NONE): New macro.
85971         (char_directive): Change type of *arg_index fields to size_t.
85972         * lib/printf-parse.c: Don't include sys/types.h.
85973         (SSIZE_MAX): Remove macro.
85974         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85975         Remove unnecessary overflow check.
85976         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85977         fields.
85978
85979 2003-11-25  Bruno Haible  <bruno@clisp.org>
85980
85981         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85982
85983 2003-11-25  Bruno Haible  <bruno@clisp.org>
85984
85985         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85986         gt_TYPE_SSIZE_T.
85987
85988 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85989
85990         * modules/alloca: Remove dependency on xalloc.
85991
85992 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85993
85994         * lib/alloca.c: Remove dependency on xalloc module.
85995         (xalloc_die): Remove.
85996         (memory_full) [!defined emacs]: New macro.
85997         [!defined emacs]: Don't include xalloc.h.
85998         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85999         address arithmetic overflows.  Change datatypes a bit to avoid
86000         unnecessary casts.
86001
86002 2003-11-22  Jim Meyering  <jim@meyering.net>
86003
86004         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86005         s/size/size_t/.
86006
86007 2003-11-21  Karl Berry  <karl@gnu.org>
86008
86009         * config/config.{sub,guess}: update from config.
86010
86011 2003-11-18  Karl Berry  <karl@gnu.org>
86012
86013         * config/config.{sub,guess}: update from config.
86014
86015         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86016
86017 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86018
86019         * README: Mention that S+T cannot overflow if S is the size of
86020         an existing object and T is sufficiently small.
86021
86022 2003-11-17  Jim Meyering  <jim@meyering.net>
86023
86024         On systems without utime and without a utimes function capable of
86025         dealing with a NULL struct utimbuf* argument, this utime replacement
86026         could -- in unusual circumstances -- leak a file descriptor.
86027         * lib/utime.c: Include <unistd.h> and <errno.h>.
86028         (utime_null): Be sure to close `fd' and to preserve errno.
86029         Reported by Geoff Collyer via Arnold Robbins.
86030
86031 2003-11-17  Bruno Haible  <bruno@clisp.org>
86032
86033         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86034         (Depends-on): Add xsize.
86035
86036 2003-11-17  Bruno Haible  <bruno@clisp.org>
86037
86038         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86039
86040 2003-11-17  Bruno Haible  <bruno@clisp.org>
86041
86042         * lib/vasnprintf.c (alloca): Remove fallback definition.
86043         (freea): Remove definition.
86044         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86045         Reported by Paul Eggert.
86046
86047 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86048             Bruno Haible  <bruno@clisp.org>
86049
86050         Protect against address arithmetic overflow.
86051         * lib/printf-args.h: Include stddef.h.
86052         (arguments): Change type of field 'count' to size_t.
86053         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86054         'unsigned int' where appropriate.
86055         * lib/printf-parse.h: Include sys/types.h.
86056         (char_directive): Change type of *arg_index fields to ssize_t.
86057         (char_directives): Change type of fields 'count', max_*_length to
86058         size_t.
86059         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86060         (SSIZE_MAX): Define fallback value.
86061         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86062         instead of 'int' where appropriate. Check a_allocated, d_allocated
86063         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86064         * lib/vasnprintf.c: Include xsize.h.
86065         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86066         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86067         overflow. Avoid wraparound when converting a width or precision from
86068         decimal to binary.
86069
86070 2003-11-16  Bruno Haible  <bruno@clisp.org>
86071
86072         Update from GNU gettext.
86073         * lib/printf-parse.c: Generalize to it can be compiled for wide
86074         strings.
86075         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86076         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86077         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86078         SNPRINTF): New macros.
86079         Don't include <alloca.h> if the file is used inside libintl.
86080         (local_wcslen): New function, for Solaris 2.5.1.
86081         (VASNPRINTF): Use it instead of wcslen.
86082
86083 2003-11-16  Bruno Haible  <bruno@clisp.org>
86084
86085         * lib/xsize.h (xmax): New function.
86086         (xsum, xsum3, xsum4): Declare as "pure" functions.
86087
86088 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86089
86090         * modules/xalloc (Files): Undo latest change, since xalloc.h
86091         no longer needs SIZE_MAX or PTRDIFF_MAX.
86092
86093 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86094
86095         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86096         gl_PTRDIFF_MAX.
86097
86098 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86099
86100         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86101         "return", to pacify some unknown compiler.  Problem reported
86102         by Joerg Schilling.
86103
86104 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86105
86106         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86107         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86108         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86109         heuristic is just as accurate as far as we know, and it removes a
86110         dependency on size_max.m4 and ptrdiff_max.m4.
86111
86112 2003-11-11  Bruno Haible  <bruno@clisp.org>
86113
86114         * modules/xsize (Files): Add m4/size_max.m4.
86115         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86116
86117 2003-11-11  Bruno Haible  <bruno@clisp.org>
86118
86119         * m4/size_max.m4: New file.
86120         * m4/ptrdiff_max.m4: New file.
86121         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86122         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86123         (gl_XALLOC): Invoke it.
86124
86125 2003-11-11  Bruno Haible  <bruno@clisp.org>
86126
86127         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86128         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86129         defined.
86130
86131 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86132
86133         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86134         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86135         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86136         From Bruno Haible.
86137         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86138         not (size_t) -1, since it's defined here.
86139
86140 2003-11-09  Karl Berry  <karl@gnu.org>
86141
86142         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86143
86144 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86145
86146         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86147         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86148         Reject sizes of exactly SIZE_MAX bytes.
86149         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86150         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86151
86152 2003-11-05  Bruno Haible  <bruno@clisp.org>
86153
86154         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86155         SIZE_MAX defined in <limits.h> on Solaris.
86156
86157 2003-11-04  Jim Meyering  <jim@meyering.net>
86158
86159         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86160         variable names, rather than @VAR@.
86161         * modules/poll: Likewise.
86162
86163 2003-11-04  Bruno Haible  <bruno@clisp.org>
86164
86165         * modules/xsize: New file.
86166         * modules/linebreak: Depend on xsize.
86167         * MODULES.html.sh (func_all_modules): Add xsize.
86168
86169 2003-11-04  Bruno Haible  <bruno@clisp.org>
86170
86171         * m4/xsize.m4: New file.
86172
86173 2003-11-04  Bruno Haible  <bruno@clisp.org>
86174
86175         * lib/xsize.h: New file.
86176         * lib/linebreak.c: Include xsize.h.
86177         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86178         argument for overflow.
86179         Suggested by Paul Eggert.
86180
86181 2003-11-03  Karl Berry  <karl@gnu.org>
86182
86183         * config/config.{guess,sub}: update from config.
86184
86185 2003-11-03  Jim Meyering  <jim@meyering.net>
86186
86187         * modules/userspec (lib_SOURCES): Add userspec.h.
86188         (Include): Add "userspec.h".
86189         Improve description.
86190
86191 2003-11-03  Jim Meyering  <jim@meyering.net>
86192
86193         * lib/userspec.c: Include "userspec.h".
86194         * lib/userspec.h: New file.
86195
86196 2003-11-03  Bruno Haible  <bruno@clisp.org>
86197
86198         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86199
86200 2003-11-03  Bruno Haible  <bruno@clisp.org>
86201
86202         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86203         available, to avoid (extremely rare) race condition.
86204         Suggested by Paul Eggert.
86205
86206 2003-11-02  Karl Berry  <karl@gnu.org>
86207
86208         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86209
86210 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86211
86212         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86213         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86214         (read_filesystem_list): Set and use me_type_malloced.
86215         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86216         whatever the type happens to be), for brevity and consistency.
86217         Check for size calculation overflow on Alphas running OSF/1.
86218
86219 2003-10-31  Jim Meyering  <jim@meyering.net>
86220
86221         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86222
86223         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86224
86225 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86226             Bruno Haible  <bruno@clisp.org>
86227
86228         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86229         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86230
86231 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86232
86233         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86234         netbsd*-gnu*.  Suggested by Robert Millan.
86235
86236 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86237
86238         * modules/group-member: Depend on stdbool.
86239
86240 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86241
86242         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86243
86244 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86245
86246         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86247         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86248         after the 'gnu' in these cases.  This fixes some bugs in the
86249         previous change, and is based on suggestions by Robert Millan.
86250
86251 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86252
86253         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86254         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86255         no longer needed.
86256         * lib/quotearg.c (quotearg_n_options): Use it.
86257         * lib/group-member.c: Include <stdbool.h>.
86258         (free_group_info): Arg is now const *; don't free arg.
86259         (get_group_info): Now returns bool and accepts struct group_info *,
86260         rather than returning a malloc'ed struct group_info *.
86261         All uses changed.  Check for overflow in internal size calculation.
86262
86263         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86264         rather than xmalloc/xrealloc.
86265         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86266         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86267         conformance bug: the old code used a pointer after freeing the
86268         storage that it addressed.
86269         * lib/hash.c (hash_initialize): Simplify the code by using
86270         xalloc_oversized rather than doing it by hand.
86271         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86272         the buffer preserved.  Use free and xmalloc instead.
86273         * lib/quotearg.c (quotearg_n_options): Likewise.
86274         Use a simpler test for size overflow.  Don't use xalloc_oversized
86275         because unsigned int might be wider than size_t (!); this suggests
86276         that we should switch from unsigned int to size_t for slot numbers.
86277
86278 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86279
86280         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86281         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86282         NetBSD kernels.  Requested by Richard Stallman.
86283
86284 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86285
86286         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86287         to allocate the returned structure.  Do not allocate a subarray,
86288         as x2nrealloc will do that.
86289         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86290         instead of xnrealloc.
86291         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86292
86293 2003-10-27  Bruno Haible  <bruno@clisp.org>
86294
86295         * lib/stdbool_.h: Better support for BeOS.
86296
86297 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86298
86299         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86300         now uses inline.
86301
86302 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86303
86304         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86305         callers that want to do their own size-overflow checking.  Include
86306         <stdbool.h>, since xalloc_oversized returns bool.
86307         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86308         to use xalloc_oversized.
86309
86310         Add two functions x2realloc, x2nrealloc, for programs that grow
86311         arrays dynamically by doubling their sizes.
86312         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86313         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86314         New functions.
86315
86316         Port to C99 semantics for 'inline' of external functions.
86317         Bug reported by Bruno Haible.
86318         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86319         with the old contents of xnmalloc.
86320         (xnmalloc, xmalloc): Use it.
86321         (xnrealloc_inline): New static inline function,
86322         with the old contents of xnrealloc.
86323         (xnrealloc, xrealloc): Use it.
86324
86325         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86326         that.
86327
86328 2003-10-26  Karl Berry  <karl@gnu.org>
86329
86330         * config/srclist.txt (COPYING.DOC): no longer available from
86331         /gd/gnuorg; don't know where the ultimate source is.
86332
86333 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86334
86335         Fix several address-calculation bugs in the hash modules,
86336         plus some minor code cleanup.
86337
86338         * lib/hash.h: Include <stdbool.h>, for bool.
86339         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86340         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86341         hash_get_n_entries, hash_get_max_bucket_length,
86342         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86343         hash_rehash): Use size_t rather than unsigned.
86344         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86345         hash_get_n_buckets_used, hash_get_n_entries,
86346         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86347         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86348         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86349         Likewise.
86350         (SIZE_MAX): Define if not defined.
86351         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86352         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86353         hash_print):
86354         Use const * when possible.
86355         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86356         (check_tuning): Fix bug: if tuning parameters were very close to
86357         0 or 1, rounding errors could have caused subscript violations.
86358         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86359         (hash_initialize): Add 'fail:' label
86360         to free table and return NULL, and use it to simplify code.
86361         Use calloc rather than clearing the storage ourself.
86362         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86363         buffer size calculations.
86364         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86365         Include <stddef.h>, for size_t.
86366         * lib/hash-pjw.c (hash_pjw): Likewise.
86367         Switch to method described by Bruno Haible.
86368         Include <limits.h>, for CHAR_BIT.
86369         (SIZE_BITS): New macro.
86370
86371 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86372
86373         * m4/getline.m4 (AM_FUNC_GETLINE):
86374         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86375         hosts.  Problem reported by Derek Robert Price in
86376         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86377         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86378         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86379
86380 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86381
86382         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86383         ceiling the allocation at NMAX bytes rather than silently
86384         discarding input bytes before NMAX is reached.  This makes
86385         a difference only if NMAX exceeds SIZE_MAX / 2.
86386
86387         * lib/obstack.c: Merge from glibc.
86388         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86389         Add libc_hidden_def (_obstack_newchunk).
86390         (_obstack_free) [! defined _LIBC]: Remove.
86391         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86392         a clone of the function body.
86393         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86394         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86395
86396         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86397         glibc.
86398         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86399         arg to memcpy.
86400
86401         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86402         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86403         Don't use lvalue casts, as GCC plans to remove support for them
86404         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86405         was also present in the non-GCC version, indicating that this
86406         code had always been buggy and had never been widely used.
86407         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86408         Use the fast variant of each macro, rather than copying the
86409         definiens of the fast variant; that way, we'll be more likely to
86410         catch future bugs in the fast variants.
86411
86412 2003-10-20  Bruno Haible  <bruno@clisp.org>
86413
86414         * modules/wait-process: New file.
86415         * MODULES.html.sh (func_all_modules): Add wait-process.
86416
86417 2003-10-20  Bruno Haible  <bruno@clisp.org>
86418
86419         * m4/wait-process.m4: New file.
86420
86421 2003-10-20  Bruno Haible  <bruno@clisp.org>
86422
86423         * lib/wait-process.h: New file, from GNU gettext.
86424         * lib/wait-process.c: New file, from GNU gettext.
86425
86426 2003-10-19  Jim Meyering  <jim@meyering.net>
86427
86428         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86429         HPUX 10.20.
86430
86431 2003-10-18  Karl Berry  <karl@gnu.org>
86432
86433         * config/config.guess: update from config.
86434
86435 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86436
86437         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86438         (getgroups): First arg is int, not size_t.
86439         Don't let 'free' mangle errno.
86440
86441 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86442
86443         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86444
86445 2003-10-16  Karl Berry  <karl@gnu.org>
86446
86447         * config/config.{guess,sub}: update from config.
86448
86449 2003-10-16  Jim Meyering  <jim@meyering.net>
86450
86451         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86452         memcpy.
86453
86454 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86455
86456         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86457         (SIZE_MAX): Remove.
86458         (new_exclude, add_exclude_file): Initial size no longer needs to
86459         be a power of 2.
86460         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86461         our own address arithmetic overflow checking.
86462
86463         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86464         (fnmatch): Do not alloca more than 2000 wide characters;
86465         instead, use malloc for large buffers.
86466         Check for address arithmetic overflow, and return -1
86467         with errno set to ENOMEM in that case.
86468         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86469         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86470         instead, return -1.  Check for address arithmetic overflow.
86471
86472 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86473
86474         Handle invalid suffixes and overflow independently, so that
86475         callers can treat them independently as needed.  Fix some bugs in
86476         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86477         suffix for a human-readable blocksize.  The major caller-visible
86478         change is the addition of a new
86479         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86480         that both overflow and suffix chars were found.
86481
86482         * lib/human.c (humblock): Don't check separately for invalid suffix
86483         char; that is xstrtoumax's job (now that its bug is fixed).
86484         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86485         INTMAX_MAX]: New macros.
86486         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86487         TYPE_MAXIMUM): New macros.
86488         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86489         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86490         if overflow occurs, as it's what __strtol does and it's more useful
86491         in practice.
86492         (__xstrtol): If __strtol reports some error other than ERANGE,
86493         reflect it to the caller as LONGINT_INVALID.  If it reports
86494         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86495         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86496         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86497         value.
86498         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86499         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86500         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86501         [defined UINTMAX_MAX]: New macros.
86502
86503 2003-10-14  Bruno Haible  <bruno@clisp.org>
86504
86505         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86506
86507 2003-10-14  Bruno Haible  <bruno@clisp.org>
86508
86509         * m4/sig_atomic_t: New file, from GNU gettext.
86510         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86511
86512 2003-10-14  Bruno Haible  <bruno@clisp.org>
86513
86514         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86515         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86516         Also use volatile where needed.
86517
86518 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86519
86520         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86521         Change maintainer from Bruno Haible to 'all'.
86522
86523 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86524
86525         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86526
86527 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86528
86529         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86530         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86531         and define in terms of the other primitives.
86532         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86533         (SIZE_MAX): Define if not already defined.
86534         (array_size_overflow): New function.
86535         (xalloc_die): Abort instead of exiting if 'error' returns.
86536         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86537         (xmalloc, xrealloc): Use them.
86538         (xcalloc): Check for address arithmetic overflow.
86539         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86540         a bit faster than strcpy.
86541
86542 2003-10-10  Simon Josefsson  <jas@extundo.com>
86543
86544         * modules/argp (Depends-on): Add restrict and strcase.
86545
86546 2003-10-10  Simon Josefsson  <jas@extundo.com>
86547
86548         * m4/argp.m4: Add AC_C_INLINE.
86549
86550 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86551
86552         Merge getpass from libc, plus a few fixes.
86553
86554         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86555         Include <stdbool.h>.
86556         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86557         __fsetlocking to empty.
86558         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86559         do include <bits/libc-lock.h>.
86560         Do not include <fcntl.h>; not needed.
86561         [_LIBC]: Include <wchar.h>.
86562         (NOTCANCEL_MODE): New macro.
86563         (flockfile, funlockfile) [_LIBC]: New macros.
86564         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86565         [!_LIBC]: New macros.
86566         (call_fclose): New function.
86567         (getpass): Use it.  Save tty stream separately; this simplifies the
86568         code and makes it more reliable if stdin happens to equal stdout.
86569         Invoke __fsetlocking on tty.
86570         Handle thread cancellation if needed.
86571         Namespace cleanup (use __tcgetattr, __getline).
86572         Use bool for Booleans.
86573         [USE_IN_LIBIO]: Handle wide streams.
86574         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86575         stream might go where.
86576
86577         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86578         doesn't have to include <stdio.h> before us.
86579         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86580         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86581         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86582         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86583         if not declared, so that we can use getpass.c code from libc without
86584         rewriting it.
86585         (flockfile, ftrylockfile, funlockfile): New macros.
86586
86587 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86588
86589         * modules/getpass: Depend on stdbool.
86590
86591 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86592
86593         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86594
86595 2003-10-07  Karl Berry  <karl@gnu.org>
86596
86597         * config/config.{guess,sub}: update from config.
86598
86599 2003-10-06  Jim Meyering  <jim@meyering.net>
86600             Bruno Haible  <bruno@clisp.org>
86601
86602         This lets translators provide better translations for the
86603         "Written by ..." part of --version output.
86604         * lib/version-etc.h: Include stdarg.h.
86605         (version_etc_copyright): Declare as readonly.
86606         (version_etc): Make this function variadic with a NULL-terminated list
86607         of author name strings.
86608         (version_etc_va): New declaration.
86609         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86610         (version_etc_copyright): Declare as readonly.
86611         (version_etc_va): New function. Provide a different translatable string
86612         for each possible number of authors < 10. Abbreviate when there are 10
86613         authors or more.
86614         (version_etc): Make this function variadic. Call version_etc_va.
86615         Suggestion from Gary V. Vaughan.
86616
86617         * lib/long-options.h (parse_long_options): Change prototype: the
86618         authors string is moved to the end and becomes variadic.
86619         * lib/long-options.c: Include stdarg.h.
86620         (parse_long_options): Make this function variadic, too.
86621         Call version_etc_va, not version_etc.
86622
86623 2003-10-06  Bruno Haible  <bruno@clisp.org>
86624
86625         * modules/version-etc-2: Remove file.
86626         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86627
86628 2003-10-06  Bruno Haible  <bruno@clisp.org>
86629
86630         * modules/fatal-signal: New file.
86631         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86632
86633 2003-10-06  Bruno Haible  <bruno@clisp.org>
86634
86635         * m4/fatal-signal.m4: New file.
86636         * m4/signalblocking.m4: New file, from GNU gettext.
86637
86638 2003-10-06  Bruno Haible  <bruno@clisp.org>
86639
86640         * lib/version-etc-2.h: Remove file.
86641         * lib/version-etc-2.c: Remove file.
86642
86643 2003-10-06  Bruno Haible  <bruno@clisp.org>
86644
86645         * lib/fatal-signal.h: New file, from GNU gettext.
86646         * lib/fatal-signal.c: New file, from GNU gettext.
86647
86648 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86649
86650         * README: Rework advice for preventing empty .o files.
86651         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86652         not <sys/types.h>.
86653
86654 2003-10-04  Karl Berry  <karl@gnu.org>
86655
86656         * lib/argp*: update from libc.
86657
86658 2003-10-04  Karl Berry  <karl@gnu.org>
86659
86660         * config/config.{guess,sub}: update from config.
86661
86662 2003-10-02  Bruno Haible  <bruno@clisp.org>
86663
86664         * modules/lchown (Include): Add lchown.h.
86665         * modules/time_r (Include): Use "..." syntax.
86666         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86667
86668 2003-10-01  Simon Josefsson  <jas@extundo.com>
86669
86670         * MODULES.html.sh (func_all_modules): Move gethostname from section
86671         'based on' to section 'lacking' POSIX:2001.
86672
86673 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86674
86675         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86676         to output mode on the same stream.
86677
86678 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86679
86680         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86681         Fix arg typo in previous patch.
86682
86683 2003-09-28  Jim Meyering  <jim@meyering.net>
86684
86685         * lib/error.c: Correct cpp indentation.
86686
86687 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86688
86689         * modules/free: New file.
86690
86691 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86692
86693         * m4/free.m4: New file.
86694
86695 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86696
86697         * lib/minmax.h (MIN, MAX)
86698         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86699         Omit the special code that used __typeof__, since we worry that
86700         it could be more trouble than it's worth.  See:
86701         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86702         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86703
86704         * lib/free.c: New file.
86705
86706 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86707
86708         Trivial fixes to Makefile.am parts of module listings.
86709         * modules/strstr: Append strstr.h to lib_SOURCES.
86710         * modules/strcase: Likewise, for strcase.h.
86711
86712 2003-09-27  Karl Berry  <karl@gnu.org>
86713
86714         * config/mkinstalldirs: update from automake.
86715
86716 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86717
86718         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86719         (error_tail): Do not loop, reallocating temporary buffer, since
86720         the output cannot contain more wide characters than the input
86721         contains bytes, the size must be big enough already.  This avoids
86722         one potential size overflow calculation.  Check for size overflow
86723         when calculating temporary buffer size.  Free temporary buffer
86724         when done, if it was allocated with malloc; this plugs a memory
86725         leak.  Remove casts from void * to pointers, that are no longer
86726         needed now that we're assuming C89 or better.
86727
86728         Merge error changes from glibc.
86729
86730         * lib/error.c, error.h: Update copyright notice header to match glibc.
86731         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86732         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86733         Disable cancellation while printing error.
86734         * lib/error.h: Prepend __ to parameter names.
86735
86736 2003-09-26  Jim Meyering  <jim@meyering.net>
86737
86738         * lib/error.c (error_tail): Move some declarations
86739         into inner scope where the local variables are used.
86740
86741 2003-09-26  Bruno Haible  <bruno@clisp.org>
86742
86743         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86744         stpncpy().
86745         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86746
86747 2003-09-26  Bruno Haible  <bruno@clisp.org>
86748
86749         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86750         (stpncpy): Define as alias for gnu_stpncpy.
86751         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86752
86753 2003-09-25  Simon Josefsson  <jas@extundo.com>
86754
86755         * lib/xgetdomainname.h: New file.
86756         * lib/xgetdomainname.c: New file.
86757
86758 2003-09-25  Simon Josefsson  <jas@extundo.com>
86759             Bruno Haible  <bruno@clisp.org>
86760
86761         * modules/getdomainname: New file.
86762         * modules/xgetdomainname: New file.
86763         * MODULES.html.sh (func_all_modules): Add getdomainname,
86764         xgetdomainname.
86765
86766 2003-09-25  Simon Josefsson  <jas@extundo.com>
86767             Bruno Haible  <bruno@clisp.org>
86768
86769         * m4/getdomainname.m4: New file.
86770
86771 2003-09-25  Simon Josefsson  <jas@extundo.com>
86772             Bruno Haible  <bruno@clisp.org>
86773
86774         * lib/getdomainname.h: New file.
86775         * lib/getdomainname.c: New file.
86776
86777 2003-09-25  Karl Berry  <karl@gnu.org>
86778
86779         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86780
86781 2003-09-25  Karl Berry  <karl@gnu.org>
86782
86783         * config/install-sh: update from automake.
86784
86785 2003-09-25  Bruno Haible  <bruno@clisp.org>
86786
86787         * modules/version-etc-2: New file, from modules/version-etc with
86788         modifications.
86789         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86790
86791 2003-09-25  Bruno Haible  <bruno@clisp.org>
86792
86793         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86794         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86795
86796 2003-09-24  Simon Josefsson  <jas@extundo.com>
86797
86798         * modules/xgethostname: Add xgethostname.h.
86799
86800 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86801
86802         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86803         the buffer associated with the argument.  Bug reported by
86804         Simon Josefsson.
86805
86806 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86807
86808         * README: Document assumptions that 'int' is at least 32 bits
86809         wide, that integer arithmetic is 2's complement without overflow,
86810         that there are no holes in integer values, that adding sizes of
86811         two nonoverlapping objects can't overflow, and that all-bits-zero
86812         yields scalar zero.  Fix spelling and capitalization typos.
86813
86814 2003-09-19  Karl Berry  <karl@gnu.org>
86815
86816         * lib/argp.h: update from libc.
86817
86818 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86819
86820         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86821         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86822         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86823
86824 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86825
86826         * gnulib-tool: Use "test -h", not "test -L", for portability
86827         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86828         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86829         (sed_extract_prog): Issue s commands one-by-one, rather than
86830         using \| in one s command.
86831
86832 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86833
86834         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86835         input error, instead of returning NULL the next time we are called
86836         (and therefore losing track of errno).
86837
86838 2003-09-16  Bruno Haible  <bruno@clisp.org>
86839
86840         * gnulib-tool (func_create_testdir): Warn about duplicated
86841         dependencies.
86842
86843 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86844
86845         * modules/argmatch, modules/fatal, modules/obstack,
86846         modules/xalloc, modules/xgethostname: Sort dependencies by
86847         importance, not alphabetically.
86848
86849 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86850
86851         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86852         fails, so that the caller gets the proper errno.
86853
86854         * lib/readutmp.c (read_utmp): Likewise.
86855         Check for fstat error.  Close stream and free storage
86856         when failing.
86857
86858 2003-09-14  Karl Berry  <karl@gnu.org>
86859
86860         * config/srclist.txt (strdup.c): disable for c89 changes.
86861
86862 2003-09-14  Jim Meyering  <jim@meyering.net>
86863
86864         * lib/getloadavg.c: Correct cpp indentation.
86865         * lib/strdup.c: Likewise.
86866         * lib/vasnprintf.c: Likewise.
86867
86868 2003-09-14  Bruno Haible  <bruno@clisp.org>
86869
86870         * modules/fwriteerror: New file.
86871         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86872
86873 2003-09-14  Bruno Haible  <bruno@clisp.org>
86874
86875         * lib/fwriteerror.h: New file.
86876         * lib/fwriteerror.c: New file.
86877
86878 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86879
86880         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86881         modules/xgethostname, modules/xalloc: Depend on exit.
86882
86883 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86884
86885         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86886
86887         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86888         and AC_MINIX, too, so that their extensions are available.
86889
86890         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86891         This macro has been superseded by gl_BACKUPFILE.
86892
86893         More patches to assume C89 or better.
86894
86895         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86896
86897         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86898         unconditionally.
86899         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86900         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86901         Include <string.h>, <stdlib.h> unconditionally.
86902         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86903         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86904         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86905         headers or for string.h.
86906         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86907         or strtoul.
86908
86909         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86910         headers.
86911         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86912         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86913         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86914         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86915         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86916         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86917         memcpy, memset.
86918         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86919         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86920         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86921         strtol.
86922         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86923         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86924         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86925         strtoul.
86926
86927 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86928
86929         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86930         * lib/obstack.c [!defined _LIBC]: Likewise.
86931         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86932         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86933         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86934
86935         More changes to assume C89 or better.
86936
86937         * lib/error.c (error_tail): Assume vprintf.
86938
86939         * lib/argmatch.c (getenv): Remove decl.
86940         * lib/progreloc.c (get_full_program_name): Define via prototype.
86941         * lib/setenv.c (clearenv): Likewise.
86942         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86943         needed.
86944         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86945         (malloc, memcpy): Remove decls.
86946         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86947         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86948         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86949         (memcpy): Remove macro.
86950         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86951         (__P): Remove.  All uses removed.
86952         (PTR): Remove.  All uses changed to void *.
86953         (CHAR_BIT, NULL): Remove.
86954         (spaces, zeros, memset_space, memset_zero)
86955         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86956         Remove.
86957         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86958         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86959         Define with prototype.
86960         Remove now-unnecessary prototype decl.
86961         (extra_args_spec): Assume ANSI C.  All uses changed.
86962         (extra_args_spec_iso): Remove.
86963         (my_strftime, emacs_strftimeu): Define via prototype.
86964         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86965         unconditionally.
86966         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86967         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86968         (strtoul, strtol): Remove decls.
86969         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86970         LONG_MAX): Remove.
86971         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86972         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86973         (LOCALE_PARAM_PROTO): New macro.
86974         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86975         (INTERNAL (strtol), strtol): Define with a prototype.
86976         (PARAMS): Remove.  All uses removed.
86977         * lib/tempname.c: Include <string.h> unconditionally.
86978         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86979         * lib/xgethostname.c (main): Define with a prototype.
86980         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86981         Include <stdlib.h> unconditionally.
86982         (calloc, malloc, realloc, free): Remove decls.
86983         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86984         Include <stdlib.h> unconditionally.  Sort include file names.
86985         (strtod): Remove.
86986         (xstrtod): Define with a prototype.
86987         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86988         (strtol, strtoul): Remove decls.
86989
86990 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86991
86992         More patches to assume C89 or better.
86993         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86994         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86995         string.h, memchr, STDC_HEADERS.
86996
86997 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86998
86999         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87000         Include <stdlib.h>, <string.h> unconditionally.
87001         Remove now-unnecessary cast to char *.
87002         * lib/strnlen.c: Include <string.h> unconditionally.
87003         * lib/yesno.c (yesno): Define with a prototype.
87004
87005 2003-09-11  Bruno Haible  <bruno@clisp.org>
87006
87007         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87008
87009 2003-09-10  Jim Meyering  <jim@meyering.net>
87010
87011         * lib/error.c: Correct indentation of cpp directives.
87012
87013 2003-09-10  Bruno Haible  <bruno@clisp.org>
87014
87015         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87016         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87017         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87018         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87019         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87020         <stdlib.h> and <string.h> checks.
87021         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87022         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87023
87024 2003-09-10  Bruno Haible  <bruno@clisp.org>
87025
87026         * lib/strcspn.c: Include <string.h> unconditionally.
87027         * lib/strpbrk.c: Include <string.h> unconditionally.
87028         * lib/strstr.c: Include <string.h> unconditionally.
87029         * lib/unicodeio.c: Include <string.h> unconditionally.
87030         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87031         * lib/unsetenv.c: Likewise.
87032         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87033         * lib/yesno.c: Include <stdlib.h> unconditionally.
87034         (rpmatch): Add prototype.
87035
87036 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87037
87038         More patches to assume C89 or better.
87039         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87040         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87041         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87042         or for string.h.
87043         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87044         stdlib.h.
87045         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87046         C headers.
87047         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87048         string.h.
87049         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87050         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87051         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87052         or for string.h.
87053         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87054         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87055         C headers.
87056         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87057         memcpy.
87058         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87059         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87060         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87061         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87062         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87063         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87064         string.h, free.
87065         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87066         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87067         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87068         C headers, or for string.h.
87069         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87070         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87071         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87072         headers, memory.h, stdlib.h, string.h, strings.h.
87073         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87074         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87075         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87076         strchr.
87077         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87078         headers, memory.h, string.h.
87079         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87080         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87081         free.
87082         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87083         headers.
87084         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87085         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87086         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87087         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87088         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87089
87090 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87091
87092         More K&R removal.
87093
87094         * lib/acosl.c (main): Use a prototype.
87095         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87096         tanl.c: Likewise.
87097
87098         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87099
87100         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87101         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87102         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87103         with a prototype.
87104         * lib/getopt.c (const): Remove macro.
87105         Include <string.h> unconditionally.
87106         (my_index): Remove; all uses changed to strchr.
87107         (strlen): Remove decl.
87108         (exchange): Remove forward decl; no longer needed.
87109         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87110         Define with prototype.
87111         * lib/getopt1.c (const): Remove macro.
87112         (getopt_long, getopt_long_only, main): Define with prototype.
87113
87114         * lib/getugroups.c: Include <string.h> unconditionally.
87115
87116         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87117         (getusershell, setusershell, endusershell, readname, main):
87118         Define with prototypes.
87119
87120         * lib/group-member.c: Include group-member.h first.
87121         Include <stdlib.h> unconditionally.
87122
87123         * lib/hard-locale.c: Include hard-locale.h first.
87124         Include <stdlib.h>, <string.h> unconditionally.
87125
87126         * lib/hash.c (free, malloc): Remove decls.
87127         Include <stdlib.h> unconditionally.
87128
87129         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87130         (getenv): Do not declare.
87131
87132         * lib/idcache.c: Include <string.h> unconditionally.
87133
87134         * lib/long-options.c: Include long-options.h first, to test interface.
87135         Include <stdlib.h> unconditionally.
87136
87137         * lib/makepath.c: Include makepath.h first, to test interface.
87138         Include <stdlib.h> and <string.h> unconditionally.
87139
87140         * lib/linebuffer.c: Include <stdlib.h>.
87141         (free): Remove decl.
87142
87143         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87144         stddef.h. rpl_malloc returns void *, not char *.
87145         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87146         prototype.
87147
87148         * lib/md5.h: Include <limits.h> unconditionally.
87149         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87150         (__P): Remove; all uses removed.
87151         * lib/md5.c: Include "md5.h" first.
87152         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87153         md5_buffer, md5_process_bytes, md5_process_block):
87154         Define with prototypes.
87155         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87156         * lib/sha.c: Include "sha.h" first.
87157         Include <stdlib.h>, <string.h> unconditionally.
87158
87159         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87160         * lib/memcmp.c (__ptr_t): Likewise.
87161         * lib/memrchr.c (__ptr_t): Likewise.
87162         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87163         Include <string.h> unconditionally.
87164         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87165         * lib/memchr.c: Include <stdlib.h> unconditionally.
87166         * lib/memchr.c (LONG_MAX): Remove.
87167         * lib/memrchr.c (LONG_MAX): Likewise.
87168         * lib/memchr.c (__memchr): Define via a prototype.
87169         * lib/memrchr.c (__memrchr): Likewise.
87170         * lib/memcmp.c (__P): Remove, and remove all uses.
87171         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87172         Remove forward decls; no longer needed.
87173         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87174         Use types required by C89 in prototype.
87175
87176         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87177         * lib/savedir.c: Likewise.
87178         * lib/mkdir.c (free): Remove decl.
87179         * lib/rmdir.c (rmdir): Define with a prototype.
87180         * lib/savedir.c: Include savedir.h first, to test interface.
87181
87182         * lib/mktime.c (STDC_HEADERS): Remove.
87183         Include <stdlib.h>, <string.h> unconditionally.
87184
87185         * lib/modechange.c: Include <stdlib.h> unconditionally.
87186         (malloc): Remove decl.
87187
87188         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87189         (free): Remove decl.
87190
87191         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87192         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87193         (This type really should be intptr_t, but that's a C99ism.)
87194         (_obstack_memcpy): Remove: all uses changed to memcpy.
87195         Include <string.h> unconditionally.
87196         (struct obstack): Assume __STDC__ for types of members
87197         chunkfun, freefun, extra_arg.
87198         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87199         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87200         obstack_begin, obstack_specify_allocation,
87201         obstack_specify_allocation_with_arg, obstack_chunkfun,
87202         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87203         Remove unprototyped decls and the macros that use them.
87204         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87205         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87206         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87207         (defined __STDC__ && __STDC__)]:
87208         Remove nonprototyped code.
87209         Include <stdlib.h> unconditionally.
87210         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87211         _obstack_allocated_p, _obstack_free, obstack_free,
87212         _obstack_memory_used, print_and_abort):
87213         Define using prototypes.
87214         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87215         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87216         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87217         obstack_next_free, obstack_object_size, obstack_room) [0]:
87218         Remove unused, unprototyped code.
87219
87220         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87221
87222         * lib/physmem.c (physmem_total, physmem_available, main): Define
87223         with prototypes.
87224
87225         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87226         (main): Define with a prototype.
87227
87228         * lib/posixver.c (getenv): Remove decl.
87229
87230         * lib/putenv.c (malloc): Returns void *, not char *.
87231         Include <string.h> unconditionally.
87232         (strchr, memcpy, NULL): Do not define.
87233
87234         * lib/readtokens.c: Include readtokens.h first, to test interface.
87235         Include <stdlib.h>, <string.h> unconditionally.
87236         (init_tokenbuffer): Define with a prototype.
87237
87238         * lib/regex.c (PARAMS): Remove.  All uses removed.
87239         All uses of _RE_ARGS removed, too.
87240         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87241         unconditionally.
87242         (bzero): Assume memset exists.
87243         (memcmp, memcpy, NULL): Remove.
87244         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87245         char, or assignments to local vars of type signed char.
87246         (init_syntax_once, PREFIX(extract_number_and_incr),
87247         PREFIX(print_partial_compiled_pattern),
87248         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87249         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87250         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87251         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87252         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87253         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87254         wcs_compile_range, byte_compile_range, truncate_wchar,
87255         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87256         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87257         count_mbs_length, wcs_re_match_2_internal,
87258         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87259         PREFIX(alt_match_null_string_p),
87260         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87261         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87262         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87263         now-unnecessary declaration, if any.
87264         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87265         regcomp, regexec):
87266         Remove now-unnecessary casts among pointer types.
87267         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87268
87269         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87270         (free): Remove decl.
87271
87272         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87273
87274         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87275         (free): Remove decl.
87276
87277         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87278         * lib/xgetcwd.c: Likewise.
87279
87280         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87281         (free): Remove decl.
87282
87283         * lib/strchrnul.c (strchrnul): Define with a prototype.
87284         Fix bug: c_in was not converted to char before searching.
87285
87286         The following changes are not K&R related:
87287
87288         * lib/group-member.h: Include <sys/types.h>, so that this file is
87289         self-contained.
87290         * lib/makepath.h: Likewise.
87291
87292         * lib/getusershell.c (readname, default_index, line_size, readname):
87293         Use size_t, not int, for sizes.
87294         (readname): If the size overflows, report an error instead of
87295         looping forever.
87296
87297 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87298
87299         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87300         libc.
87301
87302 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87303
87304         * README: New section: portability guidelines.
87305
87306 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87307
87308         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87309         C89 spec.
87310
87311 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87312
87313         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87314
87315 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87316
87317         Assume C89 or better; remove K&R cruft.
87318         A few of these changes were first proposed by Derek Robert Price
87319         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87320
87321         * lib/addext.c: Include <string.h> unconditionally.
87322         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87323         Don't declare getenv or malloc.
87324
87325         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87326         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87327         (NULL): Remove.
87328         (find_stack_direction, alloca): Use prototypes.
87329
87330         * lib/atexit.c (atexit): Define using a prototype.
87331
87332         * lib/basename.c, dirname.c, stripslash.c:
87333         Include <string.h> unconditionally.
87334
87335         * lib/bcopy.c: Include <stddef.h>.
87336         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87337
87338         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87339
87340         * lib/error.h (error, error_at_line, error_print_progname)
87341         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87342         * lib/error.c: Include error.h first, to check interface.
87343         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87344         (VA_START): Remove; all uses changeed to va_start.
87345         (exit, strerror): Remove decls.
87346         (error_print_progname): Prototype uncondionally.
87347         Don't include <errno.h>; no longer needed.
87348         (private_strerror): Remove.
87349         (error_tail): Always define.
87350         (error, error_at_line): Assume C89 or better; always use prototypes.
87351         * lib/fatal.c: Include "fatal.h" first, to test interface.
87352         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87353         (VA_START): Remove; all uses changed to va_start.
87354         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87355         this case.
87356         (exit): Remove decl.
87357         (fatal): Prototype unconditionally.  Assume va_start works.
87358         Abort at end, to pacify gcc.
87359
87360         * lib/euidaccess.c (main): Define with a prototype.
87361
87362         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87363
87364         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87365
87366         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87367         prototypes.
87368         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87369         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87370         (getenv): Remove decl.
87371         (fnmatch): Define using a prototype.
87372         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87373         (FCT): Define using a prototype.
87374
87375         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87376
87377         * lib/gethostname.c: Include <stddef.h>.
87378         (gethostname): Define with prototype.  Length is size_t, not int.
87379
87380 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87381
87382         Assume C89 or better; remove K&R cruft.
87383         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87384         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87385         string.h, getenv, malloc.
87386         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87387         headers.
87388         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87389         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87390         do not check for strerror.
87391         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87392         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87393         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87394         do not check for doprnt or vprintf.
87395         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87396         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87397
87398 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87399
87400         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87401         getversion.c should have been removed then, but was accidentally
87402         preserved.
87403
87404         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87405         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87406
87407 2003-09-08  Karl Berry  <karl@gnu.org>
87408
87409         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87410                 config, forget about prep.
87411
87412         * config/depcomp, missing: update from automake.
87413
87414 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87415
87416         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87417         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87418
87419 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87420
87421         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87422         copy_tm_result.  Bug reported by Simon Josefsson in
87423         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87424
87425 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87426
87427         * m4/time_r.m4: New file.
87428         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87429         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87430         is. Check for timegm declaration.
87431         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87432         Do not check for gmtime_r.
87433         Replace mktime if __mktime_internal does not exist and if mktime
87434         hasn't been replaced already.
87435
87436 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87437
87438         * lib/time_r.c, lib/time_r.h: New files.
87439
87440         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87441         __localtime_r.
87442         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87443         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87444
87445         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87446         __gmtime_r.
87447         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87448         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87449         Include <time_r.h>.
87450
87451         * lib/timegm.c: Switch to glibc implementation, with the following
87452         changes:
87453         [defined HAVE_CONFIG_H]: Include <config.h>.
87454         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87455         (__mktime_internal) [!defined _LIBC]: New decl.
87456         (__gmtime_r) [!defined _LIBC]: New macro and function.
87457         (timegm): Use a prototype, since gnulib assumes C89.
87458         Do not bother declaring tmp to be const, as it's not really usefu.
87459         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87460         (timegm): Declare only if HAVE_DECL_TIMEGM.
87461
87462 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87463
87464         * MODULES.html.sh (func_all_modules): Add time_r.
87465         * modules/time_r: New file.
87466         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87467         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87468
87469 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87470
87471         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87472         Bug reported by Lute Kamstra in
87473         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87474
87475         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87476         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87477         course with correspondingly smaller numbers for tomorrow and
87478         yesterday.  From Tadayoshi Funaba.  Originally installed into
87479         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87480         coreutils merge?).
87481
87482 2003-08-31  Simon Josefsson  <jas@extundo.com>
87483
87484         * modules/timegm: New file.
87485         * MODULES.html.sh (func_all_modules): Add timegm.
87486
87487 2003-08-31  Simon Josefsson  <jas@extundo.com>
87488
87489         * m4/timegm.m4: New file.
87490
87491 2003-08-31  Simon Josefsson  <jas@extundo.com>
87492
87493         * lib/timegm.h: New file.
87494         * lib/timegm.c: New file.  Based on
87495         wget-1.8.2/src/http.c:mktime_from_utc.
87496
87497 2003-08-31  Karl Berry  <karl@gnu.org>
87498
87499         * lib/argp.h: update from libc.
87500
87501 2003-08-28  Bruno Haible  <bruno@clisp.org>
87502
87503         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87504         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87505         followed by '#define fnmatch fnmatch_posix' gives an error.
87506
87507 2003-08-28  Bruno Haible  <bruno@clisp.org>
87508
87509         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87510         warning on QNX, which defines O_BINARY to 000000.
87511
87512 2003-08-27  Jim Meyering  <jim@meyering.net>
87513
87514         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87515         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87516         would fail after 32.  Reported by Danny Levinson.  Details here:
87517         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87518
87519 2003-08-24  Bruno Haible  <bruno@clisp.org>
87520
87521         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87522         MSVC7 <stdio.h> is included later.
87523
87524 2003-08-22  Simon Josefsson  <jas@extundo.com>
87525
87526         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87527
87528 2003-08-20  Karl Berry  <karl@gnu.org>
87529
87530         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87531
87532 2003-08-20  Bruno Haible  <bruno@clisp.org>
87533
87534         * modules/progname: New file.
87535         * MODULES.html.sh (func_all_modules): Add progname.
87536
87537 2003-08-20  Bruno Haible  <bruno@clisp.org>
87538
87539         * lib/progname.h: New file, from GNU gettext.
87540         * lib/progname.c: New file, from GNU gettext.
87541         * lib/progreloc.c: New file, from GNU gettext.
87542
87543 2003-08-19  Jim Meyering  <jim@meyering.net>
87544
87545         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87546         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87547
87548 2003-08-19  Bruno Haible  <bruno@clisp.org>
87549
87550         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87551         more.
87552
87553 2003-08-19  Bruno Haible  <bruno@clisp.org>
87554
87555         * lib/xstrdup.c: Assume <string.h> exists.
87556
87557 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87558
87559         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87560         in makefile rules.
87561
87562 2003-08-18  Jim Meyering  <jim@meyering.net>
87563
87564         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87565         * m4/lib-ld.m4: Likewise.
87566
87567 2003-08-18  Jim Meyering  <jim@meyering.net>
87568
87569         * lib/setenv.h: Indent nested cpp directive.
87570         * lib/vasnprintf.c: Remove trailing blanks.
87571
87572 2003-08-17  Simon Josefsson  <jas@extundo.com>
87573
87574         * modules/xstrndup: New file.
87575         * MODULES.html.sh (func_all_modules): Add xstrndup.
87576
87577 2003-08-17  Simon Josefsson  <jas@extundo.com>
87578
87579         * modules/argp: Fix autoconf macro name. Add more dependencies.
87580
87581 2003-08-17  Simon Josefsson  <jas@extundo.com>
87582
87583         * m4/xstrndup.m4: New file.
87584
87585 2003-08-17  Simon Josefsson  <jas@extundo.com>
87586
87587         * m4/argp.m4: New file.
87588
87589 2003-08-17  Simon Josefsson  <jas@extundo.com>
87590             Bruno Haible  <bruno@clisp.org>
87591
87592         * lib/xstrndup.h: New file.
87593         * lib/xstrndup.c: New file.
87594
87595 2003-08-17  Bruno Haible  <bruno@clisp.org>
87596
87597         * modules/strndup (Files, Include): Add lib/strndup.h.
87598
87599 2003-08-17  Bruno Haible  <bruno@clisp.org>
87600
87601         * modules/euidaccess (Files): Add lib/euidaccess.h.
87602
87603 2003-08-17  Bruno Haible  <bruno@clisp.org>
87604
87605         * lib/strndup.h: New file.
87606
87607 2003-08-17  Bruno Haible  <bruno@clisp.org>
87608
87609         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87610         like AC_GNU_SOURCE.
87611         * modules/extensions (configure.ac): Comment out the invocation of
87612         gl_USE_SYSTEM_EXTENSIONS.
87613
87614 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87615
87616         Merges from coreutils, etc.
87617         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87618         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87619         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87620         fixing a typo.
87621         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87622         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87623
87624 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87625
87626         Document merge from coreutils.
87627         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87628         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87629         * modules/utime: Add m4/utimes-null.m4.
87630
87631 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87632
87633         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87634         space, undoing this 2003-08-12 change:
87635         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87636
87637 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87638
87639         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87640         strtoul.c from libc, undoing this 2003-08-12 change:
87641         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87642
87643 2003-08-16  Jim Meyering  <jim@meyering.net>
87644
87645         Merges from coreutils.
87646         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87647         prefix.  Adjust cache variables similarly.  Create 500 rather than
87648         just 300 files, to exercise bug on Darwin6.5, too.
87649         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87650         $missing_dir.
87651         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87652         AM_SYS_POSIX_TERMIOS.
87653         Reported by mkc@mathdogs.com.
87654         Also change use of $am_cv_sys_posix_termios
87655         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87656         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87657         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87658         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87659         in /proc/mounts until it finds one with matching device number.  This
87660         is unnecessary when the FILE argument *is* a mount point.  No stat call
87661         is necessary in that case.  So, disable the statvfs-testing code on
87662         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87663         as RedHat bug# 84846.
87664         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87665         to 1MB, so as not to render systems with no stack size limit (e.g.,
87666         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87667         Include <unistd.h>.  On some systems,
87668         it is required for the definition of _SC_PAGESIZE.
87669
87670 2003-08-16  Jim Meyering  <jim@meyering.net>
87671
87672         Merge from coreutils.
87673         * lib/xstrtoimax.c: #else #if -> #elif.
87674         * lib/xstrtoumax.c: Likewise.
87675
87676 2003-08-16  Jim Meyering  <jim@meyering.net>
87677
87678         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87679         * m4/utimes.m4: Removed.
87680         * m4/utimes-null.m4: Renamed from utimes.m4.
87681
87682         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87683         to 1MB, so as not to render systems with no stack size limit (e.g.,
87684         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87685         Include <unistd.h>.  On some systems,
87686         it is required for the definition of _SC_PAGESIZE.
87687
87688 2003-08-16  Jim Meyering  <jim@meyering.net>
87689         and Paul Eggert  <eggert@cs.ucla.edu>
87690
87691         Merges from coreutils, etc.
87692
87693         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87694         using the latest version from cvs.  This avoids problems with #line
87695         directives using a vendor (Sun) compiler.
87696         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87697         Don't set GETGROUPS_LIB here; now it's
87698         done via getgroups.m4's wrapper function.
87699         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87700         rather than just in sh-util/configure.in, so that the
87701         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87702         same.
87703         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87704         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87705         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87706         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87707         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87708         Remove code that is now done by the newly-required macros.
87709         Append $(EXEEXT) to DF_PROG.
87710         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87711         Do not invoke or require the following here,
87712         since prereq.m4 or some gnulib .m4 now does this for us:
87713         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87714         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87715         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87716         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87717         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87718         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87719         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87720         AC_FUNC_OBSTACK.
87721         Do not replace the following functions, as this is now the job
87722         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87723         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87724         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87725         atexit getpass, strdup, getpagesize.
87726         Replace 'raise'.
87727         Do not check for the following functions, as this is now the job
87728         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87729         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87730         setregid.
87731         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87732         Check for sys/sysctl.h.
87733         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87734         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87735         of checking for ssize_t ourselves.
87736
87737         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87738         Require every macro that gnulib/modules/* suggests for us.
87739         (jm_PREREQ_ADDEXT): New macro.
87740         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87741         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87742
87743         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87744         (gl_PHYSMEM): Use it.
87745         Also check for `table' function.
87746         Check for new headers and functions.
87747         Add check for sys/sysmp.h.
87748         With suggestions from Kaveh Ghazi.
87749         Ignore headers that are present but cannot be compiled.  This
87750         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87751         C 5.4.
87752
87753 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87754
87755         Document merge from coreutils.
87756         * modules/userspec: Depend on posixver.
87757         * modules/strftime: Depend on tzset.
87758
87759 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87760
87761         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87762         rather than tab, after '#' in shell-script copyright notices.
87763         Suggested by Bruno Haible.
87764
87765 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87766
87767         * config/srclist-update: Use three spaces, rather than tab, after '#'
87768         in shell-script copyright notices.  Suggested by Bruno Haible.
87769         Remove unnecessary parenthesization in regular expression.
87770
87771 2003-08-15  Jim Meyering  <jim@meyering.net>
87772
87773         Merge from coreutils.
87774         * lib/xgethostname.c: Include <stdlib.h>.
87775         (xghostname): Don't exit for anything other than memory-related
87776         failure; just return NULL.
87777         * lib/userspec.c: Include "posixver.h".
87778         (parse_user_spec): Accept `.' as a separator only
87779         in pre-POSIX-200112 mode.
87780         * lib/strtoimax.c: Use #elif rather than #else #if.
87781         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87782         Remove function, now that we can rely on a working tzset function.
87783         [!_LIBC]: Ensure that the required autoconf test has been run.
87784         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87785         Use underlying_strftime for %r.
87786         * lib/sha.c: Merge in some clean-up and optimization changes from
87787         glibc.
87788         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87789         Ensure that it is a multiple of 64.
87790         Rearrange loop exit tests so as to avoid performing an
87791         additional fread after encountering an error or EOF.
87792         * lib/realloc.c: Update copyright date.
87793
87794 2003-08-15  Jim Meyering  <jim@meyering.net>
87795         and Paul Eggert  <eggert@twinsun.com>
87796
87797         Merge from coreutils.
87798         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87799         member but strut utmpx does not.  Needed for AIX 4.3.3.
87800         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87801
87802 2003-08-15  Jim Meyering  <jim@meyering.net>
87803         and Paul Eggert  <eggert@cs.ucla.edu>
87804
87805         Merges from coreutils, etc.
87806         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87807         Require gl_FUNC_TZSET_CLOBBER.
87808         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87809         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87810         members.
87811
87812 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87813
87814         Help the merge from coreutils.
87815         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87816         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87817         * m4/tzset.m4: Use it too.
87818
87819 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87820
87821         * modules/tzset: New file.
87822
87823 2003-08-14  Jim Meyering  <jim@meyering.net>
87824
87825         Merges from coreutils.
87826         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87827         variable names, rather than @FNMATCH_H@.
87828         * modules/alloca: Likewise for $(ALLOCA_H).
87829
87830         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87831         the three copies of the literal target, `fnmatch.h'.
87832         * modules/alloca (alloca.h): Likewise.
87833
87834 2003-08-14  Jim Meyering  <jim@meyering.net>
87835
87836         Merge from coreutils.
87837         * m4/tzset.m4: New file.
87838         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87839         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87840         otherwise, AIX 5.1 systems would end up using the latter.
87841         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87842         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87843         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87844         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87845
87846 2003-08-14  Jim Meyering  <jim@meyering.net>
87847
87848         Merge from coreutils.
87849         * lib/obstack.h: Whitespace changes.
87850         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87851         and xcalloc return values.
87852         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87853         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87854         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87855         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87856         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87857         error from mntctl.
87858         Use mntctl's return value to drive the entry-processing loop, since
87859         we can't rely on the value of the vmt_length member in the last
87860         entry.  On some systems doing so could result in exhausting
87861         virtual memory.  Based in part on a patch from Mike Jetzer.
87862
87863 2003-08-14  Jim Meyering  <jim@meyering.net>
87864         and Paul Eggert  <eggert@twinsun.com>
87865
87866         Merges from coreutils, plus other fixes.
87867         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87868         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87869         for credits and details.  Thanks to Kaveh Ghazi for helping
87870         to keep these files in sync.
87871         (ARRAY_SIZE): Define it.
87872         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87873         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87874         (memcasecmp): Don't assume size_t fits in unsigned int.
87875         Remove casts and duplicate code.
87876         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87877         (memcpy): Remove definition.
87878         Merge in some clean-up and optimization changes from glibc.
87879         [BLOCKSIZE]: Move definition to top of file.
87880         Ensure that it is a multiple of 64.
87881         Rearrange loop exit tests so as to avoid performing an
87882         additional fread after encountering an error or EOF.
87883         * lib/md5.h (md5_uintptr): Define.
87884         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87885         return to the initial working directory.  Preserve errno
87886         for caller.
87887         * lib/idcache.c: Include "xalloc.h".
87888         (xmalloc, xrealloc): Remove decls.
87889         (getuser): Remove casts no longer required in C89.
87890         * lib/human.c: Include stdio.h, for sprintf.
87891         * lib/group-member.c: Include "xalloc.h".
87892         (xmalloc, xrealloc): Remove decls.
87893         (get_group_info): Remove casts no longer required in C89.
87894         * lib/getusershell.c (readname): Remove casts no longer required in
87895         C89.
87896         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87897         * lib/getline.c: Whitespace fix, from coreutils.
87898
87899 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87900
87901         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87902         Check for isascii.
87903
87904         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87905         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87906         Undo previous (whitespace-only) change.
87907
87908 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87909
87910         * lib/exclude.c: Include <ctype.h>
87911         (IN_CTYPE_DOMAIN): New macro.
87912         (is_space): New fn.
87913         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87914         and empty lines.
87915
87916         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87917         Undo previous (whitespace-only) change.
87918
87919 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87920
87921         * config/srclist-update: Change update back to the old behavior,
87922         leaving whitespace alone.  Use one 'sed' command rather than a
87923         pipeline.
87924         (fixlicense): Now a variable, not a function.
87925         (remove_trailing_blanks): Remove.
87926         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87927         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87928         Undo previous (whitespace-only) change.
87929
87930 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87931
87932         Merge from coreutils.
87933         * modules/euidaccess: Add lib_SOURCES, include for new
87934         file euidaccess.h
87935
87936 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87937
87938         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87939         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87940         Normalize leading white space and remove trailing white space.
87941
87942         Merge from coreutils
87943         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87944
87945         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87946         0.12.1.  These files are now being upgraded automatically by
87947         ../config/srclist-update.
87948
87949 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87950
87951         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87952         Normalize leading white space and remove trailing white space.
87953         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87954         notice, as per ../config/srclist-update.
87955
87956         Merge from coreutils.
87957         * lib/euidaccess.h: New file.
87958         * lib/euidaccess.c: Include it.
87959         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87960         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87961         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87962
87963 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87964
87965         * config/srclist-update: Add copyright notice.
87966         (remove_id_lines, remove_trailing_blanks): New constants.
87967         (fixfile): Use them to normalize spacing a bit in copied files.
87968         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87969         Normalize leading white space and remove trailing white space.
87970
87971         * config/texinfo.tex: Sync with texinfo.
87972
87973         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87974         strtoul.c from libc, to merge coreutils whitespace changes.
87975
87976         * config/srclist.txt: Get the following m4 files from gettext:
87977         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87978         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87979         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87980         wint_t.m4.
87981
87982 2003-08-12  Karl Berry  <karl@gnu.org>
87983
87984         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87985         been made.
87986
87987 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87988
87989         * modules/gnu-source, m4/gnu-source.m4:
87990         Remove; we're assuming Autoconf 2.54 or later now.
87991         Suggested by Bruno Haible.
87992         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87993
87994 2003-08-11  Bruno Haible  <bruno@clisp.org>
87995
87996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87997
87998 2003-08-11  Bruno Haible  <bruno@clisp.org>
87999
88000         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88001         (vasnprintf): Use it instead of wcslen.
88002
88003 2003-08-11  Bruno Haible  <bruno@clisp.org>
88004
88005         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88006         value to ensure that _Bool promotes to int. Use #define for _Bool when
88007         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88008
88009 2003-08-10  Karl Berry  <karl@gnu.org>
88010
88011         * lib/regex.h: update from libc (whitespace fix).
88012
88013 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88014
88015         Merge some files from coreutils.  These changes were
88016         originally made by Jim Meyering.
88017         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88018         many older Unixes require this.
88019         * lib/alloca.c (alloca): Remove cast to argument of free;
88020         no longer needed in C89.
88021         * lib/alloca_.h, regex.h: Fix white space to match
88022         what GNU indent does.
88023
88024 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88025
88026         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88027         apparently Emacs's Unicode mode got confused before my 2003-08-05
88028         checkin.
88029
88030 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88031
88032         * m4/extensions.m4: New file.
88033         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88034         Require gl_USE_SYSTEM_EXTENSIONS.
88035         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88036         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88037
88038 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88039
88040         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88041         * modules/extensions, modules/gnu-source: New files.
88042         * modules/timespec, modules/unlocked-io: Depend on extensions.
88043
88044 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88045
88046         * modules/restrict: New file.
88047         * MODULES.html.sh (func_all_modules): Add restrict.
88048         * modules/regex: Depend on restrict.
88049
88050 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88051
88052         * m4/restrict.m4: New file.
88053         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88054
88055 2003-08-07  Bruno Haible  <bruno@clisp.org>
88056
88057         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88058         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88059
88060 2003-08-07  Bruno Haible  <bruno@clisp.org>
88061
88062         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88063         makes the module 'getndelim2' compatible with the module 'getline'.
88064
88065 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88066
88067         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88068         byte with "\201" to avoid glitches when editing that source file
88069         with multi-gnome-terminal.
88070
88071 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88072
88073         * lib/bumpalloc.h: Remove.
88074
88075 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88076
88077         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88078         * modules/bumpalloc: Remove.
88079
88080 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88081
88082         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88083         GNU coding style.
88084
88085         Merge from coreutils.
88086         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88087         1. From glibc.
88088         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88089         from Karl Berry, implemented by Jim Meyering.
88090         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88091         from Dmitry V. Levin.
88092         Remove anachronistic cast of xrealloc.
88093         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88094         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88095         type. Otherwise, it wouldn't compile with at least /bin/cc on
88096         ymp-cray-unicos9.0.2.X.
88097         Combine two mostly-identical uses of alloca into one.
88098         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88099
88100 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88101
88102         [From Emacs.]
88103
88104         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88105         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88106         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88107         obsolete NLIST_NAME_UNION.
88108         [__GNU__]: Undef BSD and FSCALE.
88109         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88110
88111 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88112
88113         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88114         an enum type, so that it's guaranteed to promote to int.  See:
88115         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88116
88117 2003-08-03  Karl Berry  <karl@gnu.org>
88118
88119         * config/depcomp: update from automake.
88120
88121 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88122
88123         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88124         (strerror): Don't assume that a printable int fits in 14 bytes.
88125
88126 2003-07-31  Bruno Haible  <bruno@clisp.org>
88127
88128         * modules/getpass-gnu: New file.
88129         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88130
88131 2003-07-31  Bruno Haible  <bruno@clisp.org>
88132
88133         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88134
88135 2003-07-24  Karl Berry  <karl@gnu.org>
88136
88137         * config/missing: update from automake.
88138
88139 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88140             Bruno Haible  <bruno@clisp.org>
88141
88142         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88143         * lib/getline.c (getline, getdelim): Likewise.
88144         Remove _GNU_SOURCE define; now it's defined in config.h through
88145         m4/getline.m4.
88146
88147 2003-07-23  Karl Berry  <karl@gnu.org>
88148
88149         * config/config.sub: update from prep.
88150
88151 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88152
88153         * modules/xalloc (Depends-on): Add exitfail.
88154         * modules/xmemcoll: Likewise.
88155
88156 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88157
88158         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88159         over-parenthesization in macros.
88160
88161         Sync with coreutils.
88162
88163         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88164         required by C99.
88165
88166         Use `exit_failure' for xalloc and xmemcoll instead of their own
88167         private exit-failure variables.
88168         * lib/xalloc.h (xalloc_exit_failure): Remove.
88169         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88170         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88171         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88172         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88173         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88174
88175 2003-07-20  Jim Meyering  <jim@meyering.net>
88176
88177         * modules/closeout (Depends-on): Add exitfail.
88178         Suggestion from Bruno Haible.
88179
88180 2003-07-19  Karl Berry  <karl@gnu.org>
88181
88182         * config/config.sub: update from prep.
88183
88184 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88185
88186         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88187         Remove.
88188         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88189         to test that it can stand by itself.  Include "exitfail.h".
88190         Clients should set exit_failure instead.
88191         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88192
88193 2003-07-18  Bruno Haible  <bruno@clisp.org>
88194
88195         * modules/getndelim2: New file.
88196         * modules/getline: Share files with module getndelim2.
88197         * modules/getnline: Depend on getndelim2 instead of sharing files with
88198         it. Add getnline.c to lib_SOURCES.
88199         * MODULES.html.sh (func_all_modules): Add getndelim2.
88200
88201 2003-07-18  Bruno Haible  <bruno@clisp.org>
88202
88203         * m4/getndelim2.m4: New file.
88204         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88205         invoke gl_PREREQ_GETNDELIM2.
88206         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88207         gl_PREREQ_GETNDELIM2.
88208         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88209         gl_GETNDELIM2.
88210
88211 2003-07-18  Bruno Haible  <bruno@clisp.org>
88212
88213         * lib/getndelim2.h: New file.
88214         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88215         getndelim2.h.
88216         (getndelim2): Make non-static. Change return type to ssize_t.
88217         * lib/getline.h: Change argument names.
88218         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88219         * lib/getnline.c: Include getndelim2.h.
88220
88221 2003-07-18  Andreas Schwab  <schwab@suse.de>
88222
88223         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88224
88225 2003-07-17  Karl Berry  <karl@gnu.org>
88226
88227         * config/config.sub: update from prep.
88228
88229 2003-07-17  Bruno Haible  <bruno@clisp.org>
88230
88231         * modules/getnline: New file.
88232         * modules/getline: Add lib/getndelim2.c to source file list.
88233         * MODULES.html.sh (func_all_modules): Add getnline.
88234
88235 2003-07-17  Bruno Haible  <bruno@clisp.org>
88236
88237         * m4/getnline.m4: New file.
88238
88239 2003-07-17  Bruno Haible  <bruno@clisp.org>
88240
88241         * m4/Makefile.am.in: Remove file.
88242         * m4/Makefile.am: Remove file.
88243         * m4/Makefile.in: Remove file.
88244
88245 2003-07-17  Bruno Haible  <bruno@clisp.org>
88246
88247         * lib/getnline.h: New file.
88248         * lib/getnline.c: New file.
88249         * lib/getndelim2.c: New file, extracted from getline.c.
88250         (getndelim2): Renamed from getdelim2, with added nmax argument.
88251         * lib/getline.c: Include getndelim2.c.
88252         (getdelim2): Moved out to getndelim2.c.
88253         (getline, getdelim): Update.
88254
88255 2003-07-17  Bruno Haible  <bruno@clisp.org>
88256
88257         * lib/Makefile.am: Remove file.
88258         * lib/Makefile.in: Remove file.
88259
88260 2003-07-17  Bruno Haible  <bruno@clisp.org>
88261
88262         * configure.in: Remove file.
88263         * Makefile.in: Remove file.
88264
88265 2003-07-17  Bruno Haible  <bruno@clisp.org>
88266
88267         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88268
88269 2003-07-16  Karl Berry  <karl@gnu.org>
88270
88271         * config/srclist-update: was running fixlicense twice, which caused
88272                 texinfo.tex to be nullified for some reason.  Simplify,
88273                 $gplsrc is no longer needed as far as I can see?
88274
88275 2003-07-16  Jim Meyering  <jim@meyering.net>
88276
88277         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88278
88279 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88280
88281         * config/srclist.txt: Get the following files from gettext-runtime/intl
88282         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88283         ref-del.sin.  From Bruno Haible.
88284         * config/srclist-update (fixfile): Change grep pattern again, since the
88285         previous fix didn't work (there was another trailing $).  Use
88286         '[$]' to escape the $s.
88287
88288 2003-07-15  Karl Berry  <karl@gnu.org>
88289
88290         * lib/vasnprintf.c: update from gettext.
88291
88292 2003-07-15  Karl Berry  <karl@gnu.org>
88293
88294         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88295         gets expanded when surrounded by '$'.
88296
88297 2003-07-15  Jim Meyering  <jim@meyering.net>
88298
88299         * modules/save-cwd: Don't depend on error.  From Derek Price.
88300
88301 2003-07-15  Jim Meyering  <jim@meyering.net>
88302
88303         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88304
88305 2003-07-14  Simon Josefsson  <jas@extundo.com>
88306
88307         * modules/mempcpy: New file.
88308         * MODULES.html.sh (func_all_modules): Add mempcpy.
88309
88310 2003-07-14  Simon Josefsson  <jas@extundo.com>
88311
88312         * m4/mempcpy.m4: New file.
88313
88314 2003-07-14  Simon Josefsson  <jas@extundo.com>
88315
88316         * lib/mempcpy.h: New file.
88317         * lib/mempcpy.c: New file.
88318
88319 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88320
88321         * modules/getdate, modules/posixtm: Depend on mktime.
88322
88323 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88324
88325         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88326         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88327         unicodeio.c, unicodeio.h, unlocked-io.h:
88328         Switch from LGPL to GPL.
88329
88330 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88331
88332         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88333         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88334         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88335         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88336         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88337         updated automatically by ../config/srclist-update.  This changes
88338         their license from LPGL to GPL.
88339
88340 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88341
88342         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88343         assumed to refer to the root of the most recent stable gettext version.
88344         * config/srclistvars.sh: Add defaults for eggert.
88345         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88346         Match "This program" as well as "The program".  This is needed
88347         for gettext.
88348
88349 2003-07-14  Jim Meyering  <jim@meyering.net>
88350
88351         Don't emit diagnostics.  Let callers do that.
88352         * lib/save-cwd.c: Don't include "error.h".
88353         (save_cwd): Don't call error.  Ensure that errno is valid
88354         when returning nonzero.
88355
88356         * lib/save-cwd.h (restore_cwd): Update prototype.
88357         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88358         Simplify.  Don't call error upon failure.  Let callers do that.
88359         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88360         when auditing is enabled.  But don't bother updating the #if.
88361
88362 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88363
88364         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88365         it breaks C++ compilation.
88366         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88367
88368 2003-07-10  Simon Josefsson  <jas@extundo.com>
88369
88370         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88371
88372 2003-07-10  Jim Meyering  <jim@meyering.net>
88373
88374         * m4/clock_time.m4: Remove trailing blank.
88375         * m4/intmax_t.m4: Likewise.
88376
88377 2003-07-10  Jim Meyering  <jim@meyering.net>
88378
88379         * lib/vasnprintf.c: Remove trailing blanks.
88380         Make cpp indentation consistent.
88381
88382 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88383
88384         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88385         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88386         Switch from LGPL to GPL.
88387
88388 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88389
88390         * config/srclist.txt: Sort sublists.  Add
88391         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88392         that differ from gnulib for one reason or another; we'd like this list
88393         to be smaller but for now let's document what we have.
88394
88395 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88396
88397         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88398         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88399         and sweeter "eval x=$x".
88400         * config/srclist.txt: Get lib/argp* from glibc.
88401
88402 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88403
88404         * lib/mktime.c: Fix some boundary cases and remove need for floating
88405         point.
88406
88407         Issue a compile-time diagnostic if time_t is floating point, or if
88408         two's complement arithmetic is not in effect, or if arithmetic
88409         right shift does not propagate the sign.  These assumptions were
88410         all in the original code but they weren't checked.
88411
88412         (TIME_T_MIDPOINT, verify): New macros.
88413         (__isleap): Remove; it has integer overflow problems.
88414         (leapyear): New function, without those problems.
88415         (ydhms_tm_diff): Remove; splitting into two parts.
88416         (ydhms_diff): New function, containing the arithmetic part of
88417         the old ydhms_tm_diff function.  Issue a compile-time
88418         diagnostic if we are not using C99 integer division.
88419         Avoid casts when possible.
88420         (guess_time_tm): New function, containing the checking part of
88421         the old ydhms_tm_diff function.  Return the new value, rather than
88422         the difference between it and the old.  Accept a new argument T
88423         so that *T specifies the old value.  Check for overflow in the result.
88424
88425         (__mktime_internal): Use a time_t offset, not a long int offset.
88426         This undoes the 2003-06-04 change, which is no longer needed now
88427         that we have better overflow checking.
88428         (localtime_offset): Likewise.
88429
88430         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88431         and long are 64-bit but int is only 32-bit.
88432         (ydhms_diff): Use long int to store year1 and yday1.
88433         Issue a compile-time diagnostic if long int is not wide enough.
88434
88435         (__mktime_internal): Use long int to store adjusted year and yday.
88436         Use plain C rather than preprocessor commands, if that doesn't
88437         affect efficiency.
88438         Check for overflow (and try to repair) after each probe
88439         rather than checking only at the very end.  This avoids some bugs
88440         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88441         does not equal GMT offset at maximum time).
88442         Use integer to check for overflow rather than floating point; this
88443         is more portable to non-IEEE hosts, and is a tad faster.
88444         When we detect that we are oscillating between two values,
88445         don't check whether tm_isdst has the requested value, since
88446         we already know the answer.  When tm_isdst has the wrong value,
88447         use a different heuristic to find the right one, based on the
88448         extreme values actually observed in practice in tz2003a,
88449         rather than the (overly optimistic) "previous 3 calendar quarters".
88450
88451         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88452         "T const" to accommodate glibc style.
88453         (check_result): Use less-confusing report format.  "long" -> "long int.
88454         (main): Likewise.
88455         Don't loop if the iteration overflows time_t.
88456         Allow a negative step in the iteration.
88457
88458 2003-07-06  Karl Berry  <karl@gnu.org>
88459
88460         * config/depcomp: update from automake.
88461         * config/config.sub: update from prep.
88462
88463 2003-07-03  Karl Berry  <karl@gnu.org>
88464
88465         * config/config.guess: update from prep.
88466
88467 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88468
88469         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88470         xreadlink.c now includes it unconditionally.
88471
88472 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88473
88474         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88475         having it depend on HAVE_SYS_TYPES_H.
88476
88477 2003-07-01  Bruno Haible  <bruno@clisp.org>
88478
88479         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88480         <sys/types.h> should be sufficient.
88481         Reported by Paul Eggert.
88482
88483 2003-06-26  Karl Berry  <karl@gnu.org>
88484
88485         * config/depcomp: update from automake.
88486
88487 2003-06-26  Bruno Haible  <bruno@clisp.org>
88488
88489         * modules/human: Depend on module stdbool.
88490
88491 2003-06-25  Bruno Haible  <bruno@clisp.org>
88492
88493         * modules/readlink: New file.
88494         * modules/xreadlink: Depend on it.
88495         * MODULES.html.sh (func_all_modules): Add readlink.
88496
88497 2003-06-25  Bruno Haible  <bruno@clisp.org>
88498
88499         * m4/readlink.m4: New file.
88500
88501 2003-06-25  Bruno Haible  <bruno@clisp.org>
88502
88503         * lib/readlink.c: New file.
88504
88505 2003-06-22  Karl Berry  <karl@gnu.org>
88506
88507         * config/srclist.txt: update mkinstalldirs from automake.
88508         * config/mkinstalldirs: update.
88509
88510 2003-06-22  Bruno Haible  <bruno@clisp.org>
88511
88512         Portability to mingw32.
88513         * m4/ssize_t.m4: New file, from GNU gettext.
88514         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88515         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88516
88517 2003-06-22  Bruno Haible  <bruno@clisp.org>
88518
88519         * modules/safe-read: Add m4/ssize_t.m4.
88520         * modules/xreadlink: Add m4/ssize_t.m4.
88521
88522 2003-06-20  Bruno Haible  <bruno@clisp.org>
88523
88524         Assume C89, so PARAMS isn't needed.
88525         * lib/unicodeio.h (PARAMS): Remove.
88526         * lib/unicodeio.c: Don't use PARAMS.
88527
88528 2003-06-18  Karl Berry  <karl@gnu.org>
88529
88530         * config/config.{guess,sub}: update from prep.
88531
88532 2003-06-18  Jim Meyering  <jim@meyering.net>
88533
88534         Merge changes from coreutils.
88535         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88536         Remove explicit declarations of xmalloc and realloc.
88537         Include xalloc.h.
88538         (read_utmp): Remove anachronistic cast of xmalloc.
88539
88540 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88541
88542         Assume C89, so PARAMS isn't needed.
88543         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88544         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88545         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88546         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88547         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88548         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88549         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88550         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88551         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88552         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88553         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88554         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88555         no longer needed. Anyway, config.h should always be included before any
88556         other file.
88557
88558 2003-06-11  Simon Josefsson  <jas@extundo.com>
88559
88560         * modules/sysexits: New file.
88561         * MODULES.html.sh (func_all_modules): Add sysexits.
88562
88563 2003-06-11  Simon Josefsson  <jas@extundo.com>
88564
88565         * lib/sysexit_.h: New file.
88566
88567 2003-06-11  Derek Price  <derek@ximbiot.com>
88568
88569         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88570         necessary.
88571
88572 2003-06-11  Bruno Haible  <bruno@clisp.org>
88573
88574         * m4/sysexits.m4: New file.
88575
88576 2003-06-10  Simon Josefsson  <jas@extundo.com>
88577
88578         * lib/argp.h: New file, from glibc.
88579         * lib/argp-ba.c: New file, from glibc.
88580         * lib/argp-eexst.c: New file, from glibc.
88581         * lib/argp-fmtstream.c: New file, from glibc.
88582         * lib/argp-fmtstream.h: New file, from glibc.
88583         * lib/argp-fs-xinl.c: New file, from glibc.
88584         * lib/argp-help.c: New file, from glibc.
88585         * lib/argp-namefrob.h: New file, from glibc.
88586         * lib/argp-parse.c: New file, from glibc.
88587         * lib/argp-pv.c: New file, from glibc.
88588         * lib/argp-pvh.c: New file, from glibc.
88589         * lib/argp-xinl.c: New file, from glibc.
88590
88591 2003-06-10  Simon Josefsson  <jas@extundo.com>
88592
88593         * modules/strchrnul: New file.
88594
88595 2003-06-10  Simon Josefsson  <jas@extundo.com>
88596
88597         * modules/argp: New file.
88598
88599 2003-06-10  Simon Josefsson  <jas@extundo.com>
88600
88601         * m4/strchrnul.m4: New file.
88602
88603 2003-06-10  Simon Josefsson  <jas@extundo.com>
88604
88605         * lib/strchrnul.h: New file.
88606         * lib/strchrnul.c: New file.
88607
88608 2003-06-10  Bruno Haible  <bruno@clisp.org>
88609
88610         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88611
88612 2003-06-07  Karl Berry  <karl@gnu.org>
88613
88614         * config/config.{guess,sub}: update from prep.
88615
88616 2003-06-07  Jim Meyering  <jim@meyering.net>
88617
88618         * modules/strtod: Use $(...) notation, not @...@ for
88619         AC_REPLACE'd variables.
88620         * modules/localcharset: Likewise.
88621
88622 2003-06-07  Jim Meyering  <jim@meyering.net>
88623
88624         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88625         in place of my name in the copyright comment.
88626         Remove definition and uses of __P.
88627
88628         From coreutils.
88629         * lib/stat.c: Don't declare xmalloc explicitly.
88630         Instead, include "xalloc.h".
88631         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88632         xrealloc, and xcalloc return values.
88633         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88634         Improve comment.
88635         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88636
88637 2003-06-07  Bruno Haible  <bruno@clisp.org>
88638
88639         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88640         avoid AC_CONFIG_LINKS.
88641         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88642         fnmatch.h, to avoid AC_CONFIG_LINKS.
88643         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88644
88645 2003-06-07  Bruno Haible  <bruno@clisp.org>
88646
88647         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88648         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88649         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88650         directory.
88651         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88652         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88653         directory.
88654
88655 2003-06-06  Jim Meyering  <jim@meyering.net>
88656
88657         Merge from coreutils.
88658         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88659         Consolidate declarations and initializations of *_base* locals.
88660
88661         Merge from coreutils.
88662         This avoids a core dump on systems without GNU putenv,
88663         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88664         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88665         (unsetenv): New static function, from GNU libc.
88666         (rpl_putenv): Use it.
88667
88668         * lib/modechange.c: Remove trailing blanks.
88669
88670         Merge from coreutils.
88671         * lib/fsusage.c: Remove declaration of statfs.
88672         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88673
88674         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88675
88676 2003-06-06  Jim Meyering  <jim@meyering.net>
88677
88678         * lib/stdbool_.h: Renamed from stdbool.h.in.
88679
88680 2003-06-06  Jim Meyering  <jim@meyering.net>
88681             Bruno Haible  <bruno@clisp.org>
88682
88683         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88684         Adjust Makefile.am snippet not to redirect directly to target.
88685         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88686
88687 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88688
88689         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88690         mismatch, look in future quarters as well as past.  This fixes a
88691         bug when processing fall-backwards gaps immediately after a long
88692         period of daylight-saving time.
88693
88694         * lib/mktime.c: Assume freestanding C89 or better.
88695         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88696         (__P): Remove; not used.
88697         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88698         (mktime, not_equal_tm, print_tm, check_result,
88699         main): Use prototypes.  Use const * where appropriate.
88700         (main): Fix typo in testing code that uncovered by above changes.
88701         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88702
88703 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88704
88705         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88706         locale.h, localeconv.  This merges changes from coreutils.
88707
88708         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88709         It can be removed after the next Autoconf is released.
88710         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88711         needed.
88712
88713 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88714
88715         * lib/mktime.c: Fix Debian bug 177940
88716         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88717         (localtime_offset): Now long int, not time_t, because we want it
88718         to be guaranteed to be signed.  All uses changed.
88719         (__mktime_internal): If overflow would occur when adding offset,
88720         don't add it.
88721
88722         Merge 'human' changes from coreutils.  Rewrite to support
88723         locale-specific notations like thousands separators.
88724         * lib/human.c: Simplify authorship notice.
88725         Include human.h immediately after config.h.
88726         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88727         <limits.h>: Do not include, since human.h does.
88728         (SIZE_MAX, UINTMAX_MAX): New macros.
88729         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88730         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88731         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88732         (power_letter): Renamed from suffixes.
88733         (generate_suffix_backwards): Remove.
88734         (adjust_value): Now takes int style (because of human.h changes)
88735         and long double value (for greater precision on some platforms).
88736         (group_number): New function.
88737         (human_readable): Use it.  Use integer options, not enum.
88738         Put the options before the sizes in the arg list.
88739         Support all the new options.
88740         The old human_readable function has been removed;
88741         use inttostr.h instead.
88742         (human_readable, default_block_size, humblock):
88743         Use uintmax_t, not int, for block sizes.
88744         (human_readable_inexact, block_size_types): Remove.
88745         (block_size_opts): New constant.
88746         (human_options): Renamed from human_block_size, with new signature
88747         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88748         * lib/human.h: Add copyright and authorship notice.
88749         Include <limits.h> and <stdbool.h> unconditionally.
88750         (PARAMS): Remove.  All uses removed.
88751         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88752         (enum human_inexact_style): Remove tag; now a nameless enum.
88753         (human_floor, human_ceiling, human_round_to_even): Now have
88754         values 2, 0, 1 rather than -1, 1, 0.
88755         (human_group_digits, human_suppress_point_zero, human_autoscale,
88756         human_base_1024, human_SI, human_B): New constants.
88757         (human_readable_inexact, human_block_size): Remove.
88758         (human_readable): Size args are now uintmax_t, not int.
88759         (human_options): New decl.
88760
88761         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88762         unnecessary now that we assume C89 or better.  This change
88763         imported from coreutils.
88764
88765         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88766         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88767         in the 2003-05-30 sync from glibc.
88768
88769         .h files should stand alone, but we shouldn't include <sys/types.h>
88770         if we can get away with just <stddef.h>.
88771
88772         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88773         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88774         rather than <sys/types.h>, as we merely need size_t.
88775         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88776         to get size_t.
88777         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88778         Include <stdio.h>, to get FILE.
88779         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88780         memcasecmp.h has included <stddef.h> and all we need is size_t.
88781         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88782         our interface, instead of including <sys/types.h>
88783
88784 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88785
88786         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88787         now, as glibc mktime is buggy on non-glibc systems.
88788
88789 2003-06-03  Karl Berry  <karl@gnu.org>
88790
88791         * config/config.sub: update from prep.
88792
88793 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88794
88795         [from coreutils]
88796         Fix some minor time-related bugs with POSIX time arguments.
88797         Some valid time stamps were being rejected (notably -1, and
88798         time stamps before 1900 on 64-bit hosts).  And some invalid
88799         time stamps were being accepted, e.g. September 31.
88800
88801         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88802         that we can return (time_t) -1 successfully.
88803         * lib/posixtm.c: Likewise.
88804         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88805         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88806         (t): Remove static var.
88807         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88808         of static var.  All uses changed.
88809         (year): Do not reject years before 1900; they can occur with
88810         64-bit time_t.
88811         (posix_time_parse): Do not check for out-of-range components;
88812         that is now the caller's responsibility, since our checks were
88813         only approximations.
88814         (posixtime): Use mktime to check for out-of-range components,
88815         since it knows them exactly.
88816         If mktime returns (time_t) -1, check whether an error actually occurred
88817         by invoking localtime on -1.
88818         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88819         posixtime failures better.
88820         Improve the test data (in comments only).
88821
88822 2003-06-02  Karl Berry  <karl@gnu.org>
88823
88824         * config/mkinstalldirs (version): new variable.
88825         (--version): new option.
88826         (usage): improve message.
88827
88828 2003-05-30  Karl Berry  <karl@gnu.org>
88829
88830         * lib/mktime.c: update from libc.
88831
88832 2003-05-30  Bruno Haible  <bruno@clisp.org>
88833
88834         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88835         * config/config.rpath: Upgrade to gettext-0.12.1.
88836
88837 2003-05-30  Bruno Haible  <bruno@clisp.org>
88838
88839         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88840         * m4/nls.m4: New file, from gettext-0.12.1.
88841         * m4/po.m4: New file, from gettext-0.12.1.
88842         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88843
88844 2003-05-30  Bruno Haible  <bruno@clisp.org>
88845
88846         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88847         * lib/localcharset.h: Likewise.
88848         * lib/localcharset.c: Likewise.
88849
88850 2003-05-29  Karl Berry  <karl@gnu.org>
88851
88852         * config/config.rpath: update from gettext.
88853
88854 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88855
88856         Assume the headers required for C89 freestanding compilers.
88857         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88858         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88859         * m4/human.m4 (gl_HUMAN): Likewise.
88860         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88861         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88862         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88863         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88864         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88865         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88866
88867 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88868
88869         Assume the headers required for C89 freestanding compilers.
88870         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88871         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88872         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88873         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88874         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88875         define, since <limits.h> is guaranteed to do that.
88876         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88877         * lib/exclude.c: Include <stdbool.h> unconditionally.
88878         * lib/tempname.c: Include <stddef.h> unconditionally.
88879         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88880         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88881         <stddef.h> does that.
88882         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88883         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88884         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88885         needed.
88886         * lib/xstrtol.c: Likewise.
88887         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88888         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88889
88890         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88891         warnings on some platforms.
88892
88893         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88894         arbitrarily.
88895
88896 2003-05-26  Jim Meyering  <jim@meyering.net>
88897
88898         Merge in a change from coreutils:
88899         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88900         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88901         that condition, rather than `-1' which is slightly misleading.
88902         Change the name of the cache variable to have the gl_ prefix.
88903         Prompted by a patch from Richard Dawe for DJGPP.
88904
88905 2003-05-24  Karl Berry  <karl@gnu.org>
88906
88907         * config/config.guess: update from prep.
88908
88909 2003-05-22  Karl Berry  <karl@gnu.org>
88910
88911         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88912
88913 2003-05-20  Karl Berry  <karl@gnu.org>
88914
88915         * config/config.guess: update from prep.
88916
88917 2003-05-18  Karl Berry  <karl@gnu.org>
88918
88919         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88920         might actually be set by the user.
88921
88922         * config/depcomp, install-sh, mdate-sh: update from automake.
88923
88924 2003-05-17  Bruno Haible  <bruno@clisp.org>
88925
88926         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88927         invalid expansion for AC_EGREP_CPP.
88928         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88929         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88930         Suggested by Akim Demaille <akim@epita.fr> in
88931         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88932
88933 2003-05-12  Jim Meyering  <jim@meyering.net>
88934
88935         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88936         the space-padded-by-default conversion specifiers, %e, %k, %l.
88937
88938 2003-05-12  Bruno Haible  <bruno@clisp.org>
88939
88940         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88941         the string is longer than 4 KB.
88942
88943 2003-05-11  Karl Berry  <karl@gnu.org>
88944
88945         * config/config.{guess,sub}: update from prep.
88946
88947 2003-05-09  Bruno Haible  <bruno@clisp.org>
88948
88949         * modules/error: Add m4/strerror_r.m4 to file list.
88950
88951 2003-05-03  Bruno Haible  <bruno@clisp.org>
88952
88953         Upgrade to Unicode-4.0.
88954         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88955         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88956         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88957         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88958         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88959         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88960         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88961         Change width of U+E0100..U+E01EF from 1 to 0.
88962
88963 2003-04-25  Jim Meyering  <jim@meyering.net>
88964
88965         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88966         of type size_t, not int.
88967
88968 2003-04-25  Bruno Haible  <bruno@clisp.org>
88969
88970         * lib/copy-file.c: Include <stddef.h>, for size_t.
88971
88972 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88973
88974         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88975         code which expansion is under static control.  Patch imported from
88976         Akim Demaille's patch to Bison; see
88977         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88978
88979 2003-04-14  Bruno Haible  <bruno@clisp.org>
88980
88981         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88982
88983 2003-04-11  Jim Meyering  <jim@meyering.net>
88984
88985         Merge changes from Coreutils.
88986
88987         2003-03-22  Jim Meyering  <jim@meyering.net>
88988
88989         * lib/strftime.c (widen): Cast alloca return value to proper type.
88990
88991         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88992
88993         From GNU libc.
88994         * lib/strftime.c (my_strftime): Handle very large width
88995         specifications for numeric values correctly.  Improve checks for
88996         overflow.
88997
88998         2003-01-19  Jim Meyering  <jim@meyering.net>
88999
89000         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89001         definitions.
89002         (nl_get_alt_digit) [! defined my_strftime]: Define.
89003         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89004         _nl_get_alt_digit and _nl_get_walt_digit.
89005
89006         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89007         libc. These changes have no effect outside of _LIBC.
89008
89009 2003-04-10  Bruno Haible  <bruno@clisp.org>
89010
89011         * modules/findprog: New file.
89012         * MODULES.html.sh (func_all_modules): Add it.
89013
89014 2003-04-10  Bruno Haible  <bruno@clisp.org>
89015
89016         * m4/findprog.m4: New file.
89017         * m4/eaccess.m4: New file.
89018
89019 2003-04-10  Bruno Haible  <bruno@clisp.org>
89020
89021         * lib/findprog.h: New file, from GNU gettext.
89022         * lib/findprog.c: New file, from GNU gettext.
89023
89024 2003-04-05  Jim Meyering  <jim@meyering.net>
89025
89026         Merge changes from Coreutils.
89027
89028         * lib/exclude.h (PARAMS): Remove definition and uses.
89029         * lib/exclude.c: Remove uses of `PARAMS'.
89030
89031         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89032         Add test-cases for DOS filenames. Declare program_name.
89033         (main): Set up program_name.  Patch by Rich Dawe.
89034
89035         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89036         error from mntctl.
89037         Use mntctl's return value to drive the entry-processing loop, since
89038         we can't rely on the value of the vmt_length member in the last
89039         entry.  On some systems doing so could result in exhausting
89040         virtual memory.  Based in part on a patch from Mike Jetzer.
89041
89042 2003-04-04  Bruno Haible  <bruno@clisp.org>
89043
89044         * modules/linebreak: New file.
89045         * MODULES.html.sh (func_all_modules): Add it.
89046
89047 2003-04-04  Bruno Haible  <bruno@clisp.org>
89048
89049         * m4/linebreak.m4: New file.
89050
89051 2003-04-04  Bruno Haible  <bruno@clisp.org>
89052
89053         * lib/linebreak.h: New file, from GNU gettext.
89054         * lib/linebreak.c: New file, from GNU gettext with slight
89055         modifications.
89056         * lib/lbrkprop.h: New file, from GNU gettext.
89057
89058 2003-04-03  Bruno Haible  <bruno@clisp.org>
89059
89060         * modules/utf8-ucs4: New file.
89061         * modules/utf16-ucs4: New file.
89062         * modules/ucs4-utf8: New file.
89063         * modules/ucs4-utf16: New file.
89064         * MODULES.html.sh (func_all_modules): Add them.
89065
89066 2003-04-03  Bruno Haible  <bruno@clisp.org>
89067
89068         * m4/utf-ucs4.m4: New file.
89069         * m4/ucs4-utf.m4: New file.
89070
89071 2003-04-03  Bruno Haible  <bruno@clisp.org>
89072
89073         * lib/utf8-ucs4.h: New file, from GNU gettext.
89074         * lib/utf16-ucs4.h: New file, from GNU gettext.
89075         * lib/ucs4-utf8.h: New file, from GNU gettext.
89076         * lib/ucs4-utf16.h: New file, from GNU gettext.
89077
89078 2003-04-02  Bruno Haible  <bruno@clisp.org>
89079
89080         * modules/binary-io: New file.
89081         * MODULES.html.sh (func_all_modules): Add it.
89082
89083 2003-04-02  Bruno Haible  <bruno@clisp.org>
89084
89085         * lib/binary-io.h: New file, from GNU gettext.
89086
89087 2003-04-01  Bruno Haible  <bruno@clisp.org>
89088
89089         * modules/pathname: New file.
89090         * MODULES.html.sh (func_all_modules): Add it.
89091
89092 2003-04-01  Bruno Haible  <bruno@clisp.org>
89093
89094         * lib/pathname.h: New file, from GNU gettext.
89095         * lib/concatpath.c: New file, from GNU gettext.
89096
89097 2003-03-30  Bruno Haible  <bruno@clisp.org>
89098
89099         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89100
89101 2003-03-30  Bruno Haible  <bruno@clisp.org>
89102
89103         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89104         function chown() doesn't exist.
89105
89106 2003-03-28  Bruno Haible  <bruno@clisp.org>
89107
89108         * modules/copy-file: New file.
89109         * MODULES.html.sh (func_all_modules): Add it.
89110
89111 2003-03-28  Bruno Haible  <bruno@clisp.org>
89112
89113         * m4/copy-file.m4: New file.
89114
89115 2003-03-28  Bruno Haible  <bruno@clisp.org>
89116
89117         * lib/copy-file.h: New file, from GNU gettext.
89118         * lib/copy-file.c: New file, from GNU gettext.
89119
89120 2003-03-18  Jim Meyering  <jim@meyering.net>
89121
89122         * lib/quote.c (quote_n): Fix typo in comment.
89123
89124 2003-03-18  Bruno Haible  <bruno@clisp.org>
89125
89126         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89127         checking.
89128         * m4/onceonly_2_57.m4: Likewise.
89129
89130 2003-03-17  Bruno Haible  <bruno@clisp.org>
89131
89132         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89133         (m4_quote): Remove macro.
89134         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89135
89136 2003-03-14  Jim Meyering  <jim@meyering.net>
89137
89138         Merge changes from Coreutils.
89139         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89140         to be const, in order to avoid warnings.
89141         (obstack_room): Likewise.
89142         (obstack_empty_p): Likewise.
89143
89144 2003-03-14  Bruno Haible  <bruno@clisp.org>
89145
89146         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89147         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89148
89149 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89150
89151         Merge changes from Bison.
89152         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89153         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89154         when compiling Bison 1.875's `bitset bset = obstack_alloc
89155         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89156         * lib/hash.c: Include <stdbool.h> unconditionally.
89157
89158 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89159
89160         * m4/onceonly.m4 (m4_quote): New macro.
89161         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89162         Quote AC_FOREACH variable-expansions properly.
89163
89164 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89165
89166         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89167
89168 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89169
89170         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89171         Reported by Bruce Becker; see:
89172         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89173
89174 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89175             Bruno Haible  <bruno@clisp.org>
89176
89177         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89178         Reported by John Hughes, see
89179         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89180
89181 2003-02-20  Bruno Haible  <bruno@clisp.org>
89182
89183         * MODULES.html.sh (func_all_modules): Add poll.
89184
89185 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89186
89187         * modules/poll: New file.
89188
89189 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89190
89191         * lib/poll_.h: New file.
89192         * lib/poll.c: New file.
89193
89194 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89195
89196         * m4/poll.m4: New file.
89197
89198 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89199
89200         * modules/mathl: New file.
89201
89202 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89203
89204         * lib/mathl.h: New file.
89205         * lib/acosl.c: New file.
89206         * lib/asinl.c: New file.
89207         * lib/atanl.c: New file.
89208         * lib/ceill.c: New file.
89209         * lib/cosl.c: New file.
89210         * lib/expl.c: New file.
89211         * lib/floorl.c: New file.
89212         * lib/frexpl.c: New file.
89213         * lib/ldexpl.c: New file.
89214         * lib/logl.c: New file.
89215         * lib/sincosl.c: New file.
89216         * lib/sinl.c: New file.
89217         * lib/sqrtl.c: New file.
89218         * lib/tanl.c: New file.
89219         * lib/trigl.c: New file.
89220         * lib/trigl.h: New file.
89221
89222 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89223
89224         * m4/mathl.m4: New file.
89225
89226 2003-02-18  Bruno Haible  <bruno@clisp.org>
89227
89228         * MODULES.html.sh (func_all_modules): Add mathl.
89229
89230 2003-02-17  Bruno Haible  <bruno@clisp.org>
89231
89232         * modules/mkdtemp: New module.
89233         * MODULES.html.sh (func_all_modules): Add it.
89234
89235 2003-02-17  Bruno Haible  <bruno@clisp.org>
89236
89237         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89238
89239 2003-02-17  Bruno Haible  <bruno@clisp.org>
89240
89241         * lib/mkdtemp.h: New file, from GNU gettext.
89242         * lib/mkdtemp.c: New file, from GNU gettext.
89243
89244 2003-02-02  Jim Meyering  <jim@meyering.net>
89245
89246         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89247         e.g. glibc-2.2.93.
89248
89249 2003-01-31  Bruno Haible  <bruno@clisp.org>
89250
89251         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89252         'rpl_rename'.
89253         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89254         'rpl_strnlen'.
89255         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89256         'rpl_strtod'.
89257         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89258         'rpl_utime'.
89259
89260 2003-01-31  Bruno Haible  <bruno@clisp.org>
89261
89262         * lib/rename.c: #undef rename before defining rpl_rename.
89263         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89264
89265 2003-01-30  Bruno Haible  <bruno@clisp.org>
89266
89267         * modules/vasnprintf, modules/vasprintf: New modules.
89268         * MODULES.html.sh (func_all_modules): Add them.
89269
89270 2003-01-30  Bruno Haible  <bruno@clisp.org>
89271
89272         * m4/signed.m4: New file, from GNU gettext.
89273         * m4/longdouble.m4: New file, from GNU gettext.
89274         * m4/wchar_t.m4: New file, from GNU gettext.
89275         * m4/wint_t.m4: New file, from GNU gettext.
89276         * m4/vasnprintf.m4: New file.
89277         * m4/vasprintf.m4: New file.
89278
89279 2003-01-30  Bruno Haible  <bruno@clisp.org>
89280
89281         * lib/printf-args.h: New file, from GNU gettext.
89282         * lib/printf-args.c: New file, from GNU gettext.
89283         * lib/printf-parse.h: New file, from GNU gettext.
89284         * lib/printf-parse.c: New file, from GNU gettext.
89285         * lib/vasnprintf.h: New file, from GNU gettext.
89286         * lib/vasnprintf.c: New file, from GNU gettext.
89287         * lib/asnprintf.c: New file, from GNU gettext.
89288         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89289         * lib/vasprintf.c: New file, from GNU gettext.
89290         * lib/asprintf.c: New file, from GNU gettext.
89291
89292 2003-01-29  Bruno Haible  <bruno@clisp.org>
89293
89294         * modules/stpncpy: New module.
89295         * MODULES.html.sh (func_all_modules): Add it.
89296
89297 2003-01-29  Bruno Haible  <bruno@clisp.org>
89298
89299         * m4/stpncpy.m4: New file.
89300
89301 2003-01-29  Bruno Haible  <bruno@clisp.org>
89302
89303         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89304         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89305
89306 2003-01-28  Bruno Haible  <bruno@clisp.org>
89307
89308         * modules/c-ctype: New module.
89309         * MODULES.html.sh (func_all_modules): Add it.
89310
89311 2003-01-28  Bruno Haible  <bruno@clisp.org>
89312
89313         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89314         Paul Eggert.
89315         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89316         Paul Eggert.
89317
89318 2003-01-27  Bruno Haible  <bruno@clisp.org>
89319
89320         * modules/xsetenv: New module.
89321         * MODULES.html.sh (func_all_modules): Add it.
89322
89323 2003-01-27  Bruno Haible  <bruno@clisp.org>
89324
89325         * lib/xsetenv.h: New file, from GNU gettext.
89326         * lib/xsetenv.c: New file, from GNU gettext.
89327
89328 2003-01-23  Jim Meyering  <jim@meyering.net>
89329
89330         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89331         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89332
89333 2003-01-23  Bruno Haible  <bruno@clisp.org>
89334
89335         * modules/minmax: New module.
89336         * MODULES.html.sh (func_all_modules): Add it.
89337
89338 2003-01-23  Bruno Haible  <bruno@clisp.org>
89339
89340         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89341         Eggert.
89342
89343 2003-01-22  Bruno Haible  <bruno@clisp.org>
89344
89345         * modules/exit: New module.
89346         * MODULES.html.sh (func_all_modules): Add it.
89347
89348 2003-01-22  Bruno Haible  <bruno@clisp.org>
89349
89350         * lib/exit.h: New file, from GNU gettext.
89351
89352 2003-01-19  Bruno Haible  <bruno@clisp.org>
89353
89354         * gnulib-tool: Recognize option --extract-maintainer.
89355         (func_get_maintainer): New function.
89356         * modules/*: Add Maintainer entry.
89357
89358 2003-01-16  Jim Meyering  <jim@meyering.net>
89359
89360         * m4/regex.m4: The `regex' struct is both input and output.
89361         Initialize it before each use.  Patch by Tim Waugh.
89362
89363 2003-01-16  Bruno Haible  <bruno@clisp.org>
89364
89365         * MODULES.html.sh: Add a table of contents. Add the module name as
89366         leftmost column. Add hyperlinks.
89367
89368 2003-01-15  Bruno Haible  <bruno@clisp.org>
89369
89370         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89371
89372 2003-01-15  Bruno Haible  <bruno@clisp.org>
89373
89374         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89375         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89376         suffix.
89377
89378 2003-01-15  Bruno Haible  <bruno@clisp.org>
89379
89380         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89381
89382 2003-01-15  Bruno Haible  <bruno@clisp.org>
89383
89384         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89385         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89386
89387 2003-01-14  Jim Meyering  <jim@meyering.net>
89388
89389         * lib/same.c (same_name): Tweak a comment.
89390
89391 2003-01-14  Bruno Haible  <bruno@clisp.org>
89392
89393         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89394         when a string comparison is sufficient.
89395
89396 2003-01-14  Bruno Haible  <bruno@clisp.org>
89397
89398         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89399         'unsigned int'.
89400
89401 2003-01-14  Bruno Haible  <bruno@clisp.org>
89402
89403         * lib/hash-pjw.c: Add comment about low quality of this function.
89404
89405 2003-01-13  Bruno Haible  <bruno@clisp.org>
89406
89407         * modules/stpcpy: Distribute lib/stpcpy.h.
89408         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89409
89410 2003-01-13  Bruno Haible  <bruno@clisp.org>
89411
89412         * modules/*: Add a description.
89413         * modules/strpbrk: Fix Makefile.am snippet.
89414         * modules/strtoimax: Fix dependencies.
89415         * modules/strtoumax: Likewise.
89416
89417 2003-01-13  Bruno Haible  <bruno@clisp.org>
89418
89419         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89420         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89421         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89422
89423 2003-01-13  Bruno Haible  <bruno@clisp.org>
89424
89425         * gnulib-tool (func_create_testdir): Store config/* files in the main
89426         directory.
89427         * config.rpath: Move to ...
89428         * config/config.rpath: ... here.
89429         * modules/gettext: Contains config/config.rpath, not config.rpath.
89430         * modules/iconv: Likewise.
89431
89432 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89433
89434         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89435         to avoid collisions with libcurses and libreadline.
89436
89437         * m4/getstr.m4: Remove.
89438         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89439
89440 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89441
89442         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89443         to avoid collisions with libcurses and libreadline.
89444
89445         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89446         * lib/getstr.h, getstr.c: Remove.
89447         * lib/getline.c: Include "getline.h", to check interface.
89448         Move body of old getstr.c here: this defines MIN_CHUNK and
89449         declares getdelim2, which is renamed from getstr.
89450         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89451
89452         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89453         All uses changed.
89454         * lib/linebuffer.h: Likewise.
89455         (readline): Remove backward-compatibility macro.
89456
89457 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89458
89459         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89460         to avoid collisions with libcurses and libreadline.
89461         * getstr: Remove.
89462         * MODULES.html.sh: Remove getstr.
89463         * modules/getline: Depend on unlocked-io, not getstr.
89464
89465 2003-01-12  Jim Meyering  <jim@meyering.net>
89466
89467         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89468
89469 2003-01-10  Bruno Haible  <bruno@clisp.org>
89470
89471         * modules/alloca: Change Makefile.am requirements. Simplify Include
89472         requirements. Add lib/alloca_.h to file list.
89473
89474 2003-01-10  Bruno Haible  <bruno@clisp.org>
89475
89476         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89477
89478 2003-01-10  Bruno Haible  <bruno@clisp.org>
89479
89480         * lib/alloca_.h: New file.
89481         * lib/getdate.y: Unconditionally include alloca.h.
89482         * lib/makepath.c: Likewise.
89483         * lib/setenv.c: Likewise.
89484         * lib/userspec.c: Likewise.
89485
89486 2003-01-09  Karl Berry  <karl@gnu.org>
89487
89488         * MODULES.html.sh: include `dirname $0` in PATH, to find
89489         gnulib-tool.
89490
89491 2003-01-09  Bruno Haible  <bruno@clisp.org>
89492
89493         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89494         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89495
89496 2003-01-09  Bruno Haible  <bruno@clisp.org>
89497
89498         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89499
89500 2003-01-09  Bruno Haible  <bruno@clisp.org>
89501
89502         * lib/stdbool.h.in: New file.
89503
89504 2003-01-09  Bruno Haible  <bruno@clisp.org>
89505
89506         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89507         * MODULES.html.sh: Likewise.
89508
89509 2003-01-08  Jim Meyering  <jim@meyering.net>
89510
89511         * lib/full-write.c: Undefine and define-away `const' after inclusion
89512         of errno.h, not before.  Suggestion from Bruno Haible.
89513
89514 2003-01-08  Bruno Haible  <bruno@clisp.org>
89515
89516         * modules/full-read: Depend on full-write.
89517
89518 2003-01-08  Bruno Haible  <bruno@clisp.org>
89519
89520         * lib/safe-read.c: Include specification header first, to ensure its
89521         selfcontainedness.
89522         * lib/full-write.c: Likewise.
89523
89524 2003-01-07  Jim Meyering  <jim@meyering.net>
89525
89526         * lib/full-write.c: Rework so that it may serve to define full_read,
89527         too.
89528         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89529
89530 2003-01-07  Bruno Haible  <bruno@clisp.org>
89531
89532         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89533         <inttypes.h>.
89534         * lib/xstrtol.h: Likewise.
89535         * lib/xstrtoimax.c: Likewise.
89536         * lib/xstrtoumax.c: Likewise.
89537         * lib/human.h: Likewise.
89538
89539         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89540         on systems that have <inttypes.h> but not <stdint.h>.
89541
89542 2003-01-07  Bruno Haible  <bruno@clisp.org>
89543
89544         * MODULES.html.sh: Add copyright notice.
89545         (missed_files): Omit CVS directory entries.
89546         (func_module): Make it work with sed-3.02.
89547         * MODULES.txt: Remove file.
89548
89549 2003-01-06  Jim Meyering  <jim@meyering.net>
89550
89551         * lib/version-etc.c: Update year in translatable copyright string.
89552
89553 2003-01-03  Karl Berry  <karl@gnu.org>
89554
89555         * config/config.{guess,sub}: update from prep.
89556
89557 2003-01-02  Karl Berry  <karl@gnu.org>
89558
89559         * doc/COPYING.DOC: belatedly updated to 1.2.
89560
89561 2003-01-01  Karl Berry  <karl@gnu.org>
89562
89563         * gnulib-tool (func_verify_module): report module name $module in
89564         error message, not $1.
89565         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89566         be created, only if it doesn't exist.
89567         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89568
89569 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89570
89571         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89572
89573 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89574
89575         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89576         memcmp if strcoll doesn't work.
89577
89578 2002-12-31  Bruno Haible  <bruno@clisp.org>
89579
89580         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89581         nonempty.
89582
89583 2002-12-31  Bruno Haible  <bruno@clisp.org>
89584
89585         * lib/memcoll.c (STRCOLL): New macro.
89586         (memcoll): Use it.
89587
89588 2002-12-31  Bruno Haible  <bruno@clisp.org>
89589
89590         * lib/localcharset.h: New file.
89591         * lib/localcharset.c: Include it.
89592         * lib/unicodeio.c: Likewise.
89593
89594 2002-12-31  Bruno Haible  <bruno@clisp.org>
89595
89596         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89597         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89598
89599 2002-12-31  Bruno Haible  <bruno@clisp.org>
89600
89601         * lib/getline.h: Include <stddef.h>, for size_t.
89602
89603         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89604         * lib/unicodeio.c: Don't include <stddef.h>.
89605
89606 2002-12-31  Bruno Haible  <bruno@clisp.org>
89607
89608         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89609         HAVE_TM_ZONE.
89610
89611 2002-12-24  Karl Berry  <karl@gnu.org>
89612
89613         * config/config.guess: update from prep.
89614
89615 2002-12-24  Bruno Haible  <bruno@clisp.org>
89616
89617         General infrasructure.
89618         * m4/README: Rewritten.
89619         * m4/onceonly.m4: New file.
89620         * m4/onceonly_2_57.m4: New file.
89621
89622         Module atexit.
89623         * m4/atexit.m4: New file.
89624
89625         Module strtod.
89626         * m4/strtod.m4: New file.
89627
89628         Module strtol.
89629         * m4/strtol.m4: New file.
89630
89631         Module strtoul.
89632         * m4/strtoul.m4: New file.
89633
89634         Module memchr.
89635         * m4/memchr.m4: New file.
89636
89637         Module memcmp.
89638         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89639         (jm_FUNC_MEMCMP): Invoke it.
89640
89641         Module memcpy.
89642         * m4/memcpy.m4: New file.
89643
89644         Module memmove.
89645         * m4/memmove.m4: New file.
89646
89647         Module memset.
89648         * m4/memset.m4: New file.
89649
89650         Module strcspn.
89651         * m4/strcspn.m4: New file.
89652
89653         Module strpbrk.
89654         * m4/strpbrk.m4: New file.
89655
89656         Module strstr.
89657         * m4/strstr.m4: New file.
89658
89659         Module strerror.
89660         * m4/strerror.m4: New file.
89661
89662         Module mktime.
89663         * m4/mktime.m4: Renamed from jm-mktime.m4.
89664         (gl_PREREQ_MKTIME): New macro.
89665         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89666
89667         Module malloc.
89668         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89669         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89670         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89671
89672         Module realloc.
89673         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89674         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89675         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89676
89677         Module strftime.
89678         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89679         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89680         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89681         gl_TM_GMTOFF.
89682         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89683
89684         Module xalloc.
89685         * m4/xalloc.m4: New file.
89686
89687         Module alloca.
89688         * m4/alloca.m4: New file.
89689
89690         Module putenv.
89691         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89692         (jm_FUNC_PUTENV): Invoke it.
89693
89694         Module setenv.
89695         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89696         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89697         when invoked twice.
89698         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89699         gt_FUNC_SETENV.
89700
89701         Module memrchr.
89702         * m4/memrchr.m4: New file.
89703
89704         Module stpcpy.
89705         * m4/stpcpy.m4: New file.
89706
89707         Module strcase.
89708         * m4/strcase.m4: New file.
89709
89710         Module strdup.
89711         * m4/strdup.m4: New file.
89712
89713         Module strnlen.
89714         * m4/strnlen.m4: New file.
89715
89716         Module strndup.
89717         * m4/strndup.m4: New file.
89718
89719         Module xstrtod.
89720         * m4/xstrtod.m4: New file.
89721
89722         Module xstrtol.
89723         * m4/xstrtol.m4: New file.
89724
89725         Module getdate.
89726         * m4/getdate.m4: New file.
89727
89728         Module unlocked-io.
89729         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89730         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89731         * m4/jm-glibc-io.m4n: Remove file.
89732
89733         Module long-options.
89734         * m4/long-options.m4: New file.
89735
89736         Module md5.
89737         * m4/md5.m4: New file.
89738
89739         Module sha.
89740         * m4/sha.m4: New file.
89741
89742         Module getstr.
89743         * m4/getstr.m4: New file.
89744
89745         Module getline.
89746         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89747         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89748         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89749         simply getline. Infoke gl_PREREQ_GETLINE.
89750
89751         Module obstack.
89752         * m4/obstack.m4: New file.
89753
89754         Module hash.
89755         * m4/hash.m4: New file.
89756
89757         Module readtokens.
89758         * m4/readtokens.m4: New file.
89759
89760         Module strverscmp.
89761         * m4/strverscmp.m4: New file.
89762
89763         Module stdbool.
89764         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89765         OSF/1.
89766
89767         Module strtoll.
89768         * m4/strtoll.m4: New file.
89769
89770         Module strtoull.
89771         * m4/strtoull.m4: New file.
89772
89773         Module strtoimax.
89774         * m4/strtoimax.m4: New file.
89775
89776         Module strtoumax.
89777         * m4/strtoumax.m4: New file.
89778
89779         Module xstrtoimax.
89780         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89781         jm_AC_PREREQ_XSTRTOIMAX.
89782         Moved the strtol prerequisites to strtol.m4.
89783         Moved the strtoll prerequisites to strtoll.m4.
89784         Moved the strtoimax prerequisites to strtoimax.m4.
89785
89786         Module xstrtoumax.
89787         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89788         jm_AC_PREREQ_XSTRTOUMAX.
89789         Moved the strtoul prerequisites to strtoul.m4.
89790         Moved the strtoull prerequisites to strtoull.m4.
89791         Moved the strtoumax prerequisites to strtoumax.m4.
89792
89793         Module chown.
89794         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89795         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89796
89797         Module dup2.
89798         * m4/dup2.m4: New file.
89799
89800         Module ftruncate.
89801         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89802         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89803
89804         Module getgroups.
89805         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89806         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89807
89808         Module gettimeofday.
89809         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89810         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89811         gl_PREREQ_GETTIMEOFDAY.
89812
89813         Module mkdir.
89814         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89815         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89816
89817         Module mkstemp.
89818         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89819         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89820         jm_AC_TYPE_UINTMAX_T.
89821         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89822
89823         Module stat.
89824         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89825         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89826
89827         Module lstat.
89828         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89829         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89830
89831         Module timespec.
89832         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89833         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89834         * m4/st_mtim.m4: Indentation.
89835
89836         Module nanosleep.
89837         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89838         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89839         gl_PREREQ_NANOSLEEP.
89840
89841         Module regex.
89842         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89843         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89844         (gl_REGEX): New macro.
89845
89846         Module rename.
89847         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89848         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89849
89850         Module rmdir.
89851         * m4/rmdir.m4: New file.
89852
89853         Module utime.
89854         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89855         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89856         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89857
89858         Module dirname.
89859         * m4/dirname.m4: New file.
89860
89861         Module getopt.
89862         * m4/getopt.m4: New file.
89863
89864         Module unistd-safer.
89865         * m4/unistd-safer.m4: New file.
89866
89867         Module fnmatch.
89868         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89869         declaration.
89870         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89871         (gl_FUNC_FNMATCH_POSIX): New macro.
89872         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89873         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89874         simply fnmatch.
89875
89876         Module exclude.
89877         * m4/exclude.m4: New file.
89878
89879         Module human.
89880         * m4/human.m4: New file.
89881
89882         Module acl.
89883         * m4/acl.m4: Nop.
89884
89885         Module backupfile.
89886         * m4/backupfile.m4: New file.
89887         * m4/d-ino.m4: Indentation.
89888
89889         Module fsusage.
89890         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89891         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89892         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89893
89894         Module dirfd.
89895         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89896         requirements.
89897
89898         Module euidaccess.
89899         * m4/euidaccess.m4: New file.
89900
89901         Module file-type.
89902         * m4/file-type.m4: New file.
89903
89904         Module fileblocks.
89905         * m4/fileblocks.m4: New file.
89906
89907         Module filemode.
89908         * m4/filemode.m4: New file.
89909
89910         Module isdir.
89911         * m4/isdir.m4: New file.
89912
89913         Module lchown.
89914         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89915         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89916
89917         Module makepath.
89918         * m4/makepath.m4: New file.
89919
89920         Module modechange.
89921         * m4/modechange.m4: New file.
89922
89923         Module mountlist.
89924         * m4/mountlist.m4: New file.
89925         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89926         Indentation.
89927
89928         Module path-concat.
89929         * m4/path-concat.m4: New file.
89930
89931         Module pathmax.
89932         * m4/pathmax.m4: New file.
89933
89934         Module same.
89935         * m4/same.m4: New file.
89936
89937         Module save-cwd.
89938         * m4/save-cwd.m4: New file.
89939
89940         Module savedir.
89941         * m4/savedir.m4: New file.
89942
89943         Module xgetcwd.
89944         * m4/xgetcwd.m4: New file.
89945         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89946
89947         Module xreadlink.
89948         * m4/xreadlink.m4: New file.
89949
89950         Module safe-read.
89951         * m4/safe-read.m4: New file.
89952
89953         Module safe-write.
89954         * m4/safe-write.m4: New file.
89955
89956         Module closeout.
89957         * m4/closeout.m4: New file.
89958
89959         Module stdio-safer.
89960         * m4/stdio-safer.m4: New file.
89961
89962         Module getpass.
89963         * m4/getpass.m4: New file.
89964
89965         Module getugroups.
89966         * m4/getugroups.m4: New file.
89967
89968         Module group-member.
89969         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89970         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89971
89972         Module idcache.
89973         * m4/idcache.m4: New file.
89974
89975         Module userspec.
89976         * m4/userspec.m4: New file.
89977
89978         Module gettime.
89979         * m4/clock_time.m4: New file.
89980         * m4/gettime.m4: New file.
89981
89982         Module settime.
89983         * m4/settime.m4: New file.
89984
89985         Module posixtm.
89986         * m4/posixtm.m4: New file.
89987
89988         Module gethostname.
89989         * m4/gethostname.m4: New file.
89990
89991         Module canon-host.
89992         * m4/canon-host.m4: New file.
89993
89994         Module gettext.
89995         * m4/codeset.m4: New file, from gettext-0.11.5.
89996         * m4/gettext.m4: New file, from gettext-0.11.5.
89997         * m4/glibc21.m4: New file, from gettext-0.11.5.
89998         * m4/iconv.m4: New file, from gettext-0.11.5.
89999         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90000         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90001         * m4/inttypes.m4: New file, from gettext-0.11.5.
90002         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90003         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90004         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90005         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90006         * m4/lib-link.m4: New file, from gettext-0.11.5.
90007         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90008         * m4/progtest.m4: New file, from gettext-0.11.5.
90009         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90010         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90011         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90012
90013         Module localcharset.
90014         * m4/localcharset.m4: New file.
90015
90016         Module hard-locale.
90017         * m4/hard-locale.m4: New file.
90018
90019         Module mbswidth.
90020         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90021         onceonly macros.
90022         * m4/mbrtowc.m4: Add comment.
90023
90024         Module memcasecmp.
90025         * m4/memcasecmp.m4: New file.
90026
90027         Module memcoll.
90028         * m4/memcoll.m4: New file.
90029
90030         Module unicodeio.
90031         * m4/unicodeio.m4: New file.
90032
90033         Module rpmatch.
90034         * m4/rpmatch.m4: New file.
90035
90036         Module yesno.
90037         * m4/yesno.m4: New file.
90038
90039         Module exitfail.
90040         * m4/exitfail.m4: New file.
90041
90042         Module c-stack.
90043         * m4/c-stack.m4 (gl_C_STACK): New macro.
90044         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90045
90046         Module error.
90047         * m4/error.m4 (gl_ERROR): New macro.
90048         (jm_PREREQ_ERROR): Use onceonly macros.
90049
90050         Module fatal.
90051         * m4/fatal.m4: New file.
90052
90053         Module getloadavg.
90054         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90055         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90056
90057         Module getpagesize.
90058         * m4/getpagesize.m4: New file.
90059
90060         Module getusershell.
90061         * m4/getusershell.m4: New file.
90062
90063         Module physmem.
90064         * m4/physmem.m4: New file.
90065
90066         Module posixver.
90067         * m4/posixver.m4: New file.
90068
90069         Module quotearg.
90070         * m4/quotearg.m4: New file.
90071
90072         Module quote.
90073         * m4/quote.m4: New file.
90074
90075         Module readutmp.
90076         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90077
90078         Module sig2str.
90079         * m4/sig2str.m4: New file.
90080
90081         Other.
90082         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90083         ulonglong.m4.
90084         * m4/intmax_t.m4: New file.
90085         * m4/d-type.m4: Indentation.
90086         * m4/jm-macros.m4: Update.
90087         * m4/prereq.m4 (jm_PREREQ): Update.
90088         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90089         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90090         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90091         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90092         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90093         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90094         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90095         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90096         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90097         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90098         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90099         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90100         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90101         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90102         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90103         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90104         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90105         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90106         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90107
90108 2002-12-24  Bruno Haible  <bruno@clisp.org>
90109
90110         * MODULES.txt: Update according to m4/ changes.
90111
90112         Module gettext.
90113         * config.rpath: New file, from gettext-0.11.5.
90114
90115         * modules/*: New module descriptions.
90116         * gnulib-tool: New file.
90117         * MODULES.html.sh: New file.
90118
90119 2002-12-21  Karl Berry  <karl@gnu.org>
90120
90121         * doc/fdl.texi: update to version 1.2.
90122
90123 2002-12-19  Karl Berry  <karl@gnu.org>
90124
90125         * config/config.guess: update from prep.
90126
90127 2002-12-18  Bruno Haible  <bruno@clisp.org>
90128
90129         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90130         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90131
90132 2002-12-17  Bruno Haible  <bruno@clisp.org>
90133
90134         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90135         stdlib.h, string.h.
90136
90137 2002-12-17  Bruno Haible  <bruno@clisp.org>
90138
90139         * lib/canon-host.c (strdup): Remove unused declaration.
90140
90141         * lib/fsusage.c: Include full_read.h.
90142         (get_fs_usage): Use full_read instead of safe_read.
90143
90144         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90145
90146 2002-12-12  Karl Berry  <karl@gnu.org>
90147
90148         * config/config.guess: update from prep.
90149
90150 2002-12-11  Bruno Haible  <bruno@clisp.org>
90151
90152         * m4/setenv.m4: New file, from gettext-0.11.5.
90153
90154 2002-12-11  Bruno Haible  <bruno@clisp.org>
90155
90156         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90157         not unsetenv().
90158         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90159         modifications:
90160
90161         2002-12-11  Bruno Haible  <bruno@clisp.org>
90162
90163                 * setenv.c (alloca): Fall back to malloc.
90164                 (freea): New macro.
90165                 (setenv): Use freea() to free memory allocated with alloca().
90166
90167         2002-11-13  Bruno Haible  <bruno@clisp.org>
90168
90169                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90170                 function declarations.
90171                 * unsetenv.c (unsetenv): Likewise.
90172
90173         2002-03-04  Bruno Haible  <bruno@clisp.org>
90174
90175                 Portability to AIX 4.3.3.
90176                 * unsetenv.c: New file, extracted from setenv.c.
90177                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90178
90179         2001-12-20  Bruno Haible  <bruno@clisp.org>
90180
90181                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90182                 use malloc instead. For SunOS 4.
90183
90184         2001-12-11  Bruno Haible  <bruno@clisp.org>
90185
90186                 * setenv.c: Declare alloca.
90187                 (compar_fn_t): New typedef.
90188                 (KNOWN_VALUE, STORE_VALUE): Use it.
90189
90190         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90191         setenv.h.
90192
90193 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90194
90195         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90196         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90197         Choose values that are less likely to collide with system fnmatch
90198         options.
90199         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90200         defined (e.g., a pure POSIX system).
90201         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90202         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90203
90204 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90205
90206         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90207         a pain in practice to deal with generated m4 files.  This change
90208         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90209
90210         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90211         and jm-glibc-io.m4, as they are no longer a special case.
90212         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90213         kludge and the auto-generation stuff.  Check only whether the
90214         functions are declared, not whether they exist, since older hosts
90215         that don't declare the functions can't use the optimization anyway.
90216
90217 2002-12-06  Jim Meyering  <jim@meyering.net>
90218
90219         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90220
90221         Merge in changes from libc's misc/error.c, in preparation
90222         for the merge of gnulib's changes back into libc.
90223
90224         * lib/error.c (_): Define only if not already defined.
90225         Move definition to follow all #include directives.
90226         Include unlocked-io.h only if !_LIBC.
90227         [_LIBC]: Include <libio/libioP.h>.
90228         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90229         (fflush): Tweak definition to use INTUSE.
90230         (putc): Define.
90231
90232 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90233
90234         * lib/alloca.c [defined emacs]: Include "lisp.h".
90235         (xalloc_die) [defined emacs]: New macro.
90236         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90237         [! defined emacs]: Include <xalloc.h>.
90238         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90239         (pointer): Typedef to POINTER_TYPE *.
90240         (malloc): Remove decl; we now always use xmalloc.
90241         (alloca): Use old-style definition, since Emacs needs this.
90242         Check for arithmetic overflow when computing combined size.
90243
90244 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90245
90246         Do not generate unlocked-io.h automatically, since it's easier to
90247         maintain it by hand.
90248
90249         * lib/unlocked-io.h: New file, from GNU diffutils,
90250         but with proper copyright notice and attribution.
90251         * lib/gen-uio: Remove.
90252         * lib/Makefile.am: Add copyright notice.
90253         (libfetish_a_SOURCES): Add unlocked-io.h.
90254         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90255         (DISTCLEANFILES, io_functions): Remove macros.
90256         (EXTRA_DIST): Remove gen_uio.
90257         (unlocked-io.h): Remove rule.
90258
90259 2002-12-04  Jim Meyering  <jim@meyering.net>
90260
90261         Reflect the fact that stat.c and lstat.c are no longer generated.
90262         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90263         (DISTCLEANFILES): Likewise.
90264         (EXTRA_DIST): Likewise.
90265         (all_local): Don't depend on stat.c or lstat.c.
90266         (stat.c, lstat.c): Remove rules.
90267         (EXTRA_DIST): Remove xstat.in.
90268
90269         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90270         * lib/stat.c: New file.  Contents mostly from xstat.in.
90271         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90272         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90273
90274         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90275         too.
90276         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90277
90278 2002-12-03  Jim Meyering  <jim@meyering.net>
90279
90280         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90281         but not semantics, to minimize the differences between these two files.
90282         (safe_read): Change comment to mention SAFE_READ_ERROR.
90283
90284         * lib/safe-read.c (IS_EINTR): Define.
90285         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90286
90287 2002-12-02  Jim Meyering  <jim@meyering.net>
90288
90289         * lib/safe-read.c (EINTR): Define.
90290         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90291         (INT_MAX): Provide fallback.
90292         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90293
90294         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90295
90296 2002-12-02  Bruno Haible  <bruno@clisp.org>
90297
90298         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90299         Define, taken from safe-read.c.
90300         (INT_MAX): Provide fallback.
90301         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90302         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90303
90304         * lib/safe-read.c (EINTR): Remove definition.
90305         (safe_read): Don't use EINTR if it is absent.
90306
90307 2002-12-01  Jim Meyering  <jim@meyering.net>
90308
90309         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90310         zero.
90311         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90312
90313 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90314
90315         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90316         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90317         with `if (! (value < limit)) abort ();', for readability.
90318
90319 2002-11-26  Karl Berry  <karl@gnu.org>
90320
90321         * lib/strdup.c: copy from libc again, with jim's ok.
90322         * lib/.cppi-disable: re-add strdup.c
90323
90324 2002-11-25  Karl Berry  <karl@gnu.org>
90325
90326         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90327         instead of "strtol.c".
90328
90329 2002-11-25  Karl Berry  <karl@gnu.org>
90330
90331         * config/install-sh: update from automake for variable quoting, $0 in
90332         error msgs, etc.
90333
90334         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90335         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90336         entry.
90337
90338 2002-11-25  Jim Meyering  <jim@meyering.net>
90339
90340         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90341
90342 2002-11-24  Karl Berry  <karl@gnu.org>
90343
90344         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90345         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90346
90347 2002-11-24  Jim Meyering  <jim@meyering.net>
90348
90349         Update from coreutils:
90350
90351         * lib/mktime.c: Merge in changes from libc.
90352
90353         Avoid a link-time failure on some Linux systems.
90354         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90355         (otherwise).
90356         (__mon_yday): Declare with the STATIC attribute.
90357         (__mktime_internal): Likewise.
90358         Based on a report from Greg Schafer.
90359
90360 2002-11-23  Jim Meyering  <jim@meyering.net>
90361
90362         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90363         Use `unsigned', not `int', as type of index.
90364
90365         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90366
90367         * lib/fsusage.c: Remove unneeded parentheses around operands of
90368         `defined'.
90369
90370 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90371
90372         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90373         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90374         so that we can be included first.
90375         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90376         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90377         No need to include stddef.h or sys/types.h any more.
90378         Surround local include files with "", not "<>".
90379         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90380         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90381         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90382         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90383         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90384         (ISPRINT): Remove; no longer needed now that we assume C89.
90385
90386         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90387         Preserve errno.
90388
90389         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90390         quotearg_char): Use SIZE_MAX rather than
90391         (size_t) -1 when we are talking about "infinity".
90392
90393         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90394
90395 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90396
90397         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90398         hint that one should use `if (! x) abort ();' rather than `assert
90399         (x);', and anyway it's one less thing to worry about configuring.
90400         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90401         hash_rehash, hash_insert): Use abort rather than assert.
90402
90403 2002-11-22  Bruno Haible  <bruno@clisp.org>
90404
90405         * lib/safe-read.h: Assume C89. Add comments.
90406         (safe_read): Change return type to size_t.
90407         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90408         byte counts > SSIZE_MAX correctly.
90409         * lib/safe-write.h: New file.
90410         * lib/safe-write.c: New file.
90411         * lib/full-read.h: New file.
90412         * lib/full-read.c: New file.
90413         * lib/full-write.h: Assume C89. Add comments.
90414         * lib/full-write.c: Include safe-write.h.
90415         (full_write): Rewritten to use safe_write.
90416         Suggested by Jim Meyering and Paul Eggert.
90417
90418 2002-11-21  Jim Meyering  <jim@meyering.net>
90419
90420         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90421
90422         Merge in changes from the coreutils.
90423
90424         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90425         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90426         <stdint.h>.
90427         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90428         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90429         int.  Work more efficiently if X is the same width as uintmax_t.
90430         Do not compare X to -1, to avoid bogus compiler warning.
90431         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90432         Don't assume that f_frsize and f_bsize are the same type.
90433
90434         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90435         warning on FreeBSD.
90436
90437         * lib/makepath.c (make_path): Restore umask *before* creating the final
90438         component.
90439         (make_path): Minor reformatting.
90440
90441         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90442         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90443         HAVE_MALLOC/HAVE_REALLOC.
90444
90445         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90446         dummy ones.  At least on GNU/Linux systems, `auto' means something
90447         else.
90448         From Michael Stone.
90449
90450 2002-11-21  Bruno Haible  <bruno@clisp.org>
90451
90452         Remove case insensitive option matching.
90453         * lib/argmatch.h (argcasematch): Remove declaration.
90454         (ARGCASEMATCH): Remove macro.
90455         (__xargmatch_internal): Remove case_sensitive argument.
90456         (XARGMATCH): Update.
90457         (XARGCASEMATCH): Remove macro.
90458         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90459         case_sensitive argument.
90460         (argcasematch): Remove function.
90461         (__xargmatch_internal): Remove case_sensitive argument.
90462         (main): Use XARGMATCH instead of XARGCASEMATCH.
90463
90464         * lib/xmalloc.c: Change compile-time error message. Add comment about
90465         required autoconf version.
90466
90467 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90468
90469         Merge argmatch cleanups from Bison.  Assume C89.
90470
90471         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90472         Include stdlib.h, for EXIT_FAILURE.
90473         Always include <string.h>, since we assume C89.
90474         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90475         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90476         Include <stddef.h> instead, since it's all we need for size_t.
90477         (PARAMS): Remove.  All uses removed.
90478         (ARRAY_CARDINALITY): Do not bother to #undef.
90479         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90480         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90481         Remove unnecessary parentheses.
90482         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90483         Insert necessary parentheses.
90484         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90485         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90486
90487 2002-11-19  Bruno Haible  <bruno@clisp.org>
90488
90489         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90490         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90491
90492         * lib/mbswidth.h (PARAMS): Remove macro.
90493         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90494         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90495
90496         * lib/gcd.h (PARAMS): Remove macro.
90497         (gcd): Use ANSI C function declarations.
90498         * lib/gcd.c (gcd): Likewise.
90499
90500 2002-11-15  Bruno Haible  <bruno@clisp.org>
90501
90502         * lib/strcspn.c: Include <stddef.h>.
90503         (strcspn): Use ANSI C function declaration. Change return type to
90504         size_t. Use NULL.
90505         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90506         (strpbrk): Use NULL.
90507         * lib/strpbrk.h (PARAMS): Remove macro.
90508         (strpbrk): Use ANSI C function declaration.
90509         * lib/strstr.c: Don't include <sys/types.h>.
90510         * lib/strstr.h (PARAMS): Remove macro.
90511         (strstr): Use ANSI C function declarations.
90512
90513 2002-11-14  Karl Berry  <karl@gnu.org>
90514
90515         * config/mkinstalldirs: `do' on separate line, instead of
90516         `for var; do'.
90517
90518 2002-11-06  Bruno Haible  <bruno@clisp.org>
90519
90520         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90521         * lib/gcd.c (gcd): Likewise.
90522
90523 2002-11-05  Bruno Haible  <bruno@clisp.org>
90524
90525         * lib/gcd.h: New file, from gettext-0.11.5.
90526         * lib/gcd.c: New file, from gettext-0.11.5.
90527
90528 2002-11-05  Bruno Haible  <bruno@clisp.org>
90529
90530         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90531         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90532         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90533         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90534
90535         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90536         <libintl.h>.
90537         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90538         <libintl.h>.
90539
90540         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90541         * lib/human.c: Include gettext.h instead of <libintl.h>.
90542         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90543         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90544         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90545         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90546         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90547         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90548         (textdomain): Remove definition.
90549         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90550
90551         * lib/long-options.c: Remove include of <libintl.h> and definition of
90552         _.
90553         * lib/same.c: Remove include of <libintl.h> and definition of _.
90554
90555 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90556
90557         * lib/config.charset: A few additions for Solaris.
90558
90559 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90560
90561         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90562         * lib/localcharset.c (locale_charset): Declare as extern "C".
90563
90564 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90565
90566         * lib/config.charset: msdos in uk_UA uses CP1125.
90567
90568 2002-11-04  Bruno Haible  <bruno@clisp.org>
90569
90570         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90571         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90572         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90573         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90574         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90575
90576 2002-11-04  Bruno Haible  <bruno@clisp.org>
90577
90578         * lib/localcharset.c (locale_charset): Don't return an empty string.
90579
90580 2002-11-04  Bruno Haible  <bruno@clisp.org>
90581
90582         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90583         aliases.
90584
90585 2002-11-04  Bruno Haible  <bruno@clisp.org>
90586
90587         * lib/config.charset: Update for newest glibc. Add canonical names
90588         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90589
90590 2002-11-04  Bruno Haible  <bruno@clisp.org>
90591
90592         * lib/config.charset: Add support for NetBSD.
90593
90594 2002-11-04  Bruno Haible  <bruno@clisp.org>
90595
90596         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90597
90598 2002-11-01  Bruno Haible  <bruno@clisp.org>
90599
90600         * configure.in: Add AC_CONFIG_AUX_DIR call.
90601         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90602         test/Makefile.
90603         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90604
90605 2002-09-28  Karl Berry  <karl@gnu.org>
90606
90607         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90608         installed automake until the next release, since changes have been
90609         made.
90610
90611 2002-09-25  Karl Berry  <karl@gnu.org>
90612
90613         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90614         * lib/getopt*: copy from libc/posix.
90615         * lib/gettext.h: copy from gettext.
90616         * lib/.cppi-disable: add strdup.c, gettext.h.
90617
90618 2002-09-25  Karl Berry  <karl@gnu.org>
90619
90620         * config/srclist.txt: enable gettext.h check.
90621         * config/config.{guess,sub}: update from prep.
90622         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90623                 from automake 1.6.3.
90624         See srclist*.
90625
90626 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90627
90628         * regex.c (PATFETCH): Remove the translating fetch.
90629         (PATFETCH_RAW): Rename to PATFETCH.
90630         (set_image_of_range): New fun.
90631         (SET_RANGE_TABLE_WORK_AREA): Use it.
90632         (regex_compile): Don't translate the pattern chars so eagerly.
90633         Only do it when inserting an `exactn' bytecode or when handling
90634         a char-range.
90635         (mutually_exclusive_p): Avoid empty statement.
90636
90637 2002-07-06  Jim Meyering  <meyering@lucent.com>
90638
90639         * m4/README: Don't mention Makefile.am.in.
90640         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90641
90642 2002-07-01  Jim Meyering  <meyering@lucent.com>
90643
90644         * lib/c-stack.c: Include sys/time.h.
90645         From Volker Borchert.
90646
90647 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90648
90649         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90650
90651 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90652
90653         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90654         New macro.  Use it uniformly instead of
90655         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90656         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90657         reported by Vin Shelton.
90658
90659 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90660
90661         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90662         Do not assume SA_SIGINFO behavior.
90663         Bug reported by Jim Meyering on NetBSD 1.5.2.
90664
90665 2002-06-22  Jim Meyering  <meyering@lucent.com>
90666
90667         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90668         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90669
90670         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90671         now that configure.ac uses AC_GNU_SOURCE.
90672         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90673         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90674
90675         Update to latest tools.  Suggestions from Paul Eggert.
90676         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90677         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90678         * m4/fnmatch.m4: Likewise.
90679         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90680         to AC_HEADER_STDBOOL
90681
90682 2002-06-22  Jim Meyering  <meyering@lucent.com>
90683
90684         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90685         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90686
90687 2002-06-22  Jim Meyering  <meyering@lucent.com>
90688
90689         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90690
90691         * lib/exitfail.c, exitfail.h: Likewise.
90692         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90693
90694         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90695         of fnmatch.h.
90696         (EXTRA_DIST): Add fnmatch_loop.c.
90697         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90698
90699         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90700         * lib/fnmatch.c: Update from diffutils-2.8.2.
90701         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90702         * lib/fnmatch.h: Remove file.
90703
90704 2002-06-21  Jim Meyering  <meyering@lucent.com>
90705
90706         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90707         * m4/mbrtowc.m4: Likewise.
90708
90709         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90710         * m4/mbswidth.m4: Reflect name change:
90711         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90712         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90713
90714         * m4/lib-link.m4: Update from gettext-0.11.2.
90715         * m4/gettext.m4: Likewise.
90716
90717         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90718         From Alfred M. Szmidt.
90719
90720 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90721
90722         * lib/file-type.h: Report an error if neither S_ISREG nor
90723         S_IFREG is defined, instead of using a test specific to glibc
90724         2.2.  This should be safe, since POSIX requires S_ISREG and
90725         Unix Version 7 had S_IFREG.  We don't need to check for
90726         <sys/types.h> since we don't use any symbols that it defines.
90727
90728 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90729
90730         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90731         $@-t, so that each temporary file name is unique and valid in the first
90732         8 characters, for operation under DOS.
90733
90734 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90735
90736         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90737
90738 2002-06-15  Jim Meyering  <meyering@lucent.com>
90739
90740         Work even with DJGPP 2.03, which lacks support for symlinks.
90741         From Richard Dawe.
90742         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90743         is defined.
90744         * lib/lchown.c (S_ISLNK): Likewise.
90745
90746 2002-06-15  Jim Meyering  <meyering@lucent.com>
90747
90748         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90749         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90750         have been included before this file.
90751
90752 2002-06-14  Jim Meyering  <meyering@lucent.com>
90753
90754         * lib/file-type.h: Use the version from diffutils-2.8.2.
90755         * lib/file-type.c: Likewise.
90756
90757 2002-06-07  Jim Meyering  <meyering@lucent.com>
90758
90759         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90760         They're needed at least for NetBSD 1.5.2.
90761         ($statxfs_includes): Include those same headers.
90762         ($statxfs_includes): Include sys/vfs.h if available.
90763         ($statxfs_includes): Likewise for sys/statvfs.h.
90764         Check for the following members in both structs statfs and statvfs:
90765         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90766
90767 2002-06-01  Jim Meyering  <meyering@lucent.com>
90768
90769         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90770         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90771
90772 2002-05-28  Jim Meyering  <meyering@lucent.com>
90773
90774         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90775         Reported by Volker Borchert.
90776
90777 2002-05-27  Jim Meyering  <meyering@lucent.com>
90778
90779         Fix a problem seen only on nonconforming systems whereby ls.c's
90780         use of localtime, and then of gettimeofday would cause trouble:
90781         the localtime call used to initialize rpl_gettimeofday's save
90782         mechanism would clobber ls's current local time information so
90783         that in any long listing the first file would always be listed
90784         with date 1970-01-01.  Analysis by Volker Borchert.
90785
90786         * lib/gettimeofday.c (localtime): Undefine.
90787         (rpl_localtime): New function.
90788
90789 2002-05-27  Jim Meyering  <meyering@lucent.com>
90790
90791         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90792         localtime.
90793
90794         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90795         use the replacement function; it wouldn't resolve at link time.
90796         Reported by Volker Borchert.
90797
90798 2002-05-22  Jim Meyering  <meyering@lucent.com>
90799
90800         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90801         file-type.h.
90802         * lib/file-type.h: New file.
90803         * lib/file-type.c (file_type): New file/function.  Extracted from
90804         diffutils.
90805
90806 2002-04-30  Jim Meyering  <meyering@lucent.com>
90807
90808         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90809
90810 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90811
90812         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90813
90814 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90815
90816         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90817         Do not check for alloca.h (no longer used) or stdbool.h (was never
90818         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90819
90820 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90821
90822         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90823
90824 2002-04-29  Jim Meyering  <meyering@lucent.com>
90825
90826         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90827         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90828         Use AC_FUNC_STRNLEN here instead.
90829
90830         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90831         With autoconf-2.53a, it's part of AC_PROG_CC.
90832
90833 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90834
90835         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90836         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90837
90838 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90839
90840         * lib/sig2str.h, lib/sig2str.c: New files.
90841         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90842
90843 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90844
90845         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90846         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90847         of 127, since 64 is the largest conceivable number for ancient
90848         nonstandard hosts.
90849         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90850
90851 2002-04-28  Jim Meyering  <meyering@lucent.com>
90852
90853         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90854
90855 2002-04-24  Jim Meyering  <meyering@lucent.com>
90856
90857         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90858         (jm_PREREQ): Use it.
90859
90860         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90861         mach/mach.h fcntl.h.
90862         Check for this function: setlocale.
90863
90864 2002-04-24  Jim Meyering  <meyering@lucent.com>
90865
90866         * lib/gettext.h: New file, from Gettext.
90867         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90868         (libfetish_a_SOURCES): Add gettext.h.
90869
90870 2002-04-16  Jim Meyering  <meyering@lucent.com>
90871
90872         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90873         ut_pid, ut_id, ut_exit.
90874
90875 2002-04-16  Jim Meyering  <meyering@lucent.com>
90876
90877         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90878         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90879         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90880
90881 2002-04-12  Jim Meyering  <meyering@lucent.com>
90882
90883         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90884         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90885         existence of the getmntinfo function.  Needed for Darwin 5.3.
90886
90887         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90888         This is necessary at least on Darwin 5.3.
90889
90890         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90891         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90892         strnlen.o in the library, and that makes some versions of ranlib
90893         object.
90894
90895 2002-04-12  Jim Meyering  <meyering@lucent.com>
90896
90897         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90898
90899 2002-04-09  Jim Meyering  <meyering@lucent.com>
90900
90901         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90902         to be more precise.  Rather than saying we're checking whether the
90903         function `works', say what we're testing.
90904         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90905         Reported by Bruno Haible.
90906
90907 2002-03-10  Jim Meyering  <meyering@lucent.com>
90908
90909         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90910         Suggestion from Santiago Vila.
90911
90912 2002-03-08  Jim Meyering  <meyering@lucent.com>
90913
90914         * lib/rename.c: Mention that this wrapper is needed also on
90915         mips-dec-ultrix4.4 systems.
90916
90917 2002-03-02  Jim Meyering  <meyering@lucent.com>
90918
90919         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90920         not HAVE_CLOCK_SETTIME.
90921
90922 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90923
90924         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90925         Check for clock_settime.
90926
90927 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90928
90929         * lib/nanosleep.h: Rename to....
90930         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90931
90932         * lib/gettime.c: New file.
90933         * lib/settime.c: New file.
90934         * lib/stime.c: Remove.
90935
90936         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90937         timespec.h.  Remove nanosleep.h.
90938
90939 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90940
90941         * m4/acl.m4: New file.
90942         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90943         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90944
90945 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90946
90947         * lib/acl.c, lib/acl.h: New files.
90948         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90949
90950 2002-02-24  Jim Meyering  <meyering@lucent.com>
90951
90952         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90953         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90954         cause trouble.  Reported by Nelson Beebe.
90955
90956 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90957
90958         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90959         compilers that don't know that xalloc_die never returns.
90960
90961 2002-02-20  Jim Meyering  <meyering@lucent.com>
90962
90963         * lib/getdate.c: Regenerate using bison-1.33.
90964
90965 2002-02-17  Jim Meyering  <meyering@lucent.com>
90966
90967         * config/config.guess (main): Don't use `head -1'; it's no longer
90968         portable. Use `sed 1q' instead.
90969
90970 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90971
90972         * m4/codeset.m4: Upgrade to gettext-0.11.
90973         * m4/gettext.m4: Upgrade to gettext-0.11.
90974         * m4/glibc21.m4: Upgrade to gettext-0.11.
90975         * m4/iconv.m4: Upgrade to gettext-0.11.
90976         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90977         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90978         * m4/lib-ld.m4: New file, from gettext-0.11.
90979         * m4/lib-link.m4: New file, from gettext-0.11.
90980         * m4/lib-prefix.m4: New file, from gettext-0.11.
90981         * m4/progtest.m4: Upgrade to gettext-0.11.
90982
90983 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90984
90985         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90986         (jm_PREREQ): Use it.
90987
90988 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90989
90990         * lib/posixver.c, lib/posixver.h: New files.
90991         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90992
90993 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90994             Bruno Haible  <bruno@clisp.org>
90995
90996         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90997         (fwrite_success_callback): New declaration.
90998         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90999         print_unicode_char. Call failure callback instead of error.
91000         (fwrite_success_callback): New function.
91001         (exit_failure_callback): New function.
91002         (fallback_failure_callback): New function.
91003         (print_unicode_char): Call unicode_to_mb.
91004
91005 2002-01-26  Jim Meyering  <meyering@lucent.com>
91006
91007         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91008         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91009
91010 2002-01-26  Jim Meyering  <meyering@lucent.com>
91011
91012         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91013
91014 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91015
91016         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91017
91018 2002-01-22  Jim Meyering  <meyering@lucent.com>
91019
91020         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91021         Otherwise, some versions of automake would omit the rule that makes
91022         Makefile from Makefile.in.
91023
91024 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91025
91026         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91027         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91028         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91029         (memcoll): Set errno to zero if there is no error.
91030
91031         * lib/quotearg.c (quotearg_buffer_restyled):
91032         Fix bug with quoting buffers containing NUL when backslashing escapes.
91033         This bug was exposed by the other changes in this patch.
91034         (quotearg_n_options): New arg ARGSIZE.
91035         All callers changed.
91036         (quoting_options_from_style): New function.
91037         (quotearg_n_style): Use it.
91038         (quotearg_n_style_mem): New function.
91039
91040         * lib/quotearg.h (quotearg_n_style_mem): New function.
91041
91042 2002-01-19  Jim Meyering  <meyering@lucent.com>
91043
91044         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91045         Remove useless quotes: DF_PROG="df".
91046         * m4/strnlen.m4: New file.
91047
91048 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91049
91050         * lib/backupfile.c (ISDIGIT): Comment fix.
91051         * lib/getdate.y (ISDIGIT): Likewise.
91052         * lib/posixtm.c (ISDIGIT, year): Likewise.
91053         * lib/strverscmp.c (ISDIGIT): Likewise.
91054         * lib/userspec.c (ISDIGIT): Likewise.
91055
91056 2002-01-16  Jim Meyering  <meyering@lucent.com>
91057
91058         * lib/getdate.y: Add three semicolons, each just before a closing
91059         brace. Bison (as of version 1.31) no longer papers over that mistake.
91060
91061 2002-01-05  Jim Meyering  <meyering@lucent.com>
91062
91063         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91064
91065 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91066
91067         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91068         not silently exit merely because the output buffer happens to
91069         have nothing pending.
91070
91071 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91072
91073         See the big note in ../ChangeLog.
91074         * lib/human.c (suffixes): Prefer K to k for 1024.
91075         (generate_suffix_backwards): New function.
91076         (human_readable_inexact): Use it.
91077         * lib/xstrtol.c (__xstrtol): If there is no number but there
91078         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91079         Accept 'K' as well as 'k'.
91080
91081 2001-12-15  Jim Meyering  <meyering@lucent.com>
91082
91083         * lib/regex.h (__restrict_arr): Update from libc.
91084
91085         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91086         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91087         (STREQ): Define.
91088
91089 2001-12-14  Jim Meyering  <meyering@lucent.com>
91090
91091         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91092         Suggestion from Bruno Haible.
91093
91094 2001-12-10  Jim Meyering  <meyering@lucent.com>
91095
91096         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91097         xrealloc, Instead, include "xalloc.h".
91098         (initbuffer): Don't cast xmalloc return value to char*.
91099         (readline): Reword comment.
91100         Don't cast xrealloc return value to char*
91101         Return NULL, not 0.
91102
91103 2001-12-09  Jim Meyering  <meyering@lucent.com>
91104
91105         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91106         about `signed and unsigned type in conditional expression'.
91107         * lib/posixtm.c (posix_time_parse): Likewise.
91108
91109         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91110
91111         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91112         to avoid a pedantic warning.
91113
91114         * lib/getstr.c: Don't include assert.h.
91115         (getstr): Remove warning-evoking assertions.
91116         Return -1 if offset parameter is out of bounds.
91117         Change the type of a local from int to size_t.
91118
91119         * lib/strftime.c (my_strftime_localtime_r): Include this function
91120         definition in the `#if ! HAVE_TM_GMTOFF' block.
91121
91122         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91123         Include xalloc.h instead.
91124
91125 2001-12-02  Jim Meyering  <meyering@lucent.com>
91126
91127         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91128         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91129         included.
91130
91131         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91132         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91133
91134 2001-11-30  Akim Demaille  <akim@epita.fr>
91135
91136         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91137         before being defined.
91138
91139 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91140
91141         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91142         First arg is int, not unsigned.
91143         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91144         (SIZE_MAX, UINT_MAX): New macros.
91145         (quotearg_n_options): Abort if N is negative.
91146         Avoid overflow check on hosts where size_t is 64 bits and int
91147         is 32 bits, as overflow is impossible there.
91148         Fix off-by-one typo that caused unnecessary reallocation.
91149
91150 2001-11-27  Jim Meyering  <meyering@lucent.com>
91151
91152         * lib/tempname.c: Merge with version from libc.
91153         * lib/regex.c: Likewise.
91154
91155         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91156         systems for which STDC_HEADERS is 0, it was not included, resulting in
91157         a warning about an integer-to-pointer conversion problem with getenv.
91158         Reported by Volker Borchert.
91159
91160 2001-11-26  Jim Meyering  <meyering@lucent.com>
91161
91162         * lib/gtod.h: Remove file.
91163         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91164         * lib/gettimeofday.c: Don't include gtod.h.
91165         (GTOD_init): Remove function.
91166         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91167         Suggestion from Volker Borchert.
91168
91169 2001-11-23  Jim Meyering  <meyering@lucent.com>
91170
91171         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91172         it.
91173         * lib/hash.c (struct hash_table): Define it here instead.
91174
91175 2001-11-22  Jim Meyering  <meyering@lucent.com>
91176
91177         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91178
91179 2001-11-20  Jim Meyering  <meyering@lucent.com>
91180
91181         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91182         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91183
91184 2001-11-19  Jim Meyering  <meyering@lucent.com>
91185
91186         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91187         directory.  Use "conftestXXXXXX" as the template.
91188         Suggestion from Paul Eggert.
91189
91190         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91191         immediately, so the test doesn't mistakenly hit the max-open-files
91192         limit.
91193
91194 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91195
91196         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91197         (TEMPORARIES): New macro.
91198         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91199         removes an artificial limitation (e.g. HP-UX 10.20, where
91200         TMP_MAX is 17576).
91201
91202 2001-11-18  Jim Meyering  <meyering@lucent.com>
91203
91204         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91205
91206 2001-11-18  Jim Meyering  <meyering@lucent.com>
91207
91208         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91209         on SunOS 4.
91210
91211         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91212         files will be created before anything else.
91213
91214 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91215
91216         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91217         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91218
91219 2001-11-17  Jim Meyering  <meyering@lucent.com>
91220
91221         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91222         Prompted by a report from Bob Proulx.
91223
91224         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91225         Instead, require UTILS_FUNC_MKSTEMP.
91226
91227 2001-11-17  Jim Meyering  <meyering@lucent.com>
91228
91229         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91230         Now, that's done as part of AC_FUNC_STRTOD.
91231
91232 2001-11-17  Jim Meyering  <meyering@lucent.com>
91233
91234         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91235         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91236         rather than group writable.  Patch by Juan F. Codagnone.
91237
91238         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91239         xrealloc, Instead, include "xalloc.h".
91240
91241         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91242         Remove explicit declarations of xmalloc, xrealloc,
91243         and xstrdup.  Instead, include "xalloc.h".
91244
91245         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91246         unlocked-io.h.
91247         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91248         Likewise.
91249         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91250
91251         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91252         Reported by Padraig Brady.
91253
91254         * lib/mkstemp.c: #undef mkstemp.
91255         Include config.h.
91256         (rpl_mkstemp): Rename from mkstemp.
91257         Protoize.
91258
91259 2001-11-16  Jim Meyering  <meyering@lucent.com>
91260
91261         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91262         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91263         determine the amount of total physical memory, use pstat_getstatic.
91264         HPUX-11 doesn't define _SC_PHYS_PAGES.
91265         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91266         If sysconf couldn't be used to determine the amount of available
91267         physical memory, use both pstat_getstatic and pstat_getdynamic.
91268         Based on a patch from Bob Proulx.
91269
91270 2001-11-10  Jim Meyering  <meyering@lucent.com>
91271
91272         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91273         (jm_PREREQ): Use it.
91274
91275 2001-11-09  Jim Meyering  <meyering@lucent.com>
91276
91277         * m4/jm-macros.m4: Require autoconf-2.52f.
91278         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91279         Use these AC_-prefixed names, not the AM_-prefixed ones.
91280
91281         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91282
91283 2001-11-05  Jim Meyering  <meyering@lucent.com>
91284
91285         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91286
91287 2001-11-04  Jim Meyering  <meyering@lucent.com>
91288
91289         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91290         $DEFS.
91291
91292 2001-11-03  Jim Meyering  <meyering@lucent.com>
91293
91294         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91295         of AC_DEFUN.
91296
91297         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91298         know the name of the variable in the macro definition.
91299
91300 2001-11-03  Jim Meyering  <meyering@lucent.com>
91301
91302         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91303         in argmatch_to_argument call.
91304
91305         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91306         argument.
91307
91308         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91309         e.g., a fault due to an attempt to free a NULL pointer.
91310
91311 2001-11-01  Jim Meyering  <meyering@lucent.com>
91312
91313         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91314         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91315
91316 2001-11-01  Jim Meyering  <meyering@lucent.com>
91317
91318         * lib/dirfd.c, lib/dirfd.h: New files.
91319         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91320
91321         * lib/hash.c (hash_print) [TESTING]: Clean up.
91322
91323 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91324
91325         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91326         to avoid a warning if -Wall.
91327
91328 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91329
91330         * README: New file
91331         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91332         (per RMS's instructions, this is now the canonical source)
91333         * lgpl/, gpl/: New directories.
91334
91335 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91336
91337         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91338
91339 2001-10-21  Jim Meyering  <meyering@lucent.com>
91340
91341         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91342         this code would end up calling gettext even in packages built
91343         with --disable-nls.
91344         * lib/getopt.c (_): Likewise.
91345         * lib/regex.c (_): Likewise.
91346
91347 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91348
91349         * m4/error.m4 (jm_PREREQ_ERROR):
91350         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91351         AC_FUNC_STRERROR_R does that.
91352         Check for strerror declaration.
91353
91354         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91355         are supposed to have them these days.
91356         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91357         Merge changes from latest Autoconf CVS.
91358         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91359         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91360         POSIX decided to standardize on the int flavor of strerror_r.
91361
91362 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91363
91364         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91365         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91366         Use strerror_r that is only a macro, even if it is not a function.
91367         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91368         (private_strerror): Use prototypes, not old-style function definition.
91369         (print_errno_message): New function.
91370         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91371         char*-flavored one.
91372         (error_tail, error, error_at_line): Use it.
91373
91374 2001-10-11  Jim Meyering  <meyering@lucent.com>
91375
91376         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91377         and quote_n (1, ... to avoid clobbering a buffer.
91378
91379 2001-10-05  Jim Meyering  <meyering@lucent.com>
91380
91381         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91382         hash-pjw.h.
91383         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91384         * lib/hash-pjw.h: New file.
91385
91386 2001-09-30  Jim Meyering  <meyering@lucent.com>
91387
91388         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91389         `struct fsstat' has the `f_fstypename' member.
91390         Use that to define FS_TYPE, which is now used to make
91391         the getfsstat link test tighter.
91392
91393 2001-09-30  Jim Meyering  <meyering@lucent.com>
91394
91395         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91396         Include <sys/ucred.h>, for Apple Darwin.
91397         Include sys/mount.h and sys/fs_types.h only if available.
91398         (FS_TYPE): Define.
91399         (read_filesystem_list): Use FS_TYPE.
91400
91401 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91402
91403         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91404         a boolean context.
91405
91406 2001-09-29  Jim Meyering  <meyering@lucent.com>
91407
91408         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91409         [one-argument getmntent function]): Include stdio.h before mntent.h.
91410         SunOS 4.1.x needs it for the declaration of `FILE'.
91411         Patch by Volker Borchert.
91412
91413         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91414         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91415         sys/fs_types.h, and make the link-test for getfsstat guard #include
91416         directives with appropriate #if HAVE_*_H tests so that we can
91417         detect getfsstat on Apple Darwin1.3.7 systems.
91418         Reported by Nelson Beebe.
91419         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91420
91421 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91422
91423         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91424         #defines strtoimax.  Also treat the other strto* functions
91425         like strtoimax.
91426
91427         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91428         Check for strtoul and strtoumax,
91429         as those declarations are made even in the signed case.
91430         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91431         Likewise, for strtol and strtoimax.
91432
91433 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91434
91435         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91436         #defines strtoimax.  Also treat the other strto* functions
91437         like strtoimax.
91438
91439         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91440         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91441         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91442
91443 2001-09-26  Jim Meyering  <meyering@lucent.com>
91444
91445         Most macros in unlocked-io.h had the wrong number of arguments.
91446         * lib/gen-uio: New script.
91447         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91448         * lib/unlocked-io.hin: Remove file.
91449         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91450         rather than trying to embed it here.
91451         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91452         Reported by Padraig Brady.
91453
91454 2001-09-25  Volker Borchert  <bt@teknon.de>
91455
91456         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91457         `result'.
91458
91459 2001-09-24  Jim Meyering  <meyering@lucent.com>
91460
91461         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91462
91463 2001-09-23  Jim Meyering  <meyering@lucent.com>
91464
91465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91466         instead of the mere test for existence of mntent.h.  The latter
91467         would get a false-positive on AIX 3.4 systems.
91468         In the outer getmntent if-block, don't die if neither of the getmntent
91469         tests succeeds.  Instead, just fall through and continue with the
91470         remaining tests.
91471
91472 2001-09-23  Jim Meyering  <meyering@lucent.com>
91473
91474         * lib/mountlist.c: Remove useless parentheses in #if directives.
91475         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91476         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91477
91478 2001-09-22  Jim Meyering  <meyering@lucent.com>
91479
91480         * m4/gettext.m4: New file.  From gettext.
91481         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91482         * m4/progtest.m4: Likewise
91483         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91484         * m4/glibc21.m4: Likewise.
91485
91486         * m4/libintl.m4: Remove.  No longer used.
91487
91488 2001-09-22  Jim Meyering  <meyering@lucent.com>
91489
91490         * lib/localcharset.c: Update from latest gettext.
91491         * lib/config.charset: Likewise.
91492
91493 2001-09-20  Jim Meyering  <meyering@lucent.com>
91494
91495         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91496         strtoimax.
91497         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91498         strtoumax.
91499
91500 2001-09-20  Jim Meyering  <meyering@lucent.com>
91501
91502         * lib/xstrtol.c (strtoimax): Guard declaration with
91503         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91504         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91505         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91506         (strtoumax): Likewise, for completeness (it wasn't necessary).
91507
91508 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91509
91510         * lib/strtoimax.c (HAVE_LONG_LONG):
91511         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91512         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91513         to work around bug in IBM C compiler.
91514
91515 2001-09-17  Jim Meyering  <meyering@lucent.com>
91516
91517         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91518         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91519         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91520         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91521         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91522         whenever the right hand side need not be expanded by the shell.
91523
91524 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91525
91526         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91527         library.  It's not correct, as some older glibcs are buggy.
91528         fnmatch wasn't fixed until glibc 2.2.
91529
91530         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91531         special shell magic here.
91532
91533 2001-09-16  Jim Meyering  <meyering@lucent.com>
91534
91535         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91536         * m4/jm-macros.m4: Require it.
91537
91538 2001-09-16  Jim Meyering  <meyering@lucent.com>
91539
91540         * lib/mkdir.c: New file.
91541
91542 2001-09-15  Jim Meyering  <meyering@lucent.com>
91543
91544         * m4/jm-macros.m4: Check for help2man.
91545
91546 2001-09-11  Jim Meyering  <meyering@lucent.com>
91547
91548         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91549         The body, by Paul Eggert, was moved here from configure.in.
91550         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91551
91552 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91553
91554         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91555         (jm_PREREQ): Use it.
91556
91557 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91558
91559         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91560         Use ssize_t, not int, to store result of readlink.
91561         Check for ssize_t overflow as well as size_t overflow,
91562         as POSIX says the result of readlink is implementation-defined
91563         when ssize_t overflows.
91564         Remove unnecessary cast to char*.
91565         Use free+malloc instead of realloc, as the storage doesn't need
91566         to be preserved and it's clearer and can be more efficient that way.
91567         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91568         * lib/xreadlink.h (xreadlink): Update prototype.
91569
91570 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91571
91572         * lib/xgetcwd.c: Revert some of the previous change; intead,
91573         fix the HAVE_GETCWD_NULL code to behave more like the
91574         !HAVE_GETCWD_NULL code used to.
91575
91576         Include "xalloc.h".
91577         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91578         invoke xalloc_die.
91579
91580 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91581
91582         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91583         sys/param.h, as pathmax.h includes them.
91584
91585 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91586
91587         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91588         (jm_PREREQ_XGETCWD): New macro.
91589
91590         * m4/getcwd.m4: New file.
91591
91592 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91593
91594         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91595         like the HAVE_GETCWD_NULL code.
91596         Include pathmax.h if not HAVE_GETCWD.
91597         Do not include xalloc.h.
91598         (INITIAL_BUFFER_SIZE): New symbol.
91599         Do not use xmalloc / xrealloc, since the caller is responsible for
91600         handling errors.  Preserve errno around `free' during failure.
91601         Do not overrun buffer when using getwd.
91602
91603 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91604
91605         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91606         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91607         getcwd (NULL, 0).
91608
91609 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91610
91611         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91612         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91613         spotted by Jim Meyering.
91614
91615 2001-09-03  Jim Meyering  <meyering@lucent.com>
91616
91617         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91618         failure.
91619
91620 2001-09-02  Jim Meyering  <meyering@lucent.com>
91621
91622         * lib/error.c: Update from GNU libc.
91623
91624 2001-09-01  Jim Meyering  <meyering@lucent.com>
91625
91626         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91627         Used by df.
91628
91629 2001-09-01  Jim Meyering  <meyering@lucent.com>
91630
91631         * lib/xreadlink.c: New file.
91632         * lib/xreadlink.h: New file.
91633         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91634         xreadlink.h.
91635
91636         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91637         doesn't conflict with sparc Solaris 7's definition in
91638         /usr/include/sys/int_types.h.
91639
91640         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91641         files.
91642         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91643         and strncasecmp as r-values.  Unixware didn't have declarations.
91644
91645 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91646
91647         * lib/xstrtol.h: Add copyright notice.
91648         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91649         LONGINT_INVALID_SUFFIX_CHAR.
91650
91651 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91652
91653         * lib/xstrtol.c (strtoimax): New decl.
91654
91655 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91656
91657         * lib/xgetcwd.c: Don't include pathmax.h.
91658         Include stdlib.h and unistd.h if available.
91659         Include xalloc.h.
91660         (xmalloc, xstrdup, free): Remove decls.
91661         (xgetcwd): Don't assume sizes fit in unsigned.
91662         Check for overflow when computing sizes.
91663         Simplify reallocation code.
91664
91665 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91666
91667         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91668         a directory's st_size can have an arbitrary value, so the old
91669         usage could waste an arbitrary amount of memory.  All uses
91670         changed.
91671         * lib/savedir.h: Update prototype.
91672
91673 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91674
91675         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91676
91677         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91678         old strtoimax.c.
91679
91680         Also, make the following further changes to make this file's
91681         configuration more similar to that of strtol.c:
91682         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91683         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91684         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91685         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91686         changed to signed values.
91687
91688         And make the following changes as well:
91689         Fix copyright notice, as 1999 was missing.
91690         (verify): New macro.
91691         (strtoimax): Check sizes at compile-time, not run-time.
91692         Prefer strtol to strtoll if both work.
91693         (main): Remove; it was not that useful and was a pain to maintain.
91694
91695         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91696
91697 2001-08-31  Jim Meyering  <meyering@lucent.com>
91698
91699         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91700         Use an initial, malloc'd, buffer of length 128 rather than
91701         a statically allocated one of length 1024.
91702
91703 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91704
91705         Simplify code, partly by assuming autoconf 2.52 semantics.
91706
91707         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91708
91709         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91710         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91711         All uses removed.
91712         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91713         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91714         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91715         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91716         jm_AC_HEADER_INTTYPES_H.
91717         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91718
91719         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91720
91721         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91722         Quote first arg of AC_DEFUN.
91723         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91724         since they are needed to parse the include file even if we need
91725         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91726         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91727         but with opposite signedness.
91728
91729 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91730
91731         Merge 'exclude' changes from tar 1.13.22.
91732         This fixes one or two unlikely storage allocation overflow bugs,
91733         but doesn't change user-visible behavior otherwise.
91734
91735 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91736
91737         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91738         (jm_PREREQ_EXCLUDE): New macro.
91739
91740 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91741
91742         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91743         tm to be declared.
91744
91745 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91746
91747         * lib/hash.c: Remove '2001' from copyright notice.
91748
91749 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91750
91751         * lib/full-write.h: New file.
91752         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91753         * lib/full-write.c: Correct credits, as cccp.c no longer
91754         exists and anyway it was so heavily changed from the old cccp
91755         code as to be unrecognizable.  Include full-write.h.
91756         (full_write): Return size_t, with short writes meaning failure.
91757         All callers changed.  This fixes a bug with large buffers
91758         on 64-bit hosts.
91759         * lib/utime.c: Include full-write.h.
91760
91761 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91762
91763         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91764         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91765         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91766         Include if available.
91767         (<xalloc.h>): Include
91768         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91769         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91770         collide with FNM macros.
91771         (struct patopts): New struct.
91772         (struct exclude): Use it, as exclude patterns now come with options.
91773         (new_exclude): Support above changes.
91774         (new_exclude, add_exclude_file):
91775         Initial size must now be a power of two to simplify overflow checking.
91776         (free_exclude, fnmatch_no_wildcards): New function.
91777         (excluded_filename): No longer requires options arg, as the options
91778         are determined by add_exclude.  Now returns bool, not int.
91779         (excluded_filename, add_exclude):
91780         Add support for the fancy new exclusion options.
91781         (add_exclude, add_exclude_file): Now takes int options arg.
91782         Check for arithmetic overflow when computing sizes.
91783         (add_exclude_file): xrealloc might modify errno, so don't
91784         realloc until after errno might be used.
91785
91786         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91787         New macros.
91788         (free_exclude): New decl.
91789         (add_exclude, add_exclude_file): Now takes int options arg.
91790         (excluded_filename): No longer requires options arg, as the options
91791         are determined by add_exclude.  Now returns bool, not int.
91792
91793 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91794
91795         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91796
91797 2001-08-27  Jim Meyering  <meyering@lucent.com>
91798
91799         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91800
91801         * lib/version-etc.c (N_): Remove definition.
91802         Revert most of last change.
91803         Instead, simply don't mark the `Copyright...' string for translation.
91804         Based on advice from Paul Eggert.
91805
91806         * lib/strtoxmax.c: Tweak comment.
91807
91808 2001-08-26  Jim Meyering  <meyering@lucent.com>
91809
91810         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91811
91812         * m4/xstrtoimax.m4: New file.
91813         * m4/xstrtoumax.m4: Add comments explaining why we
91814         AC_REPLACE_FUNCS(strtol).
91815
91816 2001-08-26  Jim Meyering  <meyering@lucent.com>
91817
91818         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91819         of copyright with `%s' so translators don't get an untranslated
91820         message in 2002.
91821         (COPYRIGHT_YEAR): Define.
91822         (version_etc): Use fprintf rather than fputs.
91823         Suggestion from Ulrich Drepper.
91824
91825         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91826
91827         * lib/strtoll.c: New file, from GNU libc.
91828         * lib/xstrtoimax.c: New file.
91829
91830         * lib/xstrtol.h: Add xstrtoimax.
91831         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91832         * lib/strtoimax.c: New file.  Likewise, but first define
91833         STRTOUXMAX_SIGNED.
91834
91835         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91836         ...
91837         * lib/strtoxmax.c: ... then renamed to this.
91838
91839 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91840
91841         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91842         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91843         (jm_AC_TYPE_INTMAX_T): New macro.
91844         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91845
91846         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91847
91848         * m4/longlong.m4: Renamed from ulonglong.m4.
91849         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91850         * m4/uintmax_t.m4: Removed.
91851
91852 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91853
91854         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91855         Port to Solaris 8, where 'sed' requires a space after the 'r'
91856         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91857         Redirect output to $tmp just once.
91858
91859 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91860
91861         * lib/addext.c (<errno.h>): Include.
91862         (errno): Declare if not defined.
91863         (addext): Work correctly when pathconf returns -1 and leaves
91864         errno alone because there is no limit.  Also, work even if
91865         pathconf returns a value greater than SIZE_MAX.
91866
91867 2001-08-12  Jim Meyering  <meyering@lucent.com>
91868
91869         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91870         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91871         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91872         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91873         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91874         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91875         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91876         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91877         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91878         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91879         utime.m4, utimes.m4, xstrtoumax.m4:
91880         Quote the first argument in each use of AC_DEFUN.
91881
91882 2001-08-12  Jim Meyering  <meyering@lucent.com>
91883
91884         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91885         Simply `return getcwd (NULL, 0);'.
91886         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91887         Use 1300 as initial value for length, not PATH_MAX.
91888
91889         * lib/pathmax.h: Clean up cpp syntax.
91890
91891 2001-08-12  Jim Meyering  <meyering@lucent.com>
91892
91893         * lib/gettimeofday.c: New file.
91894         * lib/gtod.h: New file.
91895         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91896
91897 2001-08-05  Jim Meyering  <meyering@lucent.com>
91898
91899         * m4/jm-macros.m4: Require autoconf-2.52.
91900
91901 2001-08-04  Jim Meyering  <meyering@lucent.com>
91902
91903         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91904         stmt, to get in sync with glibc.
91905
91906 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91907
91908         The following changes are from gettext 0.10.39 as maintained by
91909         Bruno Haible.
91910
91911         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91912         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91913         with inverted sense.  All uses changed.
91914
91915         * lib/mbswidth.c: Don't include <limits.h>.
91916         Include <stdlib.h> and <string.h> unconditionally.
91917         (iswcntrl, mbsinit, ISCNTRL): New macros.
91918         (mbsnwidth): Use K&R style function declarations.
91919         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91920         can optimize it when MB_CUR_MAX == 1.
91921         The width of control characters is zero, not 1.
91922
91923 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91924
91925         The following changes are from gettext 0.10.39 as maintained by
91926         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91927
91928         * m4/codeset.m4: Upgrade to serial AM1.
91929         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91930         all uses changed.  Quote first arg of AC_DEFUN.
91931         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91932
91933         * m4/iconv.m4: Upgrade to serial AM2.
91934         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91935         Add --with-libconv-prefix.
91936         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91937         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91938         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91939         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91940         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91941
91942         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91943         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91944         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91945         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91946         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91947         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91948         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91949         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91950         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91951
91952         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91953         string.h any more.
91954
91955         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91956         not the default value.
91957
91958         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91959         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91960         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91961         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91962         Also check for iswcntrl, used for wcwidth fallback.
91963         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91964         to Autoconf 2.13.
91965
91966 2001-08-03  Jim Meyering  <meyering@lucent.com>
91967
91968         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91969         as it was in the original.  Reported by Paul Eggert.
91970
91971 2001-07-16  Jim Meyering  <meyering@lucent.com>
91972
91973         * m4/gettimeofday.m4: New file.
91974         Prompted by a report from Bernhard Baehr.
91975
91976 2001-07-15  Jim Meyering  <meyering@lucent.com>
91977
91978         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91979         stuff. Now it's in ../Makefile.cfg.
91980
91981 2001-07-15  Jim Meyering  <meyering@lucent.com>
91982
91983         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91984         (BUILT_SOURCES): Add unlocked-io.h.
91985         (io_functions): Define.
91986         (unlocked-io.h): New rule.
91987         (DISTCLEANFILES): Add unlocked-io.h.
91988         (all-local): Depend on unlocked-io.h, to ensure it is created.
91989
91990         * lib/unlocked-io.hin: New file
91991
91992         * lib/regex.c: Update from glibc.
91993
91994 2001-07-05  Jim Meyering  <meyering@lucent.com>
91995
91996         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91997         recommendation.
91998         (libfetish_a_SOURCES): Put all .h files here instead.
91999         Remove a thus-exposed (better checks in automake) duplicate and
92000         two unnecessary .h files.
92001
92002 2001-07-04  Jim Meyering  <meyering@lucent.com>
92003
92004         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92005         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92006         distcheck failure.
92007
92008 2001-07-02  Jim Meyering  <meyering@lucent.com>
92009
92010         The following changes were prompted by suggestions from Bruno Haible.
92011
92012         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92013         is now generated.
92014         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92015         definition of EXTRA_DIST.
92016         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92017         ensure that the generated file is created/updated whenever the list
92018         of $(unlocked_functions) is changed.
92019         (jm-glibc-io.m4): New rule.
92020         (unlocked-io.h): New rule -- currently unused.
92021
92022 2001-06-24  Jim Meyering  <meyering@lucent.com>
92023
92024         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92025         unmatched right bracket, rather than kludging it with an extra,
92026         falsely-matching quote in a comment.  Patch by Akim Demaille.
92027
92028 2001-06-11  Jim Meyering  <meyering@lucent.com>
92029
92030         * lib/regex.c: Update from GNU libc.
92031
92032 2001-05-27  Jim Meyering  <meyering@lucent.com>
92033
92034         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92035         Check for ut_type in struct utmp.
92036
92037 2001-05-27  Jim Meyering  <meyering@lucent.com>
92038
92039         * lib/readutmp.h (UT_TYPE): Define.
92040
92041 2001-05-24  Jim Meyering  <meyering@lucent.com>
92042
92043         * lib/argmatch.c: Include "quote.h".
92044         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92045         quote function.  Reported by Göran Uddeborg.
92046
92047 2001-05-22  Jim Meyering  <meyering@lucent.com>
92048
92049         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92050         now that we use the package-supplied version unconditionally.
92051         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92052
92053 2001-05-21  Jim Meyering  <meyering@lucent.com>
92054
92055         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92056         shell syntax errors.
92057
92058 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92059
92060         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92061
92062 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92063
92064         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92065         Don't bother to check library strftime, since
92066         we'll be using our own my_strftime function anyway.
92067         Define my_strftime instead of strftime.
92068
92069 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92070
92071         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92072         which is not yet declared.
92073
92074 2001-05-15  Jim Meyering  <meyering@lucent.com>
92075
92076         * m4/regex.m4: Use proper quoting so brackets appear in the test
92077         program.
92078         Reported by, and with help from, Bruno Haible.
92079
92080 2001-05-13  Jim Meyering  <meyering@lucent.com>
92081
92082         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92083         undefined.
92084
92085 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92086
92087         dirname code cleanup.  base_name now behaves more compatibly
92088         with POSIX basename when given file names that have trailing
92089         slashes, and similarly for dir_name.  Add new primitives
92090         base_len and dir_len.  Put the directory-name-related decls
92091         into dirname.h.
92092
92093         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92094         * lib/backupfile.c (base_name): Likewise.
92095         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92096         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92097         * lib/makepath.c (strip_trailing_slashes): Likewise.
92098         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92099         ISSLASH): Likewise.
92100         * lib/rename.c (strip_trailing_slashes): Likewise.
92101         * lib/same.c (base_name): Likewise.
92102         * lib/stripslash.c (ISSLASH): Likewise.
92103
92104         * lib/addext.c: Include <dirname.h> after size_t is defined.
92105         * lib/backupfile.c: Likewise.
92106
92107         * lib/addext.c (addext): Use base_len to trim redundant
92108         trailing slashes instead of doing it ourselves.
92109         But do not trim the last slash if it is not redundant.
92110
92111         * lib/backupfile.c (find_backup_file_name,
92112         max_backup_version): Use base_len instead of rolling it ourselves.
92113         Handle the case of "" and (on DOS) "C:" correctly.
92114
92115         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92116         needed. Include <string.h>, <dirname.h>.
92117         (base_name): Allow file names ending in slashes, other than names
92118         that are all slashes.  In this case, return the basename followed
92119         by the slashes.  This is more general, and can be used in places
92120         where the original base_name purposely had an assertion failure.
92121         (base_len): New function.
92122
92123         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92124         Do not include <assert.h>; no longer needed.
92125         Include xalloc.h.
92126         (memrchr): Remove decl.
92127         (dir_name_r): Remove.
92128         (dir_len): Renamed from dirlen.  All callers changed.
92129         Rewrite in terms of base_name, for simplicity and consistency.
92130         (dir_name): Never return NULL.  All callers changed.
92131         Do not include <stdlib.h> in test program; no longer needed.
92132         return 0; is fine for test program.
92133
92134         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92135         New macros.
92136         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92137
92138         * lib/path-concat.c (path_concat): Use base_len to compute
92139         base length, not strlen; this means we cannot rely on memcpy
92140         to null-terminate.
92141
92142         * lib/same.c (STREQ): Remove.
92143         (same_name): Handle the case where the basename ends in trailing '/'.
92144
92145         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92146         a slash was stripped.  Do not strip the last slash after a
92147         file system prefix.
92148
92149 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92150
92151         * lib/Makefile.am (libfetish_a_SOURCES):
92152         Add strftime.c, since we now compile it on all hosts.
92153
92154         * lib/strftime.c (my_strftime):
92155         Define to nstrftime if emacs, but only if my_strftime is not defined.
92156         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92157         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92158         Add one more extra argument: a nanoseconds value.
92159         All uses changed.
92160         (ns): New macro.
92161         (my_strftime function): Add %N format.
92162         (emacs_strftimeu): Renamed from emacs_strftime,
92163         with extra ut argument.
92164
92165 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92166
92167         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92168
92169 2001-04-21  Jim Meyering  <meyering@lucent.com>
92170
92171         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92172         doesn't interfere.
92173
92174 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92175
92176         * m4/ftruncate.m4: Check for chsize.
92177         Link with ftruncate.o unconditionally if ftruncate is missing.
92178         This was required when cross-compiling to i586-mingw32msvc.
92179
92180 2001-04-08  Jim Meyering  <meyering@lucent.com>
92181
92182         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92183         recomputed; that's necessary when the offset spans a DST transition.
92184         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92185
92186 2001-04-02  Jim Meyering  <meyering@lucent.com>
92187
92188         * lib/regex.h, regex.c: Update from GNU libc.
92189
92190 2001-03-24  Jim Meyering  <meyering@lucent.com>
92191
92192         * m4/jm-macros.m4: Require autoconf-2.49d.
92193
92194 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92195
92196         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92197
92198 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92199
92200         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92201
92202 2001-03-17  Jim Meyering  <meyering@lucent.com>
92203
92204         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92205         now that the version in autoconf is equivalent.
92206         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92207
92208         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92209         Suggestion from Akim Demaille.
92210
92211         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92212         (jm_PREREQ_TEMPNAME): New function.
92213
92214 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92215
92216         * lib/tempname.c (uint64_t): Define to uintmax_t if
92217         not defined, and if UINT64_MAX is not defined.
92218         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92219         Reported by John David Anglin.
92220
92221 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92222
92223         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92224         resolve alias if codeset is empty.
92225         * lib/config.charset (BeOS): Use wildcard syntax.
92226
92227 2001-03-13  Jim Meyering  <meyering@lucent.com>
92228
92229         * lib/path-concat.c (path_concat)
92230         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92231         concatenating e.g., `C:' and `foo'.
92232         From Bruno Haible.
92233
92234 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92235
92236         * lib/localcharset.c (locale_charset): Don't use
92237         setlocale(LC_CTYPE,NULL). Don't return NULL.
92238         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92239
92240 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92241
92242         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92243         support for DOS/DJGPP.
92244
92245 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92246
92247         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92248         lacks mkstemp.  Compile our own tempname.c if we compile our own
92249         mkstemp.c, as mkstemp relies on tempname.
92250
92251 2001-03-01  Jim Meyering  <meyering@lucent.com>
92252
92253         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92254         AH_VERBATIM really does output its argument verbatim.
92255
92256 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92257
92258         * lib/Makefile.am (libfetish_a_SOURCES):
92259         Add dup-safer.c, fopen-safer.c.
92260         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92261
92262         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92263         * lib/unistd-safer.h: New files.
92264
92265 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92266
92267         The mkstemp replacement is taken from glibc 2.2.2, with some
92268         portability fixes for use outside glibc, as follows:
92269
92270         * lib/tempname.c (struct_stat64): New macro.
92271         (direxists, __gen_tempname): Use it.
92272         This avoids a portability problem with Solaris 8.
92273
92274         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92275         (<stddef.h>, <stdint.h>, <string.h>):
92276         Include only if STDC_HEADERS || _LIBC.
92277         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92278         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92279         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92280         (__set_errno): Define this macro if <errno.h> doesn't.
92281         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92282         Define these macros if <stdio.h> doesn't.
92283         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92284         Define these macros if <sys/stat.h>
92285         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92286         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92287         __xstat64): Define if not _LIBC.
92288         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92289         (__gen_tempname): Invoke gettimeofday only if
92290         HAVE_GETTIMEOFDAY || _LIBC;
92291         otherwise, fall back on plain "time".
92292         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92293
92294         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92295
92296         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92297
92298 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92299
92300         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92301
92302 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92303
92304         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92305         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92306         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92307         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92308
92309 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92310
92311         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92312         Remove workaround macros for hosts that have mbrtowc but not
92313         mbstate_t, as we now insist on proper declarations for both
92314         before using mbrtowc.
92315
92316 2001-02-17  Jim Meyering  <meyering@lucent.com>
92317
92318         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92319         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92320         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92321         UnixWare 7.1.1.
92322
92323         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92324         rather than AC_CACHE_VAL.
92325
92326 2001-02-17  Jim Meyering  <meyering@lucent.com>
92327
92328         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92329         around included file name.
92330
92331         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92332
92333         * lib/strftime.c: Update from GNU libc (the only changes were to
92334         comments).
92335
92336 2001-02-17  Jim Meyering  <meyering@lucent.com>
92337
92338         * lib/regex.c: Update from libc.
92339
92340 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92341
92342         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92343         clash.
92344
92345 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92346
92347         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92348         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92349         Reported by Mark Hounschell via Paul Eggert.
92350
92351 2001-02-07  Jim Meyering  <meyering@lucent.com>
92352
92353         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92354
92355 2001-02-05  Jim Meyering  <meyering@lucent.com>
92356
92357         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92358         it includes the patch required for `large file' support with at least
92359         HP-UX's 10.20 /bin/cc.
92360
92361 2001-02-03  Jim Meyering  <meyering@lucent.com>
92362
92363         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92364         AS_IF, now that it works once again (mysteriously).
92365         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92366
92367 2001-01-30  Jim Meyering  <meyering@lucent.com>
92368
92369         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92370         * m4/chown.m4: Rename conftestchown to conftest.chown.
92371         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92372         s/conftestdir2/conftest.d2/.
92373         * m4/utimes.m4: s/conftestdata/conftest.data/
92374         Inspired by Pavel Roskin's change in autoconf.
92375
92376 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92377
92378         * lib/config.charset: Update for FreeBSD 4.2.
92379
92380 2001-01-27  Jim Meyering  <meyering@lucent.com>
92381
92382         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92383         a use of AS_IF.
92384         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92385
92386 2001-01-26  Jim Meyering  <meyering@lucent.com>
92387
92388         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92389         quotearg.c includes it.
92390
92391 2001-01-26  Jim Meyering  <meyering@lucent.com>
92392
92393         * lib/quotearg.c: Include stddef.h.
92394         * lib/quote.c: Include stddef.h.
92395         Reported by Axel Kittenberger.
92396
92397         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92398         line in double quotes so that it evokes a better diagnostic.
92399         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92400         Reported by Axel Kittenberger.
92401
92402 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92403
92404         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92405         as if it was a `charset'.
92406
92407 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92408
92409         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92410         has const.
92411
92412 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92413
92414         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92415         to avoid a warning.  Add back 'const' to inptr.
92416
92417 2001-01-20  Jim Meyering  <meyering@lucent.com>
92418
92419         Be sure that headers are checked before used in code compiled
92420         for the type checks.
92421         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92422         In place of that, invoke jm_CHECK_ALL_TYPES.
92423         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92424         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92425         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92426         The check for ssize_t was mistakenly run before the test for unistd.h.
92427
92428         The configure-time check for stdbool.h was missing.
92429         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92430         (jm_PREREQ_HASH): New function.
92431
92432 2001-01-17  Jim Meyering  <meyering@lucent.com>
92433
92434         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92435         for autoconf-2.49c.
92436         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92437
92438 2001-01-16  Jim Meyering  <meyering@lucent.com>
92439
92440         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92441         From Bruno Haible.
92442
92443 2001-01-14  Jim Meyering  <meyering@lucent.com>
92444
92445         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92446         foo and bar.  Create conftestdir/ in the script, not in the C code.
92447         Remove directories in the script, not in the C code.
92448         Remove conftestdir{,2} before trying to create the directory.
92449         Make the entire configure script fail if the mkdir fails.
92450
92451 2001-01-14  Jim Meyering  <meyering@lucent.com>
92452
92453         * lib/rename.c: New file.  From Volker Borchert.
92454         Include stdlib.h, string.h or strings.h, and xalloc.h.
92455         Use strip_trailing_slashes rather than open-coding it.
92456
92457 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92458
92459         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92460
92461 2001-01-03  Jim Meyering  <meyering@lucent.com>
92462
92463         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92464         of local `inptr' to avoid warning with some system declarations of
92465         iconv.
92466
92467 2001-01-02  Volker Borchert  <bt@teknon.de>
92468
92469         * m4/rename.m4: New file.
92470         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92471
92472 2001-01-01  Jim Meyering  <meyering@lucent.com>
92473
92474         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92475         even on systems with utmpx.h.  It's necessary for the declaration of
92476         utmp's ut_user member.  Reported by Andreas Jaeger.
92477
92478         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92479         available. They are required for the declarations of getgrgid and
92480         getpwuid resp.
92481         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92482         Reported by Andreas Jaeger.
92483
92484 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92485
92486         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92487         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92488         so `make install' also works in VPATH builds.
92489
92490 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92491
92492         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92493         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92494         can be used in subdirectories.
92495
92496 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92497
92498         * lib/modechange.c: Do not assume that mode_t uses the
92499         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92500         the other-execute bit of FOO even if S_IXOTH != 1.
92501
92502         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92503         WOTH, XOTH, ALLM): New macros.
92504         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92505          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92506         Use them.
92507         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92508         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92509         (mode_compile):
92510         No need to use uintmax_t; unsigned long is long enough.
92511         Don't bother to get suffix since we don't use it.
92512
92513 2000-12-26  Jim Meyering  <meyering@lucent.com>
92514
92515         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92516         better with autoheader.
92517
92518 2000-12-24  Jim Meyering  <meyering@lucent.com>
92519
92520         * lib/hash.c (is_prime): Return explicit boolean values.
92521         (hash_get_first): Return NULL to appease Irix5.6's 89.
92522         Reported by Nelson Beebe.
92523
92524 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92525
92526         * lib/localcharset.c (locale_charset): Add support for Win32.
92527
92528 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92529
92530         * lib/physmem.h, lib/physmem.c: New files.
92531
92532         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92533         (noinst_HEADERS): Add physmem.h.
92534
92535         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92536         't' for compatibility with Solaris 8 sort.
92537
92538 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92539
92540         * lib/config.charset: Add support for BeOS.
92541
92542 2000-12-17  Jim Meyering  <meyering@lucent.com>
92543
92544         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92545         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92546
92547 2000-12-16  Jim Meyering  <meyering@lucent.com>
92548
92549         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92550         N and M) would have treated it like `chown N:N FILE'.
92551
92552         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92553
92554 2000-12-16  Jim Meyering  <meyering@lucent.com>
92555
92556         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92557         SHELLS_FILE to a file name that's useful on djgpp systems.
92558         Include stdlib.h.
92559         (ADDITIONAL_DEFAULT_SHELLS): Define.
92560         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92561         Based mostly on a patch from Prashant TR.
92562
92563 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92564
92565         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92566         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92567         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92568
92569 2000-12-08  Andreas Schwab  <schwab@suse.de>
92570
92571         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92572         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92573
92574 2000-12-07  Jim Meyering  <meyering@lucent.com>
92575
92576         * lib/stripslash.c (ISSLASH): Define.
92577         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92578         `/'.
92579         From Prashant TR.
92580
92581         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92582         (dir_name_r): Declare this function as static.
92583         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92584         manifest itself on a name containing a mix of slashes and
92585         backslashes.
92586         Make this function work with names starting with a DOS-style
92587         drive letter and colon prefix.
92588         (dir_name): Append `.' if necessary.
92589         Based mostly on patches from Prashant TR and Eli Zaretskii.
92590
92591         * lib/dirname.h (dir_name_r): Remove prototype.
92592
92593 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92594
92595         * m4/off_t-format.m4: Remove this file.
92596         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92597
92598 2000-12-06  Jim Meyering  <meyering@lucent.com>
92599
92600         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92601         replacement strtoull, we may well need the replacement strtoul, too.
92602         Check for declarations of strtoul and strtoull.
92603         Check for strtol.  Mainly as a cue to cause automake to include
92604         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92605         Check for limits.h -- strtol.c needs it.
92606
92607 2000-12-05  Jim Meyering  <meyering@lucent.com>
92608
92609         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92610
92611 2000-12-04  Jim Meyering  <meyering@lucent.com>
92612
92613         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92614         Also include memory.h, stdlib.h, unistd.h if appropriate.
92615         Reported by Andreas Jaeger (conflicting declaration of malloc).
92616
92617 2000-12-02  Jim Meyering  <meyering@lucent.com>
92618
92619         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92620         * m4/jm-macros.m4 (jm_MACROS): require it.
92621
92622 2000-12-02  Jim Meyering  <meyering@lucent.com>
92623
92624         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92625
92626 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92627
92628         * lib/memrchr.c: Include <config.h> before any system include file.
92629
92630 2000-11-30  Jim Meyering  <meyering@lucent.com>
92631
92632         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92633
92634 2000-11-30  Jim Meyering  <meyering@lucent.com>
92635
92636         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92637
92638 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92639
92640         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92641
92642 2000-11-26  Jim Meyering  <meyering@lucent.com>
92643
92644         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92645
92646 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92647
92648         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92649         size of (size_t) -1; it's not portable.
92650
92651 2000-11-17  Jim Meyering  <meyering@lucent.com>
92652
92653         * lib/strstr.c: Update from GNU libc.
92654
92655 2000-11-17  Akim Demaille  <akim@epita.fr>
92656
92657         * lib/obstack.h: Formatting changes.
92658         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92659         prevent type checking.
92660         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92661         cast the value to (void *): assigning a `foo *' to a `void *'
92662         variable is valid.
92663         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92664
92665 2000-11-16  Jim Meyering  <meyering@lucent.com>
92666
92667         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92668
92669 2000-11-11  Jim Meyering  <meyering@lucent.com>
92670
92671         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92672
92673 2000-11-10  Jim Meyering  <meyering@lucent.com>
92674
92675         * lib/obstack.h: Update from GNU libc.
92676         * lib/obstack.c: Likewise.
92677
92678 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92679
92680         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92681
92682 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92683
92684         * lib/getusershell.c (setusershell): Use rewind rather than
92685         fseek/fseeko, to avoid configuration hassles with fseeko.
92686         Don't bother opening SHELLS_FILE if shellstream is NULL;
92687         it's not necessary.
92688
92689 2000-11-05  Jim Meyering  <meyering@lucent.com>
92690
92691         * lib/makepath.h (make_dir): Declare.
92692         * lib/makepath.c (make_dir): Remove `static' attribute.
92693         Tweak a comment.
92694
92695 2000-11-04  Jim Meyering  <meyering@lucent.com>
92696
92697         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92698
92699 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92700
92701         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92702         last one in a bucket, advance to the next bucket.
92703
92704 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92705
92706         * lib/fnmatch.c: Do not comment out all the code if we are using
92707         the GNU C library, because in some cases we are replacing buggy
92708         code in the GNU C library itself.
92709
92710 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92711
92712         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92713         (regex_compile): Catch bogus \(\1\).
92714
92715 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92716
92717         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92718         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92719         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92720
92721 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92722
92723         * lib/error.h, getline.h, modechange.h:
92724         Remove "2000" from Copyright line, as the file hasn't been
92725         changed this year other than in the copyright notice.
92726
92727         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92728         was changed this year.
92729
92730 2000-10-29  Jim Meyering  <meyering@lucent.com>
92731
92732         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92733         renaming.
92734         * m4/ls-mntd-fs.m4: Likewise
92735
92736 2000-10-29  Jim Meyering  <meyering@lucent.com>
92737
92738         * lib/xstat.in: Fix grammar in comment.
92739
92740 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92741
92742         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92743         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92744         doesn't define __restrict_arr.
92745
92746 2000-10-28  Jim Meyering  <meyering@lucent.com>
92747
92748         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92749         (jm_PREREQ_MEMCHR): New function.
92750
92751 2000-10-28  Jim Meyering  <meyering@lucent.com>
92752
92753         * lib/memchr.c: Update from libc.
92754         Adjust for portability:
92755         [HAVE_STDLIB_H]: Include stdlib.h.
92756         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92757         Undef __memchr, too.
92758         [!weak_alias]: Define __memchr to memchr.
92759
92760         * lib/regex.c: Update from libc.
92761         * lib/regex.h: Likewise.
92762         * lib/getopt1.c: Likewise.
92763         * lib/memcmp.c: Likewise.
92764
92765         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92766         Avoid using fseek, when possible -- it's broken by design.
92767         Patch by Ulrich Drepper.
92768
92769 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92770
92771         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92772         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92773         Giving in to popular pressure to shut up the compiler with casts.
92774
92775 2000-10-26  Jim Meyering  <meyering@lucent.com>
92776
92777         * lib/strftime.c: Update from libc.
92778
92779 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92780
92781         * regex.c: More `unsigned char' -> `re_char' changes.
92782         Also change several `int' into `re_wchar_t'.
92783         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92784         (PUSH_FAILURE_POINTER): Don't cast any more.
92785         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92786         We want GCC to complain, since this piece of code makes
92787         re_match non-reentrant, which *should* be fixed.
92788         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92789         (EXTEND_BUFFER): Use RETALLOC.
92790         (SET_LIST_BIT): Don't cast.
92791         (re_wchar_t): New type.
92792         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92793         that those two functions will always properly return.
92794         (IMMEDIATE_QUIT_CHECK): Cast to void.
92795         (analyse_first): Use recursion rather than an explicit stack.
92796         (re_compile_fastmap): Can't fail anymore.
92797         (re_search_2): Don't check re_compile_fastmap for failure.
92798         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92799         Now also sets the new value (passed in a new argument).
92800         (re_match_2_internal): Use it.
92801         Also, use a new var `reg' of type size_t when looping through regs
92802         rather than reuse the inappropriate `mcnt'.
92803
92804 2000-10-25  Jim Meyering  <meyering@lucent.com>
92805
92806         * lib/obstack.c: Update from libc.
92807
92808 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92809
92810         * regex.c (regex_compile): Change the way of handling a range from
92811         a char less than 256 to a char not less than 256.
92812
92813 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92814
92815         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92816         NT-Emacs only.
92817         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92818         so that re_search functions only quit when callers expect them to.
92819
92820 2000-10-23  Jim Meyering  <meyering@lucent.com>
92821
92822         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92823         wrong.  That set_locale call must not have any side effects.
92824         From Paul Eggert.
92825
92826 2000-10-22  Jim Meyering  <meyering@lucent.com>
92827
92828         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92829         [CYCLIC]: Remove now-unused definition.
92830
92831         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92832         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92833         Suggestion from Ulrich Drepper.
92834
92835 2000-10-21  Jim Meyering  <meyering@lucent.com>
92836
92837         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92838         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92839         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92840
92841 2000-10-21  Jim Meyering  <meyering@lucent.com>
92842
92843         * lib/dirname.c (memrchr): Declare if necessary.
92844         (dir_name): Remove the restriction that there be no
92845         trailing slashes.  Now, this code skips past them, effectively
92846         ignoring them.
92847         [TEST_DIRNAME] (main): New unit tests.
92848
92849         * lib/memrchr.c: New file from GNU libc.
92850         Undef __memrchr, too.
92851         [!weak_alias]: Define __memrchr to memrchr.
92852         Guard weak_alias use with `#ifdef weak_alias'.
92853
92854 2000-10-21  Jim Meyering  <meyering@lucent.com>
92855
92856         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92857         (dir_name): Use dir_name_r.
92858         * lib/dirname.h (dir_name_r): Declare it.
92859
92860 2000-10-17  Jim Meyering  <meyering@lucent.com>
92861
92862         * lib/quote.h (PARAMS): Define and use.
92863         Reported by Akim Demaille.
92864
92865         * lib/getopt.c: Update from libc.
92866
92867 2000-10-16  Jim Meyering  <meyering@lucent.com>
92868
92869         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92870         setlocale.
92871         From Jan Fedak.
92872
92873 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92874
92875         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92876
92877 2000-09-25  Jim Meyering  <meyering@lucent.com>
92878
92879         * lib/md5.h (rol): Define (from GnuPG).
92880
92881         * lib/sha.c: Give credit (GnuPG) where due.
92882         (M): Use rol rather than open-coding it.
92883         Add a FIXME comment.
92884
92885 2000-09-21  Jim Meyering  <meyering@lucent.com>
92886
92887         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92888         Reported by Michael Stone.
92889
92890 2000-09-20  Jim Meyering  <meyering@lucent.com>
92891
92892         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92893         (noinst_HEADERS): Add sha.h.
92894         Based on code from Scott G. Miller and from GnuPG.
92895
92896 2000-09-18  Jim Meyering  <meyering@lucent.com>
92897
92898         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92899         LIBS. Otherwise, everyone ends up linking with -lelf for some
92900         configurations.
92901         Reported by Mike Stone.
92902
92903 2000-09-15  Jim Meyering  <meyering@lucent.com>
92904
92905         * lib/regex.c: Update from libc.
92906
92907 2000-09-10  Jim Meyering  <meyering@lucent.com>
92908
92909         * lib/getopt.c (_getopt_internal): Update from glibc.
92910
92911 2000-09-09  Jim Meyering  <meyering@lucent.com>
92912
92913         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92914         think it should be used as a general replacement for isascii.
92915         * lib/fnmatch.c: Likewise.
92916         * lib/mbswidth.c: Likewise
92917         * lib/regex.c: Likewise.
92918
92919         Don't use atoi.
92920         * lib/userspec.c: Include sys/param.h and limits.h.
92921         Include xstrtol.h.
92922         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92923         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92924         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92925         UID, GID.  Check range.
92926
92927 2000-09-06  Jim Meyering  <meyering@lucent.com>
92928
92929         * lib/getopt.c (_getopt_internal): Update from glibc.
92930
92931 2000-08-30  Jim Meyering  <meyering@lucent.com>
92932
92933         * lib/strftime.c: Merge in changes from GNU libc.
92934
92935 2000-08-26  Jim Meyering  <meyering@lucent.com>
92936
92937         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92938         * m4/fpending.m4: New file.
92939
92940 2000-08-26  Jim Meyering  <meyering@lucent.com>
92941
92942         * lib/closeout.c: Include "__fpending.h".
92943         (close_stdout_status): Return right away if there's nothing to flush.
92944
92945         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92946         * lib/__fpending.c: New file.
92947         * lib/__fpending.h: New file.
92948
92949 2000-08-20  Jim Meyering  <meyering@lucent.com>
92950
92951         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92952         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92953         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92954
92955 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92956
92957         Improve fileutils installation on systems where running
92958         programs (like install) can't be unlinked.
92959         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92960         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92961
92962 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92963
92964         Standardize on "memory exhausted" instead of "Memory exhausted"
92965         or "virtual memory exhausted".
92966         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92967         "virtual memory exhausted".
92968         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92969         our own message.
92970         * lib/userspec.c (parse_user_spec): Likewise.
92971         * lib/bumpalloc.h: comment fix
92972         * lib/same.c, userspec.c: Include xalloc.h.
92973
92974         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92975         not char *const and pointing to a constant array.
92976         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92977         (xrealloc): Comment fix.
92978
92979         * lib/userspec.c (parse_user_spec):
92980         Don't translate a message until just before returning,
92981         to avoid unnecessary translation.
92982
92983 2000-08-07  Jim Meyering  <meyering@lucent.com>
92984
92985         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92986         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92987         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92988         getgroups.c, gethostname.c, getopt.h, group-member.c,
92989         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92990         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92991         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92992         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92993         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92994         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92995         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92996         yesno.c: Back out Copyright date changes for each file with no change
92997         this year.  This eases coordination with other programs using the same
92998         source code modules.  From Paul Eggert.
92999
93000 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93001
93002         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93003         not char, for compatibility with glibc 2.1.3 strftime.c.
93004
93005 2000-08-03  Greg McGary  <greg@mcgary.org>
93006
93007         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93008         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93009         (EXTEND_BUFFER): Use them.
93010
93011 2000-08-01  Jim Meyering  <meyering@lucent.com>
93012
93013         * lib/dirname.c (ISSLASH): Define.
93014         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93015         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93016         both `\' and `/' may be use as path separators.
93017         Based on a patch from Prashant TR.
93018
93019 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93020
93021         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93022         slot vector a constant, since it might get modified.
93023
93024 2000-07-31  Jim Meyering  <meyering@lucent.com>
93025
93026         * lib/xmalloc.c: Use `virtual memory exhausted', not
93027         `Memory exhausted'.
93028         * lib/obstack.c (print_and_abort): Likewise.
93029
93030 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93031
93032         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93033         buffer, so that the caller can always quote one small
93034         component of a "memory exhausted" message in slot 0.
93035         From a suggestion by Jim Meyering.
93036
93037 2000-07-30  Jim Meyering  <meyering@lucent.com>
93038
93039         * lib/makepath.c (make_path): Quote the other instance, too.
93040
93041         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93042         (STATIC_BUF_SIZE): Define.
93043         (quotearg_n_options): Use only statically allocated storage when
93044         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93045         than STATIC_BUF_SIZE.
93046
93047 2000-07-29  Jim Meyering  <meyering@lucent.com>
93048
93049         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93050         * lib/dirname.c (dir_name): Likewise.
93051
93052         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93053         `/'.
93054
93055         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93056         (dir_name): Assert that there are no trailing slashes.
93057
93058 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93059
93060         * lib/mbswidth.h (mbswidth): Add a flags argument.
93061         (mbswidth): New declaration.
93062         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93063         * lib/mbswidth.c (mbswidth): Add a flags argument.
93064         (mbsnwidth): New function.
93065
93066 2000-07-24  Jim Meyering  <meyering@lucent.com>
93067
93068         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93069
93070 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93071
93072         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93073
93074 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93075
93076         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93077         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93078         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93079         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93080         invoke multibyte primitives.
93081
93082 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93083
93084         * lib/quotearg.c:
93085         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93086         so that mbstate_t is always defined.
93087
93088         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93089         be 1 in at least one GCC installation, and this configuration
93090         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93091         performance on hosts that have mbrtowc but have only unibyte
93092         locales, but I assume these hosts are rare.
93093
93094 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93095
93096         * lib/mbswidth.c (_XOPEN_SOURCE):
93097         Don't define; this causes problems on Solaris 7.
93098         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93099
93100 2000-07-23  Jim Meyering  <meyering@lucent.com>
93101
93102         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93103         too: getgrgid, getpwuid, getuid.
93104
93105 2000-07-23  Jim Meyering  <meyering@lucent.com>
93106
93107         * lib/basename.c (base_name): Add an assertion.
93108
93109 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93110
93111         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93112         shadow its mbsinit function.
93113
93114 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93115
93116         * lib/mbswidth.h: New file.
93117         * lib/mbswidth.c: New file.
93118         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93119         (noinst_HEADERS): Add mbswidth.h.
93120
93121 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93122
93123         * lib/config.charset: Add support for FreeBSD. Improve support for
93124         HP-UX and IRIX 6.
93125
93126 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93127
93128         * m4/mbswidth.m4: New file.
93129         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93130
93131 2000-07-15  Jim Meyering  <meyering@lucent.com>
93132
93133         * lib/makepath.c: Include quote.h.
93134         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93135         corresponding argument in a `quote (...)' call.
93136         Give better diagnostics.
93137
93138         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93139         (noinst_HEADERS): Add quote.h.
93140
93141         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93142         from tar's src/misc.c.
93143         * lib/quote.h: New file.  Prototypes for same.
93144
93145 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93146
93147         From a suggestion by Bruno Haible.
93148         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93149         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93150         to decide whether to define the BeOS workaround macro;
93151         this adjusts to the change to AC_MBSTATE_T.
93152
93153 2000-07-14  Jim Meyering  <meyering@lucent.com>
93154
93155         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93156         jm_AC_TYPE_UINTMAX_T.
93157
93158 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93159
93160         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93161
93162         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93163         quotearg_buffer_restyled): Add support for
93164         clocale_quoting_style.  Undo previous change to
93165         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93166         and "{RIGHT QUOTATION MARK}" msgids.
93167
93168 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93169
93170         From a suggestion by Bruno Haible.
93171         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93172         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93173         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93174         and mbstate_t, to a single-part test that simply defines mbstate_t.
93175         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93176         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93177
93178 2000-07-10  Jim Meyering  <meyering@lucent.com>
93179
93180         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93181
93182         * m4/gnu-source.m4: Output to confdefs.h directly.
93183         Suggestion from Akim Demaille.
93184
93185 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93186
93187         The old behavior of quoting `like this' doesn't look good with
93188         newer, ISO-style fonts.  See:
93189         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93190
93191         Instead, quote "like this" by default.  Let the translator
93192         tailor the locale-specific quoting behavior by providing
93193         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93194
93195         * lib/quotearg.c (N_): New macro.
93196         (gettext_default): New function.
93197         (quotearg_buffer_restyled): Use
93198         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93199         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93200
93201 2000-07-09  Jim Meyering  <meyering@lucent.com>
93202
93203         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93204         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93205
93206         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93207         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93208
93209 2000-07-09  Jim Meyering  <meyering@lucent.com>
93210
93211         * lib/Most files: Update copyright dates to include 2000.
93212
93213 2000-07-08  Jim Meyering  <meyering@lucent.com>
93214
93215         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93216         if not defined.
93217         (xgethostname): Remove now-unnecessary #ifdef.
93218         Move declaration of `err' into loop where it's used.
93219
93220 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93221         and Bruno Haible  <haible@clisp.cons.org>
93222
93223         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93224         only if the test for an object-type mbstate_t fails.  This
93225         prevents us from mistakenly reporting that mbstate_t is a
93226         system object type after we "#define mbstate_t int" to work
93227         around its lack.
93228
93229 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93230         and Bruno Haible  <haible@clisp.cons.org>
93231
93232         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93233
93234 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93235
93236         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93237         to strerror_r.
93238         Include <ctype.h> for use of isalpha.
93239
93240 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93241
93242         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93243         by allocating a larger buffer. Test the gethostname return value for
93244         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93245         returns an error and ENAMETOOLONG isn't defined.
93246
93247 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93248
93249         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93250         dimension.
93251
93252 2000-07-04  Jim Meyering  <meyering@lucent.com>
93253
93254         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93255         of the deprecated AC_CHECKING.
93256
93257 2000-07-04  Jim Meyering  <meyering@lucent.com>
93258
93259         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93260         Reported by Bruno Haible.
93261
93262 2000-07-04  Jim Meyering  <meyering@lucent.com>
93263
93264         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93265         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93266         lacks mbrtowc.
93267
93268 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93269
93270         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93271         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93272
93273 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93274         and Bruno Haible  <haible@clisp.cons.org>
93275
93276         * lib/quotearg.c (mbrtowc):
93277         Assign to *pwc, and return 1 only if result is nonzero.
93278         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93279
93280 2000-07-03  Jim Meyering  <meyering@lucent.com>
93281
93282         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93283
93284 2000-07-03  Jim Meyering  <meyering@lucent.com>
93285
93286         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93287         This is necessary to get a definition of e.g., UTMP_FILE on
93288         HP-UX 10.20.
93289         From Bob Proulx.
93290
93291 2000-07-02  Jim Meyering  <meyering@lucent.com>
93292
93293         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93294
93295         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93296         AC_LIBOBJ(function_name).
93297         * m4/chown.m4: Likewise.
93298         * m4/fnmatch.m4: Likewise.
93299         * m4/ftruncate.m4: Likewise.
93300         * m4/getgroups.m4: Likewise.
93301         * m4/getline.m4: Likewise.
93302         * m4/group-member.m4: Likewise.
93303         * m4/jm-macros.m4: Likewise.
93304         * m4/lstat.m4: Likewise.
93305         * m4/malloc.m4: Likewise.
93306         * m4/memcmp.m4: Likewise.
93307         * m4/nanosleep.m4: Likewise.
93308         * m4/putenv.m4: Likewise.
93309         * m4/realloc.m4: Likewise.
93310         * m4/regex.m4: Likewise.
93311         * m4/stat.m4: Likewise.
93312         * m4/strftime.m4: Likewise.
93313
93314 2000-07-02  Jim Meyering  <meyering@lucent.com>
93315
93316         * lib/quotearg.c (mbstate_t): Don't define here.
93317
93318 2000-07-02  Jim Meyering  <meyering@lucent.com>
93319
93320         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93321
93322 2000-07-01  Jim Meyering  <meyering@lucent.com>
93323
93324         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93325
93326 2000-07-01  Jim Meyering  <meyering@lucent.com>
93327
93328         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93329         problem.
93330
93331 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93332
93333         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93334         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93335
93336 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93337
93338         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93339         per change in ../m4/ls-mntd-fs.m4.
93340         (read_filesystem_list): Ignore symbolic links.
93341
93342 2000-06-29  Jim Meyering  <meyering@lucent.com>
93343
93344         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93345         for declaration of strcmp.
93346
93347         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93348
93349         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93350         Avoid warning by casting result to `char *' to remove `const'.
93351
93352 2000-06-28  Jim Meyering  <meyering@lucent.com>
93353
93354         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93355         included by quotearg.c, for which we perform this test.  From
93356         Bruno Haible.
93357
93358 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93359
93360         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93361         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93362         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93363
93364 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93365
93366         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93367
93368 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93369
93370         savedir now sets errno on failure and invokes xmalloc to get memory.
93371         Fix a couple of other minor bugs while we're at it.
93372
93373         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93374         (NAMLEN): Remove macro.
93375         (malloc, realloc): Remove decls.
93376         (stpcpy): Likewise.
93377         ("xalloc.h"): Include.
93378         (NAME_SIZE_DEFAULT): New macro.
93379         (savedir): Use xmalloc / xrealloc to allocate memory.
93380         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93381         Skip "" directory entries.
93382         Use strlen to calculate directory entry length, since the old method
93383         is rarely used these days and isn't worth supporting.
93384         Don't use a pointer after freeing it.
93385         Check for integer overflow when calculating allocation size.
93386         Use memcpy to copy entries, instead of stpcpy.
93387         Set errno properly when returning NULL.
93388         Check for readdir error.
93389
93390 2000-06-26  Jim Meyering  <meyering@lucent.com>
93391
93392         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93393
93394 2000-06-25  Jim Meyering  <meyering@lucent.com>
93395
93396         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93397         Linux header bug when _XOPEN_SOURCE is defined to 500.
93398
93399 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93400
93401         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93402         deficiency.
93403
93404 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93405
93406         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93407         Include xalloc.h.
93408         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93409
93410 2000-06-24  Jim Meyering  <meyering@lucent.com>
93411
93412         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93413         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93414         for which strerror does return char*, but which lacks a conveniently
93415         accessible declaration of the function.  If the compile-test says
93416         strerror_r doesn't work, then resort to a `run'-test that works on
93417         BeOS and segfaults on DEC Unix.
93418
93419 2000-06-24  Jim Meyering  <meyering@lucent.com>
93420
93421         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93422
93423 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93424
93425         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93426         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93427
93428 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93429
93430         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93431         (mbrtowc, mbstate_t): Define substitutes if
93432         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93433         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93434         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93435
93436 2000-06-23  Jim Meyering  <meyering@lucent.com>
93437
93438         * m4/afs.m4: Add missing AC_MSG_RESULT.
93439         Reported by Bruno Haible.
93440
93441         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93442         Suggestion from Bruno Haible.
93443
93444 2000-06-23  Jim Meyering  <meyering@lucent.com>
93445
93446         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93447
93448 2000-06-21  Jim Meyering  <meyering@lucent.com>
93449
93450         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93451
93452 2000-06-21  Jim Meyering  <meyering@lucent.com>
93453
93454         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93455         (noinst_HEADERS): Add getstr.h.
93456
93457         * lib/getline.c (getstr): Move into a separate file.
93458         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93459         the following changes: new parameter, delim2; both delim[12]
93460         parameters have type `int', not `char'.  The latter would lose
93461         with 8-bit delimiters.
93462         * lib/getstr.h: New file.
93463
93464 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93465
93466         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93467         than 1024, return a memory chunk of least possible size, instead
93468         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93469         Use free/xmalloc instead of xrealloc to avoid copying for very long
93470         paths.
93471
93472 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93473
93474         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93475         the empty string.
93476
93477 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93478
93479         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93480         address, not strdup.  Include <stdlib.h> and don't declare free().
93481
93482 2000-06-19  Jim Meyering  <meyering@lucent.com>
93483
93484         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93485
93486 2000-06-18  Jim Meyering  <meyering@lucent.com>
93487
93488         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93489
93490         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93491         `checking whether...' message to be consistent with that of the
93492         lstat test.
93493
93494 2000-06-18  Jim Meyering  <meyering@lucent.com>
93495
93496         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93497         Besides, these days every porting target provides a mkdir function.
93498
93499         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93500         needed. (this snippet comes from src/system.h).
93501
93502 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93503
93504         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93505
93506 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93507
93508         * lib/human.c (adjust_value): New function.
93509         (human_readable_inexact): Apply rounding style even when
93510         printing approximate values.
93511
93512 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93513
93514         * lib/human.c (human_readable_inexact): Allow an input block
93515         size that is not a multiple of the output block size, and vice versa.
93516         Reported by Piergiorgio Sartor.
93517
93518 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93519
93520         * lib/getdate.y (get_date): Apply relative times after time
93521         zone indicator, not before.  Reported by Todd A. Jacobs.
93522
93523 2000-06-13  Jim Meyering  <meyering@lucent.com>
93524
93525         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93526
93527         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93528
93529 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93530
93531         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93532
93533 2000-06-12  Jim Meyering  <meyering@lucent.com>
93534
93535         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93536         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93537         optional argument.
93538         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93539         the optional argument, `lib'.
93540
93541 2000-06-08  Jim Meyering  <meyering@lucent.com>
93542
93543         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93544
93545 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93546
93547         Rewrite largefile configuration so that we don't need to run
93548         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93549         AC_CANONICAL_HOST in configure.in -- jmm]
93550
93551         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93552         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93553         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93554         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93555         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93556         All uses changed.
93557         Instead of inspecting the output of getconf, try to compile the
93558         test program without and with the macro definition.
93559         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93560         for getconf.  Instead, check for the needed flags by compiling
93561         test programs.
93562
93563 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93564
93565         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93566
93567 2000-06-04  Jim Meyering  <meyering@lucent.com>
93568
93569         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93570         SunOS 4.1.4 for which gid_t is an unsigned type.
93571
93572 2000-06-03  Jim Meyering  <meyering@lucent.com>
93573
93574         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93575         now that autoconf requires that.
93576
93577         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93578         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93579         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93580
93581 2000-06-03  Jim Meyering  <meyering@lucent.com>
93582
93583         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93584
93585 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93586
93587         * m4/glibc21.m4: New file.
93588         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93589
93590 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93591
93592         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93593         newer, don't install charset.alias.
93594         * lib/config.charset: Change the Linux/glibc rules so they become empty
93595         on glibc-2.1 or newer.
93596
93597 2000-06-02  Jim Meyering  <meyering@lucent.com>
93598
93599         * lib/mountlist.c: Back out last change.  Instead, do this...
93600         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93601         me_dummy member using the same `ignore'-testing code.
93602         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93603         fs_type strings.
93604         From Mark D. Roth.
93605
93606 2000-05-29  Jim Meyering  <meyering@lucent.com>
93607
93608         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93609         mounts with the `ignore' attribute.  Based on a patch from
93610         Mark D. Roth.
93611
93612 2000-05-28  Jim Meyering  <meyering@lucent.com>
93613
93614         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93615         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93616         * m4/stat.m4: Likewise.
93617         * m4/lstat.m4: Likewise.
93618         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93619
93620         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93621         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93622
93623 2000-05-26  Jim Meyering  <meyering@lucent.com>
93624
93625         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93626
93627 2000-05-24  Jim Meyering  <meyering@lucent.com>
93628
93629         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93630         autoconf requires that.
93631         * m4/lib-check.m4: Likewise.
93632         * m4/jm-macros.m4: Likewise.
93633         * m4/strftime.m4: Likewise.
93634
93635         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93636         AC_CHECK_DECLS, now that autoconf requires that.
93637
93638 2000-05-22  Jim Meyering  <meyering@lucent.com>
93639
93640         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93641         * m4/lstat.m4: Likewise.
93642
93643 2000-05-22  Jim Meyering  <meyering@lucent.com>
93644
93645         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93646
93647 2000-05-20  Jim Meyering  <meyering@lucent.com>
93648
93649         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93650         (jm_PREREQ): Use it.
93651
93652 2000-05-18  Jim Meyering  <meyering@lucent.com>
93653
93654         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93655         back, too, since it may have been modified by allocate_entry.
93656         (hash_delete): Rewrite to use neither the assignment operator
93657         nor the comma operator in an if-expression.
93658
93659 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93660
93661         * lib/closeout.c:
93662         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93663         Remove; no longer needed.
93664         "quotearg.h": Add include.
93665         (file_name): Do not bother to explicitly initialize to NULL; it's less
93666         efficient on some hosts.
93667         (close_stdout_status): Remove test as to whether stdout was already
93668         closed; it breaks for the case "echo x | sort >&-".
93669         Quote file name colons.
93670         Do not assume that _("write error") lacks format strings.
93671
93672 2000-05-15  Jim Meyering  <meyering@lucent.com>
93673
93674         * lib/version-etc.c (version_etc_copyright): Update the copyright
93675         string used in all --version output.
93676
93677 2000-05-14  Jim Meyering  <meyering@lucent.com>
93678
93679         * lib/closeout.c (close_stdout_set_file_name): New function.
93680         (close_stdout_status): Use new file-scoped global.
93681         Return right away if fstat says the stdout file descriptor is invalid.
93682         * lib/closeout.h (close_stdout_set_file_name): Declare.
93683
93684 2000-05-10  Jim Meyering  <meyering@lucent.com>
93685
93686         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93687         (close_stdout_set_status): New function.
93688         * lib/closeout.h (close_stdout_set_status): Declare.
93689
93690 2000-05-09  Jim Meyering  <meyering@lucent.com>
93691
93692         * m4/gettext.m4: Rename this...
93693         * m4/libintl.m4: ...to this.
93694
93695 2000-05-08  Jim Meyering  <meyering@lucent.com>
93696
93697         * lib/long-options.c: Don't include closeout.h.
93698         (parse_long_options): Don't call close_stdout for --version.
93699
93700 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93701
93702         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93703         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93704         2.1.3 bug.  This avoids a clash when files like regex.c define
93705         _GNU_SOURCE.
93706
93707 2000-05-06  Jim Meyering  <meyering@lucent.com>
93708
93709         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93710         (AC_REPLACE_FUNCS): Add strnlen.
93711
93712         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93713         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93714
93715         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93716         AC_SEARCH_LIBS call for nanosleep.
93717         (LIB_NANOSLEEP): Set and AC_SUBST.
93718
93719 2000-05-06  Jim Meyering  <meyering@lucent.com>
93720
93721         * lib/strnlen.c: Undefine __strnlen and strnlen.
93722         [!weak_alias]: Define __strnlen to strnlen.
93723
93724         * lib/atexit.c: New file, from libiberty.
93725
93726 2000-05-06  Jim Meyering  <meyering@lucent.com>
93727
93728         * lib/closeout.c (close_stdout_status): Also check for errors on the
93729         stderr stream.
93730
93731 2000-05-05  Jim Meyering  <meyering@lucent.com>
93732
93733         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93734         AC_SEARCH_LIBS call for clock_gettime.
93735         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93736
93737         * m4/search-libs.m4: Update from autoconf.
93738
93739         su doesn't work on Solaris 2.6.
93740         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93741         <shadow.h>.  Reported by Dragos Harabor.
93742
93743 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93744
93745         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93746         memcpy instead of xmalloc, xrealloc, path_concat.
93747         (locale_charset): Treat empty environment variables as absent.
93748         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93749
93750 2000-05-04  Jim Meyering  <meyering@lucent.com>
93751
93752         * lib/getopt.c: Update from glibc.
93753         * lib/obstack.c: Likewise.
93754         * lib/obstack.h: Likewise.
93755         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93756         file
93757
93758         * lib/regex.h: Likewise.
93759         * lib/strndup.c: Likewise.
93760         * lib/strnlen.c: New file, from glibc.
93761
93762 2000-05-03  Jim Meyering  <meyering@lucent.com>
93763
93764         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93765
93766 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93767
93768         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93769         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93770         compile-time test, rather than inspecting host and OS, to
93771         decide whether to define _LARGEFILE_SOURCE.
93772
93773 2000-05-01  Jim Meyering  <meyering@lucent.com>
93774
93775         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93776
93777         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93778         Based on a patch from Bruno Haible.
93779
93780 2000-05-01  Jim Meyering  <meyering@lucent.com>
93781
93782         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93783
93784 2000-04-29  Jim Meyering  <meyering@lucent.com>
93785
93786         * lib/path-concat.c: Declare strdup only if it's not defined.
93787         * lib/canon-host.c: Likewise.
93788
93789 2000-04-28  Jim Meyering  <meyering@lucent.com>
93790
93791         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93792         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93793         is included first, then limits.h is included by locale.h by libintl.h.
93794         From John David Anglin.
93795
93796 2000-04-25  Jim Meyering  <meyering@lucent.com>
93797
93798         * lib/makepath.c (S_IRWXUGO): Define.
93799         (make_path): Always perform explicit chmod if MODE specifies any
93800         of the `special' permission bits.  Prompted by a bug report against
93801         install from Mate Wierdl and Joost van Baal.
93802
93803 2000-04-18  Jim Meyering  <meyering@lucent.com>
93804
93805         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93806         (jm_PREREQ): Use it.
93807
93808 2000-04-18  Jim Meyering  <meyering@lucent.com>
93809
93810         * lib/README: New file.
93811
93812         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93813         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93814
93815 2000-04-17  Jim Meyering  <meyering@lucent.com>
93816
93817         Get it right :-)
93818         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93819         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93820         Suggestion from Akim Demaille.
93821
93822 2000-04-17  Jim Meyering  <meyering@lucent.com>
93823
93824         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93825         the definition of it to rpl_strftime also defined-away the system's
93826         declaration.
93827
93828 2000-04-15  Jim Meyering  <meyering@lucent.com>
93829
93830         Use `C' to denote so-called `contiguous' files, the same way
93831         that tar does.
93832         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93833         (ftypelet): Use S_ISCTG.
93834         From Michael Deutschmann.
93835
93836 2000-04-14  Jim Meyering  <meyering@lucent.com>
93837
93838         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93839         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93840         clobbered.
93841
93842 2000-04-14  Jim Meyering  <meyering@lucent.com>
93843
93844         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93845
93846 2000-04-13  Jim Meyering  <meyering@lucent.com>
93847
93848         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93849         AH_VERBATIM to insert required #ifndef into config.h.in.
93850         Suggestion from Akim Demaille.
93851
93852 2000-04-12  Jim Meyering  <meyering@lucent.com>
93853
93854         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93855         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93856         Christian Krackowizer.
93857
93858         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93859         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93860         (AC_SYS_LARGEFILE): Require.
93861         (AM_C_PROTOTYPES): Require.
93862
93863 2000-04-08  Jim Meyering  <meyering@lucent.com>
93864
93865         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93866         names don't conflict.  Reported by Eli Zaretskii.
93867
93868 2000-04-07  Jim Meyering  <meyering@lucent.com>
93869
93870         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93871         sys/types.h, to work around system header problems on AIX 3.2.5.
93872         From Bruno Haible.
93873
93874 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93875
93876         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93877         bug.  Deal with the different error behavior of Irix iconv.
93878
93879 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93880
93881         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93882         IRIX if the installer said otherwise.
93883
93884 2000-04-05  Jim Meyering  <meyering@lucent.com>
93885
93886         Portability tweaks required for ultrix4.3.
93887         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93888         (jm_CHECK_DECLS): Add getutent to the list of functions.
93889         (_jm_DECL_HEADERS): Add utmpx.h.
93890         From John David Anglin.
93891
93892         * m4/strftime.m4: Back out the 2000-04-02 change.
93893         Instead of that change, simply undefine putenv in the test program.
93894
93895 2000-04-05  Jim Meyering  <meyering@lucent.com>
93896
93897         Portability tweaks required for ultrix4.3.
93898         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93899         getutent.
93900         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93901         * lib/canon-host.c: Declare strdup.
93902         * lib/path-concat.c: Likewise.
93903         From John David Anglin.
93904
93905 2000-04-04  Jim Meyering  <meyering@lucent.com>
93906
93907         Be more DOS 8.3-friendly.
93908         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93909         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93910         * lib/Makefile.am: Reflect renaming.
93911         Reported by Eli Zaretskii.
93912
93913         Use a temporary file name that won't clash with `charset.alias'
93914         in the DOS 8.3 name space.
93915         * lib/Makefile.am (charset_tmp): Define.
93916         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93917         (uninstall-local): Likewise.
93918         Reported by Eli Zaretskii.
93919
93920 2000-04-03  Jim Meyering  <meyering@lucent.com>
93921
93922         * m4/gettext.m4: Fix typo in comment.
93923
93924         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93925         textutils/configure.in).  Suggestion from Paul Eggert.
93926         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93927
93928 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93929
93930         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93931         variable in the shell rather than using putenv, which isn't
93932         portable.  This avoids the configure-time inter-test dependency
93933         on the potentially-renamed putenv function.
93934
93935 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93936
93937         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93938         before checking struct stat.st_blksize, so that
93939         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93940
93941 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93942
93943         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93944         since strftime.c uses HAVE_STRFTIME to decide whether to use
93945         the underlying strftime.
93946
93947 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93948
93949         * lib/time/strftime.c (my_strftime): Make sure we call the system
93950         strftime, not ourselves, when invoking the underlying strftime.
93951
93952 2000-03-24  Jim Meyering  <meyering@lucent.com>
93953
93954         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93955         (charset_alias): Define.
93956         (install-exec-local): Factor out common code.
93957         (uninstall-local): Split lines longer than 80.
93958         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93959         (SUFFIXES): Define.
93960         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93961         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93962
93963 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93964
93965         * lib/config.charset: Output a line containing "Packages using this
93966         file".
93967         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93968         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93969         ref-del.sed): New rules.
93970
93971 2000-03-17  Jim Meyering  <meyering@lucent.com>
93972
93973         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93974         Otherwise, include <strings.h>
93975
93976 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93977
93978         * lib/unicodeio.c (utf8_wctomb): New function.
93979         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93980         format instead of in UCS-4 with platform dependent endianness.
93981
93982 2000-03-10  Jim Meyering  <meyering@lucent.com>
93983
93984         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93985         From Marco Franzen.
93986
93987 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93988
93989         * lib/savedir.c (savedir): Work even if directory size is
93990         negative; this can happen with some screwy NFS configurations.
93991
93992 2000-03-06  Jim Meyering  <meyering@lucent.com>
93993
93994         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93995         if it's NULL (because we ran out of memory).  From Bruno Haible.
93996
93997 2000-03-05  Jim Meyering  <meyering@lucent.com>
93998
93999         * lib/localcharset.c ("path-concat.h"): Include.
94000         (get_charset_aliases): Use path_concat instead of ANSI string
94001         concatenation.
94002
94003         * lib/unicodeio.h (PARAMS): Define.
94004         Use it to guard prototype.
94005
94006 2000-03-04  Jim Meyering  <meyering@lucent.com>
94007
94008         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94009         for lib/localcharset.c.
94010
94011 2000-03-04  Jim Meyering  <meyering@lucent.com>
94012
94013         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94014         installing into it.
94015         (uninstall-local): Uncomment this rule so `make distcheck' works
94016         once again.
94017
94018         * lib/unicodeio.c (<errno.h>): Include it.
94019         (errno): Declare if not defined.
94020
94021         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94022
94023         * lib/config.charset: New version, incorporating remarks from a linux
94024         i18n mailing list.  From Bruno Haible.
94025
94026 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94027
94028         * m4/codeset.m4: New file.
94029         * m4/iconv.m4: New file.
94030         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94031
94032 2000-03-03  Jim Meyering  <meyering@lucent.com>
94033
94034         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94035
94036 2000-03-02  Jim Meyering  <meyering@lucent.com>
94037
94038         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94039         the messages come out on separate lines.
94040
94041         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94042         rather than jm_CHECK_DECLARATIONS.
94043         * m4/decl.m4: Remove now-unused file.
94044
94045         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94046         geteuid.
94047
94048 2000-03-02  Jim Meyering  <meyering@lucent.com>
94049
94050         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94051
94052 2000-03-01  Jim Meyering  <meyering@lucent.com>
94053
94054         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94055         * lib/unicodeio.c: Likewise.
94056
94057 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94058
94059         * lib/config.charset: New file.
94060         * lib/localcharset.c: New file.
94061         * lib/unicodeio.h, lib/unicodeio.c: New files.
94062         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94063         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94064         (noinst_HEADERS): Add unicodeio.h.
94065         (all-local, install-exec-local, charset.alias): New targets.
94066
94067 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94068
94069         * lib/quotearg.c (ALERT_CHAR): New macro.
94070         (quotearg_buffer_restyled): Use it.
94071
94072 2000-02-27  Jim Meyering  <meyering@lucent.com>
94073
94074         * m4/check-decl.m4: Add getenv to the list.
94075
94076 2000-02-27  Jim Meyering  <meyering@lucent.com>
94077
94078         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94079         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94080
94081         * lib/backupfile.c: Guard inclusion of stdlib.h with
94082         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94083         Declare malloc if needed.
94084
94085         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94086         `#ifndef HAVE_DECL..'
94087         now that autoconf always defines the HAVE_DECL_ symbols.
94088         * lib/human.c: Likewise.
94089         * lib/same.c: Likewise.
94090         * lib/strtoumax.c: Likewise.
94091
94092         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94093         declaration check was not run.
94094         * lib/hash.c: Likewise.
94095         * lib/human.c: Likewise.
94096         * lib/same.c: Likewise.
94097         * lib/strtoumax.c: Likewise.
94098
94099         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94100         `.', then first look up the entire `.'-containing string as a login
94101         name.
94102
94103 2000-02-23  Jim Meyering  <meyering@lucent.com>
94104
94105         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94106         in place of my hack.
94107
94108 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94109
94110         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94111         (textint): New typedef.
94112         (parser_control): Member year changed from int to textint.
94113         All uses changed.
94114         (YYSTYPE): Removed; replaced by %union with int and textint members.
94115         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94116         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94117         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94118         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94119         (date, number, to_year): Use width of number in digits, not its value,
94120         to determine whether it's a 2-digit year, or a 2-digit time.
94121         (yylex): Store number of digits of numeric tokens.
94122         Reported by John Kendall.
94123
94124         (parser_control): Changed from struct parser_control to typedef (for
94125         consistency).  All uses changed.
94126
94127         (tID): Removed; not used.
94128         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94129
94130 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94131
94132         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94133         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94134
94135 2000-02-12  Jim Meyering  <meyering@lucent.com>
94136
94137         * lib/userspec.c (ISDIGIT): Define it.
94138         (isdigit): Remove definition.
94139         (is_number): Use ISDIGIT, not isdigit.
94140         <libintl.h>: Include.
94141         (_ and N_): Define.
94142         (parse_user_spec): Mark translatable strings.
94143
94144 2000-02-10  Jim Meyering  <meyering@lucent.com>
94145
94146         With these changes, nanosleep.[ch] are finally enough like the other
94147         lib/* replacement files to compile on a few more losing systems.
94148
94149         * lib/nanosleep.h: Don't include config.h.
94150         Remove prototype from declaration of nanosleep.
94151         (PARAMS): Remove now-unneeded definition.
94152         * lib/nanosleep.c: #undef nanosleep.
94153         (rpl_nanosleep): Rename from nanosleep.
94154
94155 2000-02-10  Jim Meyering  <meyering@lucent.com>
94156
94157         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94158         gnu_nanosleep to rpl_nanosleep.
94159
94160 2000-02-09  Jim Meyering  <meyering@lucent.com>
94161
94162         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94163         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94164
94165 2000-02-08  Akim Demaille  <akim@epita.fr>
94166
94167         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94168         `[' and `]' and remove uses of `changequote'.
94169         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94170         (AC_SYS_LARGEFILE): Likewise.
94171         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94172         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94173         of changequote.
94174         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94175         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94176         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94177         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94178
94179 2000-02-05  Jim Meyering  <meyering@lucent.com>
94180
94181         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94182         Remove explicit use of AC_HEADER_TIME.  It is required by
94183         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94184         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94185         in autoconf whereby the expansion of the latter ended up preceding
94186         the expansion of its prerequisite, AC_HEADER_TIME.
94187         Reported by Volker Borchert.
94188
94189 2000-02-03  Jim Meyering  <meyering@lucent.com>
94190
94191         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94192
94193 2000-02-03  Jim Meyering  <meyering@lucent.com>
94194
94195         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94196         rather than with `#if HAVE_UTMPNAME'.
94197
94198 2000-02-02  Jim Meyering  <meyering@lucent.com>
94199
94200         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94201         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94202         Reported by Eli Zaretskii.
94203
94204 2000-02-01  Jim Meyering  <meyering@lucent.com>
94205
94206         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94207
94208 2000-01-31  Jim Meyering  <meyering@lucent.com>
94209
94210         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94211         functions.  Add the time.h and sys/time.h headers along with the
94212         AC_REQUIRE'ment of AC_HEADER_TIME.
94213
94214 2000-01-31  Jim Meyering  <meyering@lucent.com>
94215
94216         * lib/nanosleep.h (nanosleep): Guard declaration with
94217         `#if ! HAVE_DECL_NANOSLEEP'.
94218         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94219         the declaration in that vendor's sys/timers.h.
94220         Reported by Christian Krackowizer.
94221
94222         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94223         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94224         (ISPRINT): Likewise.
94225         Reported by Tom Tromey.
94226
94227 2000-01-30  Jim Meyering  <meyering@lucent.com>
94228
94229         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94230
94231         * m4/prereq.m4 (utmp_includes): Define.
94232         Check for ut_user and ut_name members in both struct utmpx
94233         and struct utmp.
94234
94235 2000-01-30  Jim Meyering  <meyering@lucent.com>
94236
94237         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94238         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94239         header files where only utmpx.ut_user is declared.
94240
94241         * lib/readutmp.h (UT_USER): Define.
94242
94243 2000-01-29  Jim Meyering  <meyering@lucent.com>
94244
94245         * m4/lib-check.m4: New file containing library-related checks from
94246         fileutils and sh-utils (textutils had none).
94247
94248 2000-01-28  Jim Meyering  <meyering@lucent.com>
94249
94250         * m4/perl.m4: Change format of warning message to look more like that
94251         from the missing script.  Suggestion from François Pinard.
94252
94253 2000-01-25  Jim Meyering  <meyering@lucent.com>
94254
94255         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94256         well as time.h in the compile check.
94257         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94258         Fix typo in cross-compiling case: s/yes/no/.
94259
94260 2000-01-23  Jim Meyering  <meyering@lucent.com>
94261
94262         * m4/jm-macros.m4: Move df-related tests here from
94263         fileutils/configure.in
94264
94265         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94266         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94267
94268         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94269         s/space/ac_fsusage_space/.
94270         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94271
94272         * m4/ftruncate.m4: New file (derived from part of
94273         fileutils/configure.in).
94274         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94275         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94276
94277         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94278         AC_SUBST these here, rather than just in sh-util/configure.in, so
94279         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94280         all the same.
94281         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94282         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94283         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94284         (AC_SUBST(POW_LIBM)): Likewise.
94285         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94286
94287 2000-01-23  Jim Meyering  <meyering@lucent.com>
94288
94289         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94290         obstack.c.
94291
94292 2000-01-22  Jim Meyering  <meyering@lucent.com>
94293
94294         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94295
94296         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94297
94298         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94299         configure.in
94300         (AC_CHECK_HEADERS): Likewise for sh-utils.
94301         (AC_CHECK_HEADERS): Likewise for textutils.
94302         Merge the three lists of headers.
94303
94304         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94305         from fileutils' configure.in.
94306
94307         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94308         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94309         check-decl.m4.
94310
94311         * m4/check-decl.m4: Use #if rather than #ifdef.
94312         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94313         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94314         (_jm_DECL_HEADERS): Define new function.
94315         (jm_CHECK_DECLARATIONS): Require it.
94316
94317 2000-01-22  Jim Meyering  <meyering@lucent.com>
94318
94319         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94320         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94321         Required for some AIX systems.  Reported by Christian Krackowizer.
94322         [TESTING] (main): New function.
94323
94324         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94325         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94326         letters.
94327
94328         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94329         iswprint.
94330
94331         * lib/strverscmp.c (ISDIGIT): Define.
94332         (strverscmp): Use ISDIGIT, not isdigit.
94333
94334 2000-01-19  Jim Meyering  <meyering@lucent.com>
94335
94336         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94337         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94338         defines `struct timespec' in <sys/time.h>
94339
94340         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94341         Thanks to Akim for explaining.
94342
94343 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94344
94345         * lib/nanosleep.c (nanosleep):
94346         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94347         POSIX.1 doesn't require SA_INTERRUPT and some systems
94348         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94349         it's been part of POSIX.1 since day 1 (in 1988).
94350
94351 2000-01-17  Jim Meyering  <meyering@lucent.com>
94352
94353         * lib/interlock: Remove unused file.  Reported by François Pinard.
94354
94355 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94356
94357         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94358         alert, backslash, formfeed, and vertical tab unnecessarily in
94359         shell quoting style.
94360
94361 2000-01-16  Jim Meyering  <meyering@lucent.com>
94362
94363         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94364         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94365         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94366         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94367
94368 2000-01-16  Jim Meyering  <meyering@lucent.com>
94369
94370         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94371         because the latter didn't work.
94372
94373 2000-01-15  Jim Meyering  <meyering@lucent.com>
94374
94375         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94376         (AC_REPLACE_FUNCS): Add memcpy and memset.
94377         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94378         Add strpbrk.
94379         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94380
94381 2000-01-12  Jim Meyering  <meyering@lucent.com>
94382
94383         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94384         (jm_PREREQ): Use it.
94385         (jm_PREREQ_READUTMP): New macro.
94386         (jm_PREREQ): Use it.
94387
94388 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94389
94390         Quote multibyte characters correctly.
94391         * m4/c-bs-a.m4: New file.
94392         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94393         (jm_PREREQ): Use it.
94394
94395 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94396
94397         * m4/uintmax_t.m4: Port to autoconf 2.13.
94398
94399 2000-01-08  Jim Meyering  <meyering@ascend.com>
94400
94401         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94402         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94403
94404 2000-01-04  Jim Meyering  <meyering@ascend.com>
94405
94406         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94407         jm_STRUCT_DIRENT_D_TYPE.
94408         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94409         jm_STRUCT_DIRENT_D_INO.
94410         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94411         jm_STRUCT_UTIMBUF.
94412         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94413         renamings.
94414         * m4/utime.m4: Likewise.
94415
94416         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94417         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94418
94419 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94420
94421         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94422         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94423
94424 2000-01-02  Jim Meyering  <meyering@ascend.com>
94425
94426         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94427         remember if this is necessary.
94428
94429 1999-12-26  Jim Meyering  <meyering@ascend.com>
94430
94431         * m4/jm-macros.m4: Use it here.
94432         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94433
94434 1999-12-23  Jim Meyering  <meyering@ascend.com>
94435
94436         * m4/jm-macros.m4: Check for clock_gettime (moved from
94437         fileutils/configure.in)
94438         Check for gettimeofday.
94439
94440 1999-12-20  Jim Meyering  <meyering@ascend.com>
94441
94442         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94443         autoconf-2.14a-1999-12-20.
94444
94445 1999-12-19  Jim Meyering  <meyering@ascend.com>
94446
94447         * m4/lstat-slash.m4: New file.
94448         * m4/jm-macros.m4: Use the new macro:
94449         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94450
94451 1999-12-07  Jim Meyering  <meyering@ascend.com>
94452
94453         * m4/perl.m4: Require that File::Compare be available, too.
94454         Too many systems seem to lack it.
94455
94456         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94457         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94458
94459 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94460
94461         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94462         problem with the QNX 4.25 shell, which doesn't propagate exit
94463         status of failed commands inside shell assignments.
94464
94465 1999-11-17  Jim Meyering  <meyering@ascend.com>
94466
94467         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94468
94469 1999-11-07  Jim Meyering  <meyering@ascend.com>
94470
94471         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94472
94473 1999-11-06  Jim Meyering  <meyering@ascend.com>
94474
94475         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94476         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94477
94478 1999-11-05  Jim Meyering  <meyering@ascend.com>
94479
94480         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94481         configure.in of textutils, fileutils, and sh-utils into this one
94482         (shared between those packages) file.
94483         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94484         AC_STRUCT_ST_BLKSIZE.
94485
94486 1999-11-03  Jim Meyering  <meyering@ascend.com>
94487
94488         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94489         of AC_CHECK_TYPE checks includes unistd.h.
94490         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94491         Suggestion from Akim Demaille.
94492
94493 1999-10-30  Jim Meyering  <meyering@ascend.com>
94494
94495         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94496         m4-quoted string.
94497         * m4/ls-mntd-fs.m4: Likewise.
94498         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94499         * m4/jm-winsz1.m4: Likewise.
94500
94501         * m4/const.m4: Remove file, since the fix made it into the experimental
94502         version of autoconf.
94503         * m4/mktime.m4: Likewise.
94504
94505         * m4/check-type.m4: Remove file, now that the latest version of
94506         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94507
94508         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94509         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94510         AC_CHECK_TYPE.
94511
94512 1999-10-04  Jim Meyering  <meyering@ascend.com>
94513
94514         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94515
94516 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94517
94518         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94519         2.95.1 bug with HP-UX 10.20.
94520
94521 1999-09-17  Jim Meyering  <meyering@ascend.com>
94522
94523         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94524         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94525         due to missing strdup (against sh-utils-2.0).
94526
94527 1999-08-29  Jim Meyering  <meyering@ascend.com>
94528
94529         * m4/jm-macros.m4: Require jm_BISON.
94530         * m4/bison.m4: New file.
94531
94532 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94533
94534         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94535         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94536
94537 1999-08-05  Jim Meyering  <meyering@ascend.com>
94538
94539         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94540         to avoid conflicts with `conftest' on 8+3 filesystems.
94541         Suggestion from Eli Zaretskii.
94542
94543 1999-08-04  Jim Meyering  <meyering@ascend.com>
94544
94545         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94546         fileutils and sh-utils (textutils's getline test was inadequate).
94547         (AM_FUNC_GETLINE): Run this test.
94548         (AC_CHECK_FUNCS): Check for getdelim.
94549         Reported by Bob Proulx.
94550
94551 1999-08-02  Jim Meyering  <meyering@ascend.com>
94552
94553         * m4/jm-macros.m4: Add a comment.
94554
94555 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94556
94557         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94558         <inttypes.h> defines strtoumax as a macro (and not as a
94559         function).
94560
94561 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94562
94563         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94564         that we can shift, multiply and divide unsigned long long
94565         values; Ultrix cc can't do it.
94566
94567 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94568
94569         * m4/mktime.m4: New file, which is a preview of what should appear
94570         in the next public autoconf release.
94571
94572 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94573
94574         * m4/lfs.m4: Remove this file.
94575         * m4/largefile.m4: New file.  It contains the old contents of
94576         lfs.m4, except that all names with prefix AC_LFS have been
94577         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94578         compatible with future autoconf versions.  Also, some minor m4
94579         quoting problems have been fixed.
94580
94581 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94582
94583         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94584         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94585         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94586         and simplify the shell code.
94587
94588 1999-08-01  Jim Meyering  <meyering@ascend.com>
94589
94590         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94591         m4.
94592
94593 1999-07-20  Jim Meyering  <meyering@ascend.com>
94594
94595         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94596
94597 1999-07-15  Jim Meyering  <meyering@ascend.com>
94598
94599         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94600
94601 1999-05-22  Jim Meyering  <meyering@ascend.com>
94602
94603         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94604
94605 1999-05-20  Jim Meyering  <meyering@ascend.com>
94606
94607         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94608         Add a colon after each `then' in case $4 is empty.
94609
94610 1999-05-16  Jim Meyering  <meyering@ascend.com>
94611
94612         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94613
94614 1999-05-10  Jim Meyering  <meyering@ascend.com>
94615
94616         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94617
94618         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94619         AC_FUNC_MKTIME.
94620
94621 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94622
94623         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94624
94625 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94626
94627         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94628         not CPPFLAGS, so that linking works correctly in IRIX.
94629
94630 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94631
94632         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94633
94634 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94635
94636         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94637         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94638         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94639         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94640         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94641
94642         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94643
94644 1999-04-20  Jim Meyering  <meyering@ascend.com>
94645
94646         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94647         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94648         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94649
94650 1999-04-18  Jim Meyering  <meyering@ascend.com>
94651
94652         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94653         * m4/jm-macros.m4: Use it.
94654
94655 1999-04-06  Jim Meyering  <meyering@ascend.com>
94656
94657         * m4/strftime.m4: Remove test for %f.
94658
94659 1999-03-29  Jim Meyering  <meyering@ascend.com>
94660
94661         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94662         superset of the AC_TYPE_* checks in the textutils, fileutils,
94663         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94664         AC_TYPE_PID_T.
94665
94666 1999-03-28  Jim Meyering  <meyering@ascend.com>
94667
94668         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94669         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94670         replaced e.g., in the *.sh files of the sh-utils.
94671
94672 1999-03-20  Jim Meyering  <meyering@ascend.com>
94673
94674         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94675         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94676         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94677
94678 1999-03-19  Jim Meyering  <meyering@ascend.com>
94679
94680         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94681
94682 1999-03-12  Jim Meyering  <meyering@ascend.com>
94683
94684         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94685
94686 1999-03-07  Jim Meyering  <meyering@ascend.com>
94687
94688         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94689         declared.
94690
94691 1999-02-17  Jim Meyering  <meyering@ascend.com>
94692
94693         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94694         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94695
94696 1999-02-07  Jim Meyering  <meyering@ascend.com>
94697
94698         * m4/group-member.m4: New file -- extracted from sh-utils'
94699         configure.in.
94700
94701         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94702         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94703
94704 1999-02-06  Jim Meyering  <meyering@ascend.com>
94705
94706         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94707         * m4/fnmatch.m4: Likewise.
94708         * m4/getgroups.m4: Likewise.
94709         * m4/lstat.m4: Likewise.
94710         * m4/malloc.m4: Likewise.
94711         * m4/putenv.m4: Likewise.
94712         * m4/realloc.m4: Likewise.
94713         * m4/regex.m4: Likewise.
94714         * m4/stat.m4: Likewise.
94715         * m4/strftime.m4: Likewise.
94716         Suggestion from Alain Magloire.
94717
94718         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94719         * m4/fnmatch.m4: Likewise.
94720         * m4/getgroups.m4: Likewise.
94721         * m4/getline.m4: Likewise.
94722         * m4/lstat.m4: Likewise.
94723         * m4/malloc.m4: Likewise.
94724         * m4/memcmp.m4: Likewise.
94725         * m4/putenv.m4: Likewise.
94726         * m4/realloc.m4: Likewise.
94727         * m4/regex.m4: Likewise.
94728         * m4/stat.m4: Likewise.
94729         * m4/strftime.m4: Likewise.
94730         Suggestion from Alain Magloire.
94731
94732         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94733         an argument.
94734
94735         * m4/regex.m4: Add a run-time Test for proper operation of
94736         re_compile_pattern.
94737
94738 1999-01-31  Jim Meyering  <meyering@ascend.com>
94739
94740         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94741
94742 1999-01-30  Jim Meyering  <meyering@ascend.com>
94743
94744         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94745
94746         * m4/jm-mktime.m4: Make this a wrapper around the official
94747         AM_FUNC_MKTIME rather than my private copy, now that the official one
94748         is up to date.
94749         * m4/mktime.m4: Remove file.
94750
94751         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94752         * m4/uptime.m4: Likewise.
94753         * m4/uintmax_t.m4: Likewise.
94754
94755 1999-01-28  Jim Meyering  <meyering@ascend.com>
94756
94757         * m4/jm-macros.m4: Use jm_AFS.
94758         * m4/afs.m4: New file (from fileutils' configure.in).
94759
94760         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94761         * m4/chown.m4: Likewise.
94762         * m4/d-ino.m4: Likewise.
94763         * m4/d-type.m4: Likewise.
94764         * m4/fnmatch.m4: Likewise.
94765         * m4/getgroups.m4: Likewise.
94766         * m4/gettext.m4: Likewise.
94767         * m4/jm-mktime.m4: Likewise.
94768         * m4/jm-winsz2.m4: Likewise.
94769         * m4/lcmessage.m4: Likewise.
94770         * m4/ls-mntd-fs.m4: Likewise.
94771         * m4/malloc.m4: Likewise.
94772         * m4/memcmp.m4: Likewise.
94773         * m4/putenv.m4: Likewise.
94774         * m4/realloc.m4: Likewise.
94775         * m4/st_mtim.m4: Likewise.
94776         * m4/strftime.m4: Likewise.
94777
94778 1999-01-16  Jim Meyering  <meyering@ascend.com>
94779
94780         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94781         (ARGMATCH_DIE_DECL): Define.
94782
94783 1999-01-12  Jim Meyering  <meyering@ascend.com>
94784
94785         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94786         Reported by Lars Hecking.
94787
94788 1999-01-10  Jim Meyering  <meyering@ascend.com>
94789
94790         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94791         gross kludge.
94792         * m4/inttypes_h.m4: Likewise.
94793         * m4/lstat.m4: Likewise.
94794         * m4/malloc.m4: Likewise.
94795         * m4/readdir.m4: Likewise.
94796         * m4/realloc.m4: Likewise.
94797         * m4/st_dm_mode.m4: Likewise.
94798         * m4/stat.m4: Likewise.
94799         * m4/utimbuf.m4: Likewise.
94800         * m4/utimes.m4: Likewise.
94801
94802         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94803         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94804         comments in config.h.in are meaningful.
94805
94806         * m4/jm-macros.m4: Require autoconf-2.13 here.
94807
94808         * m4/regex.m4: By default, don't use the included regex.c on systems
94809         with glibc 2.  Suggestion from Uli Drepper.
94810
94811 1999-01-02  Jim Meyering  <meyering@ascend.com>
94812
94813         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94814
94815 1998-12-18  Jim Meyering  <meyering@ascend.com>
94816
94817         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94818         Based on a suggestion from Lars Hecking.
94819
94820 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94821
94822         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94823
94824 1998-11-16  Jim Meyering  <meyering@ascend.com>
94825
94826         * m4/lfs.m4: Double-quote the `uname...` expression.
94827
94828 1998-11-14  Jim Meyering  <meyering@ascend.com>
94829
94830         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94831         * m4/stat.m4: Likewise.
94832
94833 1998-11-03  Jim Meyering  <meyering@ascend.com>
94834
94835         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94836         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94837
94838 1998-10-18  Jim Meyering  <meyering@ascend.com>
94839
94840         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94841
94842 1998-10-17  Jim Meyering  <meyering@ascend.com>
94843
94844         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94845         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94846         calls for those previously hard-coded headers.  Instead, take a new
94847         parameter.
94848         (jm_CHECK_DECLARATIONS): Reflect interface change.
94849         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94850         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94851
94852         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94853
94854 1998-10-14  Jim Meyering  <meyering@ascend.com>
94855
94856         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94857         instead of "TZ=America/Vancouver".  From Paul Eggert.
94858
94859 1998-10-11  Jim Meyering  <meyering@ascend.com>
94860
94861         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94862         This adds a test for a recently added compatibility fix for mktime.c.
94863         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94864
94865 1998-09-27  Jim Meyering  <meyering@ascend.com>
94866
94867         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94868
94869         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94870         ../configure.in, including a change from Gordon Matzigkeit to allow
94871         cross-compiling for the Hurd.
94872
94873         * m4/glibc.m4: New file/macro to test for the GNU C Library
94874         versions 1 and 2.  From Gordon Matzigkeit.
94875         Indent.
94876
94877 1998-09-21  Jim Meyering  <meyering@ascend.com>
94878
94879         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94880
94881 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94882
94883         Port nanosecond-resolution times to UnixWare 2.1.2 and
94884         pedantic Solaris 2.6.
94885
94886         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94887         AC_STRUCT_ST_MTIM.
94888         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94889         Generate name of ns member, instead of just 1 or undef.
94890         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94891
94892 1998-08-15  Jim Meyering  <meyering@ascend.com>
94893
94894         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94895         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94896         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94897         instead of jm_TYPE_SSIZE_T.
94898
94899 1998-08-12  Jim Meyering  <meyering@ascend.com>
94900
94901         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94902
94903 1998-08-02  Jim Meyering  <meyering@ascend.com>
94904
94905         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94906         in acconfig.h manually.
94907
94908 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94909
94910         * m4/st_mtim.m4: New file.
94911
94912 1998-07-28  Jim Meyering  <meyering@ascend.com>
94913
94914         * m4/utimes.m4: Undef stat.
94915
94916 1998-07-25  Jim Meyering  <meyering@ascend.com>
94917
94918         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94919         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94920
94921 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94922
94923         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94924         uid and gid actually remain unchanged.
94925
94926 1998-07-07  Jim Meyering  <meyering@ascend.com>
94927
94928         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94929
94930 1998-07-04  Jim Meyering  <meyering@ascend.com>
94931
94932         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94933         to prove that this macro can be used in packages without regex.c.
94934
94935 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94936
94937         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94938         is to be used.
94939
94940 1998-07-03  Jim Meyering  <meyering@ascend.com>
94941
94942         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94943
94944         * m4/gettext.m4: New file -- from gettext-0.10.35.
94945         * m4/lcmessage.m4: Likewise.
94946         * m4/progtest.m4: Likewise.
94947
94948         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94949         * m4/jm-macros.m4: Require the new macro.
94950
94951 1998-06-29  Jim Meyering  <meyering@ascend.com>
94952
94953         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94954         for the definition of NGROUPS (used in a system header included
94955         by sys/mount.h).
94956
94957 1998-06-28  Jim Meyering  <meyering@ascend.com>
94958
94959         * m4/ls-mntd-fs.m4: New file.
94960         * m4/fstypename.m4: New file.
94961
94962         * m4/jm-macros.m4: Require the new macro.
94963         * m4/jm-glibc-io.m4: New file.
94964
94965 1998-05-19  Jim Meyering  <meyering@ascend.com>
94966
94967         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94968         * m4/lchown.m4: New file.
94969
94970         * m4/Makefile.am.in: New file.
94971         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94972
94973 1998-05-14  Jim Meyering  <meyering@ascend.com>
94974
94975         * m4/Makefile.am (EXTRA_DIST): Add them.
94976         * m4/jm-macros.m4: New file.
94977         * m4/utimbuf.m4: New file.
94978
94979 1998-05-12  Jim Meyering  <meyering@ascend.com>
94980
94981         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94982
94983 1998-05-11  Jim Meyering  <meyering@ascend.com>
94984
94985         * m4/isc-posix.m4: New file.
94986
94987 1998-05-10  Jim Meyering  <meyering@ascend.com>
94988
94989         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94990
94991 1998-05-09  Jim Meyering  <meyering@ascend.com>
94992
94993         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94994         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94995         with automake.
94996
94997         * m4/ssize_t.m4: New file.
94998         * m4/mktime.m4: Remove file -- the new automake has this now.
94999
95000 1998-04-26  Jim Meyering  <meyering@ascend.com>
95001
95002         * m4/assert.m4: New file.
95003         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95004
95005 1998-04-05  Jim Meyering  <meyering@ascend.com>
95006
95007         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95008         (jm_PREREQ): Use it here.
95009
95010 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95011
95012         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95013         in acconfig.h.
95014
95015 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95016
95017         * m4/prereq.m4: New file.
95018         * m4/error.m4: New file.
95019         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95020
95021 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95022
95023         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95024         cache-check for the same variable -- that defeated the purpose of
95025         the test; the test program was never run.  This was a problem only
95026         on systems with losing getline functions -- HP-UX 10.20 is one.
95027         Reported by Bjorn Helgaas.
95028
95029 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95030
95031         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95032
95033 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95034
95035         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95036
95037         * m4/const.m4: New file.  Use an initializer in this declaration
95038         typedef int charset[2]; const charset x;
95039         Reported by Bob Glickstein.
95040
95041 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95042
95043         * m4/chown.m4: Fix reversed types on -1 args to chown.
95044         From Kaveh Ghazi.
95045
95046 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95047
95048         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95049         Add lseek and memchr.
95050
95051         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95052         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95053         have a 20-character limit on names.
95054
95055 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95056
95057         * m4/inttypes_h.m4: New file.
95058         * m4/uintmax_t.m4: New file.
95059         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95060
95061
95062         -----
95063
95064         Local Variables:
95065         coding: utf-8
95066         End:
95067
95068         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95069
95070         Copying and distribution of this file, with or without
95071         modification, are permitted provided the copyright notice
95072         and this notice are preserved.